/* ===================================
   The Happy Tooth — Main Stylesheet
   Cloudflare Pages + Hugo
   =================================== */

/* ── CSS Custom Properties ────────── */
:root {
  --ht-navy: #091353;
  --ht-cyan: #05A6E1;
  --ht-cyan-hover: #0490C4;
  --ht-ice: #E1F6FE;
  --ht-green: #9CD166;
  --ht-white: #FFFFFF;
  --ht-grey: #4F4F4F;
  --ht-dark-footer: #060D33;
  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'Hanken Grotesk', Arial, sans-serif;
  --container-max: 1200px;
  --section-padding: 5rem 0;
}

/* ── Reset & Base ─────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ht-grey);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ht-cyan); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--ht-cyan-hover); }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--ht-navy);
  line-height: 1.3;
  margin-bottom: 1rem;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin-bottom: 1rem; }

/* ── Container ────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Buttons ──────────────────────── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary { background: var(--ht-cyan); color: var(--ht-white); }
.btn-primary:hover { background: var(--ht-cyan-hover); color: var(--ht-white); }
.btn-cyan { background: var(--ht-cyan); color: var(--ht-white); }
.btn-cyan:hover { background: var(--ht-cyan-hover); color: var(--ht-white); }
.btn-white { background: var(--ht-white); color: var(--ht-navy); }
.btn-white:hover { background: var(--ht-ice); color: var(--ht-navy); }
.btn-outline { background: transparent; color: var(--ht-navy); border-color: var(--ht-navy); }
.btn-outline:hover { background: var(--ht-navy); color: var(--ht-white); }
.btn-outline-white { background: transparent; color: var(--ht-white); border-color: var(--ht-white); }
.btn-outline-white:hover { background: var(--ht-white); color: var(--ht-navy); }

/* ── Announcement Bar ─────────────── */
.announcement-bar {
  background: var(--ht-cyan);
  color: var(--ht-white);
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.announcement-bar a { color: var(--ht-white); text-decoration: underline; }
.announcement-bar p { margin: 0; }

/* ── Header ───────────────────────── */
.site-header {
  background: var(--ht-white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}
.logo img { height: 50px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 2rem; }
.nav-list { list-style: none; display: flex; gap: 1.5rem; }
.nav-link {
  color: var(--ht-navy);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.25rem 0;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--ht-cyan);
  transition: width 0.3s;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover { color: var(--ht-cyan); }
.nav-cta { display: flex; gap: 0.75rem; }
.nav-cta .btn { padding: 0.5rem 1.25rem; font-size: 0.85rem; }

/* ── Mobile Menu ──────────────────── */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.hamburger-line {
  width: 24px; height: 2px;
  background: var(--ht-navy);
  transition: all 0.3s;
}

@media (max-width: 900px) {
  .mobile-menu-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--ht-white);
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .main-nav.open { display: flex; }
  .nav-list { flex-direction: column; gap: 0.75rem; }
  .nav-cta { flex-direction: column; }
}

/* ── Section Utilities ────────────── */
.section { padding: var(--section-padding); }
.bg-white { background: var(--ht-white); }
.bg-navy { background: var(--ht-navy); }
.bg-navy h2, .bg-navy h3, .bg-navy p, .bg-navy li, .bg-navy a { color: var(--ht-white); }
.bg-ice { background: var(--ht-ice); }
.text-center { text-align: center; }

/* ── Accent Underline ─────────────── */
.accent-underline { position: relative; padding-bottom: 1rem; }
.accent-underline::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 60px; height: 3px;
  background: var(--ht-cyan);
}
.text-center .accent-underline::after { left: 50%; transform: translateX(-50%); }

/* ── Two Column Layout ────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.col-text h2 { margin-bottom: 1.5rem; }

@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
}

/* ── Image Accent Shape ───────────── */
.image-accent-shape {
  position: relative;
  display: inline-block;
}
.image-accent-shape::before {
  content: '';
  position: absolute;
  top: -15px; right: -15px;
  width: 100%; height: 100%;
  background: var(--ht-cyan);
  border-radius: 12px;
  z-index: -1;
  opacity: 0.15;
}
.image-accent-shape.green::before { background: var(--ht-green); }
.image-accent-shape img { border-radius: 12px; }

/* ── Hero ─────────────────────────── */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: url('/images/hero.jpg') center/cover no-repeat;
  color: var(--ht-white);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--ht-navy);
  opacity: 0.55;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.hero h1 { color: var(--ht-white); font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 1rem; }
