/* ==========================================================================
   Public Website — marketing site layout (nav, hero, footer, content
   sections). Builds on theme.css tokens + app.css utilities/components.
   ========================================================================== */

.public-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: var(--color-surface-glass-strong);
  backdrop-filter: blur(var(--blur-glass));
  -webkit-backdrop-filter: blur(var(--blur-glass));
  border-bottom: 1px solid var(--color-border);
}

.public-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
}

.public-nav-brand img { width: 38px; height: 38px; }
.public-nav-brand-name { line-height: 1.1; }
.public-nav-brand-tagline { display: block; font-size: 0.7rem; font-weight: 500; color: var(--color-text-subtle); }

.public-nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.public-nav-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  transition: color var(--duration-fast) var(--ease-standard);
}
.public-nav-links a:hover, .public-nav-links a.is-active { color: var(--color-accent); }

.public-nav-actions { display: flex; align-items: center; gap: 0.6rem; }

/* Book Appointment / Login / Dashboard: shown in the top bar only once
   there's room for them (>=900px); below that they live inside the
   hamburger panel instead, so the top bar never overflows off-screen. */
.public-nav-cta { display: none; }

.public-nav-toggle {
  display: inline-flex;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.55rem;
  cursor: pointer;
  color: var(--color-text);
}

@media (min-width: 900px) {
  .public-nav-links { display: flex; }
  .public-nav-cta { display: inline-flex; }
  .public-nav-toggle { display: none; }
}

.public-nav-mobile {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 1.25rem 1rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface-glass-strong);
}
/* The `hidden` attribute is how the toggle shows/hides this panel (see
   public-nav.js) — without this rule, the `display: flex` above has equal
   CSS specificity to the browser's own `[hidden]` rule and wins by being
   the later/author rule, so the panel would stay permanently visible and
   the toggle button would appear to do nothing. */
.public-nav-mobile[hidden] { display: none; }
.public-nav-mobile-cta {
  display: flex;
  gap: 0.6rem;
  padding-bottom: 0.65rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid var(--color-border);
}
.public-nav-mobile a {
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 0.5rem 0;
  font-weight: 500;
}
.public-nav-mobile a.is-active { color: var(--color-accent); }

@media (min-width: 900px) {
  .public-nav-mobile { display: none !important; }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 1.25rem 3.5rem;
  text-align: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(20, 152, 138, 0.14), transparent 55%),
    radial-gradient(circle at 85% 0%, rgba(212, 130, 10, 0.12), transparent 50%);
}
.hero-eyebrow {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background: var(--color-accent-hover, var(--color-accent));
  background: color-mix(in srgb, var(--color-accent) 16%, transparent);
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3.1rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--color-text);
}
.hero p.lead {
  max-width: 640px;
  margin: 0 auto 1.75rem;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}
.hero-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ---- Sections ---- */
.section { padding: 3rem 0; }
.section-tight { padding: 1.5rem 0; }
.section-header { text-align: center; max-width: 620px; margin: 0 auto 2rem; }
.section-header h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 0.5rem; }
.section-header p { color: var(--color-text-muted); margin: 0; }
.section-alt { background: var(--color-bg-elevated); }

/* ---- Cards ---- */
.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  height: 100%;
  transition: transform var(--duration-base) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-card img { width: 100%; border-radius: var(--radius-md); object-fit: cover; aspect-ratio: 16/10; margin-bottom: 1rem; }
.feature-card h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.feature-card p { color: var(--color-text-muted); font-size: 0.92rem; margin: 0 0 0.75rem; }
.feature-card .price { font-weight: 700; color: var(--color-accent); }

.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  height: 100%;
}
.testimonial-card .stars { color: var(--color-gold); letter-spacing: 2px; margin-bottom: 0.5rem; }
.testimonial-card p.message { color: var(--color-text-muted); font-style: italic; }
.testimonial-card .name { font-weight: 700; margin-top: 0.75rem; }

/* ---- Gallery lightbox ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  background: var(--color-border);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--duration-base) var(--ease-standard); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item.is-video::after {
  content: "▶";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  background: rgba(0, 0, 0, 0.35);
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 12, 20, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.lightbox-overlay[hidden] { display: none; }
.lightbox-content { max-width: min(90vw, 900px); max-height: 85vh; width: 100%; }
.lightbox-content img, .lightbox-content iframe { width: 100%; max-height: 78vh; border-radius: var(--radius-md); background: #000; }
.lightbox-content iframe { aspect-ratio: 16/9; height: auto; }
.lightbox-caption { color: #fff; text-align: center; margin-top: 0.75rem; opacity: 0.85; }
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close { top: 1.25rem; right: 1.25rem; }
.lightbox-prev { top: 50%; left: 1rem; transform: translateY(-50%); }
.lightbox-next { top: 50%; right: 1rem; transform: translateY(-50%); }

/* ---- Blog ---- */
.blog-post-body { max-width: 760px; margin: 0 auto; }
.blog-post-body img { border-radius: var(--radius-md); }
.blog-meta { color: var(--color-text-subtle); font-size: 0.85rem; margin-bottom: 1rem; }

/* ---- FAQ block ---- */
.faq-item { border-bottom: 1px solid var(--color-border); padding: 1rem 0; }
.faq-item summary { cursor: pointer; font-weight: 600; }
.faq-item p { color: var(--color-text-muted); margin: 0.6rem 0 0; }

/* ---- Footer ---- */
.public-footer {
  background: var(--brand-navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 1.25rem 1.5rem;
  margin-top: 2rem;
}
.public-footer a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.public-footer a:hover { color: #fff; }
.public-footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  max-width: 1200px;
  margin: 0 auto;
}
@media (min-width: 768px) { .public-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.public-footer-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.75rem; }
.public-footer-brand img { width: 36px; height: 36px; }
.public-footer h4 { color: #fff; font-size: 0.95rem; margin: 0 0 0.75rem; }
.public-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; }
.public-footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

/* ---- Contact ---- */
.contact-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-info-item { display: flex; gap: 0.75rem; margin-bottom: 1.25rem; }
.contact-info-item .icon { color: var(--color-accent); flex-shrink: 0; }
