/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  --accent:       #f59e0b;
  --accent-hover: #fbbf24;
  --red:          #b91c1c;
  --red-hover:    #991b1b;
  --primary:      #111827;
  --secondary:    #1f2937;
  --text:         #f3f4f6;
  --text-muted:   #9ca3af;
  --white:        #ffffff;

  /* kept for backward-compat references in header/footer/nav */
  --dark:         #111827;
  --darker:       #030712;
  --gray-50:      #f9fafb;
  --gray-100:     #f3f4f6;
  --gray-200:     #e5e7eb;
  --gray-300:     #d1d5db;
  --gray-400:     #9ca3af;
  --gray-600:     #4b5563;
  --gray-700:     #374151;
  --gray-800:     #1f2937;
  --gray-900:     #111827;
  --gray-950:     #030712;

  --header-bg: url('https://pbrlhyansxjdndccwtau.supabase.co/storage/v1/object/public/media-public/200da31d-9308-4ab2-9f68-4f802bc2ffce/root/1777045201697_header-background-1.png');
  --logo-url:  url('https://pbrlhyansxjdndccwtau.supabase.co/storage/v1/object/public/media-public/200da31d-9308-4ab2-9f68-4f802bc2ffce/root/1775499631401_space-coast-camera-logo.jpg');
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--primary);
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

.text-center { text-align: center; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.25; }
h3 { font-size: 1.25rem; font-weight: 700; }
p  { font-size: 1rem; line-height: 1.75; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: block;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: 0.375rem;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-size: 0.95rem;
  white-space: nowrap;
  text-align: center;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}
.btn-primary  { background: var(--accent); color: #000; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn-secondary { background: transparent; color: var(--text); border-color: var(--text-muted); }
.btn-secondary:hover { background: var(--secondary); border-color: var(--text); }

.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.1); }

.btn-dark { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-dark:hover { background: var(--red-hover); border-color: var(--red-hover); }

.btn-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.btn-group .btn {
  width: 100%;
  max-width: 340px;
}

/* ============================================================
   PROMO BANNER
   ============================================================ */
.promo-banner {
  background: #cc0000;
  border-top: 8px solid #003087;
  border-bottom: 8px solid #003087;
  padding: 1.25rem 1.5rem;
  text-align: center;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.promo-banner .pct {
  color: #ffd700;
  font-size: 2.4rem;
  font-style: italic;
  font-weight: 900;
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
  margin: 0 0.25rem;
}

/* ============================================================
   HEADER
   ============================================================ */
header {
  background-image:
    linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75)),
    var(--header-bg);
  background-size: cover;
  background-position: center;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

.header-logo { height: 200px; width: auto; object-fit: contain; }

/* Desktop nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.main-nav > a,
.dropdown-btn {
  color: var(--white);
  font-weight: 500;
  font-size: 20px;
  white-space: nowrap;
  transition: color 0.2s;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav > a:hover,
.dropdown-btn:hover { color: var(--accent); }

/* Areas dropdown */
.dropdown { position: relative; }

.chevron { font-size: 0.7rem; transition: transform 0.2s; display: inline-block; }
.dropdown.open .chevron { transform: rotate(180deg); }

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--secondary);
  border: 1px solid var(--gray-700);
  border-radius: 0.5rem;
  min-width: 220px;
  padding: 0.5rem 0;
  padding-top: 1rem;
  max-height: 320px;
  overflow-y: auto;
  z-index: 200;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.dropdown.open .dropdown-menu,
.dropdown:hover .dropdown-menu { display: block; }

.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--gray-200);
  font-size: 1rem;
  transition: color 0.15s, background 0.15s;
}
.dropdown-menu a:hover { color: var(--accent); background: var(--primary); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.25rem;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  background: var(--darker);
  border-top: 1px solid var(--gray-700);
}
.mobile-nav.open { display: block; }

.mobile-nav a,
.mobile-nav-areas-btn {
  display: block;
  padding: 0.85rem 1.5rem;
  color: var(--white);
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.15s, background 0.15s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.mobile-nav a:hover,
.mobile-nav-areas-btn:hover { color: var(--accent); background: var(--secondary); }

.mobile-nav-areas-btn { display: flex; justify-content: space-between; align-items: center; }

.mobile-areas-list { display: none; background: var(--primary); border-top: 1px solid var(--gray-700); border-bottom: 1px solid var(--gray-700); }
.mobile-areas-list.open { display: block; }
.mobile-areas-list a { padding-left: 2.5rem; font-size: 1rem; color: var(--gray-300); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background-image:
    linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)),
    var(--header-bg);
  background-size: cover;
  background-position: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 5rem 1.5rem;
}
.hero-inner { max-width: 820px; margin: 0 auto; }
.hero h1 { margin-bottom: 1.5rem; }
.hero p   { color: var(--gray-200); font-size: 1.1rem; margin-bottom: 2rem; }

