/* Pearl Snap Consulting — Shared Stylesheet (State & Industry Pages) */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --gold: #c8860a;
  --gold-bright: #e8a020;
  --cream: #f5efe6;
  --cream-85: rgba(245,239,230,0.85);
  --cream-78: rgba(245,239,230,0.78);
  --cream-75: rgba(245,239,230,0.75);
  --cream-70: rgba(245,239,230,0.70);
  --cream-68: rgba(245,239,230,0.68);
  --cream-58: rgba(245,239,230,0.58);
  --cream-55: rgba(245,239,230,0.55);
  --cream-50: rgba(245,239,230,0.50);
  --cream-42: rgba(245,239,230,0.42);
  --cream-40: rgba(245,239,230,0.40);
  --cream-35: rgba(245,239,230,0.35);
  --black: #0a0906;
  --dark: #111008;
  --leather: #1e1608;
  --charcoal: #181410;
  --border-gold: rgba(200,134,10,0.18);
  --text-secondary: rgba(245,239,230,0.55);
  --nav-bg: rgba(10,9,6,0.92);
}

/* Light mode */
html.light-mode { --cream: #1a1612; --cream-85: rgba(26,22,18,0.85); --cream-78: rgba(26,22,18,0.78); --cream-75: rgba(26,22,18,0.75); --cream-70: rgba(26,22,18,0.70); --cream-68: rgba(26,22,18,0.68); --cream-58: rgba(26,22,18,0.58); --cream-55: rgba(26,22,18,0.55); --cream-50: rgba(26,22,18,0.50); --cream-42: rgba(26,22,18,0.42); --cream-40: rgba(26,22,18,0.40); --cream-35: rgba(26,22,18,0.35); --black: #f5efe6; --dark: #ede4d3; --leather: #e8dcc8; --charcoal: #f0e8da; --border-gold: rgba(200,134,10,0.22); --text-secondary: rgba(26,22,18,0.55); --nav-bg: rgba(245,239,230,0.95); }
html.light-mode .nav-logo { filter: brightness(1.05); }
html.light-mode .footer-logo { filter: brightness(0.9); }
html.light-mode body::after { opacity: 0.04; }
html.light-mode .hero-map .state { stroke: rgba(80,60,4,0.7); stroke-width: 1.5; }
html.light-mode .hero-map .territory-state { stroke: rgba(80,60,4,0.8); stroke-width: 1.8; }
html.light-mode .hero-map .territory-state:hover { fill: rgba(200,134,10,0.25); stroke: rgba(80,60,4,0.85); stroke-width: 2; }
html.light-mode .hero-map .state.highlighted { fill: rgba(200,134,10,0.4); stroke: rgba(80,60,4,0.9); stroke-width: 2.5; }

html { scroll-behavior: smooth; }
body { font-family: 'Josefin Sans', sans-serif; background: var(--black); color: var(--cream); overflow-x: hidden; }
body::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: 0.03; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 256px; }

/* NAV */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 500; display: flex; align-items: center; justify-content: space-between; padding: 1rem 3.5rem; background: var(--nav-bg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-gold); }
.nav-logo { height: 44px; width: auto; display: block; filter: invert(1) brightness(1.05); }
.nav-links { display: flex; gap: 2.25rem; list-style: none; }
.nav-links a { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-cta { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; background: var(--gold); color: var(--black); text-decoration: none; padding: 0.65rem 1.5rem; clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%); transition: background 0.2s; }
.nav-cta:hover { background: var(--gold-bright); }
.theme-toggle { background: none; border: 1px solid var(--border-gold); color: var(--cream); cursor: pointer; padding: 0.45rem; border-radius: 4px; display: flex; align-items: center; justify-content: center; transition: border-color 0.2s, color 0.2s; margin-left: 1rem; }
.theme-toggle:hover { border-color: var(--gold); color: var(--gold); }
.theme-toggle svg { width: 18px; height: 18px; }
html.light-mode .icon-sun { display: none; }
html:not(.light-mode) .icon-moon { display: none; }

