/* Mira-Michels Eye Care & Optical Services — clinic site */

:root {
  --ink: #172826;
  --ink-soft: #3a524f;
  --muted: #5a6e6a;
  --teal: #1c5552;
  --teal-hover: #154240;
  --teal-deep: #102e2d;
  --teal-wash: #e3eeec;
  --paper: #f3efe6;
  --paper-2: #e8e1d4;
  --cream: #fbf8f2;
  --white: #fffcf7;
  --brass: #8d6a3e;
  --line: #d6cec0;
  --line-strong: #c1b8a8;
  --error: #8a2e2e;
  --max: 70rem;
  --header-h: 4.4rem;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --shadow-photo: 0 10px 28px rgba(16, 46, 45, 0.12);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--teal-deep);
  margin: 0 0 0.7em;
}

h1 { font-size: clamp(2.05rem, 4.2vw, 3.35rem); font-weight: 500; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); }
h3 { font-size: 1.2rem; margin-bottom: 0.35em; }

p { margin: 0 0 1em; }

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

address { font-style: normal; }

.wrap {
  width: min(100% - 2.25rem, var(--max));
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--teal-deep);
  color: var(--cream);
  padding: 0.55rem 0.9rem;
}

.skip-link:focus {
  top: 0.5rem;
  color: var(--cream);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  padding: 0.78rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--teal);
  color: var(--cream);
  border-color: var(--teal);
}

.btn-primary:hover {
  background: var(--teal-hover);
  border-color: var(--teal-hover);
  color: var(--cream);
}

.btn-ghost {
  background: transparent;
  color: var(--teal-deep);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
  background: var(--cream);
}

.btn-header {
  background: var(--teal);
  color: var(--cream);
  border-color: var(--teal);
  padding: 0.55rem 0.9rem;
  font-size: 0.92rem;
}

.btn-header:hover {
  background: var(--teal-hover);
  color: var(--cream);
}

/* Utility bar */

.utility {
  background: var(--teal-deep);
  color: #e4ecea;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

.utility-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
}

.utility p { margin: 0; }

.utility-phone {
  color: #f4efe4;
  font-weight: 600;
  text-decoration: none;
}

.utility-phone:hover { color: #fff; text-decoration: underline; }

.utility-place { opacity: 0.92; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--teal-deep);
  min-width: 0;
}

.logo:hover { color: var(--teal); }

.logo-mark {
  width: 2.15rem;
  height: 2.15rem;
  flex-shrink: 0;
}

.logo-text { display: flex; flex-direction: column; line-height: 1.15; }

.logo-name {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.logo-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.site-nav ul {
  display: flex;
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
}

.site-nav a:hover,
.site-nav a:focus-visible { color: var(--teal); }

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 3px;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.05rem;
  height: 1.5px;
  background: var(--teal-deep);
  margin: 0.22rem auto;
}

/* Hero */

.hero {
  background: var(--cream);
  padding: 3.5rem 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 3.25rem 3.75rem;
  align-items: end;
}

.kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 0.85rem;
}

.hero-copy { padding-bottom: 2.8rem; }

.hero-copy h1 { margin-bottom: 0.85rem; max-width: 14ch; }

.lead {
  font-size: 1.125rem;
  color: var(--ink-soft);
  max-width: 38rem;
  margin-bottom: 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-figure {
  margin: 0;
  position: relative;
  top: 1.75rem;
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: 50% 60%;
  border-radius: 2px;
  box-shadow: var(--shadow-photo);
  background: #ece7de;
}

.hero-figure figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.7rem;
  padding-right: 1rem;
}

/* Quick facts */

.quick-facts {
  background: var(--paper);
  padding: 4.25rem 0 3.4rem;
  border-bottom: 1px solid var(--line);
}

.facts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 2rem 2.4rem;
}

.fact {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.fact svg {
  width: 1.55rem;
  height: 1.55rem;
  color: var(--teal);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.fact h2 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 0.35rem;
}

.fact p { color: var(--ink-soft); }

.fact a { font-weight: 600; text-decoration: none; }
.fact a:hover { text-decoration: underline; }

/* Services */

.services {
  padding: 5rem 0 4.5rem;
  background: var(--cream);
}

.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 3rem 4.5rem;
  align-items: start;
}

