/*
Theme Name: Saniservice
Theme URI: https://www.saniservice.com
Author: Saniservice (Francois B. Larsen / Ninad)
Description: Hand-coded custom theme. Design source: Francois mockups. Pixel-faithful; Rank Math owns all SEO output.
Version: 0.1.0
*/


  @import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;1,9..144,300;1,9..144,400&family=Archivo:wght@300;400;500;600&display=swap');

  :root {
    --ink:        #16191c;   /* near-black, warm */
    --ink-soft:   #3d4248;
    --paper:      #f4f1ea;   /* warm off-white, the colour of good paper */
    --paper-deep: #ebe6db;
    --line:       #d2ccbf;
    --accent:     #6b4f2e;   /* a single, disciplined bronze */
    --accent-2:   #2c3a33;   /* deep evergreen, used almost never */
    --night:      #211a12;   /* warm espresso — the dark sections */
    --night-text: #b3a78f;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  html { scroll-behavior: smooth; }

  body {
    background: var(--paper);
    color: var(--ink);
    font-family: 'Archivo', -apple-system, sans-serif;
    font-weight: 300;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  /* subtle paper grain */
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }

  .wrap { max-width: 1180px; margin: 0 auto; padding: 0 40px; }

  /* HEADINGS — the engineered dialect: precise, light, tightly set */
  h1, h2, h3, .display {
    font-family: 'Archivo', sans-serif;
    font-weight: 300;
    letter-spacing: -0.025em;
    line-height: 1.1;
  }

  /* SERIF ACCENT — reserved for single charged words and the manifesto's soul */
  .serif {
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-weight: 300;
    letter-spacing: -0.01em;
  }

  .eyebrow {
    font-family: 'Archivo', sans-serif;
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent);
  }

  /* ---------- NAV ---------- */
  nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 26px 40px;
    transition: background 0.5s ease, padding 0.5s ease, border-color 0.5s ease;
    border-bottom: 1px solid transparent;
  }
  nav.scrolled {
    background: rgba(244,241,234,0.88);
    backdrop-filter: blur(12px);
    padding: 18px 40px;
    border-bottom: 1px solid var(--line);
  }
  .logo {
    font-family: 'Archivo', sans-serif;
    font-size: 1.45rem; font-weight: 500;
    letter-spacing: -0.03em;
    color: var(--ink);
    text-decoration: none;
  }
  .logo span { font-family: 'Fraunces', serif; font-style: italic; font-weight: 300; color: var(--accent); letter-spacing: -0.01em; }
  .nav-links { display: flex; gap: 38px; align-items: center; }
  .nav-links a {
    font-size: 0.82rem; font-weight: 400; letter-spacing: 0.04em;
    color: var(--ink-soft); text-decoration: none;
    transition: color 0.3s;
  }
  .nav-links a:hover { color: var(--accent); }
  .nav-cta {
    font-size: 0.78rem !important; letter-spacing: 0.1em !important;
    text-transform: uppercase;
    border: 1px solid var(--ink);
    padding: 11px 22px;
    color: var(--ink) !important;
    transition: all 0.4s ease !important;
  }
  .nav-cta:hover { background: var(--ink); color: var(--paper) !important; }
  @media (max-width: 720px){ .nav-links a:not(.nav-cta){ display:none; } }

  /* ---------- HERO / MANIFESTO ---------- */
  .hero {
    min-height: 100vh;
    display: flex; flex-direction: column; justify-content: center;
    padding: 160px 0 100px;
    position: relative;
  }
  .hero .eyebrow {
    opacity: 0;
    animation: rise 1.1s cubic-bezier(.2,.7,.3,1) 0.2s forwards;
  }
  .hero h1 {
    font-size: clamp(2.6rem, 6.2vw, 5.4rem);
    margin: 30px 0 0;
    max-width: 16ch;
  }
  .hero h1 .l { display: block; opacity: 0; animation: rise 1.1s cubic-bezier(.2,.7,.3,1) forwards; }
  .hero h1 .l:nth-child(1){ animation-delay: .35s; }
  .hero h1 .l:nth-child(2){ animation-delay: .5s; }
  .hero h1 .l:nth-child(3){ animation-delay: .65s; }
  .hero h1 em {
    font-family: 'Fraunces', serif;
    font-style: italic; font-weight: 300;
    color: var(--accent);
    font-size: 1.06em;
  }
  .hero-sub {
    margin-top: 42px;
    max-width: 46ch;
    font-size: 1.18rem;
    color: var(--ink-soft);
    opacity: 0;
    animation: rise 1.1s cubic-bezier(.2,.7,.3,1) 0.85s forwards;
  }
  .hero-meta {
    margin-top: 64px;
    display: flex; gap: 48px; flex-wrap: wrap;
    opacity: 0;
    animation: rise 1.1s ease 1.05s forwards;
  }
  .hero-meta div { border-left: 1px solid var(--line); padding-left: 18px; }
  .hero-meta .n { font-family:'Archivo',sans-serif; font-weight: 400; font-size: 1.55rem; letter-spacing: -0.02em; color: var(--ink); }
  .hero-meta .t { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }

  .scroll-hint {
    position: absolute; bottom: 40px; left: 40px;
    font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--ink-soft);
    display: flex; align-items: center; gap: 12px;
    opacity: 0; animation: fade 1s ease 1.6s forwards;
  }
  .scroll-hint::before { content:""; width: 40px; height: 1px; background: var(--accent); animation: line 2s ease-in-out infinite; }

  @keyframes rise { from { opacity:0; transform: translateY(24px);} to {opacity:1; transform:none;} }
  @keyframes fade { to { opacity: 1; } }
  @keyframes line { 0%,100%{ transform: scaleX(1); opacity:1;} 50%{ transform: scaleX(0.4); opacity:0.4;} }

  /* ---------- THE REFUSAL (dark manifesto block) ---------- */
  .refusal {
    background: var(--night);
    color: var(--night-text);
    padding: 150px 0;
    margin-top: 40px;
  }
  .refusal .eyebrow { color: #c79a5e; }
  .refusal .big {
    font-family:'Archivo',sans-serif; font-weight:300;
    font-size: clamp(1.7rem, 3.4vw, 2.9rem);
    line-height: 1.34;
    letter-spacing: -0.02em;
    max-width: 24ch;
    margin: 36px 0;
    color: #efe4d2;
  }
  .refusal .big em {
    font-family:'Fraunces',serif; font-style: italic; font-weight: 300;
    color: #d9b783; font-size: 1.08em;
  }
  .refusal p { max-width: 52ch; color: #a89c84; font-size: 1.08rem; }
  .refusal .rule { width: 60px; height: 1px; background:#4a3d2a; margin-top: 48px; }

  /* ---------- THREE DOMAINS ---------- */
  .domains { padding: 150px 0 60px; }
  .section-head { max-width: 40ch; margin-bottom: 80px; }
  .section-head h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); margin: 22px 0; }
  .section-head p { color: var(--ink-soft); font-size: 1.1rem; max-width: 50ch; }

  .domain {
    display: grid; grid-template-columns: 0.8fr 1.2fr;
    gap: 60px; align-items: start;
    padding: 64px 0;
    border-top: 1px solid var(--line);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  .domain:last-child { border-bottom: 1px solid var(--line); }
  .domain-index {
    font-family:'Fraunces',serif; font-style: italic;
    font-size: 1.1rem; color: var(--accent);
  }
  .domain h3 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin: 8px 0 0; }
  .domain h3 .q { font-family:'Fraunces',serif; color: var(--ink-soft); font-style: italic; font-weight: 300; }
  .domain-body p { color: var(--ink-soft); max-width: 48ch; margin-bottom: 26px; font-size: 1.05rem; }
  .domain-lines { display: flex; flex-direction: column; }
  .domain-lines a {
    display: flex; align-items: baseline; justify-content: space-between;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    color: var(--ink); text-decoration: none;
    transition: padding 0.4s ease, color 0.4s ease;
  }
  .domain-lines a:hover { padding-left: 14px; color: var(--accent); }
  .domain-lines a .name { font-size: 1.05rem; font-weight: 400; }
  .domain-lines a .arrow { font-family:'Fraunces',serif; opacity: 0.4; transition: opacity .4s; }
  .domain-lines a:hover .arrow { opacity: 1; }
  @media (max-width: 820px){ .domain{ grid-template-columns: 1fr; gap: 28px; } }

  /* ---------- PHOTOGRAPHY BAND ---------- */
  .photoband {
    position: relative;
    min-height: 78vh;
    display: flex; align-items: flex-end;
    overflow: hidden;
    margin-top: 60px;
  }
  .photoband img.bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center 28%;
  }
  .photoband .scrim {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(33,26,18,.85) 0%, rgba(33,26,18,.52) 40%, rgba(33,26,18,.05) 72%);
  }
  .photoband .pb-content { position: relative; padding: 0 0 80px; max-width: 30ch; }
  .photoband .eyebrow { color: #d9b783; }
  .photoband h2 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.4rem); margin: 18px 0 16px; }
  .photoband h2 em { font-family:'Fraunces',serif; font-style: italic; font-weight: 300; color: #e8c79a; font-size: 1.06em; }
  .photoband p { color: rgba(255,255,255,.84); font-size: 1.1rem; max-width: 34ch; }
  .proof-photo { width: 100%; display:block; box-shadow: 0 30px 60px -34px rgba(20,17,12,0.4); }


  /* ---------- LAB BAND (real photo split) ---------- */
  .labband { display:grid; grid-template-columns: 1.25fr .75fr; min-height: 560px; }
  .labband .lb-img { position:relative; overflow:hidden; }
  .labband .lb-img img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
  .labband .lb-txt { background:var(--night); display:flex; flex-direction:column; justify-content:center; padding:70px 56px; }
  .labband .lb-txt .eyebrow { color:#c79a5e; }
  .labband .lb-txt h2 { color:#efe4d2; font-size:clamp(1.7rem,3vw,2.6rem); margin:18px 0; }
  .labband .lb-txt h2 em { font-family:'Fraunces',serif; font-style:italic; font-weight:300; color:#d9b783; }
  .labband .lb-txt p { color:#a89c84; max-width:40ch; font-size:1.05rem; }
  @media(max-width:780px){ .labband{ grid-template-columns:1fr; } .labband .lb-img{ min-height:340px; } }

  /* ---------- THE PROOF (science) ---------- */
  .proof {
    background: var(--paper-deep);
    padding: 150px 0;
    margin-top: 60px;
  }
  .proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
  .proof-text h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); margin: 22px 0 30px; }
  .proof-text p { color: var(--ink-soft); max-width: 46ch; margin-bottom: 22px; font-size: 1.08rem; }
  .lab-card {
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 0;
    box-shadow: 0 30px 60px -30px rgba(20,17,12,0.25);
  }
  .lab-card .head {
    padding: 22px 28px; border-bottom: 1px solid var(--line);
    display: flex; justify-content: space-between; align-items: center;
  }
  .lab-card .head .t { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
  .lab-card .head .id { font-family: 'Archivo'; font-size: 0.72rem; color: var(--accent); }
  .lab-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 28px; border-bottom: 1px solid var(--line);
  }
  .lab-row:last-child { border-bottom: none; }
  .lab-row .label { font-size: 0.92rem; color: var(--ink-soft); }
  .lab-row .val { font-family:'Archivo',sans-serif; font-weight: 400; font-size: 1.3rem; letter-spacing: -0.02em; }
  .lab-row .val.good { color: var(--accent-2); }
  .oli {
    padding: 28px; background: var(--night); color: var(--night-text);
    display:flex; align-items:center; justify-content:space-between;
  }
  .oli .label { font-size: 0.72rem; letter-spacing:0.16em; text-transform:uppercase; color:#c79a5e; }
  .oli .num { font-family:'Archivo',sans-serif; font-weight: 500; font-size: 3.4rem; color:#efe4d2; line-height:1; letter-spacing: -0.04em; }
  .oli .num small { font-size: 1rem; color:#a89c84; }
  @media (max-width: 820px){ .proof-grid{ grid-template-columns: 1fr; gap: 50px; } }

  /* ---------- CREDENTIALS STRIP ---------- */
  .creds { padding: 110px 0; text-align:center; }
  .creds .eyebrow { display:block; margin-bottom: 44px; }
  .creds-row { display:flex; justify-content:center; flex-wrap:wrap; gap: 0; }
  .creds-row div {
    padding: 14px 44px;
    border-right: 1px solid var(--line);
    font-family:'Archivo',sans-serif; font-weight: 400; font-size: 1.05rem; letter-spacing: 0.02em;
  }
  .creds-row div:last-child { border-right: none; }
  .creds-row div span { display:block; font-family:'Archivo'; font-size: 0.7rem; letter-spacing:0.14em; text-transform:uppercase; color: var(--ink-soft); margin-top: 4px; }
  @media (max-width: 720px){ .creds-row div{ border-right:none; border-bottom:1px solid var(--line); padding: 18px; } }

  /* ---------- THE FILTER (price/positioning) ---------- */
  .filter {
    background: var(--night); color: var(--night-text);
    padding: 150px 0;
  }
  .filter .wrap { max-width: 880px; text-align: center; }
  .filter .eyebrow { color:#c79a5e; }
  .filter h2 {
    font-size: clamp(2rem, 4.6vw, 3.6rem);
    color:#efe4d2; margin: 30px auto;
    max-width: 20ch; line-height: 1.18;
  }
  .filter h2 em { font-family:'Fraunces',serif; font-style: italic; font-weight: 300; color:#d9b783; font-size: 1.06em; }
  .filter p { max-width: 50ch; margin: 0 auto 40px; color:#a89c84; font-size:1.12rem; }
  .filter .cta {
    display:inline-block;
    font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--night); background:#d9b783;
    padding: 18px 40px;
    text-decoration:none;
    transition: background 0.4s ease, transform 0.4s ease;
  }
  .filter .cta:hover { background:#efe4d2; transform: translateY(-2px); }

  /* ---------- MEGA MENU ---------- */
  .has-mega { position: static; }
  .mega-trigger { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
  .mega-trigger .chev { width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .35s ease; opacity:.6; }
  .has-mega:hover .mega-trigger .chev { transform: rotate(-135deg) translateY(-2px); }

  .mega {
    position: fixed; left: 0; right: 0; top: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 40px 80px -40px rgba(20,17,12,.35);
    padding: 96px 0 40px;
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .4s ease, transform .4s ease, visibility .4s;
    z-index: 90;
  }
  .has-mega:hover .mega, .mega:hover { opacity: 1; visibility: visible; transform: none; }
  .mega-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 26px; }
  .mega-col { display: flex; flex-direction: column; }
  .mega-col .thumb { width: 100%; aspect-ratio: 4/3; object-fit: cover; margin-bottom: 14px; filter: saturate(1.02); }
  .mega-col .col-head { display:flex; align-items:baseline; gap:8px; margin-bottom: 4px; }
  .mega-col .idx { font-family:'Fraunces',serif; font-style:italic; font-size:.8rem; color:var(--accent); }
  .mega-col h4 { font-family:'Archivo',sans-serif; font-weight:500; font-size:1.05rem; letter-spacing:-.01em; color:var(--ink); margin:0; }
  .mega-col .tag { font-size:.72rem; color:var(--ink-soft); margin-bottom:14px; line-height:1.4; }
  .mega-col a.svc { display:block; padding:8px 0; border-top:1px solid var(--line); color:var(--ink); text-decoration:none; font-size:.9rem; transition: color .3s, padding-left .3s; }
  .mega-col a.svc:hover { color:var(--accent); padding-left:6px; }
  .mega-col a.svc .s-sub { display:block; font-size:.72rem; color:var(--ink-soft); margin-top:1px; }
  .mega-foot { margin-top: 30px; padding-top: 20px; border-top:1px solid var(--line); display:flex; justify-content:space-between; align-items:center; }
  .mega-foot .note { font-family:'Fraunces',serif; font-style:italic; color:var(--ink-soft); font-size:.95rem; }
  .mega-foot a { font-size:.78rem; letter-spacing:.1em; text-transform:uppercase; color:var(--accent); text-decoration:none; }
  @media (max-width: 1100px){ .mega-grid{ grid-template-columns: repeat(2,1fr);} .mega{ overflow-y:auto; max-height:100vh; } }
  @media (max-width: 720px){ .mega{ display:none; } }

  /* ---------- CAPABILITY BAND (Sciences + SMART) ---------- */
  .capability { padding: 30px 0 110px; }
  .cap-head { max-width: 52ch; margin-bottom: 44px; }
  .cap-head .eyebrow { color: var(--accent); }
  .cap-head p { color: var(--ink-soft); font-size: 1.05rem; margin-top: 14px; }
  .cap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
  .cap-card { border: 1px solid var(--line); padding: 36px 38px; background: var(--paper-deep); display:flex; flex-direction:column; }
  .cap-card .idx { font-family:'Fraunces',serif; font-style:italic; color:var(--accent); font-size:.9rem; }
  .cap-card h3 { font-size: 1.5rem; margin: 8px 0 14px; }
  .cap-card p { color: var(--ink-soft); font-size:.98rem; max-width:42ch; }
  .cap-card .role { margin-top:18px; font-family:'Archivo'; font-weight:500; font-size:.72rem; letter-spacing:.16em; text-transform:uppercase; color:var(--ink); }
  @media(max-width:760px){ .cap-grid{ grid-template-columns:1fr; } }

  /* ---------- MEMBERSHIP (flagship summit) ---------- */
  .member { background: var(--night); color: var(--night-text); padding: 130px 0; }
  .member .eyebrow { color:#c79a5e; }
  .member .m-head { max-width: 30ch; margin-bottom: 56px; }
  .member h2 { color:#efe4d2; font-size: clamp(2rem,4.4vw,3.4rem); margin: 22px 0; }
  .member h2 em { font-family:'Fraunces',serif; font-style:italic; font-weight:300; color:#d9b783; }
  .member .lead { color:#a89c84; font-size:1.15rem; max-width:54ch; }
  .ladder { display:grid; grid-template-columns: 1fr 1fr; gap:1px; background:#3a2f20; border:1px solid #3a2f20; margin-bottom: 44px; }
  .rung { background: var(--night); padding: 34px 30px; }
  .rung .step { font-family:'Fraunces',serif; font-style:italic; color:#c79a5e; font-size:.85rem; }
  .rung h4 { color:#efe4d2; font-family:'Archivo'; font-weight:500; font-size:1.2rem; margin:10px 0 12px; letter-spacing:-.01em; }
  .rung p { color:#a89c84; font-size:.92rem; line-height:1.6; }
  .rung.summit { background: linear-gradient(180deg,#2a2014,#211a12); }
  .rung.summit h4 { color:#e8c79a; }
  .member-promise { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:24px; padding-top:36px; border-top:1px solid #3a2f20; }
  .member-promise .pledge { font-family:'Fraunces',serif; font-style:italic; font-size:1.25rem; color:#efe4d2; max-width:34ch; }
  .member-promise a { display:inline-block; font-size:.8rem; letter-spacing:.14em; text-transform:uppercase; color:var(--night); background:#c9a673; padding:16px 34px; text-decoration:none; transition:background .4s, transform .4s; white-space:nowrap; }
  .member-promise a:hover { background:#efe4d2; transform:translateY(-2px); }
  @media(max-width:760px){ .ladder{ grid-template-columns:1fr; } }

  /* ---------- FOOTER ---------- */
  footer { padding: 90px 0 50px; }
  .foot-top { display:flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid var(--line); }
  .foot-top .logo { font-size: 2rem; }
  .foot-line { font-family:'Fraunces',serif; font-style:italic; font-size:1.3rem; color: var(--ink-soft); max-width: 24ch; }
  .foot-bottom { display:flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding-top: 30px; font-size: 0.8rem; color: var(--ink-soft); }
  .foot-bottom a { color: var(--ink-soft); text-decoration: none; }

  /* reveal on scroll */
  .reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s cubic-bezier(.2,.7,.3,1), transform 1s cubic-bezier(.2,.7,.3,1); }
  .reveal.in { opacity: 1; transform: none; }