/* HERO */
.page-hero { padding: 9rem 3.5rem 5rem; background: var(--dark); border-bottom: 1px solid var(--border-gold); position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 40%; background: linear-gradient(270deg, rgba(200,134,10,0.04), transparent); pointer-events: none; }
.breadcrumb { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.breadcrumb a { font-size: 0.70rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream-50); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { color: var(--cream-35); font-size: 0.72rem; }
.breadcrumb-current { font-size: 0.70rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.page-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; line-height: 1.08; max-width: 760px; margin-bottom: 1.5rem; }
.page-hero h1 em { font-style: italic; font-weight: 400; color: var(--gold); }
.hero-rule { width: 64px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); margin: 1.75rem 0; }
.page-hero-sub { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 300; line-height: 1.8; color: var(--cream-75); max-width: 600px; }

/* State page hero overrides */
.state-hero h1 { font-size: clamp(2.8rem, 5.5vw, 4.5rem); line-height: 1.05; }
.state-hero .page-hero-sub { font-size: 1.35rem; }

/* Hero content z-index */
.hero-content { position: relative; z-index: 2; }

/* US Map background */
.hero-map { position: absolute; left: 15%; top: 50%; transform: translateY(-50%); width: 75%; height: 90%; opacity: 0.6; z-index: 3; pointer-events: none; }
.hero-map svg { pointer-events: none; }
.hero-map a { pointer-events: auto; }
.hero-map svg { width: 100%; height: 100%; }
.hero-map .state { fill: transparent; stroke: rgba(200,134,10,0.5); stroke-width: 1; pointer-events: none; }
.hero-map .territory-state { pointer-events: auto; }
.hero-map .territory-state { stroke: rgba(200,134,10,0.65); stroke-width: 1.2; cursor: pointer; transition: all 0.3s ease; }
.hero-map .territory-state:hover { fill: rgba(200,134,10,0.3); stroke: rgba(200,134,10,0.7); stroke-width: 1.5; }
.hero-map .state.highlighted { fill: rgba(200,134,10,0.5); stroke: rgba(200,134,10,0.8); stroke-width: 2; }

/* SECTIONS */
.section { padding: 6rem 3.5rem; }
.section-eyebrow { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.eyebrow-rule { width: 24px; height: 1px; background: var(--gold); flex-shrink: 0; }
.eyebrow-label { font-size: 0.70rem; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 700; line-height: 1.15; margin-bottom: 1.25rem; }
.section-title em { font-style: italic; font-weight: 400; color: var(--gold); }
.section-body { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 300; line-height: 1.9; color: var(--cream-78); max-width: 680px; margin-bottom: 1.5rem; }

/* INDUSTRY GRID (state pages) */
.industry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--border-gold); margin-top: 3.5rem; }
.industry-card { padding: 2.5rem 2.25rem; border-right: 1px solid var(--border-gold); border-bottom: 1px solid var(--border-gold); position: relative; }
.industry-card:nth-child(2n) { border-right: none; }
.industry-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.35s; }
.industry-card:hover::after { transform: scaleX(1); }
.industry-card-title { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 600; margin-bottom: 0.75rem; line-height: 1.25; }
.industry-card-body { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 300; line-height: 1.85; color: var(--cream-68); margin-bottom: 1rem; }
.industry-card-link { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(200,134,10,0.3); padding-bottom: 2px; }
.industry-card-link:hover { border-color: var(--gold); }

/* VULNERABILITY GRID (industry sub-pages) */
.vuln-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--border-gold); margin-top: 3rem; }
.vuln-item { padding: 2rem 2rem; border-right: 1px solid var(--border-gold); border-bottom: 1px solid var(--border-gold); }
.vuln-item:nth-child(2n) { border-right: none; }
.vuln-item:nth-last-child(-n+2) { border-bottom: none; }
.vuln-num { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; color: rgba(200,134,10,0.35); line-height: 1; margin-bottom: 0.75rem; }
.vuln-title { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream); margin-bottom: 0.4rem; }
.vuln-body { font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; font-weight: 300; line-height: 1.8; color: var(--cream-70); }

