/* =========================================================
   Robert W. Herman, DMD — Martha's Vineyard General Dentist
   Faithful visual rebuild in original code.
   Serif: Adobe Garamond Pro when licensed/active, else free EB Garamond.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600&family=Nunito+Sans:ital,wght@0,400;0,600;0,700;0,800&display=swap');

:root {
  --navy:      #0d2030;
  --brand:     #24567f;
  --brand-lt:  #408bc9;
  --body-blue: #3c5f8c;
  --band:      #cfe4f0;   /* light blue header/nav/footer bands */
  --band-dk:   #b9d6e8;
  --accent:    #e2612b;
  --accent-dk: #c44f1f;
  --green:     #8cc63f;
  --ink:       #2b2b2b;
  --muted:     #6b7785;
  --line:      #d7e1ea;
  /* Garamond first (Adobe, if the owner activates a kit), free EB Garamond fallback */
  --serif:     "Adobe Garamond Pro", "Garamond Premier Pro", "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
  --sans:      "Nunito Sans", Lato, Arial, Helvetica, sans-serif;
  --maxw:      1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: #fff; line-height: 1.6; font-size: 16.5px; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
h1,h2,h3,h4 { font-family: var(--serif); color: var(--navy); line-height: 1.18; margin: 0 0 .5em; font-weight: 700; }

/* ---------- Top nav (light bar, matches prior site) ---------- */
.topbar { background: var(--band); border-bottom: 1px solid var(--band-dk); }
.topnav { display: flex; align-items: center; justify-content: center; min-height: 48px; }
.topnav__links { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; justify-content: center; }
.topnav__links > li > a {
  display: block; color: var(--navy); font-size: .98rem; font-weight: 600;
  padding: 14px 17px; font-family: var(--sans);
}
.topnav__links > li > a:hover { color: var(--brand); background: rgba(255,255,255,.55); text-decoration: none; }
.topnav__links > li > a.is-active { color: var(--brand); }

.has-sub { position: relative; }
.has-sub > a::after { content: " \25BE"; font-size: .7em; opacity: .7; }
.subnav {
  position: absolute; top: 100%; left: 0; min-width: 230px; background: #fff;
  list-style: none; margin: 0; padding: 6px 0; box-shadow: 0 12px 30px rgba(13,32,48,.22);
  border-top: 3px solid var(--brand); display: none; z-index: 60;
}
.has-sub:hover .subnav { display: block; }
.subnav a { display: block; padding: 9px 18px; color: var(--ink); font-size: .9rem; }
.subnav a:hover { background: var(--band); text-decoration: none; }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 12px 14px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }

