/* ==========================================================================
   Bright Smile Dental Care — Shared Stylesheet
   ========================================================================== */

:root {
  /* Colors */
  --color-primary: #0F6E6B;
  --color-secondary: #0B4A5C;
  --color-accent: #F2A93B;
  --color-accent-hover: #DC9527;
  --color-neutral-dark: #12262B;
  --color-neutral-light: #F6FAF9;
  --color-border: #E1EBEA;

  /* Fonts */
  --font-heading: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', Arial, sans-serif;

  /* Type scale - desktop */
  --h1-size: 56px;
  --h1-size-mobile: 34px;
  --h1-lh: 1.1;
  --h2-size: 40px;
  --h2-size-mobile: 28px;
  --h2-lh: 1.15;
  --h3-size: 26px;
  --h3-size-mobile: 20px;
  --h3-lh: 1.2;
  --body-size: 17px;
  --body-size-mobile: 16px;
  --body-lh: 1.65;
  --small-size: 14px;
  --small-size-mobile: 13px;
  --small-lh: 1.6;

  /* Spacing */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;
  --section-padding-desktop: 96px;
  --section-padding-mobile: 56px;
  --container-max: 1200px;

  /* Card */
  --card-radius: 16px;
  --card-shadow: 0 4px 20px rgba(18, 38, 43, 0.08);
  --card-padding: 32px;
  --card-border: 1px solid #E1EBEA;

  /* Buttons */
  --btn-radius: 8px;
  --btn-pad-y: 14px;
  --btn-pad-x: 28px;

  /* Header */
  --header-height-desktop: 80px;
  --header-height-mobile: 64px;
}

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html, body, div, span, h1, h2, h3, h4, h5, h6, p, ul, ol, li, form, figure, img, a, button, input, textarea {
  margin: 0;
  padding: 0;
}
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--body-size-mobile);
  line-height: var(--body-lh);
  color: var(--color-neutral-dark);
  background: var(--color-neutral-light);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
input, textarea { font-family: inherit; font-size: inherit; color: inherit; }

@media (min-width: 640px) {
  body { font-size: var(--body-size); }
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-secondary);
  font-weight: 400;
}
h1 { font-size: var(--h1-size-mobile); line-height: var(--h1-lh); }
h2 { font-size: var(--h2-size-mobile); line-height: var(--h2-lh); }
h3 { font-size: var(--h3-size-mobile); line-height: var(--h3-lh); }
small, .small { font-size: var(--small-size-mobile); line-height: var(--small-lh); }

@media (min-width: 640px) {
  h1 { font-size: var(--h1-size); }
  h2 { font-size: var(--h2-size); }
  h3 { font-size: var(--h3-size); }
  small, .small { font-size: var(--small-size); }
}

p { margin-bottom: var(--space-2); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--small-size-mobile);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.section {
  padding: var(--section-padding-mobile) 0;
  position: relative;
}
@media (min-width: 768px) {
  .section { padding: var(--section-padding-desktop) 0; }
}

.section-alt {
  background: var(--color-neutral-light);
}

.section-primary {
  background: var(--color-primary);
  color: var(--color-neutral-light);
}
.section-primary h1, .section-primary h2, .section-primary h3 {
  color: var(--color-neutral-light);
}

.section-secondary {
  background: var(--color-secondary);
  color: var(--color-neutral-light);
}
.section-secondary h1, .section-secondary h2, .section-secondary h3 {
  color: var(--color-neutral-light);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-5);
  position: relative;
  z-index: 1;
}

/* Signature tooth motif watermark behind section headings */
.section-header::before,
.motif-watermark::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 240px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%230F6E6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M32 6C24 6 18 10 14 14c-4 4-4 10-2 16 2 6 2 10 2 16 0 6 3 10 6 10 3 0 4-6 6-6h12c2 0 3 6 6 6 3 0 6-4 6-10 0-6 0-10 2-16 2-6 2-12-2-16-4-4-10-8-18-8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.06;
  z-index: -1;
  pointer-events: none;
}

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

/* ==========================================================================
   Grids
   ========================================================================== */

.grid-2, .grid-3, .grid-4 {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: var(--btn-radius);
  font-weight: 700;
  font-size: var(--body-size-mobile);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-neutral-dark);
  border: 1px solid var(--color-accent);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-neutral-dark);
}

.btn-secondary {
  background: var(--color-primary);
  color: var(--color-neutral-light);
  border: 1px solid var(--color-primary);
}
.btn-secondary:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--color-neutral-light);
}

.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}
.btn-ghost:hover {
  background: var(--color-neutral-light);
  color: var(--color-secondary);
}

/* ==========================================================================
   Card
   ========================================================================== */