/* CASE STUDY HIGHLIGHT (state page class names) */
.case-highlight { background: var(--charcoal); border: 1px solid var(--border-gold); padding: 3rem; position: relative; margin-top: 3rem; }
.case-highlight::before { content: '\201C'; font-family: 'Playfair Display', serif; font-size: 8rem; line-height: 0.7; color: rgba(200,134,10,0.08); position: absolute; top: 1.5rem; left: 1.5rem; }
.case-highlight-eyebrow { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem; position: relative; z-index: 1; }
.case-highlight-title { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; position: relative; z-index: 1; }
.case-highlight-stat { font-family: 'Playfair Display', serif; font-size: 2.5rem; font-weight: 700; color: var(--gold); line-height: 1; margin-bottom: 0.75rem; position: relative; z-index: 1; }
.case-highlight-body { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; font-weight: 300; line-height: 1.8; color: var(--cream-75); position: relative; z-index: 1; }
.case-highlight-source { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--cream-40); margin-top: 1rem; position: relative; z-index: 1; }

/* CASE STUDY (industry sub-page class names) */
.case-eyebrow { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem; position: relative; z-index: 1; }
.case-stat { font-family: 'Playfair Display', serif; font-size: 2.8rem; font-weight: 700; color: var(--gold); line-height: 1; margin-bottom: 0.5rem; position: relative; z-index: 1; }
.case-title { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 600; margin-bottom: 0.75rem; position: relative; z-index: 1; }
.case-body { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; font-weight: 300; line-height: 1.8; color: var(--cream-75); position: relative; z-index: 1; margin-bottom: 1rem; }
.case-source { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--cream-40); position: relative; z-index: 1; }
.case-link { display: inline-block; margin-top: 1rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(200,134,10,0.3); padding-bottom: 2px; position: relative; z-index: 1; }
.case-link:hover { border-color: var(--gold); }

/* STAT BAND (industry sub-pages) */
.stat-band { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--leather); border-bottom: 1px solid var(--border-gold); }
.stat-band-item { padding: 2.25rem 2.5rem; border-right: 1px solid var(--border-gold); text-align: center; }
.stat-band-item:last-child { border-right: none; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 2.4rem; font-weight: 700; color: var(--gold); line-height: 1; display: block; margin-bottom: 0.4rem; }
.stat-label { font-size: 0.70rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--cream-50); line-height: 1.6; }

/* CTA BAND */
.cta-band { background: var(--gold); padding: 4rem 3.5rem; text-align: center; }
.cta-band-title { font-family: 'Playfair Display', serif; font-size: clamp(1.6rem, 2.5vw, 2.2rem); font-weight: 700; color: var(--black); margin-bottom: 0.75rem; }
.cta-band-sub { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; font-weight: 300; color: rgba(10,9,6,0.75); margin-bottom: 2rem; max-width: 550px; margin-left: auto; margin-right: auto; }
.btn-dark { display: inline-flex; align-items: center; gap: 0.6rem; background: var(--black); color: var(--gold); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; padding: 1rem 2.25rem; clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%); transition: background 0.2s; }
.btn-dark:hover { background: var(--leather); }
.btn-primary { display: inline-flex; align-items: center; gap: 0.6rem; background: var(--gold); color: var(--black); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; padding: 1rem 2.25rem; clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%); transition: background 0.2s; }
.btn-primary:hover { background: var(--gold-bright); }

/* CONSULT BAR */
.consult-bar { background: var(--gold); padding: 1.75rem 3.5rem; }
.consult-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; max-width: 1100px; margin: 0 auto; }
.consult-bar-label { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--black); margin-bottom: 0.2rem; }
.consult-bar-sub { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; font-weight: 300; color: rgba(10,9,6,0.82); }
.consult-bar .btn-primary { background: var(--black); color: var(--gold); flex-shrink: 0; }
.consult-bar .btn-primary:hover { background: var(--leather); }

