/* ============================================================
   Talsky Tonal Chiropractic — Global Stylesheet
   Professional, clean, medical-grade chiropractic clinic
   ============================================================ */

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: #2c2c2c;
  background: #fff;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Color Tokens --- */
:root {
  --navy:   #1a2f4a;
  --navy-light: #243d5e;
  --gold:   #c49a2d;
  --gold-light: #ddb84e;
  --off-white: #f7f5f0;
  --light-gray: #eaeaea;
  --mid-gray: #666;
  --text:   #2c2c2c;
  --white:  #ffffff;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Georgia', serif;
  font-weight: normal;
  line-height: 1.25;
  color: var(--navy);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
h4 { font-size: 1rem; letter-spacing: 0.03em; text-transform: uppercase; margin-bottom: 0.75rem; }
p  { margin-bottom: 1rem; }

/* --- Layout Helpers --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 3px;
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border: 2px solid transparent;
  text-align: center;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
}
.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.logo-link { text-decoration: none; }
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-main {
  font-family: 'Georgia', serif;
  font-size: 1.25rem;
  color: var(--white);
  letter-spacing: 0.02em;
}
.logo-sub {
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.main-nav ul {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  flex-wrap: wrap;
}
.main-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  padding: 0.4rem 0.65rem;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.01em;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--gold);
  background: rgba(255,255,255,0.06);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #2a4a6e 100%);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  opacity: 0.5;
}
.hero-inner { position: relative; z-index: 1; max-width: 680px; }
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero-subtitle {
  color: rgba(255,255,255,0.82);
  font-size: 1.15rem;
  margin-bottom: 2rem;
  font-family: 'Georgia', serif;
  font-style: italic;
}
.hero .btn { margin-right: 1rem; margin-bottom: 0.75rem; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section-light { background: var(--white); padding: 4rem 0; }
.section-mid   { background: var(--off-white); padding: 4rem 0; }
.section-dark  { background: var(--navy); padding: 4rem 0; }
.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title.light { color: var(--white); }

/* ============================================================
   INTRO BLOCK
   ============================================================ */
.intro-block {
  max-width: 780px;
  text-align: center;
}
.intro-block h2 { margin-bottom: 1.25rem; }

/* ============================================================
   VIDEO
   ============================================================ */
.video-block { text-align: center; }
.video-block h2 { margin-bottom: 1.5rem; }
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  max-width: 800px;
  margin: 0 auto;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.service-card {
  background: var(--off-white);
  border-top: 4px solid var(--gold);
  padding: 2rem;
  border-radius: 3px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.09);
  transform: translateY(-3px);
}
.service-icon {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 1rem;
}
.card-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--navy);
  font-weight: bold;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: color 0.2s;
}
.card-link:hover { color: var(--gold); }

/* ============================================================
   TESTIMONIALS CAROUSEL
   ============================================================ */
.testimonials-section { text-align: center; }
.carousel-wrapper { max-width: 700px; margin: 0 auto; }
.carousel { position: relative; min-height: 160px; }
.testimonial-slide {
  display: none;
  animation: fadeIn 0.4s ease;
}
.testimonial-slide.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.testimonial-slide blockquote {
  font-family: 'Georgia', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.92);
  line-height: 1.75;
  margin-bottom: 1rem;
  padding: 0 1rem;
}
.testimonial-slide cite {
  color: var(--gold);
  font-size: 0.9rem;
  font-style: normal;
  letter-spacing: 0.04em;
}
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}
.carousel-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 3px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.2s;
}
.carousel-btn:hover { background: rgba(255,255,255,0.2); }
.carousel-dots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; max-width: 300px; }
.dot {
  width: 8px; height: 8px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
}
.dot.active { background: var(--gold); }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--off-white);
  border-top: 4px solid var(--gold);
  padding: 3.5rem 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-text h2 { margin-bottom: 0.5rem; }
.cta-text p { color: var(--mid-gray); margin: 0; }
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 3.5rem 0 3rem;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.5rem; }
.page-hero .breadcrumb {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.6); }
.page-hero .breadcrumb a:hover { color: var(--gold); }

/* ============================================================
   CONTENT PAGES
   ============================================================ */
.content-section { padding: 4rem 0; }
.content-section .container { max-width: 820px; }
.content-section h2 { margin-top: 2rem; margin-bottom: 0.75rem; }
.content-section h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; color: var(--navy); }
.content-section ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.content-section ul li { margin-bottom: 0.4rem; }

/* Info box */
.info-box {
  background: var(--off-white);
  border-left: 4px solid var(--gold);
  padding: 1.25rem 1.5rem;
  border-radius: 0 3px 3px 0;
  margin: 1.5rem 0;
}
.info-box p:last-child { margin-bottom: 0; }
.info-box .phone-num {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--navy);
}

