/* ==========================================================================
   Norwell Oral Surgery & Dental Implant Center
   ========================================================================== */

:root {
  --teal-deep: #123A34;
  --teal-deep-dark: #0B2622;
  --teal: #1F6F5C;
  --teal-light: #E4EEEA;
  --sage: #8FB8A8;
  --ivory: #FAF6EF;
  --ivory-deep: #F1E9D9;
  --terracotta: #C1622D;
  --terracotta-dark: #9C4C21;
  --charcoal: #22282A;
  --white: #FFFFFF;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', sans-serif;
  color: var(--charcoal);
  background-color: var(--ivory);
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

a {
  text-decoration: none;
}

.section-pad {
  padding: 6rem 0;
}

@media (max-width: 767.98px) {
  .section-pad {
    padding: 4rem 0;
  }
}

.eyebrow {
  font-family: 'Manrope', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta-dark);
}

.eyebrow.on-dark {
  color: var(--sage);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--teal-deep);
  margin-bottom: 1rem;
}

.section-intro {
  max-width: 700px;
  color: #4A5450;
  font-size: 1.05rem;
}

/* ---------------- Navbar ---------------- */
.navbar {
  background-color: rgba(250, 246, 239, 0.97);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 18px rgba(18, 58, 52, 0.08);
  padding: 0.6rem 0;
  transition: padding 0.25s ease;
}

.navbar-brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.navbar-logo {
  height: 46px;
  width: auto;
  border-radius: 6px;
}

.navbar-brand-text {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--teal-deep) !important;
  line-height: 1.15;
}

.navbar-brand-text small {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--terracotta-dark);
}

.navbar-nav .nav-link {
  color: var(--charcoal);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.7rem !important;
  white-space: nowrap;
}

.navbar .btn-terracotta {
  white-space: nowrap;
}

@media (min-width: 1200px) and (max-width: 1339.98px) {
  .navbar-nav .nav-link {
    font-size: 0.88rem;
    padding: 0.5rem 0.5rem !important;
  }
  .navbar-phone {
    font-size: 0.88rem;
  }
  .navbar .btn-terracotta {
    padding: 0.6rem 1.1rem;
    font-size: 0.88rem;
  }
}

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

.navbar-phone {
  color: var(--teal-deep);
  font-weight: 700;
  white-space: nowrap;
}

.btn-terracotta {
  background-color: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
  color: var(--white);
  font-weight: 700;
  padding: 0.65rem 1.5rem;
  border-radius: 30px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-terracotta:hover {
  background-color: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline-teal {
  border: 2px solid var(--white);
  color: var(--white);
  font-weight: 700;
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  background: transparent;
  transition: all 0.2s ease;
}

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

.btn-teal-solid {
  background-color: var(--teal-deep);
  border-color: var(--teal-deep);
  color: var(--white);
  font-weight: 700;
  padding: 0.65rem 1.5rem;
  border-radius: 30px;
}

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

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('img/hero.webp') center/cover no-repeat;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 65% at 50% 48%, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.04) 100%),
    linear-gradient(to bottom, rgba(10,30,26,0.35) 0%, rgba(10,30,26,0.12) 45%, rgba(10,30,26,0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 2.75rem 2rem;
  margin: 0 1rem;
  background: rgba(10, 30, 26, 0.22);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 18px;
}

.hero-eyebrow {
  color: var(--sage);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.85rem;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 1px 12px rgba(0,0,0,0.95), 0 0 30px rgba(0,0,0,0.8);
}

.hero-title {
  font-family: 'Fraunces', serif;
  color: var(--white);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 600;
  margin: 0.75rem 0 1rem;
  text-shadow: 0 0 4px rgba(0,0,0,1), 0 2px 20px rgba(0,0,0,0.95), 0 0 60px rgba(0,0,0,0.8);
}

.hero-subtitle {
  color: var(--white);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 500;
  margin-bottom: 2rem;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 2px 16px rgba(0,0,0,0.95), 0 0 40px rgba(0,0,0,0.85);
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------------- Mission strip ---------------- */
.mission-strip {
  background-color: var(--teal-deep);
  color: var(--ivory);
  padding: 3.5rem 0;
  text-align: center;
}

.mission-strip p {
  max-width: 820px;
  margin: 0 auto;
  font-family: 'Fraunces', serif;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--white);
}

/* ---------------- About ---------------- */
.about-img {
  border-radius: 16px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: 0 20px 45px rgba(18,58,52,0.18);
}

/* ---------------- Doctors ---------------- */
.doctor-card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(18,58,52,0.08);
  height: 100%;
}

.doctor-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
}

.doctor-photo-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, var(--teal-deep), var(--teal));
}

.doctor-monogram {
  font-family: 'Fraunces', serif;
  font-size: 5rem;
  font-weight: 600;
  color: var(--sage);
}

.doctor-body {
  padding: 1.75rem;
}

.doctor-name {
  color: var(--teal-deep);
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
}

.doctor-title {
  color: var(--terracotta-dark);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.doctor-body p {
  font-size: 0.95rem;
  color: #4A5450;
}

.doctor-creds {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  font-size: 0.88rem;
}

.doctor-creds li {
  padding-left: 1.4rem;
  position: relative;
  margin-bottom: 0.4rem;
  color: var(--teal-deep);
}

.doctor-creds li i {
  position: absolute;
  left: 0;
  top: 0.2rem;
  color: var(--terracotta);
}

/* ---------------- Feature grid (Why Patients Love Us) ---------------- */
.feature-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  height: 100%;
  text-align: center;
  box-shadow: 0 8px 22px rgba(18,58,52,0.06);
  transition: transform 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
  font-size: 1.6rem;
  color: var(--teal-deep);
}

