/* ============================================================
   Boutique Music Production Studio — Shared Styles
   Loaded by all 14 pages. Dark theme, gold (#d4a853) accent.
   ============================================================ */

/* ====== CSS CUSTOM PROPERTIES ====== */
:root {
  --bg: #08080d;
  --bg-card: #0e0e18;
  --bg-card-hover: #141422;
  --text: #e8e8ee;
  --text-muted: #9090a4;
  --accent: #d4a853;
  --accent-glow: rgba(212,168,83,0.12);
  --border: #1a1a2a;
  --border-light: #262638;
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1100px;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* ====== RESET & BASE ====== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-stack);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { text-decoration: underline; }

/* ====== TYPOGRAPHY ====== */
h1, h2, h3 { line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }

/* ====== LAYOUT ====== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
section { padding: 5rem 0; position: relative; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header p { color: var(--text-muted); max-width: 600px; margin: 0 auto; font-size: 0.95rem; }
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* ====== GRID SYSTEMS ====== */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }

/* ====== BUTTONS ====== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.75rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem; cursor: pointer;
  border: none; transition: all 0.2s ease; text-decoration: none;
}
.btn-primary { background: var(--accent); color: #08080d; }
.btn-primary:hover {
  background: #c49a3e; text-decoration: none;
  transform: translateY(-1px); box-shadow: 0 4px 20px rgba(212,168,83,0.3);
}
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border-light); }
.btn-outline:hover {
  border-color: var(--accent); color: var(--accent);
  text-decoration: none; transform: translateY(-1px);
}

/* ====== CARDS ====== */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.tag {
  display: inline-block;
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent); background: var(--accent-glow);
  padding: 0.25rem 0.6rem; border-radius: 4px;
  margin-bottom: 0.75rem;
}
.price { font-weight: 700; color: var(--accent); font-size: 1.05rem; }
.price-large { font-weight: 700; color: var(--accent); font-size: 1.5rem; }
.muted { color: var(--text-muted); }

/* ====== NAVIGATION ====== */
header { background: var(--bg); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--border); }
nav { position: relative; z-index: 50; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 0; }
.nav-brand { display: flex; align-items: center; }
.nav-brand img { display: block; height: 64px; width: auto; }
.nav-brand:hover { text-decoration: none; opacity: 0.85; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { color: var(--text); font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.dropdown { position: relative; }
.dropdown-toggle { cursor: pointer; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; padding-top: 0.75rem; min-width: 220px; }
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu-inner { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.5rem 0; }
.dropdown-menu-inner a { display: block; padding: 0.6rem 1.25rem; font-size: 0.9rem; white-space: nowrap; }
.dropdown-menu-inner a:hover { background: var(--bg-card-hover); text-decoration: none; }
.nav-cta .btn { padding: 0.65rem 1.35rem; font-size: 0.9rem; }

/* Language Switcher */
.nav-lang { margin-left: 0.5rem; }
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid var(--accent);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em;
  color: var(--accent); text-decoration: none;
  background: rgba(212,168,83,0.08);
  transition: all 0.2s ease;
}
.lang-switch:hover {
  background: var(--accent); color: #08080d;
  text-decoration: none; transform: translateY(-1px);
  box-shadow: 0 2px 12px rgba(212,168,83,0.3);
}
.mobile-lang { padding-top: 0.75rem; border-top: 1px solid var(--border); }
.mobile-lang .lang-switch { width: 100%; height: auto; border-radius: var(--radius); padding: 0.6rem 1rem; font-size: 0.85rem; letter-spacing: 0.05em; }

/* ====== HAMBURGER MENU (mobile toggle) ====== */
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; width: 28px; }
.hamburger span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s ease; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-menu { display: none; position: fixed; inset: 0; top: 60px; background: var(--bg); z-index: 99; flex-direction: column; padding: 2rem 1.5rem; gap: 1.25rem; overflow-y: auto; }
.mobile-menu.active { display: flex; }
.mobile-menu a { color: var(--text); font-size: 1rem; font-weight: 500; }
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu .mobile-services-section { margin-bottom: 0.25rem; }
.mobile-menu .mobile-services-heading {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--accent);
  margin-bottom: 0.75rem;
}
.mobile-menu .mobile-services-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
}
.mobile-menu .mobile-services-grid a {
  display: block; padding: 0.55rem 0.7rem; border-radius: 6px;
  border: 1px solid var(--border); font-size: 0.82rem; font-weight: 500;
  color: var(--text); transition: all 0.2s ease;
}
.mobile-menu .mobile-services-grid a:hover {
  border-color: var(--accent); color: var(--accent);
  background: rgba(212,168,83,0.06); text-decoration: none;
}
.mobile-menu .mobile-divider {
  height: 1px; background: var(--border); margin: 0.25rem 0;
}