/* Mini hero (blog, etc.) */
.hero-mini {
  min-height: 35vh;
  padding: 4rem 1.5rem;
}
.hero-mini h1 { margin-bottom: 0.75rem; }
.hero-mini p  { font-size: 1rem; }

/* ============================================================
   SECTIONS — BACKGROUNDS
   ============================================================ */
.bg-white {
  background: #ffffff;
  color: #111827;
  --text: #111827;
  --text-muted: #4b5563;
}
.bg-light {
  background: #395DB8;
  color: #ffffff;
  --text: #ffffff;
  --text-muted: #93c5fd;
}
.bg-cream {
  background: #F4F1EB;
  color: #111827;
  --text: #111827;
  --text-muted: #4b5563;
}
.bg-dark    { background: var(--primary); color: var(--text); }
.bg-darker  { background: var(--darker); color: var(--text); }
.bg-accent  { background: var(--accent); }

.bg-white .btn-outline { color: #111827; border-color: #111827; }
.bg-white .btn-outline:hover { background: rgba(0,0,0,0.06); }

/* ============================================================
   FEATURED PRODUCTS
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}
.product-card {
  background: var(--secondary);
  border-radius: 0.5rem;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: background 0.2s;
  color: var(--text);
}
.product-card:hover { background: var(--gray-700); }
.product-card svg  { color: var(--accent); }
.product-card span { font-weight: 600; font-size: 1rem; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}
.step-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.step-circle svg { color: #000; }
.step-num { font-size: 3.5rem; font-weight: 800; color: var(--accent); line-height: 1; }
.step-label { font-size: 1.2rem; font-weight: 700; color: var(--text); margin-top: -0.5rem; }

/* ============================================================
   SERVICE CARDS (What We Do / Why Us)
   ============================================================ */
.icon-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.icon-card {
  background: var(--secondary);
  color: var(--text);
  border-radius: 0.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}
.icon-card svg { color: var(--accent); }
.icon-card span { font-weight: 600; }

/* ============================================================
   TWO-COLUMN LAYOUTS
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.two-col-top { align-items: start; }
.two-col img {
  width: 100%;
  border-radius: 0.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  object-fit: cover;
}
.two-col-image {
  align-self: stretch;
  position: relative;
  overflow: hidden;
}
.two-col-image img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: auto;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-wrap { max-width: 900px; margin: 0 auto; }
.testimonials-wrap h2 { margin-bottom: 2rem; }
.testimonials-wrap iframe { width: 100%; min-height: 400px; border: none; display: block; }
.testimonials-wrap .btn-group { margin-top: 2rem; }

/* ============================================================
   TRUSTED BY
   ============================================================ */
.trusted-by-bg {
  background-image: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), url('https://pbrlhyansxjdndccwtau.supabase.co/storage/v1/object/public/media-public/200da31d-9308-4ab2-9f68-4f802bc2ffce/root/1777157944180_trusted-by-background.png');
  background-size: cover;
  background-position: center;
  color: var(--white);
}
.trusted-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 500px;
  margin: 0 auto 2.5rem;
}
.stat-num  { font-size: 3.5rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-label { font-size: 1.1rem; color: var(--gray-300); margin-top: 0.25rem; }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-list { max-width: 750px; margin: 0 auto 2.5rem; }
.faq-item { border: 1px solid var(--gray-700); border-radius: 0.5rem; margin-bottom: 0.5rem; background: var(--secondary); overflow: hidden; }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  background: none;
  border: none;
  text-align: left;
  gap: 1rem;
  transition: background 0.15s;
}
.faq-question:hover { background: var(--primary); }
.faq-icon { color: var(--accent); font-size: 1.25rem; flex-shrink: 0; transition: transform 0.2s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 1.25rem 1rem; color: var(--text-muted); border-top: 1px solid var(--gray-700); padding-top: 0.75rem; line-height: 1.75; }
.faq-item.open .faq-answer { display: block; }

/* ============================================================
   CTA STRIP
   ============================================================ */
.cta-strip { padding: 3rem 1.5rem; text-align: center; background: var(--secondary); }
.cta-strip.accent-bg { background: var(--accent); }
.cta-strip.dark-bg   { background: var(--primary); }

/* ============================================================
   SERVICE SECTIONS (Services page)
   ============================================================ */
.service-section { padding: 4rem 0; }
.service-section .two-col { gap: 3rem; }
.service-img-placeholder {
  background: var(--secondary);
  border-radius: 0.5rem;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
}
.service-text h2 { margin-bottom: 1rem; }
.service-text p  { color: var(--text-muted); margin-bottom: 1.5rem; white-space: pre-line; }

/* ============================================================
   BLURB BOX (area pages)
   ============================================================ */
.blurb-box {
  background: var(--secondary);
  color: var(--text);
  border-radius: 0.5rem;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  min-height: 320px;
}
.blurb-box h2 { margin-bottom: 1rem; }
.blurb-box p  { color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.75; }

/* ============================================================
   LOCATION BOX (area pages)
   ============================================================ */
