/*
Theme Name: Triple C
Description: Lead site for Triple C Pressure Cleaning, Western Sydney.
Version: 1.0
*/

@font-face { font-family: "Archivo"; src: url("fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Source Sans"; src: url("fonts/ss-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans"; src: url("fonts/ss-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --wet: #16191c;
  --slab: #2a2e33;
  --concrete: #d8d5ce;
  --clean: #f3f2ee;
  --vis: #f6d32b;
  --jet: #1d7cf2;
  --ink: #16191c;
  --gutter: clamp(18px, 4vw, 56px);
  --max: 1220px;
  --wide: "Archivo", "Arial Black", "Helvetica Neue", sans-serif;
  --body: "Source Sans", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--clean); color: var(--ink); font-family: var(--body); font-weight: 400; font-size: 18px; line-height: 1.6; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--jet); }
h1, h2, h3 { font-family: var(--wide); font-stretch: 125%; font-weight: 800; letter-spacing: -0.02em; line-height: .98; color: var(--wet); margin: 0 0 16px; }
h1 { font-size: clamp(42px, 6.6vw, 92px); }
h2 { font-size: clamp(32px, 4.2vw, 58px); }
h3 { font-size: clamp(21px, 1.9vw, 26px); font-stretch: 112%; line-height: 1.1; }
p { margin: 0 0 16px; }
.tc-skip { position: absolute; left: -999px; }
.tc-skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--vis); padding: 8px 14px; }
.tc-eyebrow, .tc-label { font-family: var(--wide); font-stretch: 70%; font-weight: 700; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--jet); margin: 0 0 12px; }

/* buttons */
.tc-btn, .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--wide); font-stretch: 100%; font-weight: 750; font-size: 16px; letter-spacing: .01em; text-decoration: none; padding: 14px 22px; border-radius: 6px; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .2s, color .2s; }
.tc-btn:hover, .wp-block-button__link:hover { transform: translateY(-2px); }
.tc-btn--go, .wp-block-button__link { background: var(--vis); color: var(--wet); }
.tc-btn--go:hover, .wp-block-button__link:hover { background: #ffe25a; color: var(--wet); }
.tc-btn--ghost { background: transparent; color: var(--wet); border-color: var(--wet); }
.tc-btn--ghost:hover { background: var(--wet); color: var(--clean); }
.is-style-outline .wp-block-button__link { background: transparent; color: inherit; border: 2px solid currentColor; }
.is-style-outline .wp-block-button__link:hover { background: var(--clean); color: var(--wet); border-color: var(--clean); }
button.tc-btn { font-size: 18px; }

/* header */
.tc-top { position: sticky; top: 0; z-index: 40; background: rgba(243,242,238,.95); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(22,25,28,.1); }
.tc-top__in { display: flex; align-items: center; gap: 22px; padding: 12px max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); }
.tc-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--wet); flex: none; }
.tc-brand__mark { width: 40px; height: 40px; }
.tc-brand__name { font-family: var(--wide); font-stretch: 125%; font-weight: 850; font-size: 20px; line-height: 1; letter-spacing: -0.02em; }
.tc-brand__name small { display: block; font-stretch: 75%; font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #5a6068; margin-top: 3px; }
.tc-nav { margin-left: auto; }
.tc-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.tc-nav a { color: var(--wet); text-decoration: none; font-weight: 600; font-size: 16px; }
.tc-nav a:hover, .tc-nav .current-menu-item > a { color: var(--jet); }
.tc-top__cta { display: flex; gap: 8px; }
.tc-top__cta .tc-btn { padding: 10px 16px; font-size: 15px; }
.tc-menu { display: none; }

@media (max-width: 1020px) {
  .tc-top__cta { display: none; }
  .tc-menu { display: inline-flex; margin-left: auto; background: var(--wet); color: var(--clean); border: 0; border-radius: 6px; padding: 10px 16px; font: 700 15px var(--wide); }
  .tc-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--clean); border-bottom: 4px solid var(--vis); padding: 6px var(--gutter) 18px; margin: 0; }
  .tc-nav.is-open { display: block; }
  .tc-nav ul { flex-direction: column; gap: 0; }
  .tc-nav a { display: block; padding: 14px 0; font-size: 20px; border-bottom: 1px solid rgba(22,25,28,.1); }
}

