/* ============================================================
   County of Ventura, One-Stop Permitting
   style.css, brand foundation + reusable components
   Source tokens: redesign-handoff/BRAND-KIT.md
   NOTE: This static CSS is for LOCAL PREVIEW ONLY.
   Elementor generates its own CSS from HTML annotations.
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Colors */
  --brand-blue: #23569D;     /* primary: headers, bands, body links (AA) */
  --brand-blue-dark: #1A4178;
  --brand-gold: #DF990D;     /* CTA, accents (large/bold only) */
  --brand-gold-dark: #B97D08;
  --brand-sky: #21ABFF;      /* highlights, icons */
  --ink: #0C0C0C;            /* headings */
  --text: #333333;           /* body */
  --text-light: #525B68;     /* muted (AA-safe on tinted backgrounds) */
  --surface: #FFFFFF;
  --surface-alt: #F5F6F8;
  --footer: #13243A;         /* deep navy */
  --border: #E2E6EC;

  /* Typography */
  --font-heading: 'Roboto', sans-serif;      /* H1, H3-H6 @600 */
  --font-display: 'Poppins', sans-serif;     /* H2, hero @700 */
  --font-body: 'Open Sans', sans-serif;      /* body @400/600 */

  /* Spacing scale (8px base) */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 80px;

  /* Layout */
  --container: 1400px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 20px 25px rgba(0,0,0,0.15);
  --header-h: 80px;
  --header-h-scrolled: 70px;
  --utility-h: 40px;
  --transition: all 0.3s ease;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--ink); margin: 0 0 var(--space-sm); line-height: 1.25; }