.card {
  background: #FFFFFF;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  border: var(--card-border);
  padding: var(--card-padding);
}
.card h3 { margin-bottom: var(--space-2); }
.card p { margin-bottom: 0; color: var(--color-neutral-dark); }

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  height: var(--header-height-mobile);
  display: flex;
  align-items: center;
  background: var(--color-neutral-light);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  width: 100%;
}
@media (min-width: 768px) {
  .site-header { height: var(--header-height-desktop); }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
  max-height: 40px;
}
.site-logo img {
  max-height: 40px;
  width: auto;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  z-index: 1100;
}
.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-secondary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  position: fixed;
  top: var(--header-height-mobile);
  left: 0;
  right: 0;
  background: var(--color-neutral-light);
  border-bottom: 1px solid var(--color-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 999;
}
.site-nav.is-open {
  max-height: 80vh;
  overflow-y: auto;
}
.nav-list {
  display: flex;
  flex-direction: column;
  padding: var(--space-3);
  gap: var(--space-2);
}
.nav-link {
  display: block;
  padding: var(--space-1) 0;
  font-weight: 500;
  color: var(--color-neutral-dark);
  border-bottom: 1px solid transparent;
}
.nav-link.is-active,
.nav-link:hover {
  color: var(--color-primary);
}
.site-nav .btn {
  margin: var(--space-2) var(--space-3);
  display: inline-flex;
  width: calc(100% - 48px);
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    max-height: none;
    overflow: visible;
    background: transparent;
    border-bottom: none;
  }
  .nav-list {
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: var(--space-4);
  }
  .nav-link {
    border-bottom: 2px solid transparent;
  }
  .nav-link.is-active {
    border-bottom-color: var(--color-primary);
  }
  .header-inner .site-nav {
    display: flex;
    align-items: center;
    gap: var(--space-4);
  }
  .site-nav .btn {
    margin: 0;
    width: auto;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: var(--space-6) 0;
  background: var(--color-neutral-light);
  overflow: hidden;
}
@media (min-width: 768px) {
  .hero { padding: var(--space-7) 0; }
}
.hero-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-inner {
    flex-direction: row;
    justify-content: space-between;
    gap: var(--space-5);
  }
  .hero-copy { flex: 1 1 50%; }
  .hero-media { flex: 1 1 45%; }
}
.hero-copy { text-align: center; }
@media (min-width: 1024px) {
  .hero-copy { text-align: left; }
}
.hero-copy h1 { margin-bottom: var(--space-2); }
.hero-copy p { color: var(--color-neutral-dark); margin-bottom: var(--space-4); }
.hero-media {
  width: 100%;
  display: flex;
  justify-content: center;
}
.hero-media img {
  width: 100%;
  max-width: 480px;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}

/* ==========================================================================
   Media helpers
   ========================================================================== */

.media {
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}
.media img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Why choose / feature lists with tooth-motif bullets
   ========================================================================== */

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.feature-list li {
  position: relative;
  padding-left: 36px;
  font-weight: 500;
  min-height: 24px;
  display: flex;
  align-items: center;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23F2A93B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M32 6C24 6 18 10 14 14c-4 4-4 10-2 16 2 6 2 10 2 16 0 6 3 10 6 10 3 0 4-6 6-6h12c2 0 3 6 6 6 3 0 6-4 6-10 0-6 0-10 2-16 2-6 2-12-2-16-4-4-10-8-18-8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonial {
  background: #FFFFFF;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  border: var(--card-border);
  padding: var(--card-padding);
  position: relative;
}
.testimonial h3 {
  margin-bottom: var(--space-2);
  color: var(--color-primary);
}
.testimonial p {
  margin-bottom: 0;
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
.gallery .media { aspect-ratio: 4 / 3; }

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */

.faq {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  background: #FFFFFF;
  border: var(--card-border);
  border-radius: var(--card-radius);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  font-weight: 700;
  font-size: var(--body-size-mobile);
  color: var(--color-secondary);
  text-align: left;
}
.faq-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-left: var(--space-2);
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--color-primary);
  transition: transform 0.25s ease;
}
.faq-icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}
.faq-icon::after {
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}
.faq-item.is-open .faq-icon::after {
  transform: translateX(-50%) scaleY(0);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 var(--space-4);
}
.faq-item.is-open .faq-answer {
  max-height: 600px;
  padding-bottom: var(--space-3);
}
.faq-answer p { margin-bottom: 0; color: var(--color-neutral-dark); }

/* ==========================================================================
   Contact form
   ========================================================================== */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 640px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--btn-radius);
  border: 1px solid var(--color-border);
  background: #FFFFFF;
  color: var(--color-neutral-dark);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}
.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}
.contact-form .btn { align-self: flex-start; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--color-secondary);
  color: var(--color-neutral-light);
  padding: var(--space-6) 0 var(--space-3);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
.footer-brand img { max-height: 36px; margin-bottom: var(--space-2); }
.footer-brand p { color: rgba(246,250,249,0.8); margin-bottom: 0; }
.site-footer h4 {
  color: var(--color-neutral-light);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--body-size-mobile);
  margin-bottom: var(--space-2);
}
.footer-nav ul { display: flex; flex-direction: column; gap: var(--space-1); }
.footer-nav a { color: rgba(246,250,249,0.85); }
.footer-nav a:hover { color: var(--color-accent); }
.footer-contact p { color: rgba(246,250,249,0.85); margin-bottom: var(--space-1); }
.footer-contact a { color: var(--color-accent); }
.footer-bottom {
  border-top: 1px solid rgba(246,250,249,0.15);
  padding-top: var(--space-3);
  text-align: center;
}
.footer-bottom p {
  margin-bottom: 0;
  font-size: var(--small-size-mobile);
  color: rgba(246,250,249,0.7);
}

/* ==========================================================================
   WhatsApp floating button
   ========================================================================== */

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-neutral-light);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--card-shadow);
  z-index: 1200;
  font-size: 24px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.whatsapp-float:hover {
  background: var(--color-secondary);
  transform: translateY(-2px);
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Misc utilities
   ========================================================================== */

.services-list,
.trust-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}