/* ====== HERO (shared) ====== */
.hero { position: relative; min-height: 60vh; display: flex; align-items: center; padding: 6rem 0 4rem; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(212,168,83,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgba(100,100,180,0.04) 0%, transparent 50%);
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero-content h1 { margin-bottom: 1rem; }
.hero-content .hero-highlight { color: var(--accent); }
.hero-content .subhead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted); margin-bottom: 2rem; max-width: 560px; line-height: 1.65;
}
.hero-cta-group { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 3rem; flex-wrap: wrap; }
.hero-stat .stat-num { font-size: 1.6rem; font-weight: 800; color: var(--accent); letter-spacing: -0.02em; }
.hero-stat .stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* Hero background layers */
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 25% 35%, rgba(212,168,83,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 60% 80% at 75% 55%, rgba(120,100,200,0.05) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 50% 80%, rgba(180,140,80,0.04) 0%, transparent 50%);
}
.hero-grid { position: absolute; inset: 0; pointer-events: none; opacity: 0.03; }
.hero-grid::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.3) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-waveform {
  position: absolute; bottom: 0; left: 0; right: 0; height: 120px; pointer-events: none; opacity: 0.06;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C100,10 200,110 300,60 C400,10 500,110 600,60 C700,10 800,110 900,60 C1000,10 1100,110 1200,60 L1200,120 L0,120 Z' fill='%23d4a853'/%3E%3C/svg%3E") repeat-x bottom;
  background-size: 1200px 120px;
}

/* ====== HOMEPAGE HERO VARIANT ====== */
.hero-home {
  min-height: 85vh; padding: 7rem 0 5rem;
  background: url('/images/hero-bg.jpg') center/cover no-repeat;
}
.hero-home .hero-bg {
  background:
    linear-gradient(180deg, rgba(8,8,13,0.7) 0%, rgba(8,8,13,0.4) 50%, rgba(8,8,13,0.6) 100%),
    radial-gradient(ellipse 80% 60% at 25% 35%, rgba(212,168,83,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 60% 80% at 75% 55%, rgba(120,100,200,0.05) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 50% 80%, rgba(180,140,80,0.04) 0%, transparent 50%);
}
.hero-home .hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.008) 2px, rgba(255,255,255,0.008) 4px);
}

