/* Dental Sedation Ottawa - Main Stylesheet */
/* Design System: Teal (#4A7C6F), Sage (#E8F0ED), Cream (#FAF8F5), Lavender (#E8E4F0), Dark Teal (#3D5A50) */

:root {
  --teal: #4A7C6F;
  --dark-teal: #3D5A50;
  --sage: #E8F0ED;
  --cream: #FAF8F5;
  --lavender: #E8E4F0;
  --white: #ffffff;
  --black: #1a1a1a;
  --gray-600: #4a5568;
  --gray-400: #a0aec0;
  --gold: #d4a574;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.3;
  color: var(--black);
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover { color: var(--dark-teal); }

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li { margin-bottom: 0.5rem; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container.wide { max-width: 1400px; }
.container.narrow { max-width: 1100px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.btn-primary:hover {
  background: var(--dark-teal);
  border-color: var(--dark-teal);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}

.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--teal);
  border-color: var(--white);
}

.btn-light:hover {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--dark-teal);
}

.btn-header {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}

.logo { flex-shrink: 0; }
.logo-img { height: 50px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  color: var(--black);
  transition: color 0.2s ease;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--teal);
}

.header-phone svg {
  width: 20px;
  height: 20px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: all 0.3s ease;
}

/* Hero Banner */
.hero-banner {
  background: var(--teal);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.hero-banner h1 {
  color: var(--white);
  margin-bottom: 16px;
}

.hero-banner p {
  font-size: 1.25rem;
  opacity: 0.95;
  max-width: 1100px;
  margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb-bar {
  background: var(--sage);
  padding: 12px 0;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--gray-600);
}

.breadcrumb a {
  color: var(--gray-600);
}

.breadcrumb a:hover { color: var(--teal); }

/* Footer */
.footer {
  background: var(--dark-teal);
  color: var(--white);
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: rgba(255,255,255,0.8);
  margin: 16px 0;
}

.footer-logo img {
  height: 45px;
  width: auto;
}

.social-icons {
  display: flex;
  gap: 12px;
  margin: 20px 0;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: var(--white);
  transition: background 0.2s ease;
}

.social-icon:hover {
  background: rgba(255,255,255,0.2);
  color: var(--white);
}

.social-icon svg {
  width: 20px;
  height: 20px;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.9);
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.footer-contact a {
  color: rgba(255,255,255,0.9);
}

.footer-contact a:hover { color: var(--white); }

.footer-extras {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
}

.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.footer-nav-grid h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}

.footer-links a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: rgba(255,255,255,0.7);
}

.footer-legal a:hover { color: var(--white); }

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 999;
  padding: 80px 20px 40px;
  flex-direction: column;
  gap: 24px;
}

.mobile-nav.active { display: flex; }

.mobile-nav a {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--black);
  padding: 12px 0;
  border-bottom: 1px solid var(--sage);
}

/* Responsive */
@media (max-width: 1024px) {
  .nav { display: none; }
  .header-phone { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-nav-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .hero-banner { padding: 60px 0; }
  
  .footer-nav-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .btn {
    padding: 12px 20px;
    width: 100%;
  }
}

/* Schedule CTA Section */
.schedule-section {
  background: var(--teal);
  padding: 60px 0;
  color: #ffffff;
}

.schedule-section h2 {
  color: #ffffff;
  text-align: center;
  margin-bottom: 32px;
}

.contact-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
}

.contact-item svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.contact-item a {
  color: #ffffff;
}

.contact-item a:hover {
  opacity: 0.9;
}

.schedule-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.schedule-section .btn-light {
  background: #ffffff;
  color: var(--teal);
}

.schedule-section .btn-outline.white {
  border-color: #ffffff;
  color: #ffffff;
}

.schedule-section .btn-outline.white:hover {
  background: rgba(255,255,255,0.1);
}

/* Related Procedures Section */
.related-section {
  background: var(--sage);
  padding: 40px 0;
}

.related-header {
  text-align: center;
  margin-bottom: 20px;
}

.related-header h3 {
  color: var(--teal);
  font-size: 1.25rem;
  margin: 0;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Fallback for browsers without gap support */
.related-links > * {
  margin: 6px;
}

.related-links a {
  display: inline-block;
  padding: 10px 20px;
  background: #ffffff;
  color: #4A7C6F;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid rgba(74, 124, 111, 0.2);
  white-space: nowrap;
}

.related-links a:hover {
  background: #4A7C6F;
  color: #ffffff;
  border-color: #4A7C6F;
}

@media (max-width: 768px) {
  .contact-grid {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  
  .schedule-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .schedule-buttons .btn {
    width: 100%;
    max-width: 280px;
  }
  
  .related-links {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}

/* Mobile Bottom Bar */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 998;
  padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}

.bar-inner {
  display: flex;
  gap: 12px;
  max-width: 400px;
  margin: 0 auto;
}

.bar-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-call {
  background: var(--teal);
  color: var(--white);
}

.btn-call:hover {
  background: var(--dark-teal);
  color: var(--white);
}

.btn-directions {
  background: var(--sage);
  color: var(--teal);
}

.btn-directions:hover {
  background: var(--lavender);
  color: var(--dark-teal);
}

.bar-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

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

/* Section Label */
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--teal);
  margin-bottom: 12px;
}

/* Intro Section */
.intro-section {
  background: var(--white);
  padding: 60px 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.intro-content {
  max-width: 1100px;
}

.intro-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.section-ctas {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.cta-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--teal);
}

