/* ===================================================
   Edgerton Dental Emergencies — Stylesheet
   Mobile-first, no build tools
   =================================================== */

:root {
  --teal:        #0B6E6E;
  --teal-light:  #0E8A8A;
  --teal-dark:   #095858;
  --white:       #fff;
  --charcoal:    #1A1A2E;
  --gray:        #6B7280;
  --light:       #F7F9FA;
  --border:      #E5E7EB;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ---- Sticky Nav ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

.site-nav.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.10); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  min-height: 64px;
}

/* ---- Logo ---- */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo:hover { text-decoration: none; }

.logo-mark {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-main {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}

.logo-sub {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: opacity 0.2s;
}

/* Mobile nav */
.nav-links {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.site-nav.nav-open .nav-links { display: block; }

.nav-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.nav-links li a {
  display: block;
  padding: 0.85rem 1.5rem;
  color: var(--charcoal);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.nav-links li a:hover { background: var(--light); text-decoration: none; }

.nav-links li a.nav-cta {
  color: var(--teal);
  font-weight: 700;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  padding: 0.9rem 2.2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(11,110,110,0.35);
}

.btn-primary:hover {
  background: var(--teal-dark);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(11,110,110,0.45);
}

.btn-full { width: 100%; text-align: center; }

/* ---- Aurora Hero ---- */
@keyframes aurora-shift {
  0%   { background-position: 0% 50%, 0% 50%; }
  50%  { background-position: 100% 50%, 100% 50%; }
  100% { background-position: 0% 50%, 0% 50%; }
}

@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero {
  position: relative;
  background: var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem 0;
  overflow: hidden;
}

.aurora {
  position: absolute;
  inset: -20px;
  background-image:
    repeating-linear-gradient(
      100deg,
      rgba(255,255,255,0.07) 0%,
      rgba(255,255,255,0.07) 7%,
      transparent 10%,
      transparent 12%,
      rgba(255,255,255,0.07) 16%
    ),
    repeating-linear-gradient(
      100deg,
      #0B6E6E 10%,
      #1a9e9e 15%,
      #0d8080 20%,
      #5bc8c8 25%,
      #0a5f5f 30%
    );
  background-size: 300% 300%, 200% 200%;
  animation: aurora-shift 18s ease infinite;
  opacity: 0.55;
  filter: blur(12px);
  mask-image: radial-gradient(ellipse at 80% 0%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 80% 0%, black 20%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  width: 100%;
}

/* Staggered fade-up animations */
.hero-anim {
  opacity: 0;
  animation: hero-fade-up 0.6s ease forwards;
}
.hero-anim--1 { animation-delay: 0.05s; }
.hero-anim--2 { animation-delay: 0.2s; }
.hero-anim--3 { animation-delay: 0.35s; }
.hero-anim--4 { animation-delay: 0.5s; }
.hero-anim--5 { animation-delay: 0.65s; }

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: 2.1rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 800;
}

.hero > .hero-content > p,
.hero-content > p:not(.hero-badge) {
  font-size: 1.15rem;
  opacity: 0.92;
  margin-bottom: 2rem;
}

.hero strong { font-weight: 800; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.btn-secondary {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  padding: 0.9rem 2.2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.25);
  text-decoration: none;
  transform: translateY(-2px);
}

/* Hero preview image */
.hero-preview {
  width: calc(100% + 3rem);
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  padding: 0 1rem;
}

.hero-preview-inner {
  position: relative;
  border: 2px solid rgba(255,255,255,0.18);
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  box-shadow:
    0 -8px 40px rgba(0,0,0,0.25),
    0 20px 60px rgba(0,0,0,0.3);
}

.hero-preview-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px 14px 0 0;
}

.hero-preview-fade {
  position: absolute;
  inset-x: 0;
  bottom: 0;
  height: 55%;
  background: linear-gradient(to top, var(--teal) 0%, transparent 100%);
}

/* ---- Sections ---- */
.section { padding: 4.5rem 1rem; }
.bg-light { background: var(--light); }

.container { max-width: 1100px; margin: 0 auto; }
.container--narrow { max-width: 680px; }

.section-heading {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--charcoal);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-sub {
  text-align: center;
  color: var(--gray);
  margin-bottom: 2rem;
  font-size: 1rem;
}

/* ---- Cards ---- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.card {
  background: var(--white);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
  border: 1px solid var(--border);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.11);
}

.card-icon { font-size: 2.2rem; margin-bottom: 1rem; }

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--charcoal);
}

.card p { color: var(--gray); font-size: 0.95rem; }

/* ---- Steps ---- */
.steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2rem;
}

.step {
  text-align: center;
  max-width: 280px;
  padding: 1.5rem 1rem;
}

.step-number {
  width: 54px;
  height: 54px;
  background: var(--teal);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 12px rgba(11,110,110,0.3);
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--charcoal);
}

.step p { color: var(--gray); font-size: 0.9rem; }

.step-divider {
  width: 2px;
  height: 36px;
  background: var(--border);
}

.how-cta { text-align: center; margin-top: 2.5rem; }

/* ---- Location Section ---- */
.location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.location-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.location-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 0.1rem;
}

.location-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
}

.location-card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.5;
}

.location-map {
  height: 320px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.location-map iframe { display: block; }

/* ---- Booking Form ---- */
.booking-form { margin-top: 2rem; }

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
}

.required { color: var(--teal); }
.optional { color: var(--gray); font-weight: 400; font-size: 0.85rem; }

.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--white);
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(11,110,110,0.12);
}

.form-group textarea { resize: vertical; }

.form-small-print {
  font-size: 0.78rem;
  color: var(--gray);
  margin-top: 1rem;
  line-height: 1.5;
}

/* Success message */
.form-success {
  text-align: center;
  padding: 3rem 1rem;
}

.success-icon { font-size: 3rem; margin-bottom: 1rem; }

.form-success h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.form-success p { color: var(--gray); }

/* ---- Footer ---- */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.65);
  text-align: center;
  padding: 2.5rem 1rem;
  font-size: 0.85rem;
}

.footer-logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.site-footer p + p { margin-top: 0.35rem; }

.footer-copy {
  margin-top: 1rem;
  font-size: 0.75rem;
  opacity: 0.5;
}

.site-footer a {
  color: rgba(255,255,255,0.8);
  text-decoration: underline;
}

.site-footer a:hover { color: var(--white); }

/* =========================================
   Desktop — min-width: 768px
   ========================================= */
@media (min-width: 768px) {

  .hamburger { display: none; }

  .nav-links {
    display: block;
    position: static;
    border: none;
    box-shadow: none;
    background: transparent;
  }

  .nav-links ul {
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
  }

  .nav-links li a {
    padding: 0.5rem 0.85rem;
    border: none;
    border-radius: 6px;
  }

  .nav-links li a:hover { background: var(--light); }

  .nav-links li a.nav-cta {
    background: var(--teal);
    color: var(--white);
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(11,110,110,0.25);
  }

  .nav-links li a.nav-cta:hover { background: var(--teal-dark); }

  .hero h1 { font-size: 3.4rem; }

  .hero-preview {
    width: calc(100% + 3rem);
    padding: 0 2rem;
  }

  .card-grid { grid-template-columns: repeat(3, 1fr); }

  .location-grid {
    grid-template-columns: 1fr 1.4fr;
    align-items: start;
  }

  .location-map { height: 380px; }

  .steps {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
  }

  .step-divider {
    width: 60px;
    height: 2px;
    margin-top: 27px;
    align-self: flex-start;
  }
}
