/* Quality Cabinet v4. The Showroom: light, airy, elegant, luxury.
     White and warm cream dominate. Navy is used only as an accent
     (the hero photograph overlay and the footer). Cormorant Garamond
     headlines over Inter body. Generous whitespace, hairline rules. */
  :root {
    --navy: #1A2332;
    --navy-deep: #131a26;
    --qc-blue: #046bd2;
    --qc-blue-dark: #045cb4;
    --copper: #B87333;
    --white: #FFFFFF;
    --cream: #FAF6F0;
    --parchment: #F5F2ED;
    --linen: #F0EBE3;
    --sand: #E7DFD3;
    --ink: #2C2C2C;
    --charcoal: #3a352f;
    --taupe: #8B7E74;
    --slate: #6b6259;
    --copper-text: #8a5320;
    --line: rgba(44,44,44,0.10);
    --line-soft: rgba(44,44,44,0.07);
    --line-dark: rgba(250,246,240,0.14);
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--cream);
    color: var(--ink);
    line-height: 1.75;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
  }
  h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-weight: 500; line-height: 1.06; letter-spacing: 0.005em;
    color: var(--ink);
  }
  img { max-width: 100%; display: block; }
  a { color: inherit; text-decoration: none; }
  .wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(24px, 3.5vw, 56px); }
  .eyebrow {
    font-family: 'Inter', sans-serif; font-weight: 600; font-size: 11.5px;
    letter-spacing: 0.24em; text-transform: uppercase; color: var(--copper-text);
  }
  .btn {
    display: inline-block; background: var(--qc-blue); color: var(--white);
    font-family: 'Inter', sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 15px 32px; border: none; border-radius: 4px; cursor: pointer;
    transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
    box-shadow: 0 2px 10px rgba(4,107,210,0.18);
  }
  .btn:hover { background: var(--qc-blue-dark); transform: translateY(-1px); box-shadow: 0 12px 26px rgba(4,107,210,0.26); }
  .btn:focus-visible, a:focus-visible, .chip:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
  .skip-link { position: absolute; left: -9999px; top: 0; z-index: 300; background: var(--navy-deep); color: #fff; padding: 12px 20px; border-radius: 0 0 6px 0; font-size: 13px; font-weight: 600; }
  .skip-link:focus { left: 0; }

  /* Editorial reveal */
  .reveal { transition: opacity 0.9s ease, transform 0.9s ease; }
  .js .reveal { opacity: 0; transform: translateY(22px); }
  .js .reveal.in { opacity: 1; transform: none; }

  /* ===== NAV (LIGHT) ===== */
  .nav {
    position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.86);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-inner { display: flex; align-items: center; justify-content: space-between; height: 82px; }
  .logo { display: flex; align-items: center; }
  .logo-img { height: 52px; width: auto; display: block; }
  .nav-links { display: flex; align-items: center; gap: 20px; list-style: none; }
  .nav-links a { color: var(--slate); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; transition: color 0.2s; }
  .nav-links a:hover { color: var(--ink); }
  .nav-right { display: flex; align-items: center; gap: 26px; }
  .nav-phone { color: var(--ink); font-weight: 600; font-size: 15px; white-space: nowrap; letter-spacing: 0.02em; }
  .nav-phone:hover { color: var(--qc-blue); }
  .nav-cta { padding: 12px 24px; font-size: 12px; }
  .nav-toggle { display: none; background: none; border: none; color: var(--ink); font-size: 26px; cursor: pointer; padding: 6px; line-height: 1; }
  .mobile-cta { display: none; }

  /* ===== HERO (the one approved dark photographic moment) ===== */
  .hero { position: relative; overflow: hidden; background: var(--navy-deep); }
  .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
  .hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(100deg, rgba(20,26,38,0.90) 0%, rgba(20,26,38,0.80) 40%, rgba(20,26,38,0.44) 72%, rgba(20,26,38,0.22) 100%);
  }
  .hero-grid {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center;
    padding-top: 92px; padding-bottom: 104px; min-height: 80vh;
  }
  .hero-copy .eyebrow { margin-bottom: 24px; display: block; color: #d9a875; }
  .hero-copy h1 { font-size: 78px; font-weight: 500; color: #fff; margin-bottom: 26px; letter-spacing: 0.005em; line-height: 1.02; }
  .hero-copy p { font-size: 18px; color: rgba(250,246,240,0.90); max-width: 540px; line-height: 1.7; }
  .hero-trust { margin-top: 36px; display: flex; }
  .hero-trust div { padding: 0 30px; border-left: 1px solid rgba(250,246,240,0.22); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(250,246,240,0.72); }
  .hero-trust div:first-child { padding-left: 0; border-left: none; }
  .hero-trust strong { display: block; font-family: 'Cormorant Garamond', serif; font-size: 42px; color: #d9a875; font-weight: 600; margin-bottom: 4px; letter-spacing: 0; }

  .form-panel {
    background: var(--white); color: var(--ink); border-radius: 10px; padding: 38px 36px;
    box-shadow: 0 30px 70px rgba(10,14,22,0.30);
  }
  .form-panel h2 { font-size: 34px; margin-bottom: 4px; font-weight: 600; }
  .form-panel .sub { font-size: 13px; color: var(--slate); margin-bottom: 24px; font-family: 'Inter', sans-serif; letter-spacing: 0.03em; }
  .field { margin-bottom: 12px; }
  .field input {
    width: 100%; padding: 15px 16px; border: 1px solid var(--sand); border-radius: 5px;
    font-family: inherit; font-size: 16px; background: var(--cream); color: var(--ink);
    transition: border-color 0.2s, background 0.2s;
  }
  .field input:focus { outline: none; border-color: var(--qc-blue); background: var(--white); box-shadow: 0 0 0 3px rgba(4,107,210,0.18); }
  .field input::placeholder { color: var(--slate); opacity: 1; }
  .chips-label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate); margin: 20px 0 12px; }
  .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
  .chip {
    font-size: 12.5px; font-weight: 500; padding: 9px 15px; border: 1px solid var(--sand);
    border-radius: 4px; cursor: pointer; user-select: none; transition: all 0.18s ease; background: var(--white); color: var(--slate);
  }
  .chip:hover { border-color: var(--qc-blue); color: var(--ink); }
  .chip.selected { background: var(--qc-blue); color: var(--white); border-color: var(--qc-blue); }
  .form-panel .btn { width: 100%; margin-top: 4px; }
  .form-panel .btn[disabled] { opacity: 0.6; cursor: default; }
  .form-status { margin-top: 14px; font-size: 13.5px; line-height: 1.5; text-align: center; display: none; }
  .form-status.ok { display: block; color: #1a7f37; }
  .form-status.err { display: block; color: #b42318; }

  /* ===== SECTION SHELL ===== */
  section { padding: 104px 0; }
  .sec-head { max-width: 680px; margin: 0 0 52px; }
  .sec-head.center { text-align: center; margin-left: auto; margin-right: auto; }
  .sec-head .eyebrow { margin-bottom: 18px; display: block; }
  .sec-head h2 { font-size: 58px; font-weight: 500; }
  .sec-head p { color: var(--slate); font-size: 18px; margin-top: 18px; }
  .sec-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; max-width: none; }
  .sec-head.split .sh-left { max-width: 600px; }
  .sec-head.split p { margin-top: 0; max-width: 360px; text-align: left; }

  /* ===== SERVICES ===== */
  .triptych { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .tri-card { position: relative; display: block; border-radius: 8px; overflow: hidden; cursor: pointer; aspect-ratio: 4/5; }
  .card-link { position: absolute; inset: 0; z-index: 3; }
  .card-link:focus-visible { outline: 2px solid var(--copper); outline-offset: -3px; }
  .tri-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.2,0.6,0.2,1); }
  .tri-card:hover img { transform: scale(1.05); }
  .tri-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,26,38,0.90) 8%, rgba(20,26,38,0.30) 52%, rgba(20,26,38,0.02) 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 32px 30px; color: var(--cream); }
  .tri-label { font-size: 10px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: #d9a875; margin-bottom: 12px; }
  .tri-title { font-family: 'Cormorant Garamond', serif; font-size: 32px; font-weight: 500; margin-bottom: 10px; color: #fff; line-height: 1.08; }
  .tri-desc { font-size: 14px; color: rgba(250,246,240,0.88); line-height: 1.6; }

  /* ===== REFACE BEFORE / AFTER ===== */
  .reface { background: var(--linen); }
  .ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
  .ba-item { margin: 0; }
  .ba-frame { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; box-shadow: 0 4px 20px rgba(44,44,44,0.10); background: var(--sand); }
  .ba-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
  .ba-tag { position: absolute; top: 16px; left: 16px; font-family: 'Inter', sans-serif; font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; padding: 7px 14px; border-radius: 4px; color: #fff; }
  .ba-before { background: rgba(44,44,44,0.74); }
  .ba-after { background: var(--qc-blue); }

  /* ===== PROCESS ===== */
  .process { background: var(--white); }
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 52px; }
  .step { padding-top: 28px; border-top: 1px solid var(--copper); }
  .step-num { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 600; color: var(--copper); line-height: 1; margin-bottom: 20px; letter-spacing: 0.08em; }
  .step h3 { font-size: 30px; margin-bottom: 12px; font-weight: 500; }
  .step p { color: var(--slate); font-size: 16px; }

  /* ===== EDITORIAL IMAGE + TEXT BLOCKS ===== */
  .editorial { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
  .editorial.flip .ed-text { order: 2; }
  .editorial.flip .ed-media { order: 1; }
  .ed-text h2 { font-size: 54px; margin: 18px 0 24px; font-weight: 500; }
  .ed-text p { font-size: 17px; margin-bottom: 18px; color: var(--slate); }
  .ed-text .eyebrow { display: block; margin-bottom: 4px; }
  /* Studio is LIGHT now (was navy). Cream keeps the page airy. */
  .studio { background: var(--linen); }
  .ed-media { border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; }
  .ed-media img { width: 100%; height: 100%; object-fit: cover; }

  .about { background: var(--cream); }
  .founder-quote { border-left: 2px solid var(--copper); padding: 4px 0 4px 26px; margin-top: 32px; }
  .founder-quote .q { font-family: 'Cormorant Garamond', serif; font-size: 32px; font-style: italic; font-weight: 500; color: var(--ink); line-height: 1.32; }
  .founder-quote .who { font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate); margin-top: 16px; }
  .about-gallery { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 16px; aspect-ratio: 1/1; }
  .about-gallery div { border-radius: 8px; overflow: hidden; background: var(--sand); }
  .about-gallery img { width: 100%; height: 100%; object-fit: cover; }
  .about-gallery div:first-child { grid-row: span 2; }

  /* ===== TEAM ===== */
  .team { background: var(--white); }
  .team-featured { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 780px; margin: 0 auto 52px; }
  .team-lead { text-align: center; padding: 38px 22px; background: var(--cream); border-radius: 8px; border: 1px solid var(--line-soft); }
  .avatar { width: 78px; height: 78px; border-radius: 50%; background: var(--linen); color: var(--copper); display: flex; align-items: center; justify-content: center; font-family: 'Cormorant Garamond', serif; font-size: 30px; font-weight: 600; margin: 0 auto 18px; border: 1px solid var(--sand); }
  .avatar.sm { width: 58px; height: 58px; font-size: 22px; margin-bottom: 14px; }
  .avatar.photo { padding: 0; overflow: hidden; background: var(--linen); }
  .avatar.photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
  .team-name { font-family: 'Cormorant Garamond', serif; font-size: 25px; font-weight: 600; color: var(--ink); }
  .team-role { font-family: 'Inter', sans-serif; font-size: 12px; color: var(--slate); font-weight: 500; margin-top: 4px; letter-spacing: 0.03em; }
  .crew-label { text-align: center; font-size: 10.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--copper-text); margin: 8px 0 34px; }
  .crew-member { text-align: center; }
  .crew-member .team-name { font-size: 21px; margin-top: 2px; }
  .crew-photo { width: 100%; aspect-ratio: 4/5; border-radius: 8px; overflow: hidden; margin: 0 auto 16px; background: var(--linen); border: 1px solid var(--sand); box-shadow: 0 3px 14px rgba(44,44,44,0.06); }
  .crew-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; display: block; }

  /* Leads get large portraits so the owners visually outrank the crew */
  .team-featured { grid-template-columns: repeat(3, 1fr); gap: 34px; max-width: 940px; margin: 0 auto 62px; }
  .team-lead { text-align: center; padding: 0; background: none; border: none; }
  .team-lead .avatar.photo { width: 100%; height: auto; aspect-ratio: 4/5; border-radius: 10px; margin: 0 0 20px; border: 1px solid var(--sand); box-shadow: 0 8px 26px rgba(44,44,44,0.10); }
  .team-lead .avatar.photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
  .team-lead .team-name { font-size: 30px; }
  .team-lead .team-role { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--copper-text); margin-top: 6px; }
  .crew { display: flex; flex-wrap: wrap; justify-content: center; gap: 44px 26px; max-width: 940px; margin: 0 auto; }
  .crew-member { width: 205px; }

  /* ===== REVIEWS ===== */
  .reviews { background: var(--cream); text-align: center; }
  .stars { color: var(--copper); font-size: 22px; letter-spacing: 5px; margin-bottom: 12px; }
  .reviews .sub { color: var(--slate); font-size: 14px; margin-bottom: 52px; }
  .review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .review-card { background: var(--white); border-radius: 8px; padding: 36px 32px; text-align: left; border: 1px solid var(--line-soft); box-shadow: 0 2px 12px rgba(44,44,44,0.03); display: flex; flex-direction: column; }
  .review-card .rc-stars { color: var(--copper); font-size: 15px; letter-spacing: 3px; margin-bottom: 20px; }
  .review-card .rc-quote { font-size: 15px; line-height: 1.72; color: var(--ink); margin-bottom: 22px; }
  .review-card .rc-name { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 600; color: var(--ink); margin-top: auto; }
  .review-card .rc-tag { font-family: 'Inter', sans-serif; font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--qc-blue); margin-top: 8px; }

  /* ===== FINANCING (LIGHT now, was navy) ===== */
  .financing { background: var(--linen); text-align: center; }
  .financing h2 { font-size: 54px; color: var(--ink); margin-bottom: 18px; font-weight: 500; }
  .financing p { color: var(--slate); font-size: 17px; max-width: 560px; margin: 0 auto 32px; }
  .financing .eyebrow { display: block; margin-bottom: 16px; }

  /* ===== FOOTER (the other approved dark moment) ===== */
  footer { background: var(--navy-deep); color: rgba(250,246,240,0.70); padding: 74px 0 46px; text-align: center; }
  .footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 30px; color: var(--cream); font-weight: 600; margin-bottom: 18px; }
  footer .f-line { font-size: 14px; margin-bottom: 8px; }
  footer a.f-phone { color: #d9a875; font-weight: 600; }
  .footer-social { margin-top: 24px; display: flex; gap: 28px; justify-content: center; }
  .footer-social a { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(250,246,240,0.72); transition: color 0.2s; }
  .footer-social a:hover { color: #d9a875; }
  .footer-copy { margin-top: 34px; font-size: 11.5px; color: rgba(250,246,240,0.42); letter-spacing: 0.03em; }

  /* ===== RESPONSIVE ===== */
  @media (max-width: 1040px) {
    .nav-links, .nav-cta { display: none; }
    .nav-toggle { display: block; }
    .nav-right { gap: 16px; }
    .nav-phone { display: inline-block; font-size: 16px; }
    .nav-links.open { display: flex; position: absolute; top: 82px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); padding-bottom: 8px; box-shadow: 0 20px 30px rgba(44,44,44,0.08); }
    .nav-links.open li { padding: 15px 40px; border-top: 1px solid var(--line-soft); }
    .nav-links.open li a { display: block; font-size: 13px; }
    .mobile-cta { display: block; }
    .nav-links.open li.mobile-cta { border-top: none; padding: 16px 40px 10px; }
    .mobile-cta .btn { display: block; width: 100%; text-align: center; padding: 15px; }
  }
  @media (max-width: 900px) {

    .hero { display: flex; flex-direction: column; }
    .hero-bg { position: static; height: 260px; order: 0; }
    .hero-overlay { display: none; }
    .hero-grid { position: static; grid-template-columns: 1fr; gap: 36px; padding: 56px 40px 60px; min-height: 0; background: var(--navy-deep); }
    .hero-copy h1 { font-size: 48px; }
    .hero-trust { flex-direction: column; align-items: flex-start; }
    .hero-trust div { width: 100%; padding: 18px 0 0; border-left: none; border-top: 1px solid rgba(250,246,240,0.22); }
    .hero-trust div:first-child { padding-top: 0; border-top: none; }

    section { padding: 66px 0; }
    .sec-head { margin-bottom: 38px; }
    .sec-head h2, .financing h2, .ed-text h2 { font-size: 42px; }
    .sec-head.split { display: block; }
    .sec-head.split p { margin-top: 18px; }
    .triptych, .steps, .review-grid { grid-template-columns: 1fr; }
    .ba-grid { gap: 12px; }
    .steps { gap: 38px; }
    .tri-card { aspect-ratio: 4/3; }
    .editorial, .editorial.flip .ed-text, .editorial.flip .ed-media { grid-template-columns: 1fr; }
    .editorial { grid-template-columns: 1fr; gap: 40px; }
    .editorial.flip .ed-text { order: 2; }
    .editorial.flip .ed-media { order: 1; }
    .about-gallery { aspect-ratio: auto; grid-template-columns: 1fr 1fr; }
    .about-gallery div { height: 200px; }
    .about-gallery div:first-child { grid-row: auto; grid-column: span 2; }
    .team-featured { grid-template-columns: 1fr; max-width: 340px; }
    .crew { gap: 30px 16px; }
    .crew-member { width: calc(50% - 10px); }
  }
  @media (max-width: 520px) {
    .wrap { padding: 0 22px; }
    .logo-img { height: 40px; }
    .nav-inner { height: 72px; }
    .nav-links.open { top: 72px; }
    .hero-grid { padding: 56px 22px 60px; }
    .hero-copy h1 { font-size: 40px; }
    .hero-copy p { font-size: 16px; }
    .hero-trust strong { font-size: 34px; }
    .crew-member { width: calc(50% - 10px); }
    .form-panel { padding: 28px 24px; }
    .sec-head h2, .financing h2, .ed-text h2 { font-size: 36px; }
    .founder-quote .q { font-size: 27px; }
  }
  @media (max-width: 380px) {
    .nav-phone { display: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
    .tri-card:hover img { transform: none; }
  }

/* ===== FAQ (service pages) ===== */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 4px; }
.faq-item { padding: 26px 4px; border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: 25px; font-weight: 500; margin-bottom: 10px; }
.faq-item p { color: var(--slate); font-size: 16px; }
/* ===== FOOTER SERVICE NAV ===== */
.footer-nav { margin-top: 24px; display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.footer-nav a { font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(250,246,240,0.72); transition: color 0.2s; }
.footer-nav a:hover { color: #d9a875; }

/* ===== TEAM PHOTO POLISH (subtle filter + hover) ===== */
.crew-photo, .team-lead .avatar.photo { position: relative; }
.crew-photo img, .team-lead .avatar.photo img { transition: transform 0.55s cubic-bezier(0.2,0.6,0.2,1); }
.crew-photo::after, .team-lead .avatar.photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(to top, rgba(26,35,50,0.30), rgba(26,35,50,0.04) 36%, rgba(26,35,50,0) 62%);
  opacity: 0.45; transition: opacity 0.45s ease;
}
.crew-member:hover .crew-photo::after, .team-lead:hover .avatar.photo::after { opacity: 1; }
.crew-member:hover .crew-photo img, .team-lead:hover .avatar.photo img { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) {
  .crew-member:hover .crew-photo img, .team-lead:hover .avatar.photo img { transform: none; }
}
