/* ============================================================
   Dr. NS Taylor & Associates Inc. — Custom Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --teal:       #0d6b7a;
  --teal-dark:  #094f5b;
  --teal-light: #e6f4f6;
  --gold:       #c9a84c;
  --gold-light: #f5edda;
  --text:       #1a1a2e;
  --muted:      #6b7280;
  --white:      #ffffff;
  --bg-soft:    #f8fbfc;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
}

/* ---- Reusable Utilities ---- */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
}

/* ---- Navigation ---- */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  background: transparent;
}

#navbar.scrolled {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

#navbar.scrolled .nav-logo-text { color: var(--teal); }
#navbar.scrolled .nav-link { color: var(--text); }
#navbar.scrolled .nav-link:hover { color: var(--teal); }
#navbar.scrolled #mobile-menu-btn span { background: var(--teal); }

.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  transition: color 0.3s;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-link:hover { color: var(--gold); }
.nav-link.active { color: var(--gold); }

/* ---- Hamburger ---- */
#mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

#mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s, background 0.3s;
}

#mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
#mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
#mobile-nav {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: var(--white);
}
#mobile-nav.open { max-height: 500px; }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 60%, #1a9ba8 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(201,168,76,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(255,255,255,0.05) 0%, transparent 50%);
}

.hero-pattern {
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.08);
  box-shadow: 0 0 0 60px rgba(255,255,255,0.04), 0 0 0 120px rgba(255,255,255,0.02);
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #b8932e;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.4);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.6);
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-teal {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--teal);
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  border: none;
  cursor: pointer;
}

.btn-teal:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13,107,122,0.35);
}

/* ---- Cards ---- */
.service-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(0,0,0,0.04);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(13,107,122,0.12);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--teal);
  margin-bottom: 1.25rem;
  transition: background 0.25s, color 0.25s;
}

.service-card:hover .service-icon {
  background: var(--teal);
  color: var(--white);
}

/* ---- Feature Icons ---- */
.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--teal);
  margin: 0 auto 1rem;
  flex-shrink: 0;
}

/* ---- Highlight Sections ---- */
.highlight-section {
  background: var(--bg-soft);
}

.highlight-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.highlight-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Testimonials ---- */
.testimonial-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border-left: 4px solid var(--gold);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  color: var(--teal-light);
  line-height: 1;
}

/* ---- CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

/* ---- Footer ---- */
footer {
  background: #0a1628;
  color: rgba(255,255,255,0.8);
}

footer a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--gold); }

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 2rem 0;
}

/* ---- WhatsApp Float ---- */
.whatsapp-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 9999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
  animation: pulse-green 2.5s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 30px rgba(37,211,102,0.55);
  animation: none;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); }
  50%       { box-shadow: 0 4px 30px rgba(37,211,102,0.7), 0 0 0 12px rgba(37,211,102,0.1); }
}

/* ---- AOS fallback (ensures visibility if AOS not loaded) ---- */
[data-aos] { opacity: 1 !important; }

/* ---- Page Hero Banners ---- */
.page-hero {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
  padding: 8rem 0 5rem;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

/* ---- Contact Form ---- */
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13,107,122,0.12);
}

/* ---- Location Cards ---- */
.location-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  border-top: 4px solid var(--teal);
}

.location-card .map-frame {
  width: 100%;
  height: 280px;
  border: none;
  display: block;
}

/* ---- Team Cards ---- */
.team-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.07);
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(13,107,122,0.14);
}

.team-card .photo-wrap {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 2rem auto 1rem;
  border: 4px solid var(--teal-light);
}

.team-card .photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Stat Counter ---- */
.stat-item {
  text-align: center;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--teal);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* ---- Scroll to top ---- */
#scroll-top {
  position: fixed;
  bottom: 5.5rem;
  right: 1.75rem;
  z-index: 9998;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 4px 14px rgba(13,107,122,0.35);
}

#scroll-top.visible { opacity: 1; transform: translateY(0); }
#scroll-top:hover { background: var(--teal-dark); }

/* ---- Responsive helpers ---- */
@media (max-width: 768px) {
  .hero { min-height: 100svh; }
  .hero-pattern { display: none; }
  .page-hero { padding: 7rem 0 4rem; }
}

/* ---- Gold accent underline for headings ---- */
.gold-underline {
  position: relative;
  display: inline-block;
}

.gold-underline::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

.gold-underline.center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ---- Checked list ---- */
.check-list { list-style: none; padding: 0; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--text);
}

.check-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--teal);
  margin-top: 2px;
  flex-shrink: 0;
}

/* ---- Trust badges ---- */
.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
}

.trust-badge i { color: var(--gold); }

/* Smooth section transitions */
section { position: relative; }