/* FOOTER */
footer { background: var(--black); border-top: 1px solid var(--border-gold); padding: 3.5rem; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; align-items: start; }
.footer-logo { height: 52px; width: auto; display: block; margin-bottom: 1rem; filter: invert(1) brightness(0.9); }
.footer-tagline { font-size: 0.70rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream-42); }
.footer-secondary-tag { font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(200,134,10,0.48); margin-top: 0.25rem; }
.footer-col h4 { font-size: 0.70rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.25rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { font-size: 0.82rem; color: var(--cream-55); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-col p { font-size: 0.82rem; color: var(--cream-55); line-height: 1.9; }
.footer-bottom { grid-column: 1/-1; padding-top: 2rem; border-top: 1px solid rgba(200,134,10,0.1); display: flex; justify-content: space-between; align-items: center; }
.footer-social { display: flex; gap: 1rem; margin-top: 1.25rem; }
.footer-social a { color: var(--cream-45); transition: color 0.2s; }
.footer-social a:hover { color: var(--gold); }
.footer-bottom p { font-size: 0.70rem; letter-spacing: 0.08em; color: var(--cream-40); }

/* HAMBURGER */
.hamburger { display: none; }

/* FAQ Section */
.faq-section { background: var(--charcoal, #1e1608); border-bottom: 1px solid var(--border-gold); }
.faq-list { max-width: 680px; margin-top: 2.5rem; }
.faq-item { border-bottom: 1px solid rgba(200,134,10,0.12); padding: 1.75rem 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 600; color: var(--cream, #f5efe6); margin-bottom: 0.75rem; line-height: 1.4; }
.faq-a { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 300; line-height: 1.85; color: var(--cream-70, rgba(245,239,230,0.7)); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  nav { padding: 1rem 2rem; }
  .page-hero { padding: 7rem 2rem 3.5rem; }
  .section { padding: 4rem 2rem; }
  footer { padding: 2.5rem 2rem; grid-template-columns: 1fr 1fr; }
  .consult-bar { padding: 1.5rem 2rem; }
  .consult-bar-inner { flex-direction: column; text-align: center; gap: 1rem; }
}
@media (max-width: 768px) {
  nav { padding: 0.75rem 1.25rem; }
  .nav-links { display: none !important; flex-direction: column; position: fixed; top: 0; left: 0; right: 0; bottom: 0; width: 100vw; height: 100vh; background: rgba(10,9,6,0.98); backdrop-filter: blur(16px); z-index: 9000; justify-content: center; align-items: center; gap: 2.5rem; padding: 2rem; }
  .nav-links.open { display: flex !important; }
  .nav-links a { font-size: 1.25rem; color: var(--cream-85); }
  .nav-cta { display: none; }
  .theme-toggle { margin-left: auto; margin-right: 0.5rem; }
  html.light-mode .nav-links { background: rgba(245,239,230,0.98); }
  html.light-mode .nav-links a { color: rgba(26,22,18,0.85); }
  .hamburger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; z-index: 9500; padding: 8px; background: none; border: none; position: relative; }
  .hamburger span { display: block; width: 24px; height: 2px; background: var(--cream, #f5efe6); transition: transform 0.3s, opacity 0.3s; border-radius: 1px; }
  .hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
  .page-hero { padding: 6rem 1.25rem 2.5rem; }
  .page-hero h1 { font-size: clamp(1.8rem, 7vw, 2.8rem); }
  .state-hero h1 { font-size: clamp(2rem, 7vw, 3rem); }
  .page-hero-sub { font-size: 1rem; }
  .hero-map { position: relative; left: auto; top: auto; transform: none; width: 100%; height: 180px; opacity: 0.7; margin-top: 1.5rem; }
  .section { padding: 3.5rem 1.25rem; }
  .industry-grid { grid-template-columns: 1fr; }
  .industry-card { border-right: none; }
  .vuln-grid { grid-template-columns: 1fr; }
  .vuln-item { border-right: none; }
  .vuln-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--border-gold); }
  .vuln-item:last-child { border-bottom: none; }
  .stat-band { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; grid-template-columns: unset; }
  .stat-band::-webkit-scrollbar { display: none; }
  .stat-band .stat-band-item { scroll-snap-align: center; flex-shrink: 0; width: 72vw; min-width: 72vw; }
  .cta-band { padding: 3rem 1.25rem; }
  footer { grid-template-columns: 1fr !important; padding: 2rem 1.25rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; align-items: flex-start; }
  .consult-bar { padding: 1.25rem; }
  .btn-primary, .btn-dark { width: 100%; text-align: center; justify-content: center; }
  .case-highlight { padding: 2rem 1.25rem; }
}