/* ====== SERVICE PAGE HERO VARIANT ====== */
.hero-service {
  min-height: 70vh; padding: 6rem 0 4rem;
}
.hero-service .hero-bg {
  background:
    linear-gradient(180deg, rgba(8,8,13,0.85) 0%, rgba(8,8,13,0.5) 40%, rgba(8,8,13,0.55) 70%, rgba(8,8,13,0.8) 100%),
    radial-gradient(ellipse at 25% 30%, rgba(212,168,83,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 60%, rgba(120,80,180,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(30,20,60,0.12) 0%, transparent 40%);
}
.hero-service .hero-content h1 { color: #ffffff; }
.hero-service .hero-content .subhead { color: rgba(255,255,255,0.9); }
.hero-service .section-label { color: #d4a853; }

/* Dark backdrop card behind hero text for readability */
.hero-service .hero-content {
  background: rgba(8,8,13,0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 2rem 2.25rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 8px 40px rgba(0,0,0,0.35);
}

/* ====== SERVICE CARDS ====== */
.svc-icon { width: 40px; height: 40px; margin-bottom: 1rem; }
.svc-card { display: flex; flex-direction: column; text-decoration: none !important; color: inherit !important; }
.svc-card p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0.5rem; flex: 1; line-height: 1.55; }
.svc-card h3 { font-size: 1rem; }
.svc-card .price-row { margin-top: auto; padding-top: 0.75rem; border-top: 1px solid var(--border); }
.svc-card:hover .price-row { border-top-color: var(--accent); }

/* ====== PORTFOLIO CARDS ====== */
.portfolio-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: border-color 0.2s, transform 0.2s; }
.portfolio-card:hover { border-color: var(--border-light); transform: translateY(-4px); }
.portfolio-thumb {
  height: 200px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.thumb-gradient-1 { background: linear-gradient(135deg, #1a1040 0%, #0d1a30 30%, #1a0a20 60%, #0a1a2a 100%); }
.thumb-gradient-2 { background: linear-gradient(135deg, #2a1520 0%, #1a1035 30%, #0a2030 60%, #151025 100%); }
.thumb-gradient-3 { background: linear-gradient(135deg, #0a1628 0%, #1a1a3e 25%, #2d1b69 50%, #6c5ce7 100%); }
.thumb-gradient-4 { background: linear-gradient(135deg, #1a0a1a 0%, #2d0a2d 25%, #4a0e4a 50%, #e91e8c 100%); }
.thumb-gradient-5 { background: linear-gradient(135deg, #1a1a0a 0%, #2d2d1a 25%, #5c4a2e 50%, #c4783d 100%); }
.thumb-gradient-6 { background: linear-gradient(135deg, #0a1a0a 0%, #1a2d1a 25%, #2e4a2e 50%, #6ab04c 100%); }
.thumb-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(212,168,83,0.12) 0%, transparent 70%);
  display: flex; align-items: center; justify-content: center;
}
.thumb-circle {
  width: 70px; height: 70px; border-radius: 50%;
  background: rgba(212,168,83,0.15); border: 2px solid rgba(212,168,83,0.3);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.thumb-circle svg { width: 24px; height: 24px; opacity: 0.7; }
.thumb-label {
  position: absolute; bottom: 0.75rem; left: 0.75rem;
  font-size: 0.65rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.5); padding: 0.25rem 0.6rem; border-radius: 3px;
}
.portfolio-info { padding: 1.5rem; }
.portfolio-info h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.portfolio-info p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.55; }

/* ====== PORTFOLIO PAGE VARIANT (top-positioned thumbs) ====== */
.portfolio-card-top { padding-top: 0; }
.portfolio-card-top .portfolio-thumb {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin: -1.75rem -1.75rem 1.25rem -1.75rem;
  height: 160px;
}
.portfolio-card-top .thumb-overlay {
  background: rgba(0,0,0,0.3); opacity: 0; transition: opacity 0.3s;
}
.portfolio-card-top .portfolio-thumb:hover .thumb-overlay { opacity: 1; }
.portfolio-card-top .thumb-circle {
  width: 48px; height: 48px;
  background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.2);
  transition: transform 0.2s;
}
.portfolio-card-top .thumb-circle svg { width: 18px; height: 18px; }
.portfolio-card-top .portfolio-thumb:hover .thumb-circle { transform: scale(1.08); }

/* ====== PROCESS STEPS ====== */
.process-step {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem 1.5rem;
  position: relative; text-align: center;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.process-step:hover { border-color: var(--border-light); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.4); }
.process-step .step-num {
  font-size: 3rem; font-weight: 800; color: var(--accent); opacity: 0.15;
  line-height: 1; margin-bottom: 0.75rem; letter-spacing: -0.03em;
}
.process-step h3 { font-size: 0.95rem; margin-bottom: 0.5rem; }
.process-step p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.55; }

/* ====== ASYNC SECTION ====== */
.async-section {
  background: var(--bg-card) url('/images/sections/studio-environment.jpg') center/cover no-repeat;
  background-blend-mode: overlay; position: relative;
}
.async-section::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,168,83,0.15), transparent);
}
.async-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.async-item { text-align: center; padding: 1.5rem; }
.async-item .async-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent-glow); border: 1px solid rgba(212,168,83,0.15);
  margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.async-item h3 { font-size: 0.95rem; }
.async-item p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.55; }
.async-explain-box {
  background: var(--bg-card); border: 1px solid var(--accent-glow);
  border-radius: var(--radius-lg); padding: 2rem; position: relative; overflow: hidden;
}
.async-explain-box::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent); opacity: 0.3;
}
.async-explain-box h3 { color: var(--accent); margin-bottom: 0.75rem; }

/* ====== WAVE DIVIDERS ====== */
.wave-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light) 20%, var(--border-light) 80%, transparent);
  margin: 0 auto; max-width: 800px;
}
.wave-divider.accent {
  background: linear-gradient(90deg, transparent, rgba(212,168,83,0.2) 30%, rgba(212,168,83,0.4) 50%, rgba(212,168,83,0.2) 70%, transparent);
}

/* ====== CTA BANNER ====== */
.cta-banner {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 3.5rem 2rem; text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(212,168,83,0.06) 0%, transparent 70%);
}
.cta-banner h2 { margin-bottom: 0.75rem; position: relative; z-index: 1; }
.cta-banner p { color: var(--text-muted); margin-bottom: 1.5rem; max-width: 480px; margin-left: auto; margin-right: auto; position: relative; z-index: 1; }
.cta-banner .btn,
.cta-banner .section-label,
.cta-banner a { position: relative; z-index: 1; }

