/* ============================================
   Dr. Joanne Burgio - Custom Styles
   Design: Warm & Grounded
   ============================================ */

/* ---------- Design Tokens ---------- */
:root {
  --color-cream: #FFFBF5;
  --color-cream-dark: #F5EDE3;
  --color-sage: #6B9E8A;
  --color-sage-dark: #4A7A64;
  --color-sage-light: #E8F0EC;
  --color-gold: #C9A96E;
  --color-gold-light: #F5EED9;
  --color-charcoal: #2C2C2C;
  --color-text: #4A4A4A;
  --color-text-light: #7A7A7A;
  --color-border: #E8E0D8;
  --color-white: #FFFFFF;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --max-width: 1200px;
  --transition: all 0.3s ease;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-sage-dark); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-sage); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--color-charcoal); line-height: 1.3; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 600; }
h3 { font-size: clamp(1.3rem, 3vw, 1.75rem); font-weight: 600; }
h4 { font-size: 1.2rem; font-weight: 600; }
p { margin-bottom: 1rem; }

.section-subtitle {
  font-family: var(--font-sans);
  color: var(--color-text-light);
  font-size: 1.1rem;
  font-weight: 400;
  margin-top: 0.5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-sage);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-sage-dark);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(107, 158, 138, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--color-sage-dark);
  border: 2px solid var(--color-sage);
}
.btn-secondary:hover {
  background: var(--color-sage);
  color: var(--color-white);
}

.btn-gold {
  background: var(--color-gold);
  color: var(--color-white);
}
.btn-gold:hover {
  background: #b8993f;
  color: var(--color-white);
  transform: translateY(-1px);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 251, 245, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.site-logo img { height: 44px; width: auto; }

.site-logo-text {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--color-charcoal);
  font-weight: 600;
  line-height: 1.2;
}

.site-logo-text small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--color-text-light);
  font-weight: 400;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-sage);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: var(--color-sage-dark); }

.nav-cta {
  padding: 10px 24px !important;
  background: var(--color-sage);
  color: var(--color-white) !important;
  border-radius: 6px;
  font-weight: 600 !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: var(--color-sage-dark);
  color: var(--color-white) !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-charcoal);
  transition: var(--transition);
}

/* ---------- Hero Section ---------- */
.hero {
  padding: 80px 0 100px;
  background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-cream-dark) 50%, var(--color-sage-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(107, 158, 138, 0.06);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-gold-light);
  color: var(--color-gold);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-badge svg { width: 16px; height: 16px; }

.hero h1 { margin-bottom: 20px; }
.hero h1 span { color: var(--color-sage); }

.hero-description {
  font-size: 1.15rem;
  color: var(--color-text);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-image {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.hero-image-wrapper {
  position: relative;
  width: 400px;
  height: 480px;
  border-radius: 200px 200px 24px 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

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

.hero-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-sage-light), var(--color-cream-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: var(--color-sage);
  font-size: 0.9rem;
  text-align: center;
  padding: 20px;
}

/* ---------- Trust Bar ---------- */
.trust-bar {
  padding: 40px 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.trust-items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.trust-item svg {
  width: 24px;
  height: 24px;
  color: var(--color-sage);
  flex-shrink: 0;
}

.trust-item strong { color: var(--color-charcoal); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--color-white); }
.section-sage { background: var(--color-sage-light); }

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

.section-header h2 { margin-bottom: 12px; }

/* ---------- Specialty Cards ---------- */
.specialty-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 680px) {
  .specialty-grid { grid-template-columns: 1fr; }
}

.specialty-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 32px;
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.specialty-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  border-color: var(--color-sage);
}

.specialty-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-sage-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-sage);
}

.specialty-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

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

.specialty-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-sage-dark);
}

/* ---------- Awards Ribbon ---------- */
.awards-ribbon {
  padding: 60px 0;
  background: var(--color-charcoal);
  color: var(--color-white);
  text-align: center;
}

.awards-ribbon h2 { color: var(--color-gold); margin-bottom: 8px; }
.awards-ribbon p { color: rgba(255,255,255,0.7); margin-bottom: 32px; }

.awards-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  align-items: center;
}

.award-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.award-badge img {
  width: 100px;
  height: auto;
  border-radius: 8px;
  border: 2px solid rgba(201, 169, 110, 0.3);
}

.award-badge span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}

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

.about-preview-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.about-preview-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-preview-content h2 { margin-bottom: 20px; }
.about-preview-content p { margin-bottom: 16px; color: var(--color-text); }

.credentials-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}

.credential {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.credential svg { width: 20px; height: 20px; color: var(--color-sage); flex-shrink: 0; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--color-sage-dark), var(--color-sage));
  text-align: center;
  color: var(--color-white);
}

.cta-banner h2 { color: var(--color-white); margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: 32px; max-width: 540px; margin-left: auto; margin-right: auto; }

