/*
Theme Name: Copier SF
Description: Custom theme for Commercial Copier Leasing South Florida. "Press Sheet" design system — press-proof sheets on a light table, ink job-ticket panels, CMYK process marks.
Version: 2.0.0
Author: Kingdom of Malakia
Text Domain: copier-sf
*/

:root {
  --table: #E9EDF2;          /* light-table background the sheets sit on */
  --sheet: #FFFFFF;          /* the press sheet */
  --panel: #F3F6F9;
  --ink: #14161B;
  --ink-soft: #2A2E36;
  --slate: #566070;
  --line: #D8DEE6;
  --cyan: #0090C9;
  --cyan-dark: #006E9C;
  --cyan-wash: #E3F4FB;
  --magenta: #E5488A;
  --yellow: #F2C50F;
  --radius: 8px;
  --maxw: 1240px;
  --shadow-sheet: 0 1px 2px rgba(20,22,27,.05), 0 8px 28px rgba(20,22,27,.09);
  --shadow-lift: 0 2px 4px rgba(20,22,27,.06), 0 16px 44px rgba(20,22,27,.14);
  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--table);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cyan); }
:focus-visible { outline: 2.5px solid var(--cyan); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.2vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.3rem; line-height: 1.25; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

/* =========================================================
   PROCESS MARKS — CMYK chips & registration devices
   ========================================================= */
.chips { display: inline-flex; gap: 5px; }
.chips i { width: 22px; height: 10px; border-radius: 2px; display: block; }
.chips .c { background: #00A7E1; }
.chips .m { background: var(--magenta); }
.chips .y { background: var(--yellow); }
.chips .k { background: #fff; }
.chips--dark .k { background: var(--ink); }

/* section eyebrow: chip + mono label, one unit */
.mark {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate);
}
.mark::before { content: ""; width: 26px; height: 10px; border-radius: 2px; background: var(--cyan); }
.mark--m::before { background: var(--magenta); }
.mark--y::before { background: var(--yellow); }
.mark--k::before { background: var(--ink); }

/* =========================================================
   JOB-TICKET BAR (top of every page — the committed stripe)
   ========================================================= */
.ticket-bar { background: var(--ink); color: #9AA4B2; }
.ticket-bar .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 40px; font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.ticket-bar strong { color: #fff; font-weight: 600; }
.ticket-bar .chips { transform: translateY(1px); }
@media (max-width: 720px) { .ticket-bar .ticket-right { display: none; } }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  background: var(--sheet); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 0 rgba(20,22,27,.03);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.8rem; min-height: 88px; }
.brand {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 700;
  font-size: 1.22rem; letter-spacing: -0.01em; line-height: 1;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand em { font-style: normal; color: var(--cyan); }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 1.6rem; }
.main-nav a {
  color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 1rem;
  white-space: nowrap; padding: 0.4rem 0; border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--ink); border-bottom-color: var(--cyan); }
.header-cta { display: flex; align-items: center; gap: 1.1rem; flex-shrink: 0; }
.phone-link {
  font-family: var(--font-mono); font-weight: 600; font-size: 1.02rem;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.phone-link:hover { color: var(--cyan-dark); }

.btn {
  display: inline-block; background: var(--cyan); color: #fff;
  font-family: var(--font-body); font-weight: 600; font-size: 1.05rem;
  padding: 0.95rem 1.9rem; border-radius: var(--radius);
  text-decoration: none; border: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,144,201,.28), 0 8px 22px rgba(0,144,201,.18);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--cyan-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,110,156,.3), 0 12px 28px rgba(0,110,156,.2); }
.btn--ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); box-shadow: none; }
.btn--ghost:hover { background: var(--ink); color: #fff; transform: translateY(-1px); box-shadow: none; }
.btn--sm { font-size: 0.95rem; padding: 0.72rem 1.4rem; }
.btn--inverse { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.btn--inverse:hover { background: var(--cyan-wash); color: var(--ink); }

.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 0.6rem 0.9rem; font-family: var(--font-mono); font-size: 0.8rem;
  letter-spacing: 0.1em; cursor: pointer; margin-left: auto;
}
@media (max-width: 1120px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--sheet); border-bottom: 1px solid var(--line);
    padding: 1.2rem 1.5rem; box-shadow: var(--shadow-sheet); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 1rem; }
  .header-cta .btn { display: none; }
}
@media (max-width: 720px) { .phone-link { display: none; } .site-header .wrap { min-height: 72px; } }