/* ====== TABLES ====== */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 640px; }
th {
  text-align: left; padding: 0.85rem 1rem;
  background: var(--bg-card); border-bottom: 2px solid var(--border-light);
  font-weight: 700; font-size: 0.82rem; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-muted);
}
td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:nth-child(even) td { background: rgba(255,255,255,0.012); }
tr:hover td { background: rgba(255,255,255,0.025); }
td:first-child a { font-weight: 600; }

/* ====== FAQ ITEMS ====== */
.faq-item { border-bottom: 1px solid var(--border); padding: 1.25rem 0; }
.faq-item h3 { font-size: 0.98rem; margin-bottom: 0.5rem; }
.faq-item p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; }

/* ====== RULE BOXES ====== */
.rule-box {
  background: var(--bg-card); border: 1px solid var(--accent-glow);
  border-radius: var(--radius-lg); padding: 2rem; margin: 2rem 0;
  border-left: 3px solid var(--accent);
}
.rule-box h3 { color: var(--accent); margin-bottom: 0.75rem; }
.rule-box ul { list-style: none; padding: 0; }
.rule-box li { padding: 0.4rem 0; color: var(--text-muted); font-size: 0.92rem; }
.rule-box li::before { content: "\2192 "; color: var(--accent); }

/* ====== FORM ELEMENTS ====== */
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group label {
  font-size: 0.82rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.7rem 0.85rem;
  color: var(--text); font-size: 0.92rem; font-family: var(--font-stack);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 100px; }

