/* ================================================================
   Breathing & Functional Dentistry — Main Stylesheet
   Edit this file to change styles across all pages.
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --teal:    #293ebf;
  --teal-lt: #2d43cc;
  --teal-dk: #0e1540;
  --cream:   #f7f4ef;
  --sand:    #e8e1d5;
  --text:    #2c2c2c;
  --muted:   #6b7070;
  --white:   #ffffff;
}
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; color: var(--text); background: var(--cream); line-height: 1.7; }

/* NAV */
nav { background: var(--white); border-bottom: 1px solid var(--sand); position: sticky; top: 0; z-index: 100; }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav-logo img { height: 60px; width: auto; display: block; }
.nav-links { display: flex; gap: 0.1rem; list-style: none; flex-wrap: wrap; align-items: center; }
.nav-links > li { position: relative; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 0.82rem; font-weight: 500; padding: 0.4rem 0.65rem; border-radius: 4px; transition: color 0.2s, background 0.2s; display: block; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--teal); background: var(--cream); }
.nav-cta { background: var(--teal) !important; color: var(--white) !important; border-radius: 20px !important; }
.nav-cta:hover { background: var(--teal-dk) !important; }
.has-dropdown > a::after { content: ' \25BE'; font-size: 0.7rem; }
.has-dropdown:hover .dropdown { display: block; }
.dropdown { display: none; position: absolute; top: 100%; left: 0; background: var(--white); border: 1px solid var(--sand); border-radius: 8px; min-width: 240px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); z-index: 200; padding: 0.4rem 0; }
.dropdown li { list-style: none; }
.dropdown a { white-space: nowrap; border-radius: 0 !important; padding: 0.55rem 1.1rem !important; }

/* HERO */
.hero { background: linear-gradient(135deg, var(--teal-dk) 0%, var(--teal) 60%, var(--teal-lt) 100%); color: var(--white); padding: 0; position: relative; overflow: hidden; min-height: 560px; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.18; }
.hero-content { position: relative; max-width: 1100px; margin: 0 auto; padding: 6rem 2rem; width: 100%; }
.hero h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.4rem, 5vw, 4.4rem); font-weight: 300; line-height: 1.1; margin-bottom: 1.25rem; max-width: 680px; }
.hero h1 em { font-style: italic; }
.hero p { font-size: 1.1rem; font-weight: 300; opacity: 0.9; max-width: 560px; margin-bottom: 2.5rem; }
.hero-tag { display: inline-block; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.35); color: var(--white); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.3rem 1rem; border-radius: 20px; margin-bottom: 1.5rem; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-hero { display: inline-block; background: var(--white); color: var(--teal-dk); text-decoration: none; padding: 0.75rem 2rem; border-radius: 25px; font-weight: 500; font-size: 0.9rem; transition: all 0.2s; }
.btn-hero:hover { background: var(--cream); }
.btn-hero-outline { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.5); }
.btn-hero-outline:hover { background: rgba(255,255,255,0.15); }

/* PAGE HEADER */
.page-header { background: linear-gradient(135deg, var(--teal-dk) 0%, var(--teal) 100%); color: var(--white); padding: 4.5rem 2rem 4rem; position: relative; overflow: hidden; }
.page-header-bg { position: absolute; inset: 0; }
.page-header-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.12; }
.page-header-inner { max-width: 1100px; margin: 0 auto; position: relative; }
.page-header h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 300; margin-bottom: 0.6rem; }
.page-header p { opacity: 0.85; max-width: 620px; font-size: 1rem; }

/* SECTIONS */
section { padding: 5rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }
.section-label { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal); font-weight: 500; margin-bottom: 0.6rem; }
.section-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 400; line-height: 1.15; color: var(--teal-dk); margin-bottom: 1rem; }
.section-body { color: var(--muted); max-width: 700px; line-height: 1.8; }
.section-divider { width: 40px; height: 2px; background: var(--teal); margin-bottom: 1.75rem; }

/* IMAGES */
.img-full { width: 100%; height: auto; display: block; border-radius: 10px; }
.img-cover { width: 100%; height: 320px; object-fit: cover; border-radius: 10px; }
.img-cover-tall { width: 100%; height: 420px; object-fit: cover; border-radius: 10px; }

/* CARDS */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.card { background: var(--white); border: 1px solid var(--sand); border-radius: 10px; padding: 1.75rem; }
.card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; color: var(--teal-dk); margin-bottom: 0.6rem; }
.card p { font-size: 0.92rem; color: var(--muted); line-height: 1.7; }
.card-teal { background: var(--teal-dk); border-color: var(--teal-dk); }
.card-teal h3 { color: var(--white); }
.card-teal p { color: rgba(255,255,255,0.82); }
.hcard { border-left: 3px solid var(--teal); padding: 1.5rem 1.5rem 1.5rem 1.75rem; background: var(--white); border-radius: 0 10px 10px 0; }
.hcard h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; color: var(--teal-dk); margin-bottom: 0.4rem; }
.hcard p { font-size: 0.92rem; color: var(--muted); line-height: 1.7; }