/* bottom dock on phones: Call Now + Get a Quote always in reach */
.tc-dock { display: none; }
@media (max-width: 760px) {
  .tc-dock { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--wet); box-shadow: 0 -8px 24px rgba(0,0,0,.25); }
  .tc-dock a { text-align: center; padding: 17px 8px; font-family: var(--wide); font-weight: 750; font-size: 17px; text-decoration: none; color: var(--clean); }
  .tc-dock a.is-go { background: var(--vis); color: var(--wet); }
  body { padding-bottom: 60px; }
}

/* hero: the clean swath is the one visual risk. A diagonal band shows the photo clean and bright; outside it the same photo is grey and dull, like concrete before the pass. */
.tc-hero { position: relative; min-height: min(90svh, 860px); display: grid; align-items: end; overflow: hidden; background: var(--wet); color: var(--clean); --pass: 0; }
.tc-hero .wp-block-cover__image-background, .tc-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.tc-hero .wp-block-cover__image-background { filter: grayscale(.85) brightness(.55) contrast(.9); }
.tc-hero .wp-block-cover__background { display: none; }
.tc-hero::before { content: ""; position: absolute; inset: 0; z-index: 0; background-image: var(--hero-img); background-size: cover; background-position: 60% 40%; clip-path: polygon(calc(46% - var(--pass) * 6%) 0, calc(78% + var(--pass) * 8%) 0, calc(60% + var(--pass) * 8%) 100%, calc(28% - var(--pass) * 6%) 100%); }
.tc-hero::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(0deg, rgba(22,25,28,.92) 0%, rgba(22,25,28,.25) 55%, rgba(22,25,28,0) 100%), linear-gradient(90deg, rgba(22,25,28,.75) 0%, rgba(22,25,28,0) 55%); pointer-events: none; }
.tc-hero .wp-block-cover__inner-container { position: relative; z-index: 1; width: 100%; padding: 0 max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))) clamp(48px, 8vw, 100px); }
.tc-hero h1 { color: #fff; max-width: 13ch; }
.tc-hero h1 mark { background: var(--vis); color: var(--wet); padding: 0 .12em; }
.tc-hero .tc-eyebrow { color: var(--vis); }
.tc-hero p.tc-hero__sub { font-size: clamp(18px, 1.6vw, 22px); max-width: 34rem; color: rgba(255,255,255,.9); }
.tc-hero .wp-block-buttons { gap: 12px; margin-top: 22px; }
@media (max-width: 760px) {
  .tc-hero::before { clip-path: polygon(30% 0, 92% 0, 70% 100%, 8% 100%); }
  .tc-hero { min-height: 82svh; }
}

/* home sections */
.tc-section { padding: clamp(64px, 9vw, 120px) max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); }
.tc-section--dark { background: var(--wet); color: var(--clean); }
.tc-section--dark h2, .tc-section--dark h3 { color: #fff; }
.tc-section--concrete { background: var(--concrete); }
.tc-lede { font-size: clamp(18px, 1.6vw, 21px); max-width: 40rem; opacity: .82; }

.tc-services > .wp-block-group__inner-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 14px; margin-top: 36px; }
.tc-service { position: relative; background: #fff; border-radius: 8px; overflow: hidden; margin: 0 !important; transition: transform .25s; }
.tc-service:hover { transform: translateY(-4px); }
.tc-service .wp-block-image { margin: 0; }
.tc-service img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.tc-service .wp-block-group__inner-container > :not(.wp-block-image) { padding-left: 22px; padding-right: 22px; }
.tc-service h3 { margin-top: 20px; }
.tc-service h3 a { color: var(--wet); text-decoration: none; }
.tc-service h3 a::after { content: ""; position: absolute; inset: 0; }
.tc-service p { font-size: 16px; opacity: .8; padding-bottom: 22px; }
.tc-service::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--vis); z-index: 1; transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.tc-service:hover::before { transform: scaleX(1); }