/* ====== CONTACT MODAL ====== */
.contact-overlay {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(8,8,13,0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
  padding: 1.5rem;
}
.contact-overlay.active { display: flex; }

.contact-modal {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2.5rem;
  max-width: 560px; width: 100%; max-height: 90vh;
  overflow-y: auto; position: relative;
  animation: modalIn 0.25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.contact-modal-close {
  position: absolute; top: 1rem; right: 1.25rem;
  background: none; border: none; color: var(--text-muted);
  font-size: 1.5rem; cursor: pointer; line-height: 1;
  padding: 0.25rem;
}
.contact-modal-close:hover { color: var(--text); }

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-form h2 { margin-bottom: 0.25rem; }
.contact-form .subhead { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.5rem; }
.contact-form .btn { width: 100%; justify-content: center; padding: 0.85rem 1.5rem; font-size: 0.95rem; }
.contact-form .form-note { font-size: 0.75rem; color: var(--text-muted); text-align: center; margin-top: -0.25rem; }

/* ====== CLIENT TYPE TOGGLE ====== */
.client-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.client-option {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.9rem 1rem;
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.client-option:hover { border-color: var(--border-light); }
.client-option.active { border-color: var(--accent); background: rgba(212,168,83,0.06); }
.client-option input { display: none; }
.client-option-icon { flex-shrink: 0; width: 28px; height: 28px; color: var(--text-muted); }
.client-option.active .client-option-icon { color: var(--accent); }
.client-option-icon svg { width: 24px; height: 24px; }
.client-option-text { display: flex; flex-direction: column; }
.client-option-text strong { font-size: 0.85rem; color: var(--text); }
.client-option.active .client-option-text strong { color: #fff; }
.client-option-text small { font-size: 0.72rem; color: var(--text-muted); margin-top: 1px; }

@media (max-width: 640px) {
  .client-toggle { grid-template-columns: 1fr; }
  .contact-modal { padding: 1.75rem; }
}

/* ====== CROSS-SELL LINKS ====== */
.cross-sell { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.cross-sell a {
  display: inline-block; padding: 0.6rem 1.25rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 0.88rem;
}
.cross-sell a:hover { border-color: var(--accent); text-decoration: none; }

.cross-sell-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.cross-sell-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem; text-align: center;
  transition: border-color 0.2s;
}
.cross-sell-card:hover { border-color: var(--accent); }
.cross-sell-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.cross-sell-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.25rem; }

/* FAQ list container */
.faq-list { max-width: 720px; margin: 0 auto; }

/* ====== AUDIO PLAYER ====== */
.audio-player {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: 1rem;
  margin: 1.5rem 0;
}
.audio-player audio { flex: 1; min-width: 0; }
.audio-label {
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-muted);
}

/* ====== AUDIO COMPARE (Before/After Comparison) ====== */
.audio-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin: 1.5rem 0; }
.audio-compare-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; }
.audio-compare-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.audio-compare-label.before { color: #ff5c3a; }
.audio-compare-label.after { color: var(--accent); }
.audio-compare audio { width: 100%; margin-top: 0.5rem; }
.audio-compare audio::-webkit-media-controls-panel { background: var(--bg-card-hover); }
.audio-compare audio::-webkit-media-controls-current-time-display,
.audio-compare audio::-webkit-media-controls-time-remaining-display { color: var(--text-muted); }

@media (max-width: 600px) {
  .audio-compare { grid-template-columns: 1fr; }
}

/* ====== BREADCRUMB ====== */
.breadcrumb { font-size: 0.82rem; color: var(--text-muted); padding: 1rem 0 0; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }

/* ====== TIER CARDS ====== */
.tier-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; }
.tier-card.featured { border-color: var(--accent); box-shadow: 0 0 30px var(--accent-glow); }
.tier-card .tier-name { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.25rem; }
.tier-card .tier-price { font-size: 1.5rem; font-weight: 800; color: var(--accent); margin-bottom: 1rem; }
.tier-card ul { list-style: none; padding: 0; font-size: 0.9rem; color: var(--text-muted); }
.tier-card li { padding: 0.35rem 0; }
.tier-card li::before { content: "\2713 "; color: var(--accent); font-weight: 700; }

/* ====== CONTENT PROSE ====== */
.prose { max-width: 720px; }
.prose p { color: var(--text-muted); margin-bottom: 1rem; font-size: 0.95rem; line-height: 1.75; }
.prose ul { color: var(--text-muted); margin-bottom: 1.5rem; padding-left: 1.25rem; font-size: 0.92rem; }
.prose li { margin-bottom: 0.5rem; }
.prose strong { color: var(--text); }