.section-intro h2 { max-width: 16ch; }
.section-intro p { color: var(--ink-soft); }
.section-intro em { font-style: italic; font-family: var(--font-serif); }

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-list li {
  display: flex;
  gap: 1.05rem;
  padding: 1.3rem 0 1.4rem;
  border-top: 1px solid var(--line);
}

.service-list li:last-child { border-bottom: 1px solid var(--line); }

.service-icon {
  width: 2.4rem;
  height: 2.4rem;
  color: var(--teal);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.service-icon svg { width: 100%; height: 100%; }

.service-list h3 { margin-top: 0.1rem; }
.service-list p { color: var(--ink-soft); }

/* About */

.about {
  padding: 5rem 0;
  background: var(--paper);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3rem 4rem;
  align-items: center;
}

.about-figure { margin: 0; }

.about-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 40%;
  border-radius: 2px;
  box-shadow: var(--shadow-photo);
}

.about-copy h2 { max-width: 16ch; }
.about-copy p { color: var(--ink-soft); }

.plain-points {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.plain-points li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.plain-points li:last-child { border-bottom: 1px solid var(--line); }

.plain-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 0.45rem;
  height: 0.45rem;
  border: 1px solid var(--teal);
  border-radius: 50%;
}

/* Team */

.team {
  padding: 5rem 0;
  background: var(--cream);
  border-top: 1px solid var(--line);
}

.team-narrow {
  max-width: 38rem;
  padding-left: 1.4rem;
  border-left: 3px solid var(--teal);
}

.team p { color: var(--ink-soft); }
.team .btn { margin-top: 0.6rem; }

/* Reviews */

.reviews {
  padding: 5rem 0;
  background: var(--teal-deep);
  color: #e6eeec;
}

.reviews h2,
.reviews .kicker { color: #f3efe6; }

.reviews .kicker { color: #c9b38a; }

.reviews-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.15fr);
  gap: 2.5rem 4.5rem;
  align-items: center;
}

.rating-score {
  font-family: var(--font-serif);
  font-size: clamp(5rem, 10vw, 7rem);
  line-height: 0.85;
  margin: 0 0 0.35rem;
  letter-spacing: -0.04em;
  color: #fbf8f2;
}

.rating-meta {
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
  color: #d5e0dd;
}

.stars { width: 8.5rem; }

.reviews-copy p { color: #d3dfdc; }

.reviews .btn-ghost {
  color: #f4efe4;
  border-color: #6f8683;
  margin-top: 0.4rem;
}

.reviews .btn-ghost:hover {
  background: rgba(255, 252, 247, 0.07);
  border-color: #f4efe4;
  color: #fff;
}

/* Visit */

.visit {
  padding: 5rem 0 4.5rem;
  background: var(--paper);
}

.visit-head { margin-bottom: 2.2rem; }
.visit-head h2 { max-width: 20ch; margin-bottom: 0; }

.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 2rem 2.5rem;
  align-items: stretch;
}

.visit-info {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.address-block,
.hours-block {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 1.35rem 1.4rem 1.45rem;
}

.address-block h3,
.hours-block h3 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
}

.contact-lines { margin-top: 0.9rem; }
.contact-lines a { font-weight: 600; text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }

.text-link {
  display: inline-block;
  margin-top: 0.85rem;
  font-weight: 600;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.hours-table th {
  text-align: left;
  font-weight: 500;
  padding: 0.38rem 0.6rem 0.38rem 0;
}

.hours-table td {
  text-align: right;
  padding: 0.38rem 0;
  color: var(--ink-soft);
}

.hours-table tr.is-today th,
.hours-table tr.is-today td {
  font-weight: 700;
  color: var(--teal-deep);
}

.hours-table tr.is-today td::after {
  content: "  today";
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass);
}

