/* ============================================
   Emmaus Dental Care — Styles
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --navy-900: #0a1f36;
  --navy-800: #0f2b4c;
  --navy-700: #1a3a5c;
  --navy-600: #234d74;
  --navy-500: #2d6290;
  --gold-500: #c8a44e;
  --gold-400: #d4b562;
  --gold-300: #e0c97a;
  --gold-600: #a8873a;
  --neutral-50: #f8f9fa;
  --neutral-100: #f1f3f5;
  --neutral-200: #e9ecef;
  --neutral-300: #dee2e6;
  --neutral-400: #ced4da;
  --neutral-500: #adb5bd;
  --neutral-600: #868e96;
  --neutral-700: #495057;
  --neutral-800: #343a40;
  --neutral-900: #212529;
  --white: #ffffff;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-sm: 0 1px 3px rgba(10, 31, 54, 0.08);
  --shadow-md: 0 4px 16px rgba(10, 31, 54, 0.10);
  --shadow-lg: 0 8px 32px rgba(10, 31, 54, 0.14);
  --shadow-xl: 0 16px 48px rgba(10, 31, 54, 0.16);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--neutral-800);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--neutral-200);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.logo-primary {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-800);
}

.logo-secondary {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--gold-600);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a:not(.btn) {
  font-size: 14px;
  font-weight: 500;
  color: var(--neutral-700);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.main-nav a:not(.btn):hover {
  color: var(--navy-800);
  background: var(--neutral-100);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold-500);
  color: var(--white);
  border: 2px solid var(--gold-500);
}

.btn-gold:hover {
  background: var(--gold-600);
  border-color: var(--gold-600);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy-800);
  border-color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--navy-800);
  border: 2px solid var(--white);
}

.btn-white:hover {
  background: var(--neutral-100);
  border-color: var(--neutral-200);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 15px;
}

.btn-full {
  width: 100%;
}

/* ---------- Nav Toggle ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.nav-toggle:hover {
  background: var(--neutral-100);
}

.hamburger {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy-800);
  position: relative;
  transition: all var(--transition);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 2px;
  background: var(--navy-800);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy-800);
  padding-top: 76px;
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(200, 164, 78, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 10% 90%, rgba(200, 164, 78, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-700) 100%);
  clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 60px 0;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 24px;
  max-width: 560px;
}

.hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}

.trust-item svg {
  color: var(--gold-400);
  flex-shrink: 0;
}

.hero-image {
  position: relative;
}

.hero-image-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-stat-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--navy-800);
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--neutral-600);
}

/* ---------- Section shared ---------- */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy-800);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--neutral-600);
}

/* ---------- Services ---------- */
.services {
  background: var(--neutral-50);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--neutral-200);
  transition: all var(--transition);
}

.service-card:hover {
  border-color: var(--gold-500);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-icon {
  margin-bottom: 20px;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 10px;
}

.service-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--neutral-600);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-images {
  position: relative;
}

.about-img-main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-secondary {
  position: absolute;
  bottom: -32px;
  right: -32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid var(--white);
}

.about-img-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-accent-bar {
  position: absolute;
  top: -16px;
  left: -16px;
  width: 80px;
  height: 80px;
  background: var(--gold-500);
  border-radius: var(--radius-md);
  z-index: -1;
}

.about-content .section-eyebrow {
  text-align: left;
}

.about-content .section-title {
  text-align: left;
  margin-bottom: 20px;
}

.about-lead {
  font-size: 17px;
  line-height: 1.75;
  color: var(--neutral-700);
  margin-bottom: 16px;
}

.about-content > p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--neutral-600);
  margin-bottom: 40px;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.value-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.value-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(200, 164, 78, 0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-600);
}

.value-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 4px;
}

.value-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--neutral-600);
}

/* ---------- Patient Info ---------- */
.patient-info {
  background: var(--white);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.info-block {
  background: var(--neutral-50);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid var(--neutral-200);
  transition: all var(--transition);
}

.info-block:hover {
  border-color: var(--gold-500);
  box-shadow: var(--shadow-md);
}

.info-block-icon {
  margin-bottom: 16px;
}

.info-block-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 16px;
}