.tc-steps > .wp-block-group__inner-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0; margin-top: 36px; counter-reset: step; }
.tc-step { margin: 0 !important; padding: 26px 24px 28px; border-top: 4px solid var(--vis); counter-increment: step; }
.tc-step + .tc-step { border-left: 1px solid rgba(255,255,255,.12); }
.tc-step h3::before { content: counter(step, decimal-leading-zero); display: block; font-stretch: 70%; font-size: 15px; letter-spacing: .14em; color: var(--vis); margin-bottom: 10px; }
.tc-step p { font-size: 16px; opacity: .8; margin: 0; }

.tc-areas > .wp-block-group__inner-container { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.tc-areas a { display: inline-block; padding: 10px 16px; background: #fff; border-radius: 999px; text-decoration: none; color: var(--wet); font-weight: 600; border: 1.5px solid rgba(22,25,28,.15); }
.tc-areas a:hover { border-color: var(--wet); }

/* swath divider rhymes with the hero band */
.tc-swath { height: 26px; background: linear-gradient(100deg, var(--concrete) 0 30%, var(--clean) 30% 62%, var(--concrete) 62%); }

/* inner pages */
.tc-page-head { padding: clamp(48px, 7vw, 92px) max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))) clamp(28px, 4vw, 44px); background: linear-gradient(100deg, var(--concrete) 0 58%, var(--clean) 58% 84%, var(--concrete) 84%); }
.tc-page-head h1 { max-width: 16ch; font-size: clamp(40px, 5.6vw, 76px); }
.tc-content { padding: clamp(36px, 5vw, 64px) max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))) clamp(64px, 9vw, 110px); }
.tc-content > * { max-width: 760px; }
.tc-content > .alignwide { max-width: var(--max); }
.tc-content > .alignfull { max-width: none; }
.home .tc-content { padding: 0; }
.home .tc-content > * { max-width: none; margin-top: 0; margin-bottom: 0; }
.tc-content .wp-block-image img { border-radius: 8px; }
.tc-content ul { padding-left: 22px; }
.tc-content li { margin-bottom: 6px; }
.tc-sample { display: inline-block; font-family: var(--wide); font-stretch: 70%; font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; background: var(--wet); color: var(--vis); padding: 4px 10px; border-radius: 4px; }
.tc-cta-band { background: var(--wet); color: var(--clean); border-radius: 10px; padding: clamp(24px, 4vw, 40px); margin-top: 40px !important; }
.tc-cta-band h2, .tc-cta-band h3 { color: #fff; }
.tc-split > .wp-block-group__inner-container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 760px) { .tc-split > .wp-block-group__inner-container { grid-template-columns: 1fr; } }

