/* Sy's — one name, twice.
   Tokens per design/DESIGN.md §4: porcelain ground, slate ink,
   awning red and laundry blue each confined to its own panel. */

:root {
  --ground: #F8F7F3;
  --ink: #212B33;
  --ink-2: #46525C;
  --ink-3: #5C6871;
  --panel-2: #B9C2C9;
  --red: #A62B1F;
  --blue: #1E4FA3;
  --hair: rgba(33, 43, 51, 0.14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section { scroll-margin-top: 84px; }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 60;
}

.skip:focus-visible {
  left: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  background: var(--ink);
  color: var(--ground);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

main:focus { outline: none; }

.hinge a:focus-visible,
.hero-panel a:focus-visible {
  outline-color: var(--ground);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 120ms ease, background-color 120ms ease;
}

.btn:active { transform: scale(0.98); }

.btn-ink {
  background: var(--ink);
  color: var(--ground);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ground);
  border-bottom: 1px solid var(--hair);
}

.header-in {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}

.wordmark {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  margin-left: -8px;
}

.header-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.header-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}

.header-nav a:hover { color: var(--ink); }

.header-call {
  min-height: 44px;
  margin-left: 8px;
}

/* While the visit close is on screen, the header pill demotes to a
   text link: one filled Call pill per screen. */
.header-call.demoted {
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 88svh;
  overflow: hidden;
  background: var(--ink);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: settle 450ms ease both;
}

.hero-panel {
  position: relative;
  margin: 0 auto 48px 0;
  left: max(24px, calc((100vw - 1200px) / 2 + 24px));
  max-width: 560px;
  background: var(--ink);
  color: var(--ground);
  padding: 36px 40px 40px;
  animation: settle 450ms ease both;
}

.hero-name {
  margin: 0;
  font-size: clamp(64px, 10vw, 112px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.hero-line {
  margin: 16px 0 0;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ground);
}

@keyframes settle {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Panels — twinned in form, told apart by awning and photograph */

.panel { padding: 0 0 96px; }

.stripe { height: 10px; }
.stripe-red { background: var(--red); }
.stripe-blue { background: var(--blue); }

.panel-name {
  margin: 40px 0 32px;
  font-size: clamp(38px, 5.6vw, 68px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

.panel-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 48px;
  align-items: center;
}

.panel-img {
  width: 100%;
  height: auto;
}

.panel-copy p { margin: 0 0 16px; }

.panel-copy .lead {
  font-size: 19px;
  line-height: 1.5;
  font-weight: 600;
}

/* The hinge — everything shared, stated once */

.hinge {
  background: var(--ink);
  color: var(--ground);
  padding: 96px 0;
  margin-bottom: 0;
}

.hinge-line {
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.hinge-line:last-child { margin-bottom: 0; }

.nowrap { white-space: nowrap; }

/* Visit close */

.visit { padding: 96px 0 88px; }

.close-address {
  margin: 0;
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.close-address span { display: block; }

.close-line {
  margin: 18px 0 0;
  font-size: 19px;
  color: var(--ink-2);
}

.close-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--hair);
  padding: 32px 0 48px;
}

.footer-names {
  margin: 0 0 6px;
  font-weight: 600;
  font-size: 16px;
}

.footer-meta {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-3);
}

/* Phone action bar */

.bar { display: none; }

@media (max-width: 720px) {
  .header-nav { display: none; }
  /* The fixed bottom bar owns the actions on the phone;
     the header carries no second filled pill. */
  .header-call { display: none; }

  .hero {
    display: block;
    min-height: 0;
  }

  .hero-img {
    position: static;
    height: 300px;
  }

  .hero-panel {
    left: 0;
    margin: 0;
    max-width: none;
    padding: 28px 24px 32px;
  }

  .panel { padding-bottom: 72px; }
  .panel-name { margin: 32px 0 24px; }
  .panel-grid { grid-template-columns: 1fr; gap: 24px; }

  .hinge { padding: 72px 0; }
  .visit { padding: 72px 0 64px; }

  .site-footer { padding-bottom: 132px; }

  .bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 50;
    display: flex;
    gap: 10px;
    padding: 10px;
    background: var(--ground);
    border: 1px solid var(--hair);
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(33, 43, 51, 0.18);
    transition: transform 300ms ease;
  }

  .bar .btn { flex: 1; padding: 10px 8px; }
  .bar.away { transform: translateY(calc(100% + 24px)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