h1 { font-size: 48px; font-weight: 700; line-height: 1.2; }
h2 { font-family: var(--font-display); font-size: 36px; font-weight: 700; }
h3 { font-size: 24px; font-weight: 600; }
h4 { font-size: 20px; font-weight: 600; }
p { margin: 0 0 var(--space-sm); }
a { color: var(--brand-blue); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--brand-gold-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0 0 var(--space-sm); padding-left: 1.25rem; }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; width: 100%; }
.container--narrow { max-width: 880px; }
.section { padding: 80px 24px; }
.section--alt { background: var(--surface-alt); }
.section--dark { background: var(--footer); color: #DCE2EA; }
.section__head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section__head h2 { margin-bottom: var(--space-sm); }
.section__head p { font-size: 18px; color: var(--text-light); }
.eyebrow { display: inline-block; font-family: var(--font-body); font-weight: 600; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--brand-blue); margin-bottom: var(--space-xs); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-weight: 600; font-size: 16px; padding: 14px 28px; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer; transition: var(--transition); text-align: center; }
.btn--primary { background: var(--brand-gold); color: var(--ink); }  /* dark text on gold: WCAG AA */
.btn--primary:hover { background: var(--brand-gold-dark); color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--secondary { background: var(--brand-blue); color: #FFFFFF; }
.btn--secondary:hover { background: var(--brand-blue-dark); color: #FFFFFF; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--outline { background: transparent; color: var(--brand-blue); border-color: var(--brand-blue); }
.btn--outline:hover { background: var(--brand-blue); color: #FFFFFF; }
.btn--ghost-light { background: rgba(255,255,255,0.12); color: #FFFFFF; border-color: rgba(255,255,255,0.5); }
.btn--ghost-light:hover { background: #FFFFFF; color: var(--brand-blue); }
.btn--lg { padding: 18px 36px; font-size: 18px; }

/* ---------- Skip link (WCAG 2.4.1 Bypass Blocks) ---------- */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 3000; background: var(--brand-blue); color: #FFFFFF; padding: 12px 20px; font-weight: 600; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* ---------- Utility Bar ---------- */
.utility-bar { background: var(--brand-blue-dark); color: #FFFFFF; font-size: 14px; height: var(--utility-h); }
.utility-bar .container { display: flex; align-items: center; justify-content: space-between; height: var(--utility-h); }
.utility-bar a { color: #FFFFFF; }
.utility-bar a:hover { color: var(--brand-gold); }
.utility-bar__links { display: flex; gap: var(--space-md); align-items: center; }

/* ---------- Header (sticky, scroll-state) ---------- */
.header { position: sticky; top: 0; z-index: 1000; background: var(--surface); box-shadow: var(--shadow-sm); transition: var(--transition); }
.header__container { max-width: var(--container); margin: 0 auto; padding: 0 24px; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); transition: var(--transition); }
.header--scrolled .header__container { height: var(--header-h-scrolled); }
.header--scrolled { box-shadow: var(--shadow-md); }
.header__logo img { height: 52px; width: auto; transition: var(--transition); }
.header--scrolled .header__logo img { height: 44px; }
.header__cta { display: flex; align-items: center; gap: var(--space-md); }

/* ---------- Primary Nav + Mega Menu ---------- */
.nav { display: flex; }
.nav__list { display: flex; align-items: center; gap: var(--space-xs); list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; font-weight: 600; font-size: 15px; color: var(--ink); white-space: nowrap; border-radius: 6px; }
.nav__link:hover, .nav__item--active > .nav__link { color: var(--brand-blue); }
.nav__item--active > .nav__link { box-shadow: inset 0 -3px 0 var(--brand-gold); }

/* Mega menu (Departments) */
.mega { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px); width: min(900px, 92vw); background: #FFFFFF; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: var(--space-lg); opacity: 0; visibility: hidden; transition: var(--transition); z-index: 1100; }
.nav__item:hover .mega, .nav__item:focus-within .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-sm) var(--space-lg); }
.mega__link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; color: var(--text); font-size: 14px; }
.mega__link i { color: var(--brand-blue); width: 18px; text-align: center; }
.mega__link:hover { background: var(--surface-alt); color: var(--brand-blue); }
.mega__foot { margin-top: var(--space-md); padding-top: var(--space-md); border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }

/* Simple dropdown */
.dropdown { position: absolute; top: 100%; left: 0; min-width: 240px; background: #FFFFFF; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: var(--transition); z-index: 1100; list-style: none; margin: 0; }
.nav__item:hover .dropdown, .nav__item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 10px 12px; border-radius: 6px; color: var(--text); font-size: 14px; }
.dropdown a:hover { background: var(--surface-alt); color: var(--brand-blue); }

/* Mobile toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--ink); border-radius: 2px; transition: var(--transition); }

/* ---------- Hero (gradient) ---------- */
.hero { position: relative; background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%); color: #FFFFFF; padding: 96px 24px; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(33,171,255,0.25), transparent 55%); pointer-events: none; }
/* Photo hero: Ojai Valley image behind the brand-blue gradient overlay (text stays AA-legible) */
.hero--photo { background: linear-gradient(115deg, rgba(19,36,58,0.92) 0%, rgba(26,65,120,0.82) 45%, rgba(35,86,157,0.62) 100%), url('../images/hero/ojai-slide.jpg?v=2'); background-size: cover; background-position: center 35%; padding: 120px 24px; }
.hero--photo::after { background: none; }
.hero .container { position: relative; z-index: 1; }
.hero__content { max-width: 760px; }
.hero__content h1 { color: #FFFFFF; margin-bottom: var(--space-md); }
.hero__content .lead { font-size: 20px; color: #E6EDF6; margin-bottom: var(--space-lg); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

/* Page hero (internal, 50vh) */
.page-hero { position: relative; background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%); color: #FFFFFF; padding: 120px 24px 72px; }
.page-hero h1 { color: #FFFFFF; }
.page-hero .lead { font-size: 19px; color: #E6EDF6; max-width: 720px; }
.page-hero__role { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.3); border-radius: 999px; padding: 6px 16px; font-size: 14px; font-weight: 600; margin-bottom: var(--space-sm); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { background: var(--surface-alt); padding: 14px 24px; font-size: 14px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumbs li::after { content: "/"; margin-left: 8px; color: var(--text-light); }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--brand-blue); }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: var(--space-md); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #FFFFFF; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; transition: var(--transition); display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__icon { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); background: rgba(35,86,157,0.08); color: var(--brand-blue); font-size: 24px; margin-bottom: var(--space-sm); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-light); font-size: 15px; }
.card__link { margin-top: auto; padding-top: var(--space-sm); font-weight: 600; color: var(--brand-blue); display: inline-flex; align-items: center; gap: 6px; }
.card__link i { transition: transform 0.2s ease; }
.card__link:hover i { transform: translateX(4px); }

/* Department card (compact) */
.dept-card { display: flex; align-items: center; gap: 14px; background: #FFFFFF; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; transition: var(--transition); color: var(--text); }
.dept-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: var(--brand-blue); border-color: transparent; }
.dept-card i { font-size: 20px; color: var(--brand-blue); width: 28px; text-align: center; }
.dept-card span { font-weight: 600; font-size: 15px; }

/* ---------- Process Flow (vertical journey timeline) ---------- */
.flow { list-style: none; margin: 0; padding: 0; }
.flow__step { position: relative; display: grid; grid-template-columns: 44px 1fr; column-gap: var(--space-md); padding-bottom: var(--space-lg); }
.flow__step:last-child { padding-bottom: 0; }
.flow__step:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 22px; height: 100%; width: 2px; background: var(--border); z-index: 0; }
.flow__node { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--brand-blue); color: #FFFFFF; font-family: var(--font-heading); font-weight: 700; font-size: 17px; box-shadow: var(--shadow-sm); }
.flow__body { padding-top: 7px; min-width: 0; }
.flow__title { margin: 0 0 3px; font-family: var(--font-heading); font-weight: 600; font-size: 16.5px; color: var(--ink); line-height: 1.3; }
.flow__title a { color: inherit; text-decoration: none; }
.flow__title a:hover { color: var(--brand-blue); text-decoration: underline; }
.flow__desc { margin: 0; font-size: 14px; color: var(--text-light); line-height: 1.55; }
.flow__tag { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--brand-gold-dark); background: #FBF1DC; border-radius: 999px; padding: 2px 9px; vertical-align: middle; white-space: nowrap; }
.flow--dept .flow__step--muted { opacity: .5; }
.flow--dept .flow__step--muted .flow__node { background: #C7CFDA; box-shadow: none; }
.flow--dept .flow__step--active .flow__node { background: var(--brand-gold); color: var(--ink); box-shadow: 0 0 0 4px #FBF1DC; }
.flow--dept .flow__step--active .flow__title { color: var(--brand-blue-dark); }
.flow__depts { margin: 6px 0 0; font-size: 12.5px; color: var(--text-light); line-height: 1.55; }
.flow__depts-label { font-weight: 600; color: var(--text); }
.flow__dept-you { color: var(--brand-gold-dark); font-weight: 700; }
.flow__depts a { color: var(--text-light); text-decoration: underline; text-underline-offset: 2px; }
.flow__depts a:hover { color: var(--brand-blue); }
.flow-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 var(--space-md); font-size: 13.5px; color: var(--text-light); }
.flow-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.flow-legend .dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
.flow-legend .dot--active { background: var(--brand-gold); box-shadow: 0 0 0 3px #FBF1DC; }
.flow-legend .dot--muted { background: #C7CFDA; }

/* ---------- Process Stepper (9 steps) ---------- */
.stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); counter-reset: step; }
.step { position: relative; background: #FFFFFF; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; transition: var(--transition); }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.step__num { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-blue); color: #FFFFFF; font-family: var(--font-display); font-weight: 700; font-size: 18px; display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-sm); }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--text-light); margin: 0; }
.step__depts { margin-top: 12px !important; padding-top: 10px; border-top: 1px solid var(--border); font-size: 12.5px !important; line-height: 1.5; }
.step__depts-label { font-weight: 600; color: var(--text); }
.step__link { position: absolute; inset: 0; }

/* ---------- 4-block (phase template) ---------- */
.blocks { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
.block { background: #FFFFFF; border: 1px solid var(--border); border-left: 4px solid var(--brand-gold); border-radius: var(--radius); padding: 28px; }
.block h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.block h3 i { color: var(--brand-blue); }
.phase-progress { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--space-md) 0; }
.phase-dot { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; background: var(--surface-alt); color: var(--text-light); border: 2px solid var(--border); }
.phase-dot--done { background: #E6F0FA; color: var(--brand-blue); border-color: var(--brand-blue); }
.phase-dot--current { background: var(--brand-gold); color: #FFFFFF; border-color: var(--brand-gold); }
.prevnext { display: flex; justify-content: space-between; gap: var(--space-md); margin-top: var(--space-xl); }

/* ---------- Tabs (department sections) ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 2px solid var(--border); margin-bottom: var(--space-lg); position: sticky; top: var(--header-h); background: var(--surface); z-index: 50; padding-top: 8px; }
.tab { padding: 12px 18px; font-weight: 600; font-size: 15px; color: var(--text-light); border: none; background: none; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: var(--transition); }
.tab:hover { color: var(--brand-blue); }
.tab--active { color: var(--brand-blue); border-bottom-color: var(--brand-gold); }
.tab-panel { display: none; }
.tab-panel--active { display: block; animation: fadeInUp 0.4s ease; }

/* ---------- Accordion (FAQ) ---------- */
.accordion { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.accordion__item { border-bottom: 1px solid var(--border); }
.accordion__item:last-child { border-bottom: none; }
.accordion__trigger { width: 100%; text-align: left; background: #FFFFFF; border: none; padding: 18px 20px; font-family: var(--font-heading); font-weight: 600; font-size: 16px; color: var(--ink); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); transition: var(--transition); }
.accordion__trigger:hover { background: var(--surface-alt); color: var(--brand-blue); }
.accordion__trigger i { transition: transform 0.3s ease; color: var(--brand-blue); }
.accordion__trigger[aria-expanded="true"] i { transform: rotate(180deg); }
.accordion__panel { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
.accordion__panel[aria-hidden="false"] { padding: 0 20px 20px; max-height: 1200px; }

/* ---------- Contact card ---------- */
.contact-card { background: #FFFFFF; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.contact-card h3 { margin-bottom: var(--space-sm); }
.contact-card__row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; font-size: 15px; }
.contact-card__row i { color: var(--brand-blue); width: 20px; text-align: center; margin-top: 3px; }

/* ---------- Doc / link lists ----------
   Two row structures are supported:
   - department pages: <li><i/><span>…<a/>…, description</span></li>
   - resources page:   <li><a><i/><span/></a></li> (whole row is a link)
   Icons are brand-blue (link affordance), glyph varies by document type. */
.doc-list { list-style: none; padding: 0; margin: 0; }
.doc-list li { border-bottom: 1px solid var(--border); border-radius: 8px; transition: background 0.2s ease; }
.doc-list li:last-child { border-bottom: none; }
.doc-list li:hover { background: rgba(35,86,157,0.05); }
.doc-list > li { display: flex; gap: 14px; align-items: flex-start; padding: 13px 12px; }
.doc-list > li > a { display: flex; gap: 14px; align-items: flex-start; flex: 1; padding: 0; }
.doc-list i { color: var(--brand-blue); font-size: 16px; width: 22px; text-align: center; flex-shrink: 0; margin-top: 3px; }
.doc-list a { color: var(--brand-blue); font-weight: 600; text-decoration: none; }
.doc-list a:hover { color: var(--brand-blue-dark); text-decoration: underline; }
.doc-list > li > span { color: var(--text); font-weight: 400; }

/* ---------- Decision helper ---------- */
.helper { background: #FFFFFF; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: var(--space-xl); max-width: 760px; margin: 0 auto; }
.helper__step { display: none; }
.helper__step--active { display: block; animation: fadeInUp 0.4s ease; }
.helper__options { display: grid; gap: var(--space-sm); margin-top: var(--space-md); }
.helper__option { text-align: left; padding: 18px 20px; border: 2px solid var(--border); border-radius: var(--radius); background: #FFFFFF; cursor: pointer; font-size: 16px; font-weight: 600; color: var(--ink); transition: var(--transition); }
.helper__option:hover { border-color: var(--brand-blue); background: var(--surface-alt); }
.helper__result { padding: var(--space-md); border-radius: var(--radius); background: var(--surface-alt); border-left: 4px solid var(--brand-blue); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%); color: #FFFFFF; text-align: center; padding: 72px 24px; }
.cta-band h2 { color: #FFFFFF; }
.cta-band p { color: #E6EDF6; font-size: 18px; max-width: 640px; margin: 0 auto var(--space-lg); }
.cta-band__actions { display: flex; gap: var(--space-sm); justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: var(--footer); color: #AEB9C7; padding: 64px 24px 24px; }
.footer a { color: #C9D3DF; }
.footer a:hover { color: var(--brand-gold); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--space-xl); }
.footer__logo { height: 52px; width: auto; margin-bottom: var(--space-sm); }
.footer h3 { color: #FFFFFF; font-size: 16px; margin-bottom: var(--space-sm); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; font-size: 14px; }
.footer__maintained { margin-top: var(--space-lg); text-align: center; font-size: 13.5px; line-height: 1.6; color: #AEB9C7; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: var(--space-xl); padding-top: var(--space-md); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-sm); font-size: 13px; }

/* ---------- Back to top ---------- */
.back-to-top { position: fixed; bottom: 28px; right: 28px; width: 48px; height: 48px; border-radius: 50%; background: var(--brand-blue); color: #FFFFFF; border: none; cursor: pointer; opacity: 0; visibility: hidden; transition: var(--transition); z-index: 900; box-shadow: var(--shadow-md); font-size: 18px; }
.back-to-top--visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--brand-gold); transform: translateY(-3px); }

/* ---------- Animations ----------
   Entrance animation is progressive enhancement: content is ALWAYS visible
   (fails safe with no JS), and animates in on load. */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
[data-animate] { animation: fadeInUp 0.6s ease both; }
[data-animate].in-view { animation: fadeInUp 0.6s ease both; }
@media (prefers-reduced-motion: reduce) {
  [data-animate] { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- "Start here" summary box (USWDS-style, progressive disclosure) ----------
   Calm by default: one sentence + small opt-in controls. Notes/video reveal on demand. */
.starthere { background: #F0F5FB; border: 1px solid #D5E2F1; border-left: 4px solid var(--brand-blue); border-radius: var(--radius-lg); padding: 22px 24px; margin: 0 0 8px; }
.starthere__label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--brand-blue); margin-bottom: 10px; }
.starthere__lead { font-size: 18px; line-height: 1.5; color: var(--ink); margin: 0 0 14px; }
.starthere__lead strong { color: var(--brand-blue); }
.starthere__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sh-btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--brand-blue); background: #FFFFFF; border: 1px solid #C7D8EC; border-radius: 999px; padding: 8px 16px; cursor: pointer; transition: var(--transition); }
.sh-btn:hover { background: var(--brand-blue); color: #FFFFFF; border-color: var(--brand-blue); }
.sh-btn[aria-expanded="true"], .sh-btn[data-active="true"] { background: var(--brand-blue); color: #FFFFFF; border-color: var(--brand-blue); }
.starthere__panel { margin-top: 16px; animation: fadeInUp 0.3s ease; }
.starthere__panel[hidden] { display: none; }
.starthere__panel ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.starthere__panel li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; line-height: 1.5; color: var(--text); }
.starthere__panel li strong { color: var(--ink); }
.starthere__panel li::before { content: ""; flex-shrink: 0; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--brand-gold); }
.starthere__video { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); max-width: 720px; }
.starthere__video video { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; background: var(--footer); }
.starthere__note { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--text-light); margin: 16px 0 0; padding-top: 14px; border-top: 1px solid #D5E2F1; }
.starthere__note i { margin-top: 2px; color: var(--brand-blue); }

/* ---------- WCAG 1.4.1: in-text links must not rely on color alone ----------
   Links sitting inside prose/lists carry an underline; component links
   (buttons, nav, cards, tabs, breadcrumbs) keep their own non-color affordance. */
.contact-card a, .block a, .starthere__note a, .helper__result a,
.accordion__panel a, .doc-list a, main p a, main li a { text-decoration: underline; }
.btn, .breadcrumbs a, .card__link, .dept-card, .step, .tab { text-decoration: none; }

/* ---------- Glossary tooltips (inline jargon definitions) ---------- */
.glossary-term { border-bottom: 1px dotted var(--brand-blue); cursor: help; }
.glossary-term:hover, .glossary-term:focus-visible { background: rgba(35,86,157,0.10); outline: none; border-radius: 2px; }
.glossary-pop { position: absolute; top: 0; left: -9999px; z-index: 2000; max-width: 300px; background: var(--footer); color: #FFFFFF; font-family: var(--font-body); font-weight: 400; font-size: 14px; line-height: 1.45; text-transform: none; letter-spacing: normal; padding: 11px 14px; border-radius: 8px; box-shadow: 0 10px 28px rgba(0,0,0,0.28); opacity: 0; visibility: hidden; transition: opacity 0.14s ease; pointer-events: none; }
.glossary-pop--show { opacity: 1; visibility: visible; }
.glossary-pop strong { display: block; color: var(--brand-sky); font-weight: 700; margin-bottom: 3px; }

/* ---------- Helpers ---------- */
.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ============================================================
   Google Translate language popup (mirrors rma.venturacounty.gov)
   ============================================================ */
/* Suppress Google's injected top banner so only our branded popup shows */
.goog-te-banner-frame,
.skiptranslate iframe { display: none !important; }
body { top: 0 !important; }
/* Hidden from view AND from the focus order / a11y tree (driven via the custom modal).
   display:none avoids an aria-hidden container holding a focusable <select>. */
#google_translate_element { display: none !important; }
/* Neutralize Google's highlight on translated text */
.goog-text-highlight { background: none !important; box-shadow: none !important; }

/* "Translate" button — fixed orange bar pinned to the bottom (like rma).
   position:fixed lifts it out of the footer bar; it sits to the left of the
   back-to-top button and stays visible on every page. */
.footer__translate {
  position: fixed; bottom: 0; right: 96px; z-index: 950;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 150px; height: 46px; padding: 0 16px;
  border: 0; border-radius: var(--radius) var(--radius) 0 0;
  background: var(--brand-gold); color: var(--ink);
  font-family: var(--font-body); font-size: 15px; font-weight: 700; line-height: 1;
  text-transform: uppercase; letter-spacing: 0.4px;
  cursor: pointer; box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.18);
  transition: var(--transition);
}
.footer__translate:hover,
.footer__translate:focus-visible {
  background: var(--brand-gold-dark); color: var(--ink);
}
.footer__translate i { font-size: 15px; }

/* Modal */
.lang-modal {
  position: fixed; inset: 0; z-index: 2000;
  display: none; align-items: center; justify-content: center;
  padding: var(--space-md);
  background: rgba(11, 20, 33, 0.62);
}
.lang-modal.is-open { display: flex; }
.lang-modal__card {
  position: relative; width: 100%; max-width: 500px;
  background: var(--surface); border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  text-align: center;
}
.lang-modal__close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: 0; font-size: 22px; line-height: 1;
  color: var(--text-light); cursor: pointer;
}
.lang-modal__close:hover { color: var(--brand-blue); }
.lang-modal__title {
  font-family: var(--font-display); color: var(--footer);
  font-size: 24px; margin: 0 0 var(--space-md);
}
.lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xs); }
.lang-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 14px 12px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface-alt); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; font-weight: 600;
  cursor: pointer; transition: var(--transition);
}
.lang-btn span { font-size: 12px; font-weight: 400; color: var(--text-light); }
.lang-btn:hover,
.lang-btn:focus-visible { border-color: var(--brand-blue); background: var(--brand-blue); color: var(--surface); }
.lang-btn:hover span,
.lang-btn:focus-visible span { color: rgba(255, 255, 255, 0.85); }
.lang-modal__disclaimer {
  margin: var(--space-md) 0 0; text-align: left;
  font-size: 12px; line-height: 1.6; color: var(--text-light);
}
