/* Malta Dental and Medical Clinic
   Order of Malta colors: red + white. Doctors Without Borders-style minimalism.
   Accessible: large type, high contrast, big touch targets. */

:root {
  --red: #C8102E;          /* Order of Malta red */
  --red-dark: #9d0c24;
  --red-soft: #fdebed;

  --ink: #111111;
  --ink-soft: #2a2a2a;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --line-strong: #1a1a1a;

  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f6f4;

  --radius: 6px;
  --radius-sm: 4px;

  --container: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
               "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 1rem; z-index: 1000;
}
.skip-link:focus { left: 0; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--red); outline-offset: 2px;
}

/* ---------- Utility bar ---------- */
.utility-bar {
  background: var(--red);
  color: #fff;
  font-size: 0.92rem;
  padding: 0.55rem 0;
}
.utility-bar .container {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.utility-bar strong { font-weight: 700; }
.utility-bar a { color: #fff; text-decoration: none; }
.utility-bar a:hover { text-decoration: underline; }
.utility-bar .phone { font-weight: 700; }
.utility-bar .phone::before { content: "\260E\00A0\00A0"; }

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0; gap: 2rem;
}
.brand { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; color: var(--ink); }
.brand-mark { height: 54px; width: auto; flex-shrink: 0; display: block; }

/* ---------- Nav ---------- */
.main-nav ul { list-style: none; display: flex; gap: 0.1rem; align-items: center; }
.main-nav a {
  display: block; padding: 0.6rem 0.95rem; text-decoration: none;
  color: var(--ink); font-weight: 500; font-size: 0.98rem;
  white-space: nowrap; border-bottom: 2px solid transparent;
  transition: border-color 0.15s;
}
.main-nav a:hover { border-bottom-color: var(--ink); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--red); }
.main-nav li.has-submenu { position: relative; }
.main-nav .submenu {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--line);
  padding: 0.5rem 0; flex-direction: column; display: none;
}
.main-nav li.has-submenu:hover > .submenu,
.main-nav li.has-submenu:focus-within > .submenu { display: flex; }
.main-nav .submenu a { font-size: 0.95rem; padding: 0.55rem 1.1rem; border: 0; }
.main-nav .submenu a:hover { background: var(--surface-2); border: 0; }
.main-nav .has-submenu > a::after { content: "\00A0\25BE"; font-size: 0.7em; opacity: 0.6; }

.btn-donate-nav {
  background: var(--red); color: #fff !important; font-weight: 700;
  padding: 0.7rem 1.4rem !important; margin-left: 0.5rem;
  border: 2px solid var(--red) !important;
}
.btn-donate-nav:hover { background: var(--red-dark) !important; border-color: var(--red-dark) !important; border-bottom-color: var(--red-dark) !important; }