/* =========================================================
   THE SHEET — crop-marked press sheet container
   ========================================================= */
.sheet {
  background: var(--sheet); border-radius: var(--radius);
  box-shadow: var(--shadow-sheet); position: relative;
}
.sheet--marked::before, .sheet--marked::after,
.sheet--marked .mark-tl, .sheet--marked .mark-br {
  content: ""; position: absolute; width: 22px; height: 22px; pointer-events: none;
}
.sheet--marked::before { top: -11px; left: -11px; border-top: 2.5px solid var(--ink); border-left: 2.5px solid var(--ink); }
.sheet--marked::after { bottom: -11px; right: -11px; border-bottom: 2.5px solid var(--ink); border-right: 2.5px solid var(--ink); }

/* =========================================================
   HERO
   ========================================================= */
.hero-zone { padding: 3.5rem 0 4.5rem; }
.hero-sheet { padding: 4rem 4rem 4.5rem; display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 3.2rem; align-items: center; }
.hero-copy .mark { margin-bottom: 1.4rem; }
.hero-copy h1 { max-width: 19ch; font-size: clamp(2.5rem, 4.6vw, 3.8rem); }
.hero-copy .lede { margin: 1.6rem 0 2.2rem; font-size: 1.28rem; line-height: 1.6; color: var(--slate); max-width: 46ch; }
.hero-actions { display: flex; gap: 1.1rem; flex-wrap: wrap; align-items: center; }

.hero-visual { position: relative; }
.hero-visual > img { border-radius: var(--radius); box-shadow: var(--shadow-lift); aspect-ratio: 16 / 11; object-fit: cover; width: 100%; }

/* dark job-ticket spec panel — sits under the photo, clipping only its bottom-left corner */
.ticket-panel {
  background: var(--ink); color: #fff; border-radius: var(--radius);
  padding: 1.6rem 1.8rem; box-shadow: var(--shadow-lift);
  margin: -2.2rem auto 0 -1.8rem; width: min(360px, 94%);
  position: relative; z-index: 2;
}
.ticket-panel .chips { margin-bottom: 1.1rem; }
.ticket-panel dl { display: grid; gap: 1rem; }
.ticket-panel dt {
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: #57C4EE; margin-bottom: 0.15rem;
}
.ticket-panel dd { font-family: var(--font-display); font-stretch: 116%; font-weight: 650; font-size: 1.06rem; line-height: 1.3; }

@media (max-width: 1000px) {
  .hero-sheet { grid-template-columns: 1fr; padding: 2.6rem 1.8rem 3rem; gap: 2.2rem; }
  .ticket-panel { width: 100%; margin: -1.6rem 0 0 0; }
  .hero-zone { padding: 2rem 0 3rem; }
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: 5rem 0; }
.section--sheet { background: var(--sheet); }
.section--panel { background: var(--panel); }
.section--ink { background: var(--ink); color: #E7EBF0; }
.section-head { margin-bottom: 3rem; max-width: 62ch; }
.section-head .mark { margin-bottom: 1.1rem; }
.section-head p { color: var(--slate); margin-top: 1rem; font-size: 1.15rem; max-width: 56ch; }
.section--ink .section-head p { color: #9AA4B2; }

/* answer block (AEO direct answer) */
.answer-block {
  border-left: 4px solid var(--cyan); background: var(--cyan-wash);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.4rem 1.7rem; margin: 1.6rem 0; font-size: 1.1rem; line-height: 1.65;
}
.answer-block strong { font-family: var(--font-display); font-stretch: 116%; }

/* =========================================================
   CARDS
   ========================================================= */
.grid { display: grid; gap: 1.6rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--sheet); border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow-sheet); position: relative;
  border-top: 3px solid var(--line);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-top-color: var(--cyan); }