.cta-banner .btn-primary {
  background: var(--color-white);
  color: var(--color-sage-dark);
}
.cta-banner .btn-primary:hover {
  background: var(--color-cream);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-charcoal);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand p { margin-top: 12px; font-size: 0.9rem; line-height: 1.6; }
.footer-brand .site-logo-text { color: var(--color-white); }
.footer-brand .site-logo-text small { color: rgba(255,255,255,0.5); }

.site-footer h4 {
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer-links a:hover { color: var(--color-white); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.footer-contact-item svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--color-sage); }

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
}

/* ---------- Interior Pages ---------- */
.page-hero {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--color-cream-dark), var(--color-sage-light));
  text-align: center;
}

.page-hero h1 { margin-bottom: 12px; }
.page-hero .section-subtitle { max-width: 600px; margin: 0 auto; }

/* About page */
.about-intro {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 48px;
  align-items: start;
}

.about-photo {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  position: sticky;
  top: 100px;
}

.about-photo img { width: 100%; height: auto; }

.about-text h2 { margin-bottom: 16px; margin-top: 32px; font-size: 1.5rem; }
.about-text h2:first-child { margin-top: 0; }
.about-text p { margin-bottom: 16px; }

/* Services page */
.service-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--color-border);
}

.service-section:last-child { border-bottom: none; }

.service-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--color-sage-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-sage);
  flex-shrink: 0;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 20px;
}

.service-tag {
  padding: 6px 14px;
  background: var(--color-sage-light);
  color: var(--color-sage-dark);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Awards page */
.awards-timeline {
  max-width: 800px;
  margin: 0 auto;
}

.award-year-group { margin-bottom: 48px; }

.award-year {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-gold);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-gold-light);
}

.award-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-white);
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.award-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border-color: var(--color-gold);
}

.award-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 8px;
}

.award-item-text h4 { margin-bottom: 4px; }
.award-item-text p { color: var(--color-text-light); font-size: 0.9rem; margin: 0; }

.awards-count-banner {
  text-align: center;
  padding: 40px;
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-cream));
  border-radius: 16px;
  margin-bottom: 48px;
}

.awards-count-banner .count {
  font-family: var(--font-serif);
  font-size: 4rem;
  color: var(--color-gold);
  font-weight: 700;
}

.awards-count-banner p { color: var(--color-text); font-size: 1.1rem; margin-top: 8px; }

/* FAQ page */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--color-white);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-charcoal);
  text-align: left;
  transition: var(--transition);
}

.faq-question:hover { color: var(--color-sage-dark); }

.faq-question svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.open .faq-question svg { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--color-text);
  line-height: 1.7;
}

.faq-item.open .faq-answer { max-height: 600px; }

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

.location-card {
  background: var(--color-white);
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--color-border);
}

.location-card h3 { margin-bottom: 20px; }

.location-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.location-detail svg {
  width: 20px;
  height: 20px;
  color: var(--color-sage);
  flex-shrink: 0;
  margin-top: 2px;
}

.hours-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 24px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.hours-grid dt { font-weight: 600; color: var(--color-charcoal); font-size: 0.95rem; }
.hours-grid dd { color: var(--color-text); font-size: 0.95rem; }

.scheduling-widget {
  background: var(--color-white);
  border-radius: 16px;
  padding: 48px;
  border: 1px solid var(--color-border);
  text-align: center;
}

.scheduling-widget h3 { margin-bottom: 12px; }
.scheduling-widget p { color: var(--color-text-light); margin-bottom: 24px; }

.scheduling-placeholder {
  background: var(--color-sage-light);
  border: 2px dashed var(--color-sage);
  border-radius: 12px;
  padding: 60px 40px;
  color: var(--color-sage-dark);
  font-size: 0.95rem;
}

/* ---------- Mobile Responsive ---------- */
@media (max-width: 968px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-description { margin: 0 auto 32px; }
  .hero-buttons { justify-content: center; }
  .hero-image { order: -1; }
  .hero-image-wrapper { width: 300px; height: 360px; }
  .hero { padding: 60px 0 80px; }

  .about-preview-grid { grid-template-columns: 1fr; }
  .about-preview-image { order: -1; }
  .about-preview-image img { height: 300px; }

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

  .about-intro { grid-template-columns: 1fr; }
  .about-photo { position: static; max-width: 350px; margin: 0 auto; }

  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-cream);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .header-inner { position: relative; }

  .trust-items { gap: 24px; }
  .trust-item { font-size: 0.85rem; }

  .section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .hero-image-wrapper { width: 250px; height: 300px; }

  .awards-count-banner .count { font-size: 3rem; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .awards-row { gap: 20px; }
  .award-badge img { width: 70px; }
}

/* ---------- Sticky Mobile CTA ---------- */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: rgba(255, 251, 245, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-border);
  z-index: 99;
}

.mobile-cta .btn { width: 100%; justify-content: center; }

@media (max-width: 768px) {
  .mobile-cta { display: block; }
  body { padding-bottom: 70px; }
}

/* ---------- Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
