/* ===== Prime Dental — East Wareham, MA ===== */

:root {
  --navy: #0d2b45;
  --navy-deep: #081c2f;
  --teal: #1fb6a3;
  --teal-deep: #17968a;
  --gold: #f0b93d;
  --cream: #f7f5ef;
  --ink: #16242f;
  --muted: #5b6b76;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--cream);
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4,
.navbar-brand,
.section-title,
.stat-num {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
}

a {
  text-decoration: none;
}

/* ===== Navbar ===== */

.navbar-prime {
  background: var(--navy);
  padding: 0.7rem 0;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
}

.navbar-prime .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white) !important;
}

.navbar-prime .logo-chip {
  background: var(--white);
  border-radius: 8px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.navbar-prime .logo-chip img {
  height: 26px;
  width: auto;
  display: block;
}

.navbar-prime .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s ease;
}

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

.btn-appointment {
  background: var(--teal);
  color: var(--navy-deep) !important;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  border: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-appointment:hover {
  background: #29d3bd;
  transform: translateY(-1px);
  color: var(--navy-deep);
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.4);
}

.navbar-toggler-icon {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* ===== 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;
  padding: 7rem 1.5rem 4rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 75% 65% at 50% 48%, rgba(8, 28, 47, 0.45) 0%, rgba(8, 28, 47, 0.08) 100%),
              linear-gradient(to bottom, rgba(8, 28, 47, 0.35) 0%, rgba(8, 28, 47, 0.15) 45%, rgba(8, 28, 47, 0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  background: rgba(8, 28, 47, 0.22);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 24px;
  padding: 2.75rem 2.25rem;
}

.hero-eyebrow {
  color: var(--gold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  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 {
  color: var(--white);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  margin: 0.6rem 0 0.9rem;
  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: rgba(255, 255, 255, 0.95);
  font-size: 1.25rem;
  font-weight: 500;
  max-width: 560px;
  margin: 0 auto 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: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: var(--teal);
  color: var(--navy-deep);
  font-weight: 700;
  border-radius: 999px;
  padding: 0.85rem 2rem;
  border: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-hero-primary:hover {
  background: #29d3bd;
  transform: translateY(-2px);
  color: var(--navy-deep);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-weight: 700;
  border-radius: 999px;
  padding: 0.85rem 2rem;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  color: var(--white);
  transform: translateY(-2px);
}

/* ===== Section shared ===== */

section {
  padding: 5.5rem 0;
}

.section-eyebrow {
  color: var(--teal-deep);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 0.6rem;
}

.section-title {
  font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  color: var(--navy-deep);
  margin-bottom: 1rem;
}

.section-lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 640px;
}

/* ===== Services ===== */

.services {
  background: var(--white);
}

.service-card {
  background: var(--cream);
  border-radius: 18px;
  padding: 2.4rem 1.8rem;
  height: 100%;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(13, 43, 69, 0.06);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(13, 43, 69, 0.12);
}

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

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 0.6rem;
}

.service-card p {
  color: var(--muted);
  font-size: 0.96rem;
  margin: 0;
}

/* ===== About / stats ===== */

.about {
  background: var(--navy);
  color: var(--white);
}

.about .section-eyebrow {
  color: var(--gold);
}

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

.about .section-lead {
  color: rgba(255, 255, 255, 0.8);
}

.stat-block {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1.9rem 1.4rem;
  text-align: center;
  height: 100%;
}

.stat-num {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 0.35rem;
}

.stat-label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  line-height: 1.4;
}

/* ===== Gallery ===== */

.gallery {
  background: var(--cream);
}

.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 10px 30px rgba(13, 43, 69, 0.1);
}

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

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

/* ===== Hours & Location ===== */

.hours-location {
  background: var(--white);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table tr {
  border-bottom: 1px solid rgba(13, 43, 69, 0.08);
}

.hours-table td {
  padding: 0.75rem 0.25rem;
  font-size: 1rem;
}

.hours-table td:first-child {
  font-weight: 600;
  color: var(--navy-deep);
}

.hours-table td:last-child {
  text-align: right;
  color: var(--muted);
}

.map-wrap {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(13, 43, 69, 0.14);
  height: 100%;
  min-height: 320px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}

/* ===== Contact ===== */

.contact {
  background: var(--navy-deep);
  color: var(--white);
}

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

.contact-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1.7rem;
  height: 100%;
  text-align: center;
}

.contact-card i {
  font-size: 1.6rem;
  color: var(--teal);
  margin-bottom: 0.8rem;
  display: block;
}

.contact-card a {
  color: var(--white);
  font-weight: 600;
  overflow-wrap: anywhere;
}

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

/* ===== Footer ===== */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 0 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo-chip {
  background: var(--cream);
  border-radius: 10px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  line-height: 0;
  margin-bottom: 0.9rem;
}

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

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
  overflow-wrap: anywhere;
}

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

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  margin-right: 0.5rem;
  color: var(--white);
}

.footer-social a:hover {
  background: var(--teal);
  color: var(--navy-deep);
}

.powered-by {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}

.powered-by a {
  color: var(--teal);
  font-weight: 700;
}

@media (max-width: 991px) {
  .hero-content {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 767px) {
  section {
    padding: 3.5rem 0;
  }
  .hero {
    padding-top: 6rem;
  }
}