.card .mark { font-size: 0.7rem; margin-bottom: 0.9rem; }
.card .mark::before { width: 18px; height: 8px; }
.card h3 { margin-bottom: 0.7rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--cyan-dark); }
.card p { color: var(--slate); font-size: 1.02rem; line-height: 1.6; }

.card-link {
  display: inline-flex; align-items: center; gap: 0.45rem; margin-top: auto; padding-top: 1.2rem;
  font-family: var(--font-mono); font-weight: 600; font-size: 0.86rem;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; color: var(--cyan-dark);
}
.card-link::after { content: "→"; transition: transform .18s ease; }
.card:hover .card-link::after, .card-link:hover::after { transform: translateX(4px); }

/* photo-headed cards (industries) */
.card--photo { padding: 0; overflow: hidden; border-top: none; }
.card--photo img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card--photo .card-body { padding: 1.7rem 2rem 2rem; display: flex; flex-direction: column; flex: 1; }

/* =========================================================
   BRAND PROOF ROW
   ========================================================= */
.brand-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.1rem; }
@media (max-width: 960px) { .brand-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .brand-row { grid-template-columns: repeat(2, 1fr); } }
.brand-chip {
  background: var(--sheet); border-radius: var(--radius); box-shadow: var(--shadow-sheet);
  padding: 1.5rem 1rem 1.4rem; text-align: center; position: relative; overflow: hidden;
}
.brand-chip::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.brand-chip:nth-child(5n+1)::before { background: #00A7E1; }
.brand-chip:nth-child(5n+2)::before { background: var(--magenta); }
.brand-chip:nth-child(5n+3)::before { background: var(--yellow); }
.brand-chip:nth-child(5n+4)::before { background: var(--ink); }
.brand-chip:nth-child(5n+5)::before { background: var(--cyan-dark); }
.brand-chip b {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 700;
  font-size: 1.22rem; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-soft);
}
.brand-chip small {
  display: block; margin-top: 0.35rem; font-family: var(--font-mono);
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--slate);
}
.brand-caption {
  margin-top: 1.4rem; font-family: var(--font-mono); font-size: 0.78rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); text-align: center;
}

/* =========================================================
   PROSE (inner pages)
   ========================================================= */
.prose { max-width: none; min-width: 0; }
.prose > p, .prose > ul, .prose > ol, .prose > .answer-block, .prose > .takeaways, .prose > h2, .prose > h3 { max-width: 74ch; }