/* quote form */
.tc-quote-wrap { max-width: 760px; }
.tc-form { display: grid; gap: 18px; background: #fff; border-radius: 10px; padding: clamp(20px, 3.4vw, 36px); border-top: 6px solid var(--vis); box-shadow: 0 20px 50px rgba(22,25,28,.08); }
.tc-form legend, .tc-form label { font-family: var(--wide); font-stretch: 90%; font-weight: 700; font-size: 16px; color: var(--wet); }
.tc-form label { display: grid; gap: 6px; }
.tc-form input[type=text], .tc-form input[type=email], .tc-form input[type=tel], .tc-form textarea { font: 400 17px var(--body); padding: 13px 14px; border: 1.5px solid #c7c4bd; border-radius: 6px; width: 100%; background: #fff; color: var(--ink); }
.tc-form input:focus, .tc-form textarea:focus { outline: 3px solid var(--vis); outline-offset: 1px; border-color: var(--wet); }
.tc-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 18px; }
.tc-form fieldset { border: 0; margin: 0; padding: 0; }
.tc-form legend { margin-bottom: 10px; }
.tc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tc-chips label { display: inline-flex; font-stretch: 100%; font-weight: 600; font-family: var(--body); }
.tc-chips input { position: absolute; opacity: 0; pointer-events: none; }
.tc-chips span { padding: 10px 14px; border: 1.5px solid #c7c4bd; border-radius: 999px; cursor: pointer; background: #fff; }
.tc-chips input:checked + span { background: var(--wet); color: var(--vis); border-color: var(--wet); }
.tc-chips input:focus-visible + span { outline: 3px solid var(--jet); outline-offset: 2px; }
.tc-upload { border: 2px dashed #b9b6ae; border-radius: 10px; padding: 18px; background: var(--clean); }
.tc-upload small { font-weight: 400; color: #5a6068; }
.tc-upload input { font: 400 16px var(--body); }
.tc-upload__hint { font-family: var(--body); font-weight: 400; font-size: 15px; color: #5a6068; }
.tc-form button { justify-self: start; border: 0; }
.tc-hp { position: absolute; left: -9999px; }
.tc-notice { background: #1f6f43; color: #fff; padding: 16px 20px; border-radius: 8px; margin-bottom: 18px; border-left: 6px solid var(--vis); }
.tc-notice em { display: block; margin-top: 6px; opacity: .85; font-size: 15px; }
.tc-notice--err { background: #b3261e; }
#call:target { outline: 3px solid var(--vis); outline-offset: 6px; border-radius: 6px; }

/* footer */
.tc-foot { background: var(--wet); color: rgba(243,242,238,.8); border-top: 8px solid var(--vis); }
.tc-foot__in { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; padding: clamp(48px, 7vw, 80px) max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))) 28px; }
@media (max-width: 800px) { .tc-foot__in { grid-template-columns: 1fr; } }
.tc-foot__name { font-family: var(--wide); font-stretch: 125%; font-weight: 850; font-size: 24px; color: #fff; }
.tc-foot__h { color: var(--vis); font-size: 18px; font-stretch: 80%; letter-spacing: .1em; text-transform: uppercase; }
.tc-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tc-foot a { color: #fff; text-decoration: none; }
.tc-foot a:hover { color: var(--vis); }
.tc-foot .tc-btn--go { color: var(--wet); }
.tc-foot__phone { font-family: var(--wide); font-weight: 800; font-size: 26px; }
.tc-foot__base { margin: 0; padding: 18px max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))) 26px; border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; opacity: .6; }

.wp-block-group__inner-container > :last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* hero layering: photo (grey) < clean band < shade < copy */
.tc-hero .wp-block-cover__image-background { z-index: 0; }
.tc-hero::before { z-index: 1; }
.tc-hero::after { z-index: 2; }
.tc-hero .wp-block-cover__inner-container { z-index: 3 !important; width: 100% !important; max-width: none !important; margin: 0 !important; align-self: end; }
.tc-hero.wp-block-cover { padding: 0 !important; align-items: flex-end; }
.tc-hero .wp-block-cover__inner-container { padding-left: max(var(--gutter), calc((100cqw - var(--max)) / 2 + var(--gutter))) !important; padding-right: var(--gutter) !important; }
.tc-hero { container-type: inline-size; }
.tc-hero .wp-block-cover__inner-container { flex: 1 1 100% !important; box-sizing: border-box; }
.tc-hero.wp-block-cover { display: flex !important; }

/* ---------- motion: the clean pass ---------- */
@property --wipe { syntax: "<percentage>"; inherits: true; initial-value: 0%; }
@keyframes tc-pass { from { --wipe: 0%; } to { --wipe: 100%; } }
@keyframes tc-drift { from { transform: scale(1.12) translate3d(-1.5%, 0, 0); } to { transform: scale(1.04) translate3d(1.5%, 0, 0); } }
@keyframes tc-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes tc-spray { 0% { background-position: 0 0, 0 0; } 100% { background-position: 0 -220px, 0 -140px; } }

/* home: the photo drifts slowly, the clean band wipes on top-to-bottom like a pass with the surface cleaner, then a mist rides its edge */
.tc-hero .wp-block-cover__image-background { animation: tc-drift 22s ease-in-out infinite alternate; }
.tc-hero::before { animation: tc-pass 1.6s cubic-bezier(.65,0,.25,1) .25s both; -webkit-mask-image: linear-gradient(180deg, #000 var(--wipe), transparent calc(var(--wipe) + 6%)); mask-image: linear-gradient(180deg, #000 var(--wipe), transparent calc(var(--wipe) + 6%)); }
.tc-hero .tc-eyebrow, .tc-hero h1, .tc-hero .tc-hero__sub, .tc-hero .wp-block-buttons { animation: tc-rise .9s cubic-bezier(.2,.7,.2,1) both; }
.tc-hero .tc-eyebrow { animation-delay: .5s; }
.tc-hero h1 { animation-delay: .65s; }
.tc-hero .tc-hero__sub { animation-delay: .85s; }
.tc-hero .wp-block-buttons { animation-delay: 1s; }
.tc-hero h1 mark { background: linear-gradient(var(--vis), var(--vis)) no-repeat 0 0 / 0% 100%; color: #fff; animation: tc-mark .7s cubic-bezier(.65,0,.25,1) 1.3s forwards; padding: 0 .12em; }
@keyframes tc-mark { to { background-size: 100% 100%; color: var(--wet); } }
.tc-mist { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5; mix-blend-mode: screen; clip-path: polygon(calc(46% - var(--pass) * 6%) 0, calc(50% - var(--pass) * 6%) 0, calc(32% - var(--pass) * 6%) 100%, calc(28% - var(--pass) * 6%) 100%); background-image: radial-gradient(circle at 30% 40%, rgba(255,255,255,.55) 0 1.5px, transparent 2px), radial-gradient(circle at 70% 70%, rgba(255,255,255,.4) 0 1px, transparent 1.6px); background-size: 22px 22px, 15px 15px; animation: tc-spray 2.8s linear infinite; }

/* inside heroes: same photo treatment as home, smaller, with its own pass */
.tc-page-head--photo { position: relative; overflow: hidden; background: var(--wet); color: #fff; min-height: clamp(380px, 52vh, 560px); display: flex; align-items: flex-end; padding-top: clamp(90px, 12vw, 140px); }
.tc-page-head__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.85) brightness(.5); animation: tc-drift 24s ease-in-out infinite alternate; }
.tc-page-head--photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background-image: var(--hero-img); background-size: cover; background-position: center; clip-path: polygon(52% 0, 80% 0, 66% 100%, 38% 100%); animation: tc-pass 1.4s cubic-bezier(.65,0,.25,1) .2s both; -webkit-mask-image: linear-gradient(180deg, #000 var(--wipe), transparent calc(var(--wipe) + 6%)); mask-image: linear-gradient(180deg, #000 var(--wipe), transparent calc(var(--wipe) + 6%)); }
.tc-page-head--photo::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(0deg, rgba(22,25,28,.94) 0%, rgba(22,25,28,.3) 60%, rgba(22,25,28,.05) 100%), linear-gradient(90deg, rgba(22,25,28,.8) 0%, rgba(22,25,28,0) 60%); }
.tc-page-head__in { position: relative; z-index: 3; width: 100%; }
.tc-page-head--photo h1 { color: #fff; }
.tc-page-head--photo .tc-eyebrow { color: var(--vis); }
.tc-page-head--photo .tc-eyebrow, .tc-page-head--photo h1, .tc-page-head__sub, .tc-page-head__cta { animation: tc-rise .8s cubic-bezier(.2,.7,.2,1) both; }
.tc-page-head--photo h1 { animation-delay: .15s; }
.tc-page-head__sub { animation-delay: .3s; color: rgba(255,255,255,.85); font-size: clamp(17px, 1.5vw, 20px); max-width: 36rem; margin: 6px 0 0; }
.tc-page-head__cta { animation-delay: .45s; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tc-btn--light { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); }
.tc-btn--light:hover { background: #fff; color: var(--wet); }
@media (max-width: 760px) { .tc-page-head--photo::before { clip-path: polygon(40% 0, 95% 0, 75% 100%, 20% 100%); } }

@media (prefers-reduced-motion: reduce) {
  .tc-hero .wp-block-cover__image-background, .tc-page-head__img, .tc-mist { animation: none; }
  .tc-hero::before, .tc-page-head--photo::before { animation: none; -webkit-mask-image: none; mask-image: none; }
  .tc-hero h1 mark { animation: none; background-size: 100% 100%; color: var(--wet); }
}
.tc-hero h1 mark { white-space: nowrap; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
