/* Winchester Dental — Dr. Leonidas E. Exarchos, D.M.D.
   Greek flag palette: #0D5EAF · #0A3D7A · #FFFFFF · #E8F1FB */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue: #0D5EAF;
  --navy: #052F5F;
  --white: #FFFFFF;
  --sky: #E8F1FB;
  --text: #1A1A1A;
  --text-on-blue: #FFFFFF;
  --max: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 1.05rem;
}

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

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

a:hover {
  color: var(--navy);
}

ul {
  list-style: none;
}

/* ——— Header ——— */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--blue);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(10, 61, 122, 0.08);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.brand-name span {
  color: var(--blue);
}

.brand-sub {
  font-size: 0.78rem;
  color: var(--blue);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 3px;
}

.nav-toggle:hover {
  background: var(--navy);
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.35rem;
  align-items: center;
}

.main-nav a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

/* ——— Hero ——— */
.hero {
  background-color: #1a3a5c;
  background-image:
    linear-gradient(90deg, rgba(25, 70, 125, 0.22) 0%, rgba(25, 70, 125, 0.06) 40%, transparent 70%),
    linear-gradient(180deg, transparent 0%, transparent 55%, rgba(12, 40, 75, 0.45) 100%),
    url("images/winchester-campus-autumn.jpg");
  background-size: cover;
  background-position: center 45%;
  color: #fff;
  padding: 0;
  position: relative;
  overflow: hidden;
  min-height: min(82vh, 680px);
  height: min(82vh, 680px);
  display: flex;
  align-items: stretch;
}

.hero::before {
  content: none;
}

.hero-inner {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4.75rem 1.5rem 2rem;
  min-height: 100%;
  height: 100%;
  box-sizing: border-box;
  flex: 1;
}

.hero-title-block {
  max-width: 36ch;
  align-self: flex-start;
}

.hero-title-block h1 {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: #041e3a;
  opacity: 1;
  text-shadow:
    0 0 2px rgba(255, 255, 255, 0.95),
    0 0 12px rgba(255, 255, 255, 0.85),
    0 1px 2px rgba(255, 255, 255, 0.9),
    0 2px 18px rgba(255, 255, 255, 0.55);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  -webkit-text-fill-color: #041e3a;
  max-width: 28ch;
}

.hero-bottom {
  max-width: 22rem;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  color: #fff;
}

.hero-kicker {
  margin: 0;
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: #d7e6f6;
  opacity: 0.78;
}

.hero .lead {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  max-width: 26rem;
  opacity: 0.9;
  font-weight: 400;
  color: #f4f8fc;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.hero-actions .btn {
  font-size: 0.82rem;
  padding: 0.55rem 1.1rem;
}

.hero-actions .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
}

.hero-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-placeholder {
  display: none;
}

@media (max-width: 640px) {
  .hero {
    min-height: 70vh;
  }
  .hero-title-block {
    max-width: 16ch;
  }
  .hero-bottom {
    max-width: 100%;
  }
}

/* ——— Buttons ——— */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 3px;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn-primary:hover {
  background: var(--sky);
  color: var(--navy);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.85);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

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

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

.btn-solid-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}

.btn-solid-outline:hover {
  background: var(--sky);
  color: var(--navy);
}

/* ——— Sections ——— */
.section {
  padding: 3.5rem 1.5rem;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-blue {
  background: linear-gradient(180deg, rgba(26, 79, 140, 0.92) 0%, rgba(13, 94, 175, 0.88) 100%);
  color: #e8f1fa;
  padding: 1.75rem 1.5rem 2rem;
}

.section-navy {
  background: var(--navy);
  color: var(--text-on-blue);
}

.section-sky {
  background: var(--sky);
  color: var(--text);
}

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

.section h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  color: var(--navy);
  margin-bottom: 1rem;
  font-weight: 700;
}

.section-blue h2,
.section-navy h2 {
  color: var(--white);
}

.section h3 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.section-blue h3,
.section-navy h3 {
  color: var(--white);
}

.section p {
  margin-bottom: 1rem;
  max-width: 42rem;
}

.section p:last-child {
  margin-bottom: 0;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.section-blue .eyebrow,
.section-navy .eyebrow {
  color: rgba(255, 255, 255, 0.8);
}

/* ——— Pillars / feature row ——— */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.pillar {
  padding: 1.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border-left: 3px solid rgba(255, 255, 255, 0.5);
}

.pillar h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.pillar p {
  font-size: 0.92rem;
  opacity: 0.92;
  margin: 0;
  max-width: none;
}

/* ——— Cards (sparse) ——— */
.card-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2rem;
}

.card {
  background: var(--white);
  padding: 1.75rem 1.5rem;
  border-top: 3px solid var(--blue);
}

.section-white .card,
.section-sky .card {
  background: var(--sky);
  border-top-color: var(--blue);
}

.section-sky .card {
  background: var(--white);
}

.card h3 {
  margin-bottom: 0.6rem;
}

.card p {
  font-size: 0.95rem;
  max-width: none;
}

.card ul {
  margin-top: 0.75rem;
}

.card li {
  padding: 0.3rem 0 0.3rem 1rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--text);
}

.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
}

/* ——— Two-column ——— */
.two-col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.two-col-equal {
  grid-template-columns: 1fr 1fr;
}

