/* ============================================= */
/* FAMILY SMILES DENTAL – COMPLETE STYLES.CSS    */
/* Clean, modern, mobile-first – ready to go!   */
/* ============================================= */

:root {
  --clr-primary: #005EB8;
  --clr-primary-dark: #003087;
  --clr-accent: #00C2FF;
  --clr-light: #E3F2FD;
  --clr-bg: #ffffff;
  --clr-text: #2d2d2d;
  --clr-muted: #607D8B;
  --radius: 12px;
  --transition: all 0.3s ease;
  --max-width: 1400px;
}

/* ============================================= */
/* RESET & BASE                                  */
/* ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: "Inter", "Open Sans", Arial, sans-serif;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  line-height: 1.6;
  color: var(--clr-text);
  background: var(--clr-bg);
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* ============================================= */
/* TYPOGRAPHY                                    */
/* ============================================= */
h1, h2, h3 {
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; }
h3 { font-size: 1.6rem; font-weight: 600; color: var(--clr-primary); }

.title__sub {
  font-weight: 400;
  font-size: clamp(1rem, 1vw, 1rem);
  color: #B3E5FC;
}

.price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--clr-accent);
  margin: 0.5rem 0;
}

/* ============================================= */
/* HEADER & NAVIGATION                           */
/* ============================================= */
.header {
  background: linear-gradient(135deg, #005EB8, #00C2FF);
  padding: 0.5rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  flex-wrap: nowrap;
  gap: 1rem;
  min-height: 90px;
}

.title__main {
  color: white;
  margin: 0;
  text-align: center;
  font-size: clamp(2rem, 5vw, 2rem);
}


/* Desktop Nav */

.nav-menu {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav__link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  border-radius: 8px;
  transition: var(--transition);
  text-align: center;
}

.nav__link:hover,
.nav__link:focus {
  background: rgba(255,255,255,0.2);
  color: var(--clr-primary-dark);
  padding: 0.5rem;
  font-weight: 500;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

/* Mobile Hamburger */
#nav-toggle { position: absolute; opacity: 0; width: 0; height: 0; }
.nav-toggle-label { display: none; cursor: pointer; }
.nav-toggle-label span {
  display: block;
  width: 30px;
  height: 3px;
  background: white;
  margin: 6px 0;
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 640px) {
  .nav-toggle-label { display: block; }
  .nav-menu {
    order: 3;
    position: absolute;
    top: auto;
    left: 0;
    right: 0;
    background: var(--clr-primary-dark);
    flex-direction: column;
    padding: 0;
    gap: 1.5rem;
    max-height: 0px;
    overflow: scroll;
    transition: max-height 0.35s ease, padding 0.35s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  }
  
  #nav-toggle:checked ~ .nav-menu {
    max-height: 400px;
    padding: 1.5rem 0;
  }
  .nav__link {
    display: block;
    width: 80%;
    margin: 0 auto;
    padding: 1rem;
    text-align: center;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    
  }
  .nav__link:hover { background: var(--clr-accent); color: #000; 
  padding: 1rem; }

  /* Hamburger → X */
  #nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) { transform: rotate(45deg) translate(8px, 5px); }
  #nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) { opacity: 0; transform: translateX(100%);}
  #nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) { transform: rotate(-45deg) translate(8px, -5px); 
  }

  .header__inner { flex-direction: column; text-align: center; padding: 1rem 0; }
}

/* ============================================= */
/* HERO SECTION WITH FULL-SCREEN VIDEO           */
/* ============================================= */
.hero-cta {
  position: relative;
  min-height: 100vh;
  width: 100%;
  margin-left: -50vw;
  margin-right: -50vw;
  left: 50%;
  right: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  overflow: hidden;
  padding: 2rem 1rem;
}

.hero-video {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-cta::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  z-index: -1;
}

/* Hide video controls everywhere */
video::-webkit-media-controls,
video::controls { display: none !important; }

/* CTA Button */
.cta-btn {
  background: var(--clr-accent);
  color: #000;
  font-weight: 700;
  font-size: 1.6rem;
  padding: 1.2rem 3rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0,194,255,0.5);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.cta-btn:hover {
  transform: translateY(-6px);
  background: white;
}

