/* ══════════════════════════════════════════════════════════════════════════
   Northpointe Family Dentistry — main.css
   ══════════════════════════════════════════════════════════════════════════ */

/* ── 1. Custom Properties ────────────────────────────────────────────────── */
:root {
  --primary:            #1a1614;
  --primary-foreground: #faf8f5;
  --accent:             #c4a67c;
  --accent-foreground:  #1a1614;
  --background:         #faf8f5;
  --warm:               rgb(251, 240, 218);
  --white:              #ffffff;
  --muted:              #e8dfd3;
  --muted-foreground:   #6b6460;
  --border:             rgba(26, 22, 20, 0.1);

  --font-serif: 'Playfair Display', serif;
  --font-sans:  'DM Sans', sans-serif;

  --max-width: 1680px;
  --padding-x: 2.5rem;

  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);

  --gold:           #A8862E;
  --gold-hover:     #7a6128;
  --grey-btn:       rgb(177, 177, 177);
  --grey-btn-hover: #ccc;
  --dark:           rgb(25, 13, 5);
  --brown:          rgb(121, 110, 101);

  --bp-tablet: 998px;
  --bp-mobile: 768px;
}

/* ── 2. Reset / Base ─────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--primary);
  -moz-osx-font-smoothing: unset;
  -webkit-font-smoothing: unset;
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

body, html {
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ── 3. Layout Utilities ─────────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--padding-x);
}

.container--flush {
  max-width: var(--max-width);
  margin: 0 auto;
}

@media (max-width: 768px) {
  :root {
    --padding-x: 1.5rem;
  }
}

/* ── 4. Typography Utilities ─────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.6;
  font-size: clamp(14px, 1.2vw, 20px);
}

.heading-xl {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 4.55vw, 4.55rem);
  line-height: 1.2;
}

.heading-lg {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.2;
}

.body-text {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.8;
}

/* ── 4b. Optical sizing — Bodoni Moda renders best with font-optical-sizing ── */
h1, h2, h3, h4, h5, h6,
.heading-xl, .heading-lg,
.accordion__title,
.accordion__col-heading,
.accordion__heading {
  font-optical-sizing: auto;
}

/* ── 5. Button Styles — see assets/css/components/button.css ─────────────── */

/* ── 6. Header — see assets/css/components/header.css ───────────────────── */

/* ── 7. Footer ───────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--warm);
}

.footer-top {
  padding: 120px var(--padding-x);
  display: flex;
  gap: 4rem;
}

.footer-hours-contact {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.footer-hours-title,
.footer-contact-title {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  opacity: 0.6;
  margin-bottom: 1rem;
}

.footer-hours-list {
  list-style: none;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.footer-hours-list .label {
  opacity: 0.7;
}

.footer-contact-list {
  list-style: none;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  line-height: 1.6;
}

.footer-contact-list a {
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.footer-contact-list a:hover {
  opacity: 1;
}

.footer-map iframe {
  width: 100%;
  min-height: 400px;
  border: 0;
  filter: grayscale(100%);
  display: block;
}

.footer-social {
  border-top: 1px solid var(--accent);
  padding: 80px var(--padding-x);
}

.footer-social-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2vw, 2rem);
  margin-bottom: 2rem;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.social-grid a {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  display: block;
}

.social-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.social-grid a:hover img {
  transform: scale(1.08);
}

.footer-bottom {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 1.5rem var(--padding-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p,
.footer-bottom span {
  font-size: 13px;
  opacity: 0.7;
}

.footer-bottom a {
  color: var(--primary-foreground);
  opacity: 0.7;
  transition: opacity 0.2s ease;
  font-size: 13px;
}

.footer-bottom a:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .footer-top {
    padding: 60px var(--padding-x);
  }

  .social-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── 8. Hero ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.hero__content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
}

.hero__headline {
  font-family: var(--font-serif);
  color: var(--white);
  text-align: center;
  font-size: clamp(3rem, 7vw, 8rem);
  line-height: 1.1;
  max-width: 1400px;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: rgba(255, 255, 255, 0.5);
}

.hero__scroll-text {
  color: var(--white);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-family: var(--font-sans);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.hero__cta-wrap {
  margin-top: 40px;
}

.hero__cta-circle {
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  line-height: 1.3;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  transition: color 0.3s ease;
}

.hero__cta-circle::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--primary);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.4s var(--ease-out-expo);
  z-index: -1;
}

.hero__cta-circle:hover::before {
  transform: scale(1);
}

.hero__cta-circle:hover {
  color: var(--white);
}

.hero__arrow {
  position: absolute;
  top: -4rem;
  left: -4rem;
  color: var(--white);
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero__scroll-indicator,
  .hero__arrow {
    display: none;
  }

  .hero__cta-circle {
    width: 7rem;
    height: 7rem;
    font-size: 0.85rem;
  }
}

/* ── 9. Page Layout ──────────────────────────────────────────────────────── */
.page-section {
  padding: 120px 0;
}

