/* Visual refinement: preserve TIAM's dark, gold, image-led character while retaining V2's strategy and UX. */
:root {
  --ink: #171717;
  --ink-soft: #41403d;
  --cream: #eeece7;
  --paper: #f7f6f3;
  --gold: #c49a3d;
  --gold-light: #e0bd6f;
  --line: #d9d5ce;
  --muted: #686662;
  --container: 1230px;
}

.section { padding-block: clamp(76px, 8vw, 120px); }
.section-heading { margin-bottom: 48px; }
.section-heading h2 { max-width: 850px; }
.heading-split { gap: 88px; }
.eyebrow { letter-spacing: .13em; }
.button { text-transform: uppercase; letter-spacing: .055em; font-size: .76rem; }

/* A dark, quieter header makes the existing TIAM logo and gold accent the focus. */
.site-header { background: rgba(23,23,23,.97); border-bottom: 1px solid rgba(255,255,255,.12); color: #f5f3ee; }
.topbar { background: #0d0d0d; color: #9d9b95; }
.header-inner { height: 82px; }
.site-header .brand-logo,
.site-footer .brand-logo { height: auto; object-fit: contain; width: 190px; }
.desktop-nav a, .phone-link { color: #f3f0e8; }
.desktop-nav a:hover, .phone-link:hover { color: var(--gold-light); }
.menu-button span:not(.sr-only) { background: #f4f1e9; }
.mobile-nav { background: #191919; border-top-color: #3b3934; }
.mobile-nav a:not(.button) { border-bottom-color: #34332e; color: #f3f0e8; }

/* Live-site photography remains dominant; the approved message stays unchanged. */
.hero {
  background-image: linear-gradient(90deg,rgba(0,0,0,.8) 0%,rgba(0,0,0,.58) 32%,rgba(0,0,0,.18) 49%,rgba(0,0,0,.06) 100%),url("assets/hero-kitchen-IMG_3279.webp");
  background-position: center 48%;
}
.hero-grid { min-height: clamp(690px, 67vw, 830px); }
.hero-copy { max-width: 540px; padding-block: 106px 116px; }
.hero h1 { font-size: clamp(2.55rem, 4vw, 4.15rem); line-height: .99; margin-bottom: 24px; }
.hero-intro { font-size: 1rem; max-width: 500px; }
.hero .button { font-size: .72rem; min-height: 46px; padding: 10px 18px; }
.hero .button-gold { min-height: 48px; }
.preview-asset-note { background: #171717; color: #b4b0a5; font-size: .64rem; line-height: 1.4; margin: 0; padding: 8px 24px; text-align: center; }
.trust-strip { background: #242424; border-top: 2px solid var(--gold); color: #e9e5dc; }
.trust-strip span { font-size: .72rem; min-height: 72px; }
.trust-strip span + span { border-left-color: #45433d; }

/* One strong photo and four editorial points, not a card deck. */
.management { background: #f7f6f3; }
.management-layout { align-items: stretch; display: grid; gap: clamp(42px,5vw,78px); grid-template-columns: 1.16fr .84fr; }
.legacy-image-block { height: 690px; margin: 0; }
.legacy-image-block .operational-media { height: 100%; justify-content: center; padding-bottom: 90px; width: 100%; }
.jobsite-photo-pair { background: #171717; display: grid; gap: 3px; grid-template-columns: 1fr 1fr; height: 100%; }
.jobsite-photo-pair img { min-width: 0; }
.legacy-image-block .jobsite-coordination-photo { object-position: center 58%; }
.legacy-image-block .jobsite-owner-work-photo { object-position: center 52%; }
.legacy-image-block figcaption { bottom: 0; left: 0; padding: 50px 32px 28px; width: 100%; }
.proof-grid { background: transparent; border: 0; display: block; }
.proof-card { background: transparent; border-top: 1px solid #c9c5bc; display: grid; gap: 4px 20px; grid-template-columns: 42px 1fr; min-height: 0; padding: 20px 0 22px; }
.proof-card:last-child { border-bottom: 1px solid #c9c5bc; }
.proof-card:hover { border-top-color: var(--gold); }
.proof-number { grid-row: 1 / 3; margin: 5px 0 0; }
.proof-card h3 { font-size: 1.22rem; margin: 0 0 4px; }
.proof-card p { font-size: .87rem; grid-column: 2; }

/* Service imagery stays expansive and the category hierarchy stays visible. */
.services { background: #fff; }
.service-grid { column-gap: 36px; row-gap: 64px; }
.service-card { background: transparent; border: 0; overflow: visible; }
.service-media { height: clamp(340px,34vw,440px); }
.core-service .service-media { height: clamp(250px,26vw,315px); }
.service-copy { background: transparent; border-bottom: 1px solid var(--line); padding: 24px 0 30px; }
.service-copy h3 { font-size: clamp(1.65rem,2.3vw,2.2rem); }
.service-copy p { max-width: 510px; min-height: 0; }
.service-copy a { color: #76591e; }
.live-service-image { position: relative; }
.bathroom-photo-pair { background: #171717; display: grid; gap: 3px; grid-template-columns: 1fr 1fr; overflow: hidden; }
.bathroom-photo-pair img { height: 100%; min-width: 0; object-fit: cover; width: 100%; }
.bathroom-photo-pair img:first-child { object-position: center 56%; }
.bathroom-photo-pair img:last-child { object-position: center; }
.cabinetry-image img { object-position: center 52%; }
.flooring-image img { object-position: center 72%; }
.image-source-note { background: rgba(15,15,15,.83); bottom: 14px; color: #f1eee8; font-size: .58rem; left: 14px; letter-spacing: .03em; padding: 7px 9px; position: absolute; }
.media-placeholder { border-color: rgba(27,25,21,.13); }

/* A dark chapter drawn with type and rules, not a decorative diagram. */
.coordinated-section { background: radial-gradient(circle at 90% 20%,rgba(196,154,61,.11),transparent 34%),#202020; }
.coordinated-grid { gap: clamp(56px,7vw,110px); }
.coordination-map { border: 0; border-top: 3px solid var(--gold); min-height: 0; padding: 34px 0 0; }
.coordination-kicker { color: #f0e8d6; font-size: clamp(1.5rem,2.6vw,2.45rem); font-weight: 600; line-height: 1.2; margin-bottom: 36px; }
.coordination-map ul { gap: 0 24px; margin-bottom: 25px; }
.coordination-map li { border: 0; border-top: 1px solid #55524a; font-size: .95rem; padding: 13px 0; text-align: left; }
.coordination-map li:nth-last-child(-n+2) { border-bottom: 1px solid #55524a; }
.coordination-map small { color: #b9b4a9; }

/* The project photograph leads. Facts and sequence remain explicitly provisional. */
.project-story { background: #eeece7; }
.project-filters { border-color: #c7c2b8; margin-bottom: 32px; }
.project-visual { background: #252525; height: clamp(420px,48vw,620px); margin-bottom: 56px; overflow: hidden; position: relative; }
.project-visual::after { background: linear-gradient(transparent 46%,rgba(0,0,0,.78)); content: ""; inset: 0; position: absolute; }
.project-visual img { height: 100%; object-fit: cover; object-position: center; width: 100%; }
.project-visual-caption { bottom: 28px; color: #fff; display: grid; gap: 7px; left: 34px; max-width: 520px; position: absolute; z-index: 1; }
.project-visual-caption span { color: var(--gold-light); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.project-visual-caption strong { font-size: clamp(1.15rem,2.2vw,1.75rem); line-height: 1.3; }
.story-layout { gap: clamp(50px,6vw,86px); grid-template-columns: .85fr 1.15fr; }
.story-main { height: 450px; }
.story-sequence { background: #171717; display: grid; gap: 3px; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 0; }
.story-sequence::before { display: none; }
.story-sequence figure { height: 100%; margin: 0; min-width: 0; overflow: hidden; position: relative; }
.story-sequence img { height: 100%; object-fit: cover; object-position: center; width: 100%; }
.story-sequence figcaption { background: rgba(18,18,17,.84); bottom: 12px; color: #fff; font-size: .7rem; font-weight: 700; left: 10px; letter-spacing: .08em; padding: 7px 9px; position: absolute; text-transform: uppercase; }
.project-facts { border: 0; border-bottom: 1px solid #c9c5bc; }
.project-facts span { background: transparent; border-top: 1px solid #c9c5bc; padding: 13px 0; }
.project-facts span:nth-child(even) { border-left: 0; }
.story-steps li { padding-block: 20px; }
.story-close { border-top: 1px solid #c9c5bc; margin-top: 78px; padding-top: 48px; }

/* Open numbered timeline instead of six boxed process cards. */
.process-section { background: #1c1c1c; }
.process-grid { background: transparent; border: 0; column-gap: 36px; row-gap: 24px; }
.process-grid li { background: transparent; border-top: 1px solid #4c4a45; min-height: 0; padding: 26px 0 20px; }
.process-grid span { font-size: 1.65rem; line-height: 1; margin-bottom: 36px; }
.process-grid h3 { font-size: 1.35rem; }
.process-grid p { max-width: 335px; }

.owners-section { background: #fff; }
.owners-grid { gap: clamp(52px,6vw,92px); }
.real-jobsite-media { background: none; padding: 0; }
.real-jobsite-media img { height: 100%; object-fit: cover; width: 100%; }
.real-jobsite-media::before { z-index: 1; }
.owner-media.real-jobsite-media img { object-position: center 48%; }
.owner-media { background: linear-gradient(145deg,rgba(196,154,61,.24),transparent 38%),repeating-linear-gradient(-45deg,#282825,#282825 1px,#34332f 1px,#34332f 19px); border-color: #3f3d37; color: #f6f1e8; }
.owner-media::before { border-color: rgba(255,255,255,.18); }
.owner-media .placeholder-tag { background: var(--gold); color: #1c1912; }
.owner-media small { color: #d6d0c3; }
.owner-media strong { font-size: clamp(1.5rem,2.8vw,2.3rem); max-width: 450px; }

.protection-section { background: #f7f6f3; }
.protection-gallery { gap: 16px; }
.protection-gallery .media-placeholder { aspect-ratio: 4/3.5; }
.protected-access-grid { display: grid; gap: 3px; grid-template-columns: repeat(3,1fr); height: 100%; width: 100%; }
.protected-access-grid img { min-width: 0; object-position: center; }
.protection-gallery .protection-photo-label { background: rgba(18,18,17,.84); bottom: 14px; color: #fff; font-size: .82rem; left: 14px; max-width: calc(100% - 28px); padding: 8px 10px; position: absolute; z-index: 2; }
.protection-gallery .work-progress-photo img { object-position: center 55%; }
.protection-gallery .clean-handoff-photo img { object-position: center 58%; }
.standards-grid { background: transparent; border: 0; gap: 28px; margin-top: 44px; }
.standards-grid article { background: transparent; border-top: 2px solid var(--gold); padding: 18px 0 0; }
.standards-grid p { font-size: .86rem; }

.theatre-section { background: #222; }
.theatre-section::after { display: none; }
.theatre-grid { gap: clamp(52px,6vw,88px); }
.theatre-media { background: linear-gradient(150deg,rgba(196,154,61,.19),transparent 35%),repeating-linear-gradient(-45deg,#302f2b,#302f2b 1px,#3a3933 1px,#3a3933 19px); border-color: #4d4a41; color: #f7f0e5; }
.theatre-media::before { border-color: rgba(255,255,255,.16); }
.theatre-media .placeholder-tag { background: var(--gold); color: #191710; }
.theatre-media small { color: #d6d0c3; }
.theatre-media strong { font-size: clamp(1.5rem,2.8vw,2.3rem); max-width: 450px; }

/* Review proof is a single honest editorial panel until real testimonials are verified. */
.reviews-section { background: #fff; }
.review-grid { display: grid; gap: 0; grid-template-columns: 1fr 1fr; }
.review-lead { background: #212121; color: #f4f1e9; padding: clamp(32px,4vw,58px); }
.review-index { color: var(--gold-light); display: block; font-size: .69rem; font-weight: 700; letter-spacing: .14em; margin-bottom: 48px; text-transform: uppercase; }
.review-lead strong { display: block; font-size: clamp(2rem,3vw,3.25rem); line-height: 1.12; }
.review-lead p { color: #c5c0b5; font-size: .9rem; margin: 28px 0 0; }
.review-criteria { background: #eeece7; padding: clamp(32px,4vw,58px); }
.review-criteria > span { color: #806222; display: block; font-size: .69rem; font-weight: 700; letter-spacing: .14em; margin-bottom: 26px; text-transform: uppercase; }
.review-criteria ul { list-style: none; margin: 0 0 26px; padding: 0; }
.review-criteria li { border-top: 1px solid #c9c5bc; font-size: 1rem; padding: 11px 0; }
.review-criteria li:last-child { border-bottom: 1px solid #c9c5bc; }
.review-criteria small { color: var(--muted); }

.fit-section { background: #eeece7; }
.fit-card { background: #242424; border-top: 4px solid var(--gold); box-shadow: none; color: #f5f1e8; }
.fit-card p { color: #c8c2b7; }
.fit-card .card-kicker { color: var(--gold-light); }
.fit-card .button-dark { background: var(--gold); color: #1c170c; }
.fit-card .button-dark:hover { background: var(--gold-light); }
.faq-section { background: #fff; }
.faq-list .faq-answer { color: var(--muted); margin: -3px 54px 24px 0; }
.faq-list .faq-answer p { color: inherit; margin: 0; max-width: 680px; }
.faq-list .faq-answer p + p { margin-top: 14px; }
.contact-section { background: #1a1a1a; }
.site-footer { border-top-width: 3px; }

@media (max-width: 1120px) {
  .management-layout { gap: 40px; grid-template-columns: 1fr 1fr; }
  .legacy-image-block { height: 610px; }
  .proof-grid { display: block; }
  .story-layout { gap: 48px; }
}

@media (max-width: 900px) {
  .header-inner { height: 70px; }
  .mobile-nav { inset: 70px 0 0; }
  .site-header .brand-logo { height: auto; width: 158px; }
  .management-layout { grid-template-columns: 1fr; }
  .legacy-image-block { height: 500px; }
  .proof-grid { display: grid; gap: 0 26px; grid-template-columns: 1fr 1fr; }
  .proof-card:nth-last-child(2) { border-bottom: 1px solid #c9c5bc; }
  .service-grid { gap: 48px 26px; }
  .coordinated-grid { grid-template-columns: 1fr; }
  .project-visual { height: 480px; }
  .story-layout { grid-template-columns: 1fr; }
  .story-main { height: 430px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .standards-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .section { padding-block: 68px; }
  .header-inner { height: 66px; }
  .mobile-nav { inset: 66px 0 0; }
  .site-header .brand-logo { height: auto; width: 142px; }
  .hero { background-image: linear-gradient(90deg,rgba(0,0,0,.82),rgba(0,0,0,.42)),url("assets/hero-kitchen-IMG_3279.webp"); background-position: 65% center; }
  .hero-grid { min-height: 690px; }
  .hero-copy { max-width: 500px; padding-block: 74px 88px; }
  .hero h1 { font-size: clamp(2.2rem,9vw,3.05rem); line-height: 1.01; }
  .hero-intro { font-size: .93rem; max-width: 450px; }
  .preview-asset-note { font-size: .59rem; padding-inline: 20px; }
  .trust-strip { margin-top: 0; }
  .trust-strip span { font-size: .65rem; min-height: 64px; }
  .management-layout { gap: 34px; }
  .legacy-image-block { height: 380px; }
  .proof-grid { display: block; }
  .proof-card:nth-last-child(2) { border-bottom: 0; }
  .proof-card { grid-template-columns: 36px 1fr; padding-block: 19px; }
  .proof-number { margin-top: 3px; }
  .service-grid { grid-template-columns: 1fr; gap: 44px; }
  .service-media, .core-service .service-media { height: 280px; }
  .service-copy { padding: 20px 0 24px; }
  .coordination-map { padding-top: 28px; }
  .coordination-kicker { margin-bottom: 22px; }
  .coordination-map ul { grid-template-columns: 1fr; }
  .coordination-map li:nth-last-child(2) { border-bottom: 0; }
  .project-visual { height: 320px; margin-bottom: 34px; }
  .project-visual-caption { bottom: 20px; left: 20px; right: 20px; }
  .story-main { height: 340px; }
  .project-facts { grid-template-columns: 1fr 1fr; }
  .project-facts span:nth-child(even) { border-left: 0; }
  .story-close { margin-top: 48px; padding-top: 32px; }
  .process-grid { grid-template-columns: 1fr; gap: 0; }
  .process-grid li { padding-block: 22px; }
  .process-grid span { margin-bottom: 20px; }
  .owner-media, .theatre-media { height: 410px; }
  .protection-gallery .media-placeholder { aspect-ratio: 16/11; }
  .standards-grid { gap: 10px 20px; }
  .standards-grid article { padding-top: 14px; }
  .review-grid { grid-template-columns: 1fr; }
  .review-index { margin-bottom: 28px; }
  .fit-card { padding: 32px 26px; }
  .faq-list .faq-answer { margin-right: 0; }
}

@media (max-width: 440px) {
  .standards-grid, .project-facts { grid-template-columns: 1fr; }
}

/* Keep the mobile fixed menu anchored to the viewport, not the blurred header. */
@media (max-width: 1120px) {
  .site-header { background: #171717; backdrop-filter: none; -webkit-backdrop-filter: none; z-index: 1000; }
  .mobile-nav { background: #191919; opacity: 1; position: fixed; inset: 116px 0 0; z-index: 1001; overflow-y: auto; overscroll-behavior: contain; padding-bottom: max(34px, env(safe-area-inset-bottom)); }
  .mobile-nav a:not(.button) { color: #f3f0e8; }
}
@media (max-width: 900px) { .mobile-nav { top: 104px; } }
@media (max-width: 820px) { .mobile-nav { top: 70px; } }
@media (max-width: 620px) { .mobile-nav { top: 66px; } }

/* Preserve the desktop gold typography when mobile browsers auto-darken pages.
   Scope the opt-out to gold text, never the page, buttons, or navigation. */
@media (max-width: 1120px) {
  :is(.eyebrow, h1 em, h2 em, .story-close em, .proof-number,
      .service-tier, .service-copy a, .service-copy a span,
      .legacy-image-block figcaption span, .project-visual-caption span,
      .coordination-map li span, .story-steps li > span, .process-grid span,
      .standards-grid span, .card-kicker, .review-index, .review-criteria > span,
      .form-progress span.active, .form-progress span.active b,
      .project-form label > span, .theatre-fields legend, .field-note,
      .field-note a, .footer-grid h2),
  .button-link span,
  .capability-list li::before,
  .check-list li::before,
  .faq-list summary::after {
    color-scheme: only light;
    -webkit-text-fill-color: currentColor;
  }
}