/* ============================================= */
/* GENERAL SECTIONS & CARDS                      */
/* ============================================= */
.section {
  padding: 3rem 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
  background: linear-gradient(0deg, #005EB8, #d7f6ff);
}

.section__title {
  text-align: center;
  color: var(--clr-primary);
  position: relative;
  margin-bottom: 3rem;
}

.section__title::after {
  content: '';
  width: 80px;
  height: 4px;
  background: var(--clr-accent);
  display: block;
  margin: 1rem auto;
  border-radius: 2px;
}

.service-icon {
  width: 160px;
  height: 100px;
}

.section__intro {
  color: var(--clr-primary-dark);
  text-align: center;
  padding: 20px;
  font-size: 1.5rem;
}

.services-grid,
.testimonial-grid,
.team-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 1200px;
  margin: 0 auto;
  
}

.service-img,
blockquote,
.dentist-card {
  background: white;
  padding: 4rem;
  border-radius: var(--radius);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: var(--transition);
  text-align: center;
}

.h3 {
  padding: 10px;
}

.service-img:hover,
.dentist-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,94,184,0.15);
}


.testimonials { background: var(--clr-light); padding: 5rem 1rem; }
.pricing-teaser {
  text-align: center;
  padding: 3rem;
  background: var(--clr-primary);
  color: white;
  font-size: 1.4rem;
}
.pricing-teaser strong { color: var(--clr-accent); font-size: 1.8rem; }

/* ============================================= */
/* CONTACT FORM                                  */
/* ============================================= */
.contact-form { max-width: 700px; margin: 3rem auto; display: grid; gap: 1.5rem; }
.form-group { display: grid; grid-template-columns: 140px 1fr; gap: 1rem; align-items: center; }
.form-group--full { grid-column: 1 / -1; }
.form-label { justify-self: end; text-align: right; font-weight: 600; color: var(--clr-primary); }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font: inherit;
  transition: var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 4px rgba(0,94,184,0.15);
}
.form-submit {
  background: var(--clr-primary);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  justify-self: start;
}
.form-submit:hover { background: var(--clr-primary-dark); transform: translateY(-3px); }

@media (max-width: 560px) {
  .form-group, .form-group--full { grid-template-columns: 1fr; }
  .form-label { justify-self: start; text-align: left; }
}

/* ============================================= */
/* FOOTER                                        */
/* ============================================= */
.footer {
  background: var(--clr-primary-dark);
  color: white;
  text-align: center;
  padding: 4rem 1rem;
  margin-top: auto;
}

.social-icon {
  color: white;
  text-decoration: none;
  font-weight: 600;
  margin: 0 1rem;
  transition: var(--transition);
}
.social-icon:hover { color: var(--clr-accent); }



/* ============================================= */
/* CONTACT PAGE – BEAUTIFUL STACKED CARDS       */
/* ============================================= */
.contact-page {
  padding: 4rem 1.5rem;
  width: 100%;
  max-width: none;           /* keeps everything nicely centered and not too wide */
  margin: 0;
  display: block;
  gap: 3.5rem;
  grid-template-columns: 1fr;   /* ← THIS forces 1 column forever */
}

.info-card {
  background: white;
  display: flex;
  padding: 10px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
  transition: transform 0.3s ease;
}

.contact-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
  transition: transform 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-8px);
}
@media (min-width: 768px) {
  .contact-page {
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  }
}

.contact-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
  transition: transform 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-8px);
}

.contact-card__inner {
  padding: 3rem 2rem;
  text-align: center;
}

.contact-card__title {
  color: var(--clr-primary);
  margin-bottom: 2rem;
  font-size: 2rem;
}

.icon {
  color: var(--clr-accent);
  margin-right: 0.8rem;
  font-size: 1.4rem;
}

.contact-info {
  font-size: 1.3rem;
  margin: 1.2rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.contact-info a {
  color: var(--clr-primary);
  font-weight: 600;
}

.contact-note,
.form-note {
  margin-top: 2rem;
  color: var(--clr-muted);
  font-size: 1.1rem;
}
.map-card {
  margin: auto;
  border-radius: 20px;
  overflow: visible !important;  
}

.map-card iframe {
  display: block;
  width: 100%;
  height: 250px;          
  border: 0;
  
}

.booking-form {
  padding-top: 40px;
}

.form-submit {
  font-size: 1rem;
}

.service-card {
  margin: 30px;
  background: white;
  padding: 4rem;
  border-radius: var(--radius);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: var(--transition);
  text-align: center;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,94,184,0.15);
}

