/* ROSHEN DENTAL LAB — "Cinema Green" world
   Deep green-black cinematic hero on real lab macro; one lime accent
   reserved for primary actions; light paper sections; huge light display. */

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face { font-family:'Barlow'; src:url('assets/fonts/barlow-300.woff2') format('woff2'); font-weight:300; font-style:normal; font-display:swap; }
@font-face { font-family:'Barlow'; src:url('assets/fonts/barlow-400.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'Barlow'; src:url('assets/fonts/barlow-400i.woff2') format('woff2'); font-weight:400; font-style:italic; font-display:swap; }
@font-face { font-family:'Barlow'; src:url('assets/fonts/barlow-500.woff2') format('woff2'); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:'Barlow'; src:url('assets/fonts/barlow-600.woff2') format('woff2'); font-weight:600; font-style:normal; font-display:swap; }
@font-face { font-family:'Courier Prime'; src:url('assets/fonts/courier-prime-400.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; }

/* ---------- Tokens ---------- */
:root {
  --deep:      #0b1310;   /* green-black ground */
  --mist:      #e9efeb;   /* text on deep */
  --dim:       #96ab9e;   /* secondary on deep — green-tinted, never gray */
  --hairline-d: rgba(233,239,235,.16);

  --lime:      #c6f24e;   /* THE accent — primary actions only */
  --lime-hover:#d3f76d;
  --lime-ink:  #101508;
  --alert:     #a8442a;   /* form semantics only: invalid borders + error text */

  --paper:     #fcfcfb;   /* light sections */
  --paper-2:   #f3f4f1;
  --ink:       #16181a;
  --gray:      #5c6862;   /* secondary on light — green-tinted */
  --line:      #e6e8e4;

  --body: 'Barlow', 'Segoe UI', sans-serif;
  --mono: 'Courier Prime', 'Courier New', monospace;

  --wrap: 1240px;
  --pad: clamp(1.2rem, 4vw, 3.4rem);
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .04 0'/></filter><rect width='140' height='140' filter='url(%23n)'/></svg>");
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--deep);
}

::selection { background: var(--lime); color: var(--lime-ink); }
:root { caret-color: var(--lime); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 2px; }
html { scrollbar-color: #2a3c32 var(--deep); scrollbar-width: thin; }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--deep); }
::-webkit-scrollbar-thumb { background: #2a3c32; border: 3px solid var(--deep); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #3a5245; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -.02em; line-height: 1.05; text-wrap: balance; }
p { margin: 0 0 1em; max-width: 68ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--lime); color: var(--lime-ink);
  padding: .7em 1.2em; border-radius: 0 0 8px 0;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus-visible { left: 0; }
#main { scroll-margin-top: 4.5rem; }

/* ---------- Buttons ---------- */
.pill {
  display: inline-flex; align-items: center; gap: .55em;
  font-weight: 600; font-size: 1rem; line-height: 1;
  color: var(--lime-ink); background: var(--lime);
  border: none; border-radius: 999px; padding: .95em 1.7em;
  text-decoration: none; cursor: pointer;
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
  box-shadow: 0 10px 30px -14px rgba(198,242,78,.55);
}
.pill:hover { background: var(--lime-hover); box-shadow: 0 14px 34px -14px rgba(198,242,78,.65); }
.pill:active { transform: translateY(1px); }
.pill--ghost { background: transparent; color: var(--mist); border: 1px solid rgba(233,239,235,.35); box-shadow: none; }
.pill--ghost:hover { background: rgba(233,239,235,.08); border-color: rgba(233,239,235,.6); box-shadow: none; }
.pill--light-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.pill--light-ghost:hover { background: var(--paper-2); border-color: #cfd3cd; box-shadow: none; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11,19,16,.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline-d);
}
.head-in { display: flex; align-items: center; gap: 2rem; padding-top: .95rem; padding-bottom: .95rem; }
.brand { display: inline-flex; align-items: baseline; gap: .1em; color: var(--mist); text-decoration: none; font-weight: 600; font-size: 1.2rem; letter-spacing: .01em; }
.brand i { font-style: normal; color: var(--lime); }
.brand small { font-weight: 400; color: var(--dim); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; margin-left: .8em; }
.site-head nav { display: flex; gap: 1.7rem; margin-left: auto; }
.site-head nav a { color: var(--dim); text-decoration: none; font-size: .98rem; font-weight: 500; padding: .3rem 0; }
.site-head nav a:hover, .site-head nav a[aria-current="page"] { color: var(--mist); }
.head-cta { display: flex; align-items: center; gap: .9rem; }
.head-cta .tel { color: var(--dim); text-decoration: none; font-size: .95rem; }
.head-cta .tel:hover { color: var(--mist); }
.head-cta .pill { font-size: .92rem; padding: .75em 1.35em; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: clamp(560px, 92vh, 1020px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
@media (prefers-reduced-motion: no-preference) {
  .hero-bg img { animation: kenburns 26s ease-in-out infinite alternate; }
}
@keyframes kenburns { from { transform: scale(1) translateY(0); } to { transform: scale(1.07) translateY(-1.5%); } }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,19,16,.88) 0%, rgba(11,19,16,.25) 40%, rgba(11,19,16,.55) 75%, rgba(11,19,16,.96) 100%),
    radial-gradient(90% 60% at 72% 38%, transparent 30%, rgba(11,19,16,.5) 100%);
}
.hero .grain { position: absolute; inset: 0; background-image: var(--grain); opacity: .55; pointer-events: none; }
.hero-in { position: relative; z-index: 2; padding-bottom: 2.4rem; width: 100%; }
.hero h1 {
  color: var(--mist);
  font-weight: 300;
  font-size: clamp(2.9rem, 6.4vw, 5.6rem);
  max-width: 13ch;
  margin-bottom: 1.3rem;
}
.hero h1 b { font-weight: 600; }
.hero .sub { color: var(--dim); font-size: 1.18rem; max-width: 52ch; margin-bottom: 2.1rem; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem; margin-bottom: 2.8rem; }
.hero-cta .pill { font-size: 1.08rem; }
.hero-cta .offer-note { color: var(--dim); font-size: .97rem; }
.hero-cta .offer-note b { color: var(--mist); font-weight: 500; }
.ticker {
  display: flex; flex-wrap: wrap; gap: 1.2rem 3rem;
  border-top: 1px solid var(--hairline-d); padding-top: 1.25rem;
  font-family: var(--mono); font-size: .84rem; letter-spacing: .1em; color: var(--dim);
}
.ticker b { color: var(--mist); font-weight: 400; }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); }
.revealed .reveal { opacity: 1; transform: none; transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.revealed .reveal:nth-child(2) { transition-delay: .1s; }
.revealed .reveal:nth-child(3) { transition-delay: .2s; }
.revealed .reveal:nth-child(4) { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Interior page band (compact dark opener, not a hero) ---------- */
.page-band {
  background: var(--deep);
  background-image: var(--grain);
  color: var(--mist);
  border-bottom: 1px solid var(--hairline-d);
  padding-top: clamp(3.2rem, 8vw, 5rem);
  padding-bottom: clamp(2.4rem, 6vw, 3.4rem);
}
.page-band h1 {
  color: var(--mist);
  font-weight: 300;
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  max-width: 18ch;
  margin-bottom: .8rem;
}
.page-band .sub {
  color: var(--dim);
  font-size: 1.1rem;
  max-width: 54ch;
  margin: 0;
}

/* ---------- Light sections shell ---------- */
.light { background: var(--paper); background-image: var(--grain); color: var(--ink); }
.section { padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); font-weight: 500; }
.section-head .lead-in { color: var(--gray); max-width: 44ch; margin: 0; font-size: 1.05rem; }
.section-head .more { white-space: nowrap; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--line); padding-bottom: .15em; }
.section-head .more:hover { border-bottom-color: var(--ink); }

/* ---------- Work tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.2rem; }
.tile {
  position: relative; border-radius: 16px; overflow: hidden; background: var(--deep);
  min-height: 320px; display: flex; align-items: flex-end;
  text-decoration: none; color: var(--mist);
  transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(11,19,16,.55); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: transform .6s cubic-bezier(.16,1,.3,1), opacity .4s ease; }
.tile:hover img { transform: scale(1.04); opacity: .92; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,19,16,.12) 0%, rgba(11,19,16,.32) 45%, rgba(11,19,16,.94) 100%); }
.tile-copy { position: relative; z-index: 2; padding: 1.6rem 1.7rem; }
.tile-copy h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: .35rem; }
.tile-copy p { color: var(--dim); font-size: .97rem; margin: 0; max-width: 44ch; }
.tile-copy .go { display: inline-block; margin-top: .8rem; font-weight: 600; font-size: .92rem; color: var(--mist); transition: color .2s ease; }
.tile:hover .go { color: var(--lime); }
.tile--flag { grid-column: span 7; min-height: 430px; }
.tile--a { grid-column: span 5; }
.tile--b { grid-column: span 4; }
.tile--c { grid-column: span 4; }
.tile--d { grid-column: span 4; }

/* ---------- Audiences ---------- */
.section--joined { padding-top: 0; }
.aud-rows { border-top: 1px solid var(--line); }
.aud-row {
  display: grid; grid-template-columns: minmax(10rem, 16rem) 1fr auto; gap: 1.2rem 2.4rem; align-items: center;
  padding: 1.9rem 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
}
.aud-row h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 500; transition: transform .3s cubic-bezier(.16,1,.3,1); }
.aud-row:hover h3 { transform: translateX(8px); }
.aud-row p { color: var(--gray); margin: 0; font-size: 1rem; }
.aud-row .arr { font-size: 1.5rem; color: var(--gray); transition: transform .3s cubic-bezier(.16,1,.3,1), color .2s ease; }
.aud-row:hover .arr { transform: translateX(6px); color: var(--ink); }

/* ---------- Process (dark interlude) ---------- */
.process { background: var(--deep); color: var(--mist); background-image: var(--grain); }
.process .section-head h2 { color: var(--mist); }
.process .section-head .lead-in { color: var(--dim); }
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.6rem; margin-top: .4rem; }
.step { border-top: 1px solid var(--hairline-d); padding-top: 1rem; }
.step .n { font-family: var(--body); font-weight: 600; color: var(--dim); font-size: .82rem; letter-spacing: .08em; display: block; margin-bottom: .5rem; }
.step h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: .35rem; letter-spacing: 0; }
.step p { color: var(--dim); font-size: .92rem; margin: 0; }
.process-note { margin-top: 2.6rem; display: flex; align-items: center; gap: 1.2rem; color: var(--dim); }
.process-note .owner { color: var(--mist); font-weight: 500; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 1.4rem; }
.quote { border-left: 1px solid var(--line); padding: .4rem 0 .4rem 1.6rem; }
.quote blockquote { margin: 0 0 1.1rem; font-size: 1.06rem; color: var(--ink); font-weight: 400; }
.quote .who { font-weight: 600; font-size: .97rem; }
.quote .who span { display: block; font-weight: 400; color: var(--gray); font-size: .88rem; margin-top: .15rem; }