.photo-placeholder {
  background: linear-gradient(160deg, var(--navy) 0%, var(--blue) 60%, #3A8FD4 100%);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.photo-placeholder span {
  display: block;
  max-width: 16rem;
  opacity: 0.9;
}


.photo-frame {
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  min-height: 280px;
  background: var(--navy);
}
.photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}
.photo-frame figcaption {
  font-size: 0.8rem;
  color: var(--muted, #5a6b7d);
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
}
.local-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.local-gallery .photo-frame {
  min-height: 180px;
}
.local-gallery .photo-frame img {
  min-height: 180px;
  aspect-ratio: 4 / 3;
}
@media (max-width: 800px) {
  .local-gallery {
    grid-template-columns: 1fr;
  }
}

/* ——— Page banner (inner pages) ——— */
.page-banner {
  background: linear-gradient(135deg, #0A3D7A 0%, #0D5EAF 100%);
  color: var(--white);
  padding: 2.75rem 1.5rem 2.5rem;
}

.page-banner .section-inner h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  margin-bottom: 0.5rem;
}

.page-banner .section-inner p {
  opacity: 0.9;
  max-width: 36rem;
  margin: 0;
}

/* ——— Lists ——— */
.check-list {
  margin: 1.25rem 0;
}

.check-list li {
  padding: 0.45rem 0 0.45rem 1.5rem;
  position: relative;
  max-width: 40rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

.section-blue .check-list li::before,
.section-navy .check-list li::before {
  color: var(--white);
}

/* ——— Contact / NAP ——— */
.nap-block {
  font-size: 1.05rem;
  line-height: 1.8;
}

.nap-block a {
  font-weight: 600;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 1.5rem;
}

.contact-form label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid #c5d4e8;
  border-radius: 3px;
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 1rem;
  background: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.map-placeholder {
  background: var(--sky);
  border: 1px solid #c5d4e8;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  color: var(--navy);
  font-size: 0.95rem;
}

.map-placeholder a {
  font-weight: 600;
}

/* ——— CTA strip ——— */
.cta-strip {
  text-align: center;
  padding: 2.75rem 1.5rem;
}

.cta-strip p {
  margin: 0 auto 1.25rem;
  max-width: 32rem;
}

/* ——— Footer ——— */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.9);
  padding: 2.5rem 1.5rem 1.5rem;
  border-top: 4px solid var(--blue);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9);
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-nav a {
  font-size: 0.92rem;
}

.footer-nap {
  font-size: 0.92rem;
  line-height: 1.75;
}

.footer-bottom {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.82rem;
  opacity: 0.75;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

/* ——— Utility ——— */
.mt-2 {
  margin-top: 1.5rem;
}

.text-center {
  text-align: center;
}

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

/* ——— Responsive ——— */
@media (max-width: 900px) {
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-row {
    grid-template-columns: 1fr 1fr;
  }

  .two-col,
  .two-col-equal,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    width: 100%;
  }

  .main-nav.is-open {
    display: block;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 0 0.25rem;
    width: 100%;
  }

  .main-nav a {
    display: block;
    padding: 0.65rem 0;
    width: 100%;
    border-bottom: 1px solid var(--sky);
  }

  .pillars,
  .card-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 3.25rem 1.25rem 3rem;
  }
}


/* ——— Privacy / legal ——— */
.legal-content {
  max-width: 42rem;
}

.legal-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  margin-bottom: 0.85rem;
  color: var(--text);
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.35rem;
  margin-bottom: 1rem;
}

.legal-content li {
  padding: 0.2rem 0;
  max-width: 40rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* ——— Author-style About bio ——— */
.author-bio {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) 1.35fr;
  gap: 2.75rem;
  align-items: start;
}

.author-portrait {
  min-height: 340px;
  border-radius: 6px;
  position: sticky;
  top: 1.25rem;
}

.author-copy h2 {
  margin-bottom: 0.35rem;
  color: var(--navy);
  font-size: clamp(1.55rem, 2.4vw, 1.95rem);
  line-height: 1.2;
}

.author-tagline {
  font-style: italic;
  color: var(--blue);
  font-size: 1.05rem;
  line-height: 1.45;
  margin: 0 0 1.25rem;
  max-width: 40ch;
}

.author-lead {
  font-size: 1.12rem;
  line-height: 1.7;
  color: #243247;
  margin-bottom: 1rem;
}

.author-copy > p {
  margin-bottom: 0.95rem;
}

.author-card {
  margin-top: 1.75rem;
  padding: 1.15rem 1.25rem 1.2rem;
  background: var(--sky);
  border-left: 4px solid var(--navy);
  border-radius: 0 6px 6px 0;
}

.author-card-label {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--navy);
}

.author-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.author-card li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.1rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #1f2d3d;
}

.author-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--blue);
}

@media (max-width: 800px) {
  .author-bio {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .author-portrait {
    position: static;
    min-height: 240px;
  }
}


/* ——— Our Community: reviews & hub ——— */
.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-top: 2rem;
}
.review-card {
  background: var(--sky);
  padding: 1.75rem 1.5rem;
  border-top: 3px solid var(--blue);
}
.section-sky .review-card {
  background: var(--white);
}
.review-stars {
  color: #c9a227;
  letter-spacing: 0.08em;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.review-source {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.review-card blockquote {
  margin: 0 0 1rem;
}
.review-card blockquote p {
  font-size: 0.98rem;
  max-width: none;
  margin: 0;
  color: var(--text);
}
.review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--muted, #5a6a7a);
}
.review-author {
  font-weight: 700;
  color: var(--navy);
}
.community-hub {
  margin-top: 1.5rem;
}
@media (max-width: 800px) {
  .review-grid {
    grid-template-columns: 1fr;
  }
}


.map-embed {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(13, 94, 175, 0.18);
  background: #e8f1fb;
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}
.map-caption {
  margin: 0;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: #0a3d7a;
  line-height: 1.45;
}
.map-caption a {
  color: #0d5eaf;
  font-weight: 600;
}