.menu-toggle {
  display: none; background: #fff; border: 2px solid var(--ink);
  color: var(--ink); padding: 0.5rem 1rem; font-size: 0.95rem;
  cursor: pointer; font-weight: 700;
}

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.75rem; }
.section { padding: 5rem 0; }
.section--tight { padding: 3rem 0; }
.section--surface { background: var(--surface-2); }
.section--cream { background: var(--surface-2); }
.section--red {
  background: var(--red); color: #fff;
}
.section--red h1, .section--red h2, .section--red h3 { color: #fff; }
.section--red p { color: #fff; }
.section--ink { background: var(--ink); color: #fff; }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }
.section--ink p { color: #d4d4d4; }

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  color: var(--ink); line-height: 1.1; font-weight: 800;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.75rem, 3.8vw, 2.5rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1.15rem; max-width: 70ch; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
ul.bullets { padding-left: 1.4rem; margin-bottom: 1.5rem; }
ul.bullets li { margin-bottom: 0.45rem; }
ul.bullets li::marker { color: var(--red); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase; letter-spacing: 0.15em;
  font-size: 0.78rem; font-weight: 800; color: var(--red);
  margin-bottom: 1rem;
  padding-left: 2.25rem;
  position: relative;
}
.eyebrow::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 28px; height: 2px; background: currentColor;
}
.section--red .eyebrow, .section--ink .eyebrow { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 1.75rem; border-radius: 0;
  font-weight: 700; text-decoration: none; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-transform: none;
}
.btn-primary {
  background: var(--red); color: #fff; border-color: var(--red);
}
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-secondary {
  background: transparent; color: var(--ink); border-color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-white {
  background: #fff; color: var(--ink); border-color: #fff;
}
.btn-white:hover { background: transparent; color: #fff; }
.btn-ghost-white {
  background: transparent; color: #fff; border-color: #fff;
}
.btn-ghost-white:hover { background: #fff; color: var(--ink); }
.btn-large { padding: 1.1rem 2.2rem; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 6rem 0 6rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.hero::after {
  content: ""; position: absolute; top: 0; bottom: 0; right: 0;
  width: 45%; background: var(--red);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
  display: none;
}
@media (min-width: 1024px) {
  .hero::after { display: block; }
  .hero .container { max-width: 1100px; }
  .hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 4rem; align-items: center; }
  .hero-art { display: flex; }
}
.hero h1 { color: var(--ink); max-width: 18ch; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lead {
  font-size: 1.2rem; max-width: 38rem; margin-bottom: 2rem;
  color: var(--ink-soft); line-height: 1.55;
}
.hero .actions { display: flex; gap: 0.85rem; flex-wrap: wrap; align-items: center; }
.hero-art {
  display: none;
  position: relative; z-index: 1; justify-content: center;
}
.hero-cross {
  width: 280px; height: 280px; color: #fff; opacity: 0.95;
}
.hero { position: relative; }
.hero-detroit {
  position: absolute; left: 0; right: 0; bottom: 0;
  pointer-events: none; line-height: 0;
  color: var(--ink);
}
.hero-detroit svg { width: 100%; height: 90px; display: block; }

/* ---------- Detroit pride badge ---------- */
.detroit-badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--ink); color: #fff;
  padding: 0.45rem 0.9rem 0.45rem 0.7rem;
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
}
.detroit-badge::before {
  content: ""; width: 14px; height: 14px;
  background: var(--red); display: inline-block;
}
.detroit-badge .star {
  width: 12px; height: 12px; display: inline-block;
  background: #fff;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* ---------- Detroit strip section ---------- */
.detroit-strip {
  background: var(--ink); color: #fff;
  padding: 2.5rem 0;
  border-top: 6px solid var(--red);
}
.detroit-strip .container {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 2rem;
}
.detroit-strip .lockup {
  display: flex; align-items: center; gap: 1.25rem;
}
.detroit-strip .d-mark {
  width: 64px; height: 64px; background: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 900; font-size: 2.5rem; color: #fff;
  font-style: italic;
}
.detroit-strip h3 {
  color: #fff; margin: 0; font-size: 1.5rem;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.detroit-strip .sub {
  color: #b4b4b4; font-size: 0.95rem;
  text-transform: uppercase; letter-spacing: 0.15em; font-weight: 600;
  margin-top: 0.3rem;
}

/* ---------- Alert ---------- */
.alert {
  background: var(--ink); color: #fff;
  padding: 0.8rem 0; text-align: center; font-size: 0.95rem;
}
.alert a { color: #fff; font-weight: 700; text-decoration: underline; }

/* ---------- Grid ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 3rem; }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 2rem;
  transition: border-color 0.15s;
  position: relative;
}
.card:hover { border-color: var(--ink); }
.card h3 { margin-bottom: 0.6rem; }
.card .icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1.25rem;
  background: var(--red); color: #fff;
}
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover h3 { color: var(--red); }

/* ---------- Stats ---------- */
.stat {
  text-align: left; padding: 1.5rem 0;
  border-top: 4px solid var(--red);
}
.stat .num {
  font-size: 3rem; font-weight: 800; color: var(--ink);
  line-height: 1; letter-spacing: -0.03em;
}
.stat .label {
  margin-top: 0.5rem; font-size: 0.85rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700;
}

/* ---------- FAQ ---------- */
details.faq {
  background: #fff; border-top: 1px solid var(--line);
  padding: 1.25rem 0; margin-bottom: 0;
}
details.faq:last-of-type { border-bottom: 1px solid var(--line); }
details.faq summary {
  font-weight: 700; font-size: 1.1rem; cursor: pointer;
  color: var(--ink); list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; flex-shrink: 0;
  font-size: 1.75rem; line-height: 1; color: var(--red);
  font-weight: 400; transition: transform 0.2s;
}
details.faq[open] summary::after { content: "\2212"; }
details.faq[open] summary { margin-bottom: 1rem; }
details.faq p { color: var(--ink-soft); }

/* ---------- Page header ---------- */
.page-header {
  padding: 4rem 0 3rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.page-header h1 { margin: 0; max-width: 22ch; }
.breadcrumb {
  font-size: 0.88rem; color: var(--muted); margin-bottom: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--red); }

/* ---------- Prose ---------- */
.prose { max-width: 70ch; }
.prose p { font-size: 1.1rem; }
.prose h2 { margin-top: 2.5rem; }
.prose ul { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.prose ul li { margin-bottom: 0.4rem; font-size: 1.05rem; }
.prose ul li::marker { color: var(--red); }

/* ---------- People ---------- */
.people-grid {
  display: grid; gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.person {
  background: #fff;
  padding: 1.25rem 1.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.person .name { font-weight: 700; color: var(--ink); }
.person .role { color: var(--muted); font-size: 0.92rem; margin-top: 0.2rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: #b4b4b4;
  padding: 4rem 0 1.5rem;
}
.site-footer h4 {
  color: #fff; margin-bottom: 1.15rem; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.15em; font-weight: 800;
}
.footer-grid {
  display: grid; gap: 3rem;
  grid-template-columns: 2fr 1fr 1fr;
}
.site-footer p { color: #b4b4b4; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--red); }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 0.55rem; }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem; color: #7a7a7a;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: block; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-top: 1px solid var(--line);
  }
  .main-nav.open ul { flex-direction: column; align-items: stretch; padding: 0.5rem 0; }
  .main-nav.open ul li a { padding: 0.85rem 1.5rem; border-bottom: 1px solid var(--line); }
  .main-nav.open .submenu {
    position: static; display: flex; border: 0; padding-left: 1.5rem; background: var(--surface-2);
  }
  .menu-toggle { display: inline-block; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding: 4rem 0; }
  .section { padding: 3.5rem 0; }
}