/* ---------- Masthead ---------- */
.masthead { background: var(--band); border-bottom: 1px solid var(--band-dk); }
.masthead__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; }
.masthead__name { font-family: var(--serif); font-weight: 800; color: var(--navy); font-size: 2rem; line-height: 1.05; }
.masthead__meta { color: #46535f; font-size: .82rem; margin-top: 5px; }
.masthead__meta a { color: #46535f; }
.masthead__phone { font-family: var(--serif); font-weight: 700; color: var(--brand); font-size: 2.1rem; white-space: nowrap; }
.masthead__phone a { color: var(--brand); }
.masthead__phone a:hover { text-decoration: none; }

/* ---------- Hero (tagline left, family photo right) ---------- */
.hero { background: linear-gradient(to bottom, #06243c 0%, #143750 55%, #1f4057 100%); }
.hero__inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 18px; align-items: center; }
.hero__copy { display: flex; justify-content: center; padding: 26px 0; }
.tagline { display: inline-flex; flex-direction: column; line-height: 1; }
.tag-creating { font-family: var(--serif); font-weight: 400; color: #fff; font-size: clamp(1.5rem, 2.3vw, 2rem); line-height: 1; align-self: flex-start; margin-left: 2.2rem; margin-bottom: -0.06em; }
.tag-smiles { font-family: var(--serif); font-weight: 700; color: #fff; font-size: clamp(2.3rem, 4.4vw, 3.5rem); line-height: 0.96; align-self: center; text-shadow: 0 2px 14px rgba(0,0,0,.3); }
.tag-ages { font-family: var(--serif); font-weight: 600; color: var(--green); font-size: clamp(.95rem, 1.4vw, 1.2rem); letter-spacing: .1em; align-self: flex-end; margin-right: 2.8rem; margin-top: 0; }
.hero__media img { display: block; width: 100%; height: auto; }

/* ---------- Service tiles ---------- */
.tiles-band { background: var(--band); padding: 26px 0; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.tile { background: var(--navy); color: #fff; text-align: center; padding: 24px 16px; font-family: var(--serif); font-size: 1.55rem; font-weight: 700; border-radius: 2px; transition: background .15s ease; }
.tile:hover { background: var(--brand); color: #fff; text-decoration: none; }

/* ---------- Homepage blue body ---------- */
.bluebody { background: var(--body-blue); color: #fff; padding: 50px 0 58px; }
.bluebody a { color: #d7e9ff; text-decoration: underline; }
.bluebody h1, .bluebody h2, .bluebody h3 { color: #fff; }
.layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 44px; }
.layout__main h1 { font-size: 2rem; margin-bottom: 18px; }
.layout__main p { margin: 0 0 1.1rem; }
.signoff { margin-top: 6px; }

.aside__head { text-transform: uppercase; letter-spacing: .12em; font-family: var(--sans); font-weight: 800; font-size: .95rem; color: #fff; text-align: center; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.3); margin-bottom: 18px; }
.locrow { display: flex; gap: 14px; align-items: center; margin-bottom: 22px; }
.locrow__map { width: 92px; height: 70px; flex: none; border-radius: 4px; overflow: hidden; background: linear-gradient(135deg, #5e7da8, #3c5f8c); display: grid; place-items: center; color: #fff; font-size: 1.6rem; border: 1px solid rgba(255,255,255,.25); }
.locrow__addr { font-size: .92rem; color: #eef4fb; }
.locrow__addr a { color: #fff; }
.photocard { background: rgba(255,255,255,.1); border-radius: 6px; padding: 12px; }
.photocard img { border-radius: 4px; width: 100%; height: auto; display: block; }
.photocard h3 { color: #fff; font-style: italic; font-size: 1.2rem; margin: 14px 0 8px; }
.photocard p { font-style: italic; font-size: .9rem; color: #e7eef7; margin: 0; line-height: 1.55; }

/* ---------- Interior page chrome ---------- */
.page-head { background: var(--brand); color: #fff; padding: 32px 0; }
.page-head h1 { color: #fff; margin: 0 0 4px; font-size: 2.2rem; }
.page-head p { margin: 0; color: #dbe8f4; }
.content { padding: 48px 0 58px; }
.content h2 { color: var(--brand); margin-top: 1.6em; }
.content h2:first-child { margin-top: 0; }
.content .lead { font-size: 1.12rem; color: var(--muted); }
.split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 44px; align-items: start; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 12px 26px; border-radius: 3px; cursor: pointer; font-weight: 800; font-family: var(--sans); font-size: .95rem; border: 2px solid transparent; text-transform: uppercase; letter-spacing: .03em; transition: background .15s ease; }
.btn:hover { text-decoration: none; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dk); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--brand); }
.btn--outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn--outline:hover { background: var(--brand); color: #fff; }

/* ---------- Cards / lists ---------- */
.cards { display: grid; gap: 22px; }
.cards--2 { grid-template-columns: repeat(2,1fr); }
.cards--3 { grid-template-columns: repeat(3,1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 22px; box-shadow: 0 4px 16px rgba(13,32,48,.06); }
.card h3 { color: var(--brand); font-size: 1.15rem; }
.pill-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list li { background: var(--band); border: 1px solid var(--band-dk); border-radius: 3px; padding: 8px 15px; font-weight: 700; font-size: .92rem; color: var(--brand); font-family: var(--sans); }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.hours td:first-child { font-weight: 700; color: var(--navy); }
.hours td:last-child { text-align: right; color: var(--muted); }
.hours tr.is-closed td:last-child { color: var(--accent); font-weight: 700; }
.notice { background: var(--band); border-left: 4px solid var(--brand); border-radius: 4px; padding: 16px 20px; }
.notice--warn { border-left-color: var(--accent); }
.info-row { display: flex; gap: 14px; margin-bottom: 14px; }
.info-row__label { font-weight: 800; color: var(--navy); min-width: 80px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 15px; max-width: 640px; }
.form .field { display: grid; gap: 6px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form label { font-weight: 700; font-size: .9rem; color: var(--navy); }
.form input, .form select, .form textarea { width: 100%; padding: 11px 13px; border: 1px solid #c4d2de; border-radius: 4px; font: inherit; font-size: 1rem; background: #fff; color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(36,86,127,.15); }
.form textarea { min-height: 130px; resize: vertical; }
.hint { font-size: .84rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--band); color: #46535f; padding: 26px 0; border-top: 1px solid var(--band-dk); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.footer-links a { color: var(--brand); }
.footer-copy { text-align: center; color: #5b6873; font-size: .82rem; margin-top: 12px; }
.footer-tag { text-align: center; color: #5b6873; font-size: .85rem; margin-top: 6px; }

/* ---------- Glossary ---------- */
.glossary { margin: 0; }
.glossary dt { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 1.1rem; margin-top: 18px; }
.glossary dt:first-child { margin-top: 0; }
.glossary dd { margin: 3px 0 0; color: var(--ink); padding-bottom: 14px; border-bottom: 1px solid var(--line); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-0 { margin-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .layout, .split { grid-template-columns: 1fr; }
  .cards--3 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 820px) {
  .topnav { justify-content: space-between; }
  .nav__toggle { display: block; }
  .topnav__links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: #fff; z-index: 70; box-shadow: 0 12px 30px rgba(13,32,48,.18); }
  .topbar { position: relative; }
  .topnav__links.is-open { display: flex; }
  .topnav__links > li > a { padding: 13px 24px; border-bottom: 1px solid var(--line); }
  .has-sub .subnav { position: static; display: block; box-shadow: none; border-top: 0; background: #f3f8fc; }
  .has-sub > a::after { content: ""; }
  .masthead__row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero__inner { grid-template-columns: 1fr; gap: 0; }
  .hero__copy { padding: 24px 0 18px; }
  .tiles { grid-template-columns: 1fr; gap: 14px; }
  .cards--2, .cards--3 { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
}