/* LISTS */
.check-list { list-style: none; }
.check-list li { display: flex; gap: 0.9rem; padding: 0.8rem 0; border-bottom: 1px solid var(--sand); font-size: 0.95rem; }
.check-list li::before { content: '\2713'; color: var(--teal); font-weight: 700; flex-shrink: 0; }
.bullet-list { list-style: none; }
.bullet-list li { padding: 0.4rem 0 0.4rem 1.2rem; font-size: 0.93rem; color: var(--text); position: relative; line-height: 1.6; }
.bullet-list li::before { content: '\2013'; position: absolute; left: 0; color: var(--teal); }

/* TWO-COL LAYOUT */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.two-col-img { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 760px) { .two-col, .two-col-img { grid-template-columns: 1fr; gap: 2.5rem; } }

/* TREATMENT GRID */
.treatment-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.treatment-item { background: var(--white); border: 1px solid var(--sand); border-radius: 8px; padding: 1rem 1.25rem; font-size: 0.9rem; color: var(--teal-dk); font-weight: 500; transition: all 0.2s; text-decoration: none; display: block; }
.treatment-item:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }

/* CALLOUT */
.callout { background: linear-gradient(120deg, var(--teal) 0%, var(--teal-lt) 100%); color: var(--white); text-align: center; padding: 5rem 2rem; }
.callout h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 300; margin-bottom: 1rem; }
.callout p { opacity: 0.88; max-width: 580px; margin: 0 auto 2rem; }
.btn { display: inline-block; text-decoration: none; padding: 0.65rem 1.6rem; border-radius: 25px; font-size: 0.88rem; font-weight: 500; transition: all 0.2s; }
.btn-white { background: var(--white); color: var(--teal-dk); }
.btn-white:hover { background: var(--cream); }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--teal-dk); }
.btn-outline { background: transparent; border: 1px solid var(--teal); color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: var(--white); }
.btn-outline-white { background: transparent; border: 1px solid rgba(255,255,255,0.5); color: var(--white); }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); }

/* VIDEO EMBED */
.video-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 10px; background: #000; }
.video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; border-radius: 10px; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--sand); padding: 1.5rem 0; }
.faq-q { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; color: var(--teal-dk); font-weight: 600; margin-bottom: 0.65rem; }
.faq-a { color: var(--muted); font-size: 0.95rem; line-height: 1.8; }

/* CONTACT */
.contact-block { margin-bottom: 1.75rem; }
.contact-block h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; color: var(--teal-dk); margin-bottom: 0.4rem; }
.contact-block p, .contact-block a { color: var(--muted); font-size: 0.95rem; text-decoration: none; display: block; line-height: 1.8; }
.contact-block a:hover { color: var(--teal); }

/* FORM */
.form-field { border: 1px solid var(--sand); border-radius: 6px; padding: 0.7rem 1rem; font-family: inherit; font-size: 0.9rem; outline: none; width: 100%; background: var(--white); color: var(--text); }
.form-field:focus { border-color: var(--teal); }

/* STUDIES */
.study-card { background: var(--white); border: 1px solid var(--sand); border-radius: 10px; padding: 1.5rem 2rem; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.study-tag { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); font-weight: 600; margin-bottom: 0.4rem; }
.study-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; color: var(--teal-dk); max-width: 680px; }

/* FORMS PAGE */
.form-card { background: var(--white); border: 1px solid var(--sand); border-radius: 10px; padding: 2rem; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.form-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; color: var(--teal-dk); }
.form-card p { color: var(--muted); font-size: 0.9rem; margin-top: 0.25rem; }

/* AFFILIATIONS */
.affil-grid { display: flex; gap: 2.5rem; align-items: center; flex-wrap: wrap; margin-top: 2rem; }
.affil-grid img { height: 60px; width: auto; object-fit: contain; filter: grayscale(20%); }

/* MISSING NOTE */
.missing-note { background: #fffbea; border: 1px solid #f0d060; border-radius: 8px; padding: 1rem 1.25rem; font-size: 0.84rem; color: #7a6000; margin-top: 1rem; }
.missing-note strong { display: block; margin-bottom: 0.2rem; }

/* PRIVACY TABLE */
table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; font-size: 0.88rem; }
th { background: var(--teal-dk); color: var(--white); text-align: left; padding: 0.75rem 1rem; }
td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--sand); vertical-align: top; color: var(--muted); }
tr:nth-child(even) td { background: var(--white); }

/* FOOTER */
footer { background: var(--teal-dk); color: rgba(255,255,255,0.55); padding: 3rem 2rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 680px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand img { height: 120px; width: auto; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.85rem; opacity: 0.7; line-height: 1.7; }
.footer-col h4 { color: rgba(255,255,255,0.85); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col a, .footer-col p { display: block; color: rgba(255,255,255,0.55); font-size: 0.85rem; text-decoration: none; line-height: 2; }
.footer-col a:hover { color: rgba(255,255,255,0.9); }
.footer-bottom { max-width: 1100px; margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.footer-bottom a { color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,0.85); }