.cta-phone svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 768px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .intro-image {
    order: -1;
  }
  
  .section-ctas {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Reasons Section (Lavender background) */
.reasons-section {
  background: var(--lavender);
  padding: 60px 0;
}

.reasons-header {
  text-align: center;
  margin-bottom: 40px;
}

/* Process Section (Dark Teal background) */
.process-section {
  background: var(--dark-teal);
  padding: 60px 0;
}

.process-header {
  text-align: center;
  margin-bottom: 40px;
}

.process-header .section-label {
  color: rgba(255,255,255,0.8);
}

.process-header h2 {
  color: var(--white);
}

.process-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.process-image img {
  width: 100%;
  border-radius: var(--radius-lg);
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.process-block {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 24px;
}

.process-block h3 {
  color: var(--white);
  margin-bottom: 8px;
}

.process-block p {
  color: rgba(255,255,255,0.9);
  margin: 0;
}

@media (max-width: 768px) {
  .process-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Recovery Section */
.recovery-section {
  background: var(--white);
  padding: 60px 0;
}

.recovery-header {
  text-align: center;
  margin-bottom: 40px;
}

/* Emergency Box */
.emergency-box {
  background: #FEF3CD;
  border: 1px solid #F0D47E;
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.emergency-box .icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emergency-box .icon svg {
  width: 20px;
  height: 20px;
  color: var(--white);
}

/* Cost Section */
.cost-section {
  background: var(--lavender);
  padding: 60px 0;
}

.cost-header {
  text-align: center;
  margin-bottom: 40px;
}

.cost-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto 30px;
}

.cost-card {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.cost-card h4 {
  color: var(--teal);
  margin-bottom: 8px;
}

.cost-card .price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 4px;
}

.insurance-box {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius-lg);
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.insurance-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* Testimonial Section */
.testimonial-section {
  background: var(--cream);
  padding: 60px 0;
}

.testimonial-header {
  text-align: center;
  margin-bottom: 40px;
}

.rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.stars {
  color: #F5A623;
  font-size: 1.25rem;
}

.rating-text {
  color: var(--gray-600);
  font-size: 0.95rem;
}

.testimonial-card {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.testimonial-card .quote {
  font-style: italic;
  margin-bottom: 16px;
  line-height: 1.7;
}

.testimonial-card .author {
  font-weight: 600;
  color: var(--teal);
}

/* Why Choose Section */
.why-choose-section {
  background: var(--white);
  padding: 60px 0;
}

.why-choose-header {
  text-align: center;
  margin-bottom: 40px;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto 40px;
}

.advantage-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--cream);
  border-radius: var(--radius-md);
}

.advantage-item .check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.advantage-item .check svg {
  width: 16px;
  height: 16px;
  color: var(--white);
}

.referral-note {
  background: var(--sage);
  padding: 28px;
  border-radius: var(--radius-lg);
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}

.referral-note p {
  margin-bottom: 16px;
}

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

/* Service Area Section */
.service-area-section {
  background: var(--cream);
  padding: 60px 0;
}

.service-area-header {
  text-align: center;
  margin-bottom: 40px;
}

.location-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Fallback for browsers without gap support */
.location-tags > * {
  margin: 6px;
}

.location-tag,
a.location-tag,
span.location-tag {
  display: inline-block;
  padding: 8px 16px;
  background: #ffffff;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #4A7C6F;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid rgba(74, 124, 111, 0.2);
  white-space: nowrap;
}

a.location-tag:hover {
  background: #4A7C6F;
  color: #ffffff;
  border-color: #4A7C6F;
}

span.location-tag {
  background: #f8f8f8;
  color: #5a7a70;
  border-color: rgba(74, 124, 111, 0.15);
}

/* FAQ Section */
.faq-section {
  background: var(--lavender);
  padding: 60px 0;
}

.faq-header {
  text-align: center;
  margin-bottom: 40px;
}

.faq-list {
  max-width: 1100px;
  margin: 0 auto;
}

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

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: var(--cream);
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--teal);
  transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
  transform: rotate(45deg);
}

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

.faq-answer p {
  padding: 0 24px 20px;
  color: var(--gray-600);
}

/* Button outline white variant */
.btn-outline.white {
  border-color: var(--white);
  color: var(--white);
}

.btn-outline.white:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

/* =================================
   MISSING BUTTON STYLES
   ================================= */

/* White button (for teal/dark backgrounds) */
.btn-white {
  display: inline-block;
  padding: 14px 28px;
  background: #ffffff;
  color: #4A7C6F;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  border: 2px solid #ffffff;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-white:hover {
  background: var(--cream);
  border-color: var(--cream);
  color: #3D5A50;
}

/* White outline button (for teal/dark backgrounds) */
.btn-outline-white {
  display: inline-block;
  padding: 14px 28px;
  background: transparent;
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  border: 2px solid #ffffff;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  color: #ffffff;
}

/* CTA banner button container */
.cta-banner .btn-white,
.cta-banner .btn-outline-white {
  min-width: 200px;
}


/* =================================
   INLINE LINK RESET
   Ensure links inside paragraphs and list items remain simple text links
   ================================= */
p a:not(.btn):not(.location-tag),
li a:not(.btn):not(.location-tag),
span a:not(.btn):not(.location-tag) {
  display: inline;
  background: transparent;
  padding: 0;
  border: none;
  border-radius: 0;
  font-weight: inherit;
  color: var(--teal);
  text-decoration: underline;
}

p a:not(.btn):not(.location-tag):hover,
li a:not(.btn):not(.location-tag):hover,
span a:not(.btn):not(.location-tag):hover {
  color: var(--dark-teal);
  text-decoration: underline;
}