.location-grid {
  display: block;
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}
.location-grid h3 { margin-bottom: 0.5rem; font-size: 1rem; }
.location-grid p  { color: var(--text-muted); font-size: 1rem; line-height: 1.7; }
.location-grid a  { color: var(--accent); font-weight: 600; }
.location-grid a:hover { color: var(--accent-hover); }

.location-info {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 1rem;
  text-align: center;
}
.location-detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.location-detail p { margin: 0; }
.location-map {
  margin-top: 2rem;
}

/* ============================================================
   CONTACT / SOCIAL
   ============================================================ */
.social-list { display: flex; flex-direction: column; gap: 1rem; }
.social-list a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
}
.social-list a:hover { color: var(--accent); }
.social-list svg { flex-shrink: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--darker); color: var(--gray-300); }

.footer-top-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  padding: 4rem 1.5rem;
  align-items: center;
  text-align: center;
}

.footer-logo-col {
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-logo-img { height: 250px; width: auto; object-fit: contain; }

.footer-col h3 { color: var(--text); margin-bottom: 1.25rem; font-size: 1rem; }

.footer-contact-list { display: flex; flex-direction: column; gap: 0.35rem; font-size: 1rem; align-items: center; }
.footer-contact-list .label { color: var(--gray-400); }
.footer-contact-list .mt   { margin-top: 0.75rem; }
.footer-contact-list a { color: var(--accent); transition: color 0.2s; }
.footer-contact-list a:hover { color: var(--accent-hover); }

.footer-social-list { display: flex; flex-direction: column; gap: 0.85rem; align-items: center; }
.footer-social-list a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-300);
  transition: color 0.2s;
}
.footer-social-list a:hover { color: var(--accent); }

.footer-legal { border-top: 1px solid var(--gray-700); }
.footer-legal-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 1.25rem 1.5rem;
  gap: 1rem;
}
.footer-legal-inner a { font-size: 1rem; color: var(--gray-400); transition: color 0.2s; }
.footer-legal-inner a:hover { color: var(--accent); }
.footer-legal-inner a:last-child { text-align: right; }

.footer-bottom { border-top: 1px solid var(--gray-700); text-align: center; padding: 1.25rem 1.5rem; }
.footer-bottom p { font-size: 0.75rem; color: var(--text-muted); line-height: 1.8; }
.footer-bottom a { color: var(--gray-400); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--accent); }

/* ============================================================
   POPUP MODAL
   ============================================================ */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.popup-overlay.hidden { display: none; }

.popup-box {
  background: var(--secondary);
  border-radius: 0.75rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  max-width: 520px;
  width: 100%;
  padding: 2.5rem;
  position: relative;
  text-align: center;
  color: var(--text);
}
.popup-box h2 { margin-bottom: 1.25rem; font-size: 1.6rem; }
.popup-box p  { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.75; }
.popup-box p:last-of-type { margin-bottom: 1.75rem; }
.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  line-height: 1;
  transition: color 0.2s;
}
.popup-close:hover { color: var(--text); }

/* ============================================================
   LAWYER + CAMERA SECTION
   ============================================================ */
.lawyer-container { width: min-content; max-width: 100%; }
.lawyer-container p,
.lawyer-container .btn-group { text-align: left; }

/* ============================================================
   UTILITY
   ============================================================ */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 769px) {
  a[href^="tel:"] { pointer-events: none; cursor: default; }
}

@media (max-width: 1024px) {
  .icon-cards { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .main-nav   { display: none; }
  .hamburger  { display: flex; }

  .section { padding: 3rem 0; }

  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .two-col.reverse-mobile > :first-child { order: 2; }
  .two-col-image { min-height: 280px; }

  .steps-grid    { grid-template-columns: 1fr; gap: 2rem; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .icon-cards    { grid-template-columns: 1fr; }

  .promo-banner { font-size: 1.1rem; padding: 1rem; }
  .promo-banner .pct { font-size: 1.8rem; }

  .hero { min-height: 50vh; }
  .hero p { font-size: 1rem; }
  h1 { font-size: 2rem; }

  .blurb-box { min-height: 0; }

  .section iframe { min-height: 320px !important; }

  .footer-top-inner {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem;
    gap: 2.5rem;
  }
  .footer-logo-col { justify-content: center; }
  .footer-logo-img { height: 80px; }

  .footer-legal-inner { grid-template-columns: 1fr; }
  .footer-legal-inner a:last-child { text-align: left; }

  .location-grid { grid-template-columns: 1fr; }
  .location-info { grid-template-columns: 1fr; }

  .lawyer-container { width: auto; }
  .lawyer-heading { white-space: normal; }
}

@media (max-width: 500px) {
  .products-grid { grid-template-columns: 1fr; }
  .trusted-stats { grid-template-columns: 1fr; }
}

/* Contact form embed — keep desktop tight, only bump min-height on mobile */
@media (min-width: 769px) {
  iframe[src*="contact-form"] { min-height: 645px !important; }
}