.hero-subtitle { font-size: 1.2rem; margin-bottom: 2rem; opacity: 0.95; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Page Hero ────────────────────── */
.page-hero {
  background: var(--ht-navy);
  color: var(--ht-white);
  padding: 4rem 0 3rem;
  text-align: center;
}
.page-hero h1 { color: var(--ht-white); }

/* ── Services Grid ────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}
.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  display: block;
  color: var(--ht-white);
}
.service-card-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.service-card:hover .service-card-image img { transform: scale(1.05); }
.service-card-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem 1rem 1rem;
  background: linear-gradient(transparent, rgba(9, 19, 83, 0.85));
}
.service-card-label h3 { color: var(--ht-white); margin: 0; font-size: 1.1rem; }

@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ── Check List ───────────────────── */
.check-list { list-style: none; padding: 0; }
.check-list li {
  padding: 0.5rem 0 0.5rem 2rem;
  position: relative;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--ht-cyan);
  font-weight: 700;
}

/* ── Testimonials ─────────────────── */
.testimonials-slider { max-width: 700px; margin: 2rem auto; }
.testimonial-card {
  padding: 2rem;
  text-align: center;
}
.stars { color: #FFD700; font-size: 1.5rem; margin-bottom: 1rem; }
.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--ht-white);
}
.testimonial-author { color: var(--ht-ice); font-weight: 600; }

/* ── Logo Row ─────────────────────── */
.logo-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}
.logo-row img { height: 50px; width: auto; object-fit: contain; }

/* ── CTA Address ──────────────────── */
.cta-address { color: var(--ht-ice); font-size: 1.1rem; margin-bottom: 1.5rem; }

/* ── Card Grid ────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  display: block;
  color: var(--ht-grey);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.card-image img { height: 200px; width: 100%; object-fit: cover; }
.card-body { padding: 1.5rem; }
.card-body h3 { font-size: 1.15rem; }

/* ── News Grid ────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}
.news-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.news-card-image img { height: 200px; width: 100%; object-fit: cover; }
.news-card-body { padding: 1.5rem; }
.news-card-body time { font-size: 0.85rem; color: var(--ht-cyan); font-weight: 500; }
.news-card-body h3 { margin: 0.5rem 0; }
.news-card-body h3 a { color: var(--ht-navy); }
.news-card-body h3 a:hover { color: var(--ht-cyan); }

/* ── Contact Form ─────────────────── */
.contact-form { margin-top: 1.5rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 500;
  color: var(--ht-navy);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ht-cyan);
  box-shadow: 0 0 0 3px rgba(5, 166, 225, 0.1);
}

.contact-info-card {
  background: var(--ht-ice);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}
.contact-info-card h3 { margin-top: 1.5rem; }
.contact-info-card h3:first-child { margin-top: 0; }

.booking-note {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--ht-ice);
  border-radius: 8px;
  border-left: 4px solid var(--ht-cyan);
}

.map-embed iframe { border-radius: 8px; }

/* ── Content Narrow ───────────────── */
.content-narrow { max-width: 800px; margin: 0 auto; }
.content-narrow h2 { margin-top: 2.5rem; }
.content-narrow ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.content-narrow li { margin-bottom: 0.5rem; }

/* ── Hours Table ──────────────────── */
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 0.35rem 0; }
.hours-table td:first-child { font-weight: 500; padding-right: 1.5rem; }

/* ── Footer ───────────────────────── */
.site-footer { background: var(--ht-dark-footer); color: var(--ht-white); padding-top: 3rem; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.site-footer h4 { color: var(--ht-white); margin-bottom: 1rem; font-size: 1rem; }
.site-footer p, .site-footer a { color: rgba(255,255,255,0.8); font-size: 0.9rem; }
.site-footer a:hover { color: var(--ht-cyan); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.4rem; }
.service-areas { font-size: 0.85rem; line-height: 1.8; color: rgba(255,255,255,0.65); }
.social-links { margin-top: 1rem; }
.social-links a { color: var(--ht-white); margin-right: 0.75rem; }
.social-links a:hover { color: var(--ht-cyan); }
.footer-bottom {
  margin-top: 2rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}
.footer-bottom p { margin: 0; font-size: 0.85rem; color: rgba(255,255,255,0.5); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