/* Two-column layout for content pages */
.content-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2rem;
}
@media (max-width: 680px) { .content-two-col { grid-template-columns: 1fr; } }

/* Sidebar card */
.sidebar-card {
  background: var(--navy);
  color: var(--white);
  padding: 2rem;
  border-radius: 4px;
}
.sidebar-card h3 { color: var(--gold); margin-bottom: 1rem; }
.sidebar-card p  { color: rgba(255,255,255,0.85); font-size: 0.95rem; }
.sidebar-card a  { color: var(--gold); }
.sidebar-card .big-phone {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--gold);
  display: block;
  margin: 0.5rem 0 1rem;
}

/* ============================================================
   PRICING TABLE
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.pricing-card {
  background: var(--off-white);
  border-top: 4px solid var(--navy);
  padding: 1.75rem 1.5rem;
  border-radius: 3px;
  text-align: center;
}
.pricing-card.featured { border-top-color: var(--gold); background: var(--navy); color: var(--white); }
.pricing-card.featured h3 { color: var(--gold); }
.pricing-card.featured .price-amount { color: var(--white); }
.pricing-card h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.5rem; }
.price-amount { font-size: 2rem; font-family: 'Georgia', serif; color: var(--navy); margin: 0.5rem 0; }
.price-note { font-size: 0.8rem; color: var(--mid-gray); }
.pricing-card.featured .price-note { color: rgba(255,255,255,0.6); }
.early-bird-note {
  background: #fffbea;
  border: 1px solid var(--gold);
  border-radius: 3px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  color: var(--navy);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 680px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-details h3 { color: var(--navy); margin-bottom: 0.75rem; margin-top: 1.5rem; }
.contact-details h3:first-child { margin-top: 0; }
.contact-details p { margin-bottom: 0.5rem; }
.contact-details a { color: var(--navy); border-bottom: 1px solid var(--gold); padding-bottom: 1px; }
.map-wrapper {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.map-wrapper iframe { display: block; width: 100%; height: 400px; border: none; }

/* ============================================================
   ASK DR. TALSKY FORM
   ============================================================ */
.ask-form-wrapper { max-width: 620px; }
.ask-form-wrapper .form-group { margin-bottom: 1.25rem; }
.ask-form-wrapper label {
  display: block;
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--navy);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
.ask-form-wrapper input,
.ask-form-wrapper textarea,
.ask-form-wrapper select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--light-gray);
  border-radius: 3px;
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--off-white);
  transition: border-color 0.2s;
}
.ask-form-wrapper input:focus,
.ask-form-wrapper textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
}
.ask-form-wrapper textarea { min-height: 160px; resize: vertical; }
.form-submit { margin-top: 1.5rem; }

/* ============================================================
   DR. TALSKY BIO
   ============================================================ */
.bio-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 680px) { .bio-grid { grid-template-columns: 1fr; } }
.bio-portrait {
  background: var(--off-white);
  border: 4px solid var(--gold);
  border-radius: 4px;
  padding: 1rem;
  text-align: center;
}
.bio-portrait-placeholder {
  width: 100%;
  padding-bottom: 120%;
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.bio-portrait-placeholder::after {
  content: 'Dr. Marvin Talsky';
  position: absolute;
  bottom: 1rem;
  left: 0; right: 0;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  text-align: center;
  letter-spacing: 0.04em;
}
.credentials-list {
  background: var(--off-white);
  border-left: 4px solid var(--gold);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 3px 3px 0;
}
.credentials-list li {
  list-style: none !important;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--light-gray);
  font-size: 0.95rem;
}
.credentials-list li:last-child { border-bottom: none; }
.credentials-list li::before {
  content: '&#10003;  ';
  color: var(--gold);
  font-weight: bold;
  margin-right: 0.5rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #111a27;
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer-col h4 { color: var(--gold); margin-bottom: 1rem; }
.footer-col p { font-size: 0.9rem; line-height: 1.6; margin-bottom: 0.5rem; }
.footer-col a { color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-col ul li { margin-bottom: 0.4rem; font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--navy-light);
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  .main-nav.open ul {
    flex-direction: column;
    gap: 0;
  }
  .main-nav.open ul li a {
    display: block;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .nav-toggle { display: block; }
  .site-header { position: relative; }
}
@media (max-width: 680px) {
  .hero { padding: 4rem 0 3.5rem; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   UTILITY
   ============================================================ */
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 2rem; }
.divider {
  border: none;
  border-top: 1px solid var(--light-gray);
  margin: 2rem 0;
}