.feature-card h3 {
  font-size: 1.1rem;
  color: var(--teal-deep);
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.92rem;
  color: #4A5450;
  margin-bottom: 0;
}

/* ---------------- Procedures grid ---------------- */
.procedures-section {
  background-color: var(--teal-light);
}

.procedure-card {
  background: var(--white);
  border-radius: 14px;
  padding: 1.75rem 1.4rem;
  height: 100%;
  box-shadow: 0 6px 18px rgba(18,58,52,0.07);
}

.procedure-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--teal-deep);
  color: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.9rem;
}

.procedure-card h3 {
  font-size: 1.05rem;
  color: var(--teal-deep);
  margin-bottom: 0.4rem;
}

.procedure-card p {
  font-size: 0.86rem;
  color: #4A5450;
  margin-bottom: 0;
}

/* ---------------- Technology ---------------- */
.tech-section {
  background: var(--teal-deep);
  color: var(--ivory);
}

.tech-section .section-title {
  color: var(--white);
}

.tech-section .section-intro {
  color: var(--sage);
}

.tech-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.tech-list li {
  padding-left: 2rem;
  position: relative;
  margin-bottom: 0.9rem;
  font-size: 1rem;
  color: var(--ivory);
}

.tech-list li i {
  position: absolute;
  left: 0;
  top: 0.15rem;
  color: var(--sage);
  font-size: 1.2rem;
}

.tech-img {
  border-radius: 16px;
  width: 100%;
  box-shadow: 0 20px 45px rgba(0,0,0,0.3);
}

/* ---------------- Gallery ---------------- */
.gallery-item {
  overflow: hidden;
  border-radius: 14px;
  height: 260px;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.9rem 1rem;
  background: linear-gradient(to top, rgba(11,38,34,0.85), transparent);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
}

/* ---------------- Patient Info ---------------- */
.info-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  border-left: 4px solid var(--terracotta);
  box-shadow: 0 8px 22px rgba(18,58,52,0.06);
}

.info-card i.info-icon {
  font-size: 1.6rem;
  color: var(--teal-deep);
  margin-bottom: 0.75rem;
  display: block;
}

.info-card h3 {
  font-size: 1.1rem;
  color: var(--teal-deep);
  margin-bottom: 0.5rem;
}

.info-card p {
  font-size: 0.92rem;
  color: #4A5450;
  margin-bottom: 0;
}

.refer-banner {
  background: linear-gradient(120deg, var(--terracotta-dark), var(--terracotta));
  border-radius: 18px;
  padding: 2.5rem;
  color: var(--white);
  text-align: center;
}

.refer-banner h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.referring-doctors-card {
  background: var(--teal-deep);
  border-radius: 18px;
  padding: 2.5rem;
  color: var(--ivory);
  text-align: center;
}

.referring-doctors-card h3 {
  color: var(--white);
}

/* ---------------- Reviews ---------------- */
.reviews-section {
  background: var(--ivory-deep);
  text-align: center;
}

.social-row {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.social-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--teal-deep);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: all 0.2s ease;
}

.social-btn:hover {
  background: var(--terracotta-dark);
  color: var(--white);
  transform: translateY(-3px);
}

/* ---------------- Location / Contact ---------------- */
.location-section {
  background: var(--white);
}

.contact-detail {
  display: flex;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.contact-detail i {
  color: var(--terracotta-dark);
  font-size: 1.3rem;
  margin-top: 0.15rem;
}

.contact-detail h4 {
  font-size: 1rem;
  color: var(--teal-deep);
  margin-bottom: 0.2rem;
  font-family: 'Fraunces', serif;
}

.contact-detail p {
  margin-bottom: 0;
  font-size: 0.94rem;
  color: #4A5450;
}

.hours-table {
  width: 100%;
  font-size: 0.94rem;
}

.hours-table td {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--teal-light);
}

.hours-table td:first-child {
  padding-right: 1.5rem;
}

.hours-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--teal-deep);
  white-space: nowrap;
}

.map-frame {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(18,58,52,0.15);
  height: 100%;
  min-height: 380px;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
}

/* ---------------- Footer ---------------- */
footer {
  background: var(--teal-deep-dark);
  color: var(--ivory);
  padding: 4rem 0 1.5rem;
}

.footer-logo-chip {
  display: inline-block;
  background: var(--ivory);
  border-radius: 12px;
  padding: 0.75rem 1.1rem;
  margin-bottom: 1.25rem;
}

.footer-logo-chip img {
  height: 42px;
  width: auto;
  display: block;
}

footer h4 {
  font-family: 'Fraunces', serif;
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
}

footer p, footer a {
  color: #C7D6D0;
  font-size: 0.92rem;
}

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

footer ul li {
  margin-bottom: 0.6rem;
}

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

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(199,214,208,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ivory);
}

.footer-social a:hover {
  background: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
}

.footer-bottom {
  border-top: 1px solid rgba(199,214,208,0.15);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  text-align: center;
}

.footer-bottom a {
  color: var(--sage);
  font-weight: 700;
}

/* ---------------- Responsive tweaks ---------------- */
@media (max-width: 1199.98px) {
  .navbar-nav {
    background: var(--white);
    padding: 1rem;
    border-radius: 12px;
    margin-top: 0.5rem;
  }
}

@media (max-width: 575.98px) {
  .hero-content {
    padding: 2rem 1.25rem;
  }
  .gallery-item {
    height: 220px;
  }
}