.info-block-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-block-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--neutral-200);
}

.info-block-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.day {
  color: var(--neutral-700);
  font-weight: 500;
}

.hours {
  color: var(--navy-800);
  font-weight: 600;
}

.info-block-text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--neutral-600);
}

/* ---------- CTA ---------- */
.cta {
  background: var(--navy-800);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200, 164, 78, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.cta-eyebrow {
  color: var(--gold-400);
}

.cta-title {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-text {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  max-width: 480px;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 300px;
}

/* ---------- Contact ---------- */
.contact {
  background: var(--neutral-50);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-intro {
  font-size: 16px;
  line-height: 1.75;
  color: var(--neutral-600);
  margin-bottom: 36px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-detail-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(200, 164, 78, 0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-detail-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neutral-500);
  margin-bottom: 2px;
}

.contact-detail-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--navy-800);
}

.contact-detail-value a {
  color: var(--navy-800);
  transition: color var(--transition);
}

.contact-detail-value a:hover {
  color: var(--gold-600);
}

/* ---------- Form ---------- */
.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--neutral-200);
}

.form-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--neutral-700);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--neutral-800);
  background: var(--neutral-50);
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(200, 164, 78, 0.15);
  background: var(--white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--neutral-400);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-privacy {
  font-size: 12px;
  color: var(--neutral-500);
  text-align: center;
  margin-top: 16px;
  margin-bottom: 0;
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px;
  background: rgba(200, 164, 78, 0.08);
  border: 1px solid rgba(200, 164, 78, 0.3);
  border-radius: var(--radius-md);
  margin-top: 20px;
  text-align: center;
}

.form-success svg {
  color: var(--gold-600);
}

.form-success span {
  font-size: 14px;
  line-height: 1.65;
  color: var(--navy-700);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand .logo-primary {
  color: var(--white);
}

.footer-tagline {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  max-width: 280px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--gold-400);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact a,
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition);
}

.footer-contact a:hover {
  color: var(--gold-400);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
}

/* ---------- Scroll Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid {
    gap: 40px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .cta-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .cta-actions {
    flex-direction: row;
    min-width: auto;
  }

  .cta-actions .btn-full {
    width: auto;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .section {
    padding: 72px 0;
  }

  /* Mobile nav */
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-lg);
    padding: 16px 24px 24px;
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .main-nav a:not(.btn) {
    padding: 12px 14px;
    font-size: 15px;
  }

  .main-nav .btn-gold {
    margin-top: 8px;
    text-align: center;
  }

  /* Hero mobile */
  .hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .hero::before {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0 0;
  }

  .hero-headline {
    font-size: clamp(28px, 6vw, 40px);
  }

  .hero-actions {
    flex-direction: column;
  }

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

  .hero-image {
    order: -1;
  }

  .hero-image-frame {
    border-radius: var(--radius-lg);
  }

  .hero-image-frame img {
    height: 320px;
    object-fit: cover;
  }

  .hero-stat-card {
    bottom: -16px;
    left: 16px;
    padding: 16px 20px;
  }

  .stat-number {
    font-size: 26px;
  }

  /* About mobile */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-images {
    max-width: 480px;
  }

  .about-img-secondary {
    right: -16px;
    bottom: -20px;
  }

  .about-accent-bar {
    top: -10px;
    left: -10px;
    width: 56px;
    height: 56px;
  }

  .about-content .section-eyebrow,
  .about-content .section-title {
    text-align: center;
  }

  .about-content > p {
    text-align: center;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Patient info */
  .info-grid {
    grid-template-columns: 1fr;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form-wrapper {
    padding: 28px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom p {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 88px;
  }

  .hero-headline {
    font-size: 28px;
  }

  .hero-trust {
    flex-direction: column;
    gap: 12px;
  }

  .section-title {
    font-size: 26px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .cta-actions {
    flex-direction: column;
  }

  .cta-actions .btn-full {
    width: 100%;
  }
}
