/*
  Stylesheet for Beaird Family Dental.
  Provides modern layout, colour gradients, cards, and responsive behaviour.
*/

/* Playfair Display is used for the site's editorial headings. */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&display=swap");

:root {
  /* Primary brand colour – mid‑tone blue for headings, accents and interactive elements */
  --primary-color: #000000;
  /* Secondary accent colour for hover states and decorative elements */
  --accent-color: #3B87CE;
  /* Very light base background for the page */
  --secondary-color: #E7F0F9;
  /* Default text colour – dark navy for excellent contrast on light backgrounds */
  --text-color: #0B1D2D;
  /* Fixed height for the site header */
  --header-height: 100px;
  /* Keep the circular brand badge inset from the viewport edges. */
  --logo-size: 84px;
  --logo-inset: 24px;
  --logo-panel-width: calc(var(--logo-inset) + var(--logo-size));
  /* Dark blue used by the primary site navigation */
  --nav-bg: #16395A;
  /* Green accent drawn from the practice logo */
  --brand-green: #4F9A6B;
  /* Shared surfaces and footer palette. */
  --medium-bg: #BFD7EE;
  --light-bg: #E7F0F9;
  --tier1-bg: var(--medium-bg);
  --tier2-bg: var(--light-bg);
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Arial", sans-serif;
  color: var(--text-color);
  /* Soft gradient using our light colour palette */
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--tier2-bg) 100%);
  line-height: 1.6;
}

/* HEADER & NAVIGATION */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--nav-bg) 0%, #102C45 100%);
  box-shadow: 0 5px 18px rgba(11, 29, 45, 0.24), inset 0 -3px 0 var(--brand-green);
}

nav {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1460px;
  height: var(--header-height);
  margin: 0 auto;
  padding: 0 24px 0 calc(var(--logo-panel-width) + 24px);
  box-sizing: border-box;
}

/* Primary navigation links sit directly on the dark header background. */
.nav-links {
  width: 100%;
  box-sizing: border-box;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.nav-links li {
  display: flex;
  min-width: 0;
  margin: 0;
  padding: 0;
}

/* Larger, card-like primary links replace the former flat text treatment. */
.nav-links li a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.10);
  color: #FFFFFF;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-links li a:hover {
  transform: translateY(-2px);
  border-color: #FFFFFF;
  background: #FFFFFF;
  color: var(--nav-bg);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.16);
}

.nav-links li a:focus-visible {
  outline: 3px solid #FFFFFF;
  outline-offset: 3px;
}

/* The current section receives a pale card and green underline. */
.nav-links li a[aria-current="page"] {
  border-color: #B9DCC5;
  background: linear-gradient(145deg, #FFFFFF 0%, #EDF7F0 100%);
  color: var(--nav-bg);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.16);
}

.nav-links li a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: var(--brand-green);
  transform: translateX(-50%);
}

/* Mobile nav toggle */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.07));
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.14);
  color: #FFFFFF;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  user-select: none;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.menu-toggle:hover {
  transform: translateY(-1px);
  border-color: #FFFFFF;
  background: #FFFFFF;
  color: var(--nav-bg);
}

.menu-toggle:focus-visible {
  outline: 3px solid #FFFFFF;
  outline-offset: 3px;
}

/* SECTION WRAPPER */
section {
  max-width: 1100px;
  margin: 30px auto 40px;
  padding: 0 20px;
}


/* Section headings with decorative underline */
h2, h3 {
  position: relative;
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--primary-color);
}
h2::after,
h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 4px;
  width: 60px;
  background-color: var(--primary-color);
  border-radius: 4px;
}

/* Generic button styling */
.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  text-align: center;
  font-weight: bold;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.btn:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* MISSION and values lists custom bullet */
ul:not(.nav-links) {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
ul:not(.nav-links) li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
}
ul:not(.nav-links) li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  background-color: var(--primary-color);
  border-radius: 50%;
}


/* SITE-WIDE APPOINTMENT CTA */
.site-appointment-cta {
  max-width: none;
  margin: clamp(54px, 7vw, 88px) 0 0;
  padding: clamp(30px, 4.5vw, 52px) 24px;
  border-top: 1px solid rgba(79, 148, 104, 0.28);
  border-bottom: 1px solid rgba(21, 57, 83, 0.12);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.97), rgba(238, 248, 241, 0.96)),
    var(--light-bg);
  box-shadow: inset 0 6px 0 rgba(79, 148, 104, 0.05);
}