/* ---------- Offer (dark + lime) ---------- */
.offer { background: var(--deep); color: var(--mist); background-image: var(--grain); position: relative; overflow: hidden; }
.offer::before {
  content: ""; position: absolute; width: 720px; height: 720px; border-radius: 50%;
  right: -220px; top: -260px; filter: blur(80px);
  background: radial-gradient(circle, rgba(198,242,78,.14), transparent 65%);
}
.offer-grid { position: relative; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.offer h2 { color: var(--mist); font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight: 500; margin-bottom: 1rem; }
.offer h2 b { color: var(--mist); font-weight: 600; }
.offer p { color: var(--dim); font-size: 1.1rem; }
.offer-list { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: .7rem; }
.offer-list li { display: grid; grid-template-columns: 1.4rem 1fr; gap: .7rem; align-items: baseline; color: var(--mist); font-size: 1rem; }
.offer-list svg { position: relative; top: .15rem; color: var(--dim); }
.offer-cta { display: grid; gap: 1.1rem; justify-items: start; }
.offer-cta .pill { font-size: 1.12rem; }
.offer-cta .alt { color: var(--dim); font-size: .97rem; }
.offer-cta .alt a { color: var(--mist); text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: rgba(233,239,235,.4); }

/* ---------- Footer ---------- */
.footer { background: #081009; color: var(--mist); border-top: 1px solid var(--hairline-d); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.4rem; padding-top: clamp(2.4rem, 5vw, 3.6rem); padding-bottom: 2.4rem; }
.footer .col-t { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-bottom: 1rem; font-weight: 500; }
.footer address { font-style: normal; color: var(--mist); line-height: 1.7; }
.footer a { color: var(--mist); text-decoration: none; }
.footer a:hover { color: var(--lime); }
.footer .cols a { display: block; padding: .28rem 0; color: var(--dim); }
.footer .cols a:hover { color: var(--mist); }
.footer-bottom {
  border-top: 1px solid var(--hairline-d);
  display: flex; flex-wrap: wrap; gap: .8rem 2.4rem; justify-content: space-between;
  padding-top: 1.4rem; padding-bottom: 2rem;
  color: var(--dim); font-size: .85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .tile--flag { grid-column: span 12; }
  .tile--a { grid-column: span 12; }
  .tile--b, .tile--c, .tile--d { grid-column: span 4; }
  .steps { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .site-head nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--deep); border-bottom: 1px solid var(--hairline-d); padding: .5rem var(--pad) 1rem; }
  .site-head nav.open { display: flex; }
  .site-head nav a { padding: .8rem 0; border-bottom: 1px solid var(--hairline-d); }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; width: 2.6rem; height: 2.3rem; background: none; border: 1px solid rgba(233,239,235,.35); border-radius: 8px; color: var(--mist); cursor: pointer; }
  .head-cta .tel, .head-cta .pill--ghost { display: none; }
  .head-in { gap: 1rem; }
  .brand small { display: none; }
  .head-cta .pill { font-size: .85rem; padding: .7em 1.1em; }
  .hero { min-height: clamp(520px, 88vh, 860px); }
  .tile--b, .tile--c, .tile--d { grid-column: span 12; min-height: 260px; }
  .aud-row { grid-template-columns: 1fr auto; }
  .aud-row .arr { grid-row: 1; grid-column: 2; }
  .aud-row p { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .offer-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
}