.hours-note {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.map-wrap {
  min-height: 26rem;
  height: 100%;
  background: var(--paper-2);
  border: 1px solid var(--line);
}

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

/* Booking */

.book-wrap {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.15fr);
  gap: 2rem 3.2rem;
  align-items: start;
  padding-top: 2.4rem;
  border-top: 1px solid var(--line);
}

.book-intro p { color: var(--ink-soft); }

.book-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.1rem;
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 1.4rem 1.4rem 1.5rem;
}

.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field-full { grid-column: 1 / -1; }

.field label {
  font-size: 0.92rem;
  font-weight: 600;
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 0.6rem 0.7rem;
  width: 100%;
}

.field textarea { resize: vertical; min-height: 6.5rem; }

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

.field input.is-invalid,
.field select.is-invalid {
  border-color: var(--error);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.form-status {
  flex-basis: 100%;
  margin: 0;
  font-size: 0.92rem;
  color: var(--teal-deep);
}

.form-status.is-error { color: var(--error); }

/* Footer */

.site-footer {
  background: var(--teal-deep);
  color: #d5e0dd;
  padding: 3.2rem 0 6.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 2rem 2.5rem;
}

.footer-name {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: #f7f3ea;
  margin: 0;
}

.footer-tag {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c9b38a;
  margin: 0.15rem 0 0.9rem;
}

.site-footer h2 {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c9b38a;
  margin: 0 0 0.55rem;
}

.site-footer a {
  color: #f0ebe1;
  text-decoration: none;
}

.site-footer a:hover { text-decoration: underline; }

.footer-note {
  margin-top: 2.1rem;
  padding-top: 1.2rem;
  border-top: 1px solid #2a4a48;
  font-size: 0.86rem;
  color: #9eb0ad;
}

/* Mobile contact bar */

.mobile-bar { display: none; }

/* Focus */

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.utility-phone:focus-visible,
.site-footer a:focus-visible,
.reviews a:focus-visible {
  outline-color: #f4efe4;
}

/* Responsive */

@media (max-width: 900px) {
  .hero-grid,
  .services-grid,
  .about-grid,
  .reviews-grid,
  .visit-grid,
  .book-wrap,
  .facts-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy { padding-bottom: 0; }
  .hero-copy h1 { max-width: none; }
  .hero-figure { top: 0; margin-top: 0.4rem; }
  .hero-figure img { aspect-ratio: 16 / 11; }

  .about-figure { order: -1; max-width: 26rem; }
  .about-figure img { aspect-ratio: 5 / 4; }

  .facts-grid { gap: 1.5rem; }
  .map-wrap iframe { min-height: 18rem; }
  .team-narrow { max-width: none; }
  .rating-score { font-size: 5.2rem; }
}

@media (max-width: 760px) {
  .utility-place { display: none; }

  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(1.7rem + var(--header-h));
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 1.15rem 1.15rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
  }

  .site-header { position: sticky; }

  .site-nav.is-open { display: flex; }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav ul a {
    display: block;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
  }

  .btn-header { width: 100%; margin-top: 0.5rem; }

  .hero { padding-top: 2.2rem; padding-bottom: 0.4rem; }
  .hero-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { width: 100%; }
  .hero-figure { margin-bottom: 0.3rem; }
  .hero-figure img { aspect-ratio: 16 / 10; }
  .services, .about, .team, .reviews, .visit { padding: 3.4rem 0; }
  .quick-facts { padding: 3.2rem 0 2.6rem; }

  .book-form { grid-template-columns: 1fr; }

  .mobile-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    background: var(--cream);
    border-top: 1px solid var(--line);
    padding: 0.5rem 0.7rem calc(0.5rem + env(safe-area-inset-bottom));
    gap: 0.45rem;
  }

  .mobile-bar a {
    flex: 1;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.7rem 0.4rem;
    border: 1px solid var(--line-strong);
    border-radius: 3px;
    color: var(--teal-deep);
    background: var(--white);
  }

  .mobile-bar .mobile-bar-book {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--cream);
  }

  .site-footer { padding-bottom: 7.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (min-width: 761px) {
  .mobile-bar { display: none !important; }
}