.site-appointment-cta__inner {
  width: min(100%, 1160px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.site-appointment-cta__copy {
  max-width: 650px;
}

.site-appointment-cta__eyebrow {
  margin: 0 0 8px;
  color: var(--brand-green);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.site-appointment-cta h2 {
  margin: 0 0 12px;
  color: #153953;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.12;
}

.site-appointment-cta h2::after {
  display: none;
}

.site-appointment-cta__copy > p:last-child {
  max-width: 58ch;
  margin: 0;
  color: #4f6675;
  font-size: 1rem;
  line-height: 1.7;
}

.site-appointment-cta__offices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.site-appointment-office {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  padding: 16px 17px;
  border: 1px solid #b8d3c1;
  border-radius: 16px;
  background: #ffffff;
  color: #173d2a;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(18, 63, 40, 0.07);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.site-appointment-office svg {
  width: 42px;
  height: 42px;
  box-sizing: border-box;
  padding: 9px;
  border-radius: 50%;
  background: #edf7f0;
  color: #3d8057;
}

.site-appointment-office span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-appointment-office small {
  color: #5e7467;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.25;
  text-transform: uppercase;
}

.site-appointment-office strong {
  color: #173d2a;
  font-size: clamp(0.98rem, 1.4vw, 1.14rem);
  line-height: 1.25;
  white-space: nowrap;
}

.site-appointment-office:hover {
  transform: translateY(-2px);
  border-color: #6ca481;
  background: #f8fcf9;
  box-shadow: 0 12px 28px rgba(18, 63, 40, 0.11);
}

.site-appointment-office:focus-visible {
  outline: 3px solid rgba(47, 120, 183, 0.42);
  outline-offset: 3px;
}

.site-appointment-cta + footer {
  margin-top: 0;
}

@media (max-width: 900px) {
  .site-appointment-cta__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .site-appointment-cta__copy {
    max-width: 700px;
  }
}

@media (max-width: 600px) {
  .site-appointment-cta {
    padding: 30px 18px 34px;
  }

  .site-appointment-cta__offices {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-appointment-office {
    padding: 14px 15px;
  }
}

@media print {
  .site-appointment-cta {
    display: none !important;
  }
}

/* FOOTER */
footer {
  background-color: var(--tier1-bg);
  color: var(--text-color);
  text-align: center;
  padding: 30px;
  margin-top: 60px;
}

/* RESPONSIVE HEADER AND NAVIGATION */
@media (max-width: 1300px) {
  nav {
    position: relative;
    justify-content: flex-end;
    max-width: none;
    padding-right: 18px;
    padding-left: calc(var(--logo-panel-width) + 24px);
  }

  .nav-links {
    position: absolute;
    top: calc(var(--header-height) - 8px);
    right: 14px;
    width: min(330px, calc(100vw - 28px));
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    background: linear-gradient(180deg, var(--nav-bg) 0%, #102C45 100%);
    box-shadow: 0 14px 30px rgba(11, 29, 45, 0.28);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    width: 100%;
    min-height: 56px;
    justify-content: flex-start;
    padding: 14px 17px;
    font-size: 1.14rem;
  }

  .nav-links li a[aria-current="page"]::after {
    left: 15px;
    bottom: 7px;
    width: 36px;
    transform: none;
  }

  nav.open .nav-links {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 480px) {
  nav {
    padding-right: 12px;
  }

  .nav-links {
    right: 10px;
    width: calc(100vw - 20px);
  }
}

/* Hide menu-toggle on larger screens */
@media (min-width: 1301px) {
  .menu-toggle {
    display: none;
  }
}

/* A circular badge gives the original logo room within the navy header. */
.corner-logo-box {
  position: fixed;
  top: calc((var(--header-height) - var(--logo-size)) / 2);
  left: var(--logo-inset);
  width: var(--logo-size);
  height: var(--logo-size);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  z-index: 2000;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 3px 10px rgba(5, 20, 32, 0.2);
}

.corner-logo-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.corner-logo-box:focus-visible {
  outline: 3px solid #A8D9B6;
  outline-offset: 4px;
}

@media (max-width: 480px) {
  :root {
    --logo-size: 80px;
    --logo-inset: 16px;
  }
}