/* ====== ADD-ONS ====== */
.addons-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.addon-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; text-align: center; }
.addon-item .addon-name { font-weight: 600; font-size: 0.92rem; margin-bottom: 0.25rem; }
.addon-item .addon-price { color: var(--accent); font-size: 0.88rem; }

/* ====== REQUIREMENTS ====== */
.req-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.req-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; }
.req-card .req-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.req-card h3 { font-size: 1rem; }
.req-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* ====== FOOTER ====== */
footer {
  border-top: 1px solid var(--border); padding: 3rem 0 2rem;
  color: var(--text-muted); font-size: 0.85rem; text-align: center;
}
footer .footer-links { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
footer .footer-links a { color: var(--text-muted); }
footer .footer-links a:hover { color: var(--accent); }

/* ====== MOBILE CTA BAR ====== */
.mobile-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  padding: 0.75rem 1rem; background: var(--bg-card);
  border-top: 1px solid var(--border); z-index: 100; backdrop-filter: blur(10px);
}
.mobile-cta .btn { width: 100%; justify-content: center; }

/* ====== BACK TO TOP ====== */
.back-to-top {
  display: flex; align-items: center; justify-content: center;
  position: fixed; bottom: 2rem; right: 2rem; z-index: 99;
  width: 44px; height: 44px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 50%; color: var(--accent);
  cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.2s, border-color 0.2s;
  transform: translateY(8px);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { border-color: var(--accent); transform: translateY(-2px); }
.back-to-top svg { width: 20px; height: 20px; }
@media (max-width: 768px) {
  .back-to-top { bottom: 5rem; right: 1rem; width: 40px; height: 40px; }
}

/* ====== ARTICLE LAYOUT (Resources) ====== */
.article-layout { display: grid; grid-template-columns: 1fr 280px; gap: 3rem; max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; align-items: start; }
.article-body { min-width: 0; }
.article-sidebar { position: sticky; top: 100px; }

/* Table of Contents */
.toc { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.5rem; }
.toc-title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 0.75rem; }
.toc a { display: block; padding: 0.35rem 0; font-size: 0.85rem; color: var(--text-muted); border-left: 2px solid transparent; padding-left: 0.75rem; transition: color 0.15s, border-color 0.15s; }
.toc a:hover { color: var(--text); text-decoration: none; }
.toc a.active { color: var(--accent); border-left-color: var(--accent); }

/* Related articles sidebar widget */
.sidebar-related { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.5rem; }
.sidebar-related .sidebar-title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 0.75rem; }
.sidebar-related a { display: block; font-size: 0.84rem; padding: 0.3rem 0; color: var(--text); }
.sidebar-related a:hover { color: var(--accent); text-decoration: none; }
.sidebar-cta { background: var(--bg-card); border: 1px solid var(--accent-glow); border-radius: var(--radius); padding: 1.25rem; text-align: center; }
.sidebar-cta p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.sidebar-cta .btn { width: 100%; justify-content: center; font-size: 0.82rem; padding: 0.6rem 1rem; }

/* Callout boxes in article prose */
.callout {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 1.5rem;
  margin: 1.5rem 0; border-left: 3px solid var(--accent);
}
.callout-title { font-weight: 700; font-size: 0.85rem; color: var(--accent); margin-bottom: 0.35rem; text-transform: uppercase; letter-spacing: 0.05em; }
.callout p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* Checklist in article prose */
.checklist { list-style: none; padding: 0; margin: 1.25rem 0; }
.checklist li { padding: 0.5rem 0 0.5rem 1.75rem; position: relative; font-size: 0.93rem; color: var(--text-muted); }
.checklist li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* Article header image */
.article-hero-img { width: 100%; height: auto; border-radius: var(--radius-lg); margin-bottom: 2rem; border: 1px solid var(--border); }
.article-meta { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 2rem; display: flex; gap: 1.5rem; }
.article-meta span { display: flex; align-items: center; gap: 0.35rem; }