/* inner-page layout: prose + sticky conversion rail */
.page-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3.5rem; align-items: start; }
@media (max-width: 1000px) { .page-cols { grid-template-columns: 1fr; } }
.page-rail { position: sticky; top: 120px; }
.page-rail .ticket-panel { position: static; margin: 0; width: 100%; }
.rail-links { background: var(--sheet); border-radius: var(--radius); box-shadow: var(--shadow-sheet); padding: 1.5rem 1.7rem; margin-top: 1.2rem; }
.rail-links h4 { font-size: 0.95rem; margin-bottom: 0.8rem; }
.rail-links ul { list-style: none; }
.rail-links li { margin-bottom: 0.5rem; }
.rail-links a { text-decoration: none; font-size: 0.98rem; }
@media (max-width: 1000px) { .page-rail { position: static; } }
.prose h2 { margin: 2.8rem 0 1.1rem; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.prose h3 { margin: 2rem 0 0.8rem; }
.prose p { margin-bottom: 1.2rem; }
.prose ul, .prose ol { margin: 0 0 1.3rem 1.5rem; }
.prose li { margin-bottom: 0.5rem; }
.prose figure { margin: 0 0 1.8rem; }
.prose figure img { border-radius: var(--radius); box-shadow: var(--shadow-sheet); }
.prose table { border-collapse: collapse; width: 100%; margin: 1.7rem 0; font-size: 1rem; background: var(--sheet); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sheet); }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 0.8rem 1rem; text-align: left; }
.prose th { background: var(--ink); color: #fff; font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; }

.takeaways { background: var(--panel); border-radius: var(--radius); padding: 1.7rem 1.9rem; margin: 1.7rem 0; border-left: 4px solid var(--ink); }
.takeaways h2, .takeaways h3 { margin: 0 0 0.9rem; font-size: 1.08rem; }
.takeaways ul { margin: 0 0 0 1.25rem; }
.takeaways li { margin-bottom: 0.45rem; }

/* =========================================================
   FAQ
   ========================================================= */
.faq-list { max-width: 76ch; }
.faq-item {
  background: var(--sheet); border-radius: var(--radius); box-shadow: var(--shadow-sheet);
  padding: 1.6rem 1.9rem; margin-bottom: 1rem;
}
.faq-item h3 { font-size: 1.12rem; margin-bottom: 0.55rem; }
.faq-item p { color: var(--slate); font-size: 1.02rem; }

/* =========================================================
   INNER PAGE HERO
   ========================================================= */
.page-hero { padding: 4rem 0 3rem; background: var(--sheet); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 22ch; font-size: clamp(2.1rem, 4vw, 3.3rem); }
.page-hero .lede { margin-top: 1.2rem; color: var(--slate); font-size: 1.22rem; max-width: 58ch; }
.page-hero .mark { margin-bottom: 1.2rem; }
.breadcrumbs { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; color: var(--slate); margin-bottom: 1.6rem; text-transform: uppercase; }
.breadcrumbs a { color: var(--slate); text-decoration: none; }
.breadcrumbs a:hover { color: var(--cyan-dark); }

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band { background: var(--ink); color: #fff; padding: 4.5rem 0; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg, #00A7E1 0 25%, var(--magenta) 25% 50%, var(--yellow) 50% 75%, #3A4150 75% 100%);
}
.cta-band h2 { color: #fff; max-width: 24ch; }
.cta-band p { color: #9AA4B2; margin: 1.1rem 0 1.8rem; max-width: 52ch; font-size: 1.12rem; }
.cta-band .phone-link { color: #fff; font-size: 1.7rem; }
.cta-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2.5rem; }
.cta-band .mark { color: #57C4EE; }
.cta-band .mark::before { background: #57C4EE; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--ink); color: #9AA4B2; padding: 4rem 0 2.5rem; font-size: 0.98rem; margin-top: 0; }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; }
.site-footer h4 { font-size: 0.98rem; margin-bottom: 1rem; color: #fff; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: #9AA4B2; text-decoration: none; }
.site-footer a:hover { color: #57C4EE; }
.footer-nap { color: #C4CBD5; font-style: normal; line-height: 1.7; }
.footer-nap a { color: #fff; font-family: var(--font-mono); }
.footer-tag { margin-top: 1.1rem; font-size: 0.92rem; }
.footer-legal {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #2A2E36;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: 0.82rem; grid-column: 1 / -1; font-family: var(--font-mono); letter-spacing: 0.04em;
}
@media (max-width: 900px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } }

/* =========================================================
   GEO / LOCAL
   ========================================================= */
.local-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.2rem; margin: 2rem 0; align-items: start; }
@media (max-width: 900px) { .local-grid { grid-template-columns: 1fr; } }
.nap-card { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-lift); }
.nap-card h3 { color: #fff; }
.nap-card .mark { color: #57C4EE; } .nap-card .mark::before { background: #57C4EE; }
.nap-card a:not(.btn) { color: #57C4EE; }
.nap-card p { line-height: 1.7; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* split feature (why-independent) */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; align-items: center; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 2rem; } }
.split-visual { position: relative; }
.split-visual > img { border-radius: var(--radius); box-shadow: var(--shadow-lift); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.split-visual .ticket-panel { margin: -2rem -1.4rem 0 auto; }
@media (max-width: 960px) { .split-visual .ticket-panel { margin: -1.6rem 0 0 auto; } }

/* homepage prose blocks — substantive paragraph content between component sections */
.home-prose { max-width: 76ch; }
.home-prose p { margin-bottom: 1.15rem; color: var(--ink-soft); font-size: 1.13rem; line-height: 1.75; }
.home-prose p:last-child { margin-bottom: 0; }
.home-prose strong { font-family: var(--font-display); font-stretch: 116%; }
.section-outro { max-width: 76ch; margin-top: 2.6rem; }
.section-outro p { color: var(--ink-soft); font-size: 1.08rem; line-height: 1.75; margin-bottom: 1.05rem; }

/* how-it-works steps: a real sequence, numbered honestly */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--sheet); border-radius: var(--radius); box-shadow: var(--shadow-sheet); padding: 2rem; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-family: var(--font-mono); font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.16em; color: var(--cyan-dark); margin-bottom: 0.9rem;
}
.step h3 { margin-bottom: 0.7rem; }
.step p { color: var(--slate); font-size: 1.02rem; line-height: 1.65; }

/* ============================================================
   Primary-nav dropdowns (Services / Industries) — added 2026-07-17
   Press-sheet dropdown: cyan top rule, ink links, mono "all" link.
   ============================================================ */
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.main-nav .has-dropdown { position: relative; }

.main-nav .nav-hub { display: inline-flex; align-items: center; }
.main-nav .nav-caret {
  display: inline-block; width: 0; height: 0; margin-left: .45rem;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; transition: transform .15s ease;
}

.main-nav .submenu-toggle { display: none; }

.main-nav .submenu {
  list-style: none;
  position: absolute; top: 100%; left: 0; min-width: 288px;
  display: flex; flex-direction: column; gap: 0;
  background: var(--sheet);
  border: 1px solid var(--line); border-top: 3px solid var(--cyan);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lift);
  padding: .5rem; margin-top: 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  z-index: 60;
}
.main-nav .has-dropdown:hover > .submenu,
.main-nav .has-dropdown:focus-within > .submenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.main-nav .has-dropdown:hover > .nav-hub .nav-caret,
.main-nav .has-dropdown:focus-within > .nav-hub .nav-caret { transform: rotate(180deg); }

.main-nav .submenu li { width: 100%; }
.main-nav .submenu a {
  display: block; padding: .62rem .85rem; border-radius: 6px;
  font-size: .98rem; font-weight: 500; color: var(--ink-soft);
  border-bottom: 0; white-space: nowrap;
}
.main-nav .submenu a:hover { background: var(--cyan-wash); color: var(--ink); border-bottom: 0; }

.main-nav .submenu-all { border-top: 1px solid var(--line); margin-top: .35rem; padding-top: .3rem; }
.main-nav .submenu-all a {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .05em;
  text-transform: uppercase; color: var(--cyan-dark);
}
.main-nav .submenu-all a:hover { background: transparent; color: var(--cyan); }

/* Mobile: nav is the slide-down panel — dropdowns become tap accordions. */
@media (max-width: 1120px) {
  .main-nav .has-dropdown { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
  .main-nav .has-dropdown > .nav-hub { flex: 1 1 auto; }
  .main-nav .nav-caret { display: none; }

  .main-nav .submenu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    flex: 0 0 auto; width: 44px; height: 44px; padding: 0;
    background: none; border: 1.5px solid var(--line); border-radius: var(--radius);
    cursor: pointer;
  }
  .main-nav .submenu-toggle::before {
    content: ""; width: 0; height: 0;
    border-left: 5px solid transparent; border-right: 5px solid transparent;
    border-top: 6px solid var(--ink); transition: transform .15s ease;
  }
  .main-nav .has-dropdown.expanded .submenu-toggle::before { transform: rotate(180deg); }

  .main-nav .submenu {
    position: static; flex-basis: 100%; width: 100%; min-width: 0;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-left: 2px solid var(--line);
    border-radius: 0; padding: .2rem 0 .4rem .85rem; margin-top: .5rem;
    display: none;
  }
  .main-nav .has-dropdown.expanded .submenu { display: flex; }
  .main-nav .submenu a { white-space: normal; padding: .6rem .6rem; }
}
