/* ============================================
   CHEER DENTAL - COMMON STYLES
   Shared across all pages
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* Brand Tokens */
:root {
  --teal:      #24bcbd;
  --teal-dk:   #1a9e8f;
  --teal-lt:   #e6f7f5;
  --teal-mid:  #c0ede8;
  --navy:      #0d2d40;
  --navy-lt:   #1a4a65;
  --gold:      #24bcbd;
  --gold-lt:   #e6f7f5;
  --white:     #ffffff;
  --off:       #f4fafa;
  --gray:      #6b7f8a;
  --border:    #d0eae8;
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-xl: 32px;
  --sh-sm: 0 2px 10px rgba(36,188,189,.10);
  --sh-md: 0 8px 32px rgba(13,45,64,.13);
  --sh-lg: 0 20px 60px rgba(13,45,64,.16);
  --font-h: 'Montserrat', sans-serif;
  --font-b: 'Montserrat', sans-serif;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { 
  font-family: var(--font-b); 
  color: var(--navy); 
  background: var(--white); 
  line-height: 1.65; 
  -webkit-font-smoothing: antialiased; 
}

/* Common Header Styles */
.site-header {
  background: var(--white); 
  border-bottom: 1px solid var(--border);
  padding: 0 5vw; 
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  height: 72px; 
  position: sticky; 
  top: 0; 
  z-index: 100;
  box-shadow: 0 2px 12px rgba(26,158,143,.08);
}
.logo { 
  font-family: var(--font-h); 
  font-size: 1.6rem; 
  color: var(--teal); 
  letter-spacing: -.5px; 
  text-decoration: none; 
}
.logo span { color: var(--navy); }
.nav { 
  display: flex; 
  gap: 2rem; 
  list-style: none; 
}
.nav a { 
  text-decoration: none; 
  color: var(--navy); 
  font-weight: 500; 
  font-size: .92rem; 
  transition: color .2s; 
}
.nav a:hover { color: var(--teal); }
.header-cta { 
  background: var(--teal); 
  color: #fff; 
  padding: .55rem 1.25rem; 
  border-radius: 50px; 
  font-weight: 600; 
  font-size: .88rem; 
  text-decoration: none; 
  transition: background .2s; 
}
.header-cta:hover { background: var(--teal-dk); }

/* Common Footer Styles */
.site-footer {
  background: var(--navy); 
  color: var(--white); 
  padding: 3rem 5vw; 
  text-align: center;
}
.site-footer p {
  font-size: .9rem; 
  color: var(--gray); 
  margin: 0;
}
.site-footer a { 
  color: var(--teal); 
  text-decoration: none; 
}
.site-footer a:hover { 
  text-decoration: underline; 
}

/* Common Typography */
h1,h2,h3,h4,h5,h6 { 
  font-family: var(--font-h); 
  font-weight: 400; 
  line-height: 1.2; 
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
p { 
  margin-bottom: 1rem; 
  line-height: 1.7; 
}
h1,h2,h3 { 
  font-family: var(--font-h); 
  font-weight: 400; 
  line-height: 1.2; 
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.18rem; font-weight: 600; }
em { font-style: normal; color: #24bcbd; font-weight: 600; }
h2 em { font-style: normal; color: #24bcbd; font-weight: 600; }
h3 em { font-style: normal; color: #24bcbd; font-weight: 600; }

/* Common Utility Classes */
.eyebrow {
  display: inline-flex; 
  align-items: center; 
  gap: .5rem;
  color: var(--teal); 
  font-weight: 700; 
  font-size: .76rem;
  text-transform: uppercase; 
  letter-spacing: .12em; 
  margin-bottom: .7rem;
}
.eyebrow::before { 
  content: ''; 
  width: 24px; 
  height: 2px; 
  background: var(--teal); 
  border-radius: 2px; 
  display: inline-block; 
}

/* Common Section Styles */
.sec {
  padding: 88px 5vw; 
}
.sec-alt { 
  background: var(--off); 
}
.wrap {
  max-width: 1120px; 
  margin: 0 auto;
}

/* Common Button Styles */
.btn-primary {
  display: inline-flex; 
  align-items: center; 
  gap: .5rem;
  background: var(--gold); 
  color: #fff;
  padding: .82rem 1.9rem; 
  border-radius: 50px;
  font-weight: 700; 
  font-size: .95rem; 
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(36,188,189,.38);
  transition: transform .22s, box-shadow .22s;
}
.btn-primary:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 8px 28px rgba(36,188,189,.45); 
}
.btn-secondary {
  background: transparent; 
  color: var(--teal); 
  border: 2px solid var(--teal); 
  padding: .75rem 2rem; 
  border-radius: 50px; 
  font-weight: 600; 
  font-size: 1rem; 
  text-decoration: none; 
  transition: all .2s; 
  display: inline-block;
}
.btn-secondary:hover { 
  background: var(--teal); 
  color: #fff; 
  transform: translateY(-2px);
}
.btn-outline {
  display: inline-flex; 
  align-items: center; 
  gap: .5rem;
  border: 2px solid var(--teal); 
  color: var(--teal);
  padding: .78rem 1.8rem; 
  border-radius: 50px;
  font-weight: 600; 
  font-size: .95rem; 
  text-decoration: none;
  transition: background .2s, color .2s;
}
.btn-outline:hover { 
  background: var(--teal); 
  color: #fff; 
}
.btn-white {
  background: #fff; 
  color: var(--teal); 
  border: 2px solid #fff; 
  padding: .75rem 2rem; 
  border-radius: 50px; 
  font-weight: 600; 
  font-size: 1rem; 
  text-decoration: none; 
  transition: all .2s; 
  display: inline-block;
}
.btn-white:hover { 
  background: transparent; 
  color: #fff; 
  transform: translateY(-2px);
}

/* Common FAQ Styles — full-width list inside .wrap; same UI on all pages */
.faq-intro {
  max-width: none;
  width: 100%;
  margin: 0 auto 3rem;
}
.faq-list {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-item {
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.faq-item:hover {
  border-color: var(--teal);
  box-shadow: var(--sh-sm);
}
.faq-q {
  width: 100%;
  padding: 1.3rem 1.6rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-b);
  font-size: .98rem;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background-color .2s, color .2s;
}
.faq-q:hover {
  background: var(--teal-lt);
}
.faq-q[aria-expanded="true"],
.faq-item.open > .faq-q {
  background: var(--teal-lt);
  color: var(--teal-dk);
}
.faq-icon { 
  width: 28px; 
  height: 28px; 
  background: var(--teal-lt); 
  color: var(--teal);
  border-radius: 50%; 
  display: flex; 
  align-items: center; 
  justify-content: center;
  font-size: 1.1rem; 
  font-weight: 700; 
  flex-shrink: 0;
  transition: transform .3s, background .2s, color .2s;
}
.faq-item.open .faq-icon,
.faq-q[aria-expanded="true"] .faq-icon { 
  transform: rotate(45deg); 
  background: var(--teal); 
  color: #fff; 
}
.faq-a {
  max-height: 0; 
  overflow: hidden; 
  transition: max-height .35s ease;
}
.faq-a.open,
.faq-item.open .faq-a { 
  max-height: 900px; 
}
.faq-a-inner { 
  padding: 0 1.6rem 1.4rem; 
  font-size: .93rem;
  color: var(--gray); 
  line-height: 1.78; 
}

/* Common Animation Classes */
[data-fade] { 
  opacity: 1; 
  transform: none; 
}
[data-fade].visible, 
[data-fade-left].visible { 
  opacity: 1; 
  transform: none; 
}
[data-fade-left] { 
  opacity: 1; 
  transform: none; 
}

/* Responsive */
@media (max-width: 960px) {
  .nav { display: none; }
  .sec { padding: 60px 5vw; }
}
@media (max-width: 640px) {
  .site-header { padding: 0 4vw; }
  .sec { padding: 50px 4vw; }
  .logo { font-size: 1.4rem; }
}
@media (max-width: 960px) {
  .sec { padding: 60px 5vw; }
}
@media (max-width: 640px) {
  .sec { padding: 50px 4vw; }
}