/* Article prose refinements */
.article-body h2 { font-size: 1.4rem; margin-top: 2.5rem; margin-bottom: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.article-body h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.article-body h3 { font-size: 1.1rem; margin-top: 1.75rem; margin-bottom: 0.75rem; }
.article-body p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.78; margin-bottom: 1.15rem; }
.article-body ul, .article-body ol { color: var(--text-muted); font-size: 0.93rem; line-height: 1.7; margin-bottom: 1.15rem; padding-left: 1.5rem; }
.article-body li { margin-bottom: 0.4rem; }
.article-body strong { color: var(--text); }

/* Video embed wrapper (responsive 16:9) */
.video-embed { position: relative; padding-bottom: 56.25%; height: 0; margin: 1.5rem 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Resource card grid (listing page) */
.resource-card { display: flex; flex-direction: column; text-decoration: none !important; color: inherit !important; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.resource-card:hover { border-color: var(--border-light); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.4); }
.resource-card-img { width: 100%; height: 160px; object-fit: cover; background: var(--bg-card-hover); border-bottom: 1px solid var(--border); }
.resource-card-body { padding: 1.25rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.resource-card-body h3 { font-size: 1rem; margin-bottom: 0.5rem; color: var(--text); }
.resource-card-body p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.55; flex: 1; margin-bottom: 0.75rem; }
.resource-card-body .read-more { font-size: 0.82rem; font-weight: 600; color: var(--accent); }

@media (max-width: 860px) {
  .article-layout { grid-template-columns: 1fr; gap: 2rem; }
  .article-sidebar { position: static; }
}

/* ====== IMAGE PLACEHOLDER ====== */
.img-placeholder { position: relative; overflow: hidden; }
.img-placeholder::after {
  content: attr(data-prompt-hint);
  position: absolute; bottom: 0.6rem; right: 0.6rem;
  font-size: 0.6rem; color: rgba(255,255,255,0.3);
  text-transform: uppercase; letter-spacing: 0.06em;
  background: rgba(0,0,0,0.6); padding: 0.2rem 0.5rem; border-radius: 3px;
  pointer-events: none;
}

/* ====== AMBIENT DOTS ====== */
.ambient-dots { position: absolute; pointer-events: none; }
.ambient-dots span {
  display: inline-block; width: 3px; height: 3px; border-radius: 50%;
  background: var(--accent); opacity: 0; margin: 8px;
  animation: dotPulse 3s ease-in-out infinite;
}
.ambient-dots span:nth-child(odd) { animation-delay: 1.5s; }
@keyframes dotPulse {
  0%, 100% { opacity: 0.05; }
  50% { opacity: 0.25; }
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  section { padding: 3rem 0; }
  .mobile-cta { display: block; }
  body { padding-bottom: 70px; }
  .grid-2, .grid-3, .grid-4, .cross-sell-grid { grid-template-columns: 1fr; }

  .hero { min-height: auto; padding: 4rem 0 3rem; }
  .hero-home { min-height: auto; padding: 5rem 0 3rem; }
  .hero-service { min-height: auto; padding: 4rem 0 3rem; }
  .hero-stats { gap: 1.5rem; margin-top: 2rem; }
  .hero-stat .stat-num { font-size: 1.3rem; }

  .nav-links { gap: 1rem; display: none; }
  .dropdown-menu { left: auto; right: 0; }
  .hamburger { display: flex; }

  .portfolio-thumb { height: 120px !important; }
  .process-step { padding: 1.5rem 1rem; }
  .process-step .step-num { font-size: 2.5rem; }

  .cta-banner { padding: 2.5rem 1.25rem; }
  .async-grid { grid-template-columns: 1fr; }
  .addons-grid { grid-template-columns: 1fr 1fr; }
  .req-grid { grid-template-columns: 1fr; }

  .table-wrap { margin: 0 -1rem; }
  th, td { padding: 0.65rem 0.75rem; font-size: 0.82rem; }
}