.section-grid-3 {
  display: grid;
  grid-template-columns: 30% 1fr 30%;
  gap: 30px;
}

@media (max-width: 998px) {
  .section-grid-3 {
    grid-template-columns: 1fr;
  }
}

.section-grid-2 {
  display: grid;
  grid-template-columns: 30% 1fr;
  gap: 4rem;
}

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

  .page-section {
    padding: 80px 0;
  }
}

.divider-line {
  height: 1px;
  background: var(--accent);
  margin-top: 120px;
}

/* ── 10. Skip Link — see assets/css/components/header.css ───────────────── */

/* ── 11. Accessibility ───────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Services grid on archive / page */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 8px 32px rgba(26, 22, 20, 0.08);
}

.service-card__body {
  padding: 1.5rem;
}

.service-card__title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.service-card__excerpt {
  font-size: 14px;
  opacity: 0.8;
  line-height: 1.6;
}

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.team-card__img {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.team-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__body {
  padding: 1.25rem 0;
}

.team-card__name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
}

.team-card__role {
  font-size: 13px;
  opacity: 0.6;
  margin-top: 0.25rem;
}

/* ── Section ─────────────────────────────────────────────────────────────── */
.section {
    width: 100%;
    padding: 0;
}

.section--white  { background: var(--white); }
.section--grey   { background: rgb(244, 244, 244); }
.section--black  { background: #000; }

.section__inner {
    max-width: 1640px;
    margin: 0 auto;
    width: 100%;
    padding: 100px 2rem;
    box-sizing: border-box;
}

.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mb-50 { margin-bottom: 50px; }

.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mt-50 { margin-top: 50px; }

.text-dark {
    color: #222;
    font-weight: 300;
}

.page-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.page-hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.page-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 0;
    padding-bottom: 0;
}

.page-hero__breadcrumb {
    margin-bottom: 16px;
}

.page-hero__breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.page-hero__breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-hero__breadcrumb-link {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.page-hero__breadcrumb-link:hover {
    color: var(--white);
}

.page-hero__breadcrumb-sep {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.page-hero__breadcrumb-current {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.page-hero__title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: clamp(48px, 6vw, 96px);
    line-height: 1.0;
    letter-spacing: -0.02em;
    color: var(--white);
    margin: 0;
}

.page-hero__title-em {
    font-style: italic;
    color: var(--gold);
}

.page-hero__title--small {
    font-size: clamp(32px, 4vw, 56px);
    letter-spacing: -0.01em;
    font-weight: 600;
}

.page-hero__subtitle {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin: 20px 0 0;
    max-width: 600px;
}

@media (max-width: 768px) {
    .section__inner {
        padding: 70px 1.5rem;
    }

        .page-hero {
        min-height: 360px;
    }

    .page-hero__inner {
        padding-top: 100px;
        padding-bottom: 56px;
    }
}