/* Nancy's site. Phones first: the header menu collapses into a slide-down panel at 991px and below. */

:root {
  --ink: #141413;
  --ink-soft: #3d3d3a;
  --ink-muted: #6b6a65;
  --paper: #faf9f5;
  --card: #f0eee6;
  --line: #1414131f;
  --serif: Georgia, "Times New Roman", serif;
  --ease-out-in: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
h1, h2, p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--paper);
  border-bottom: 1px solid #1414131a;
}
.nav-container {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
}
.nav-brand {
  display: flex;
  flex-direction: column;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
}
.brand-name {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.01em;
}
.brand-tag {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.nav-menu { display: flex; align-items: center; line-height: 20px; }
.nav-link {
  padding: 10px 14px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 16px;
  font-weight: 500;
}
.chevron { width: 14px; height: 14px; stroke-width: 2; transition: transform .3s ease; }
.nav-dropdown.is-open .chevron { transform: rotate(180deg); }
.nav-dropdown-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 100%;
  padding: 8px 0;
  background: var(--paper);
  border-radius: 10px;
  box-shadow: 0 10px 30px #1414131f;
}
.nav-dropdown.is-open .nav-dropdown-list { display: block; }
.nav-sub-link {
  display: block;
  padding: 10px 18px;
  font-size: 15px;
  white-space: nowrap;
  color: var(--ink);
  text-decoration: none;
}
.nav-sub-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Desktop: open the menus on mouse hover. Only for screens with a real mouse, so phone taps aren't doubled. */
@media (min-width: 992px) and (hover: hover) and (pointer: fine) {
  .nav-dropdown:hover .nav-dropdown-list { display: block; }
  .nav-dropdown:hover .chevron { transform: rotate(180deg); }
}

.nav-cta { display: flex; align-items: center; margin-left: 12px; }
.btn-primary, .btn-secondary {
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.btn-primary { color: var(--paper); background: var(--ink); }
.btn-secondary { display: none; color: var(--ink); border: 1px solid var(--ink); }

.nav-actions { display: none; align-items: center; }
.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--ink);
}
.nav-icon svg { width: 22px; height: 22px; }

.nav-button { display: none; margin-right: -10px; padding: 12px 10px; }
.burger-line {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .35s var(--ease-out-in), opacity .2s ease;
}
.nav-button[aria-expanded="true"] .burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-button[aria-expanded="true"] .burger-line:nth-child(2) { opacity: 0; }
.nav-button[aria-expanded="true"] .burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Phones and tablets: the menu becomes a full-height panel that slides down from behind the header. */
@media (max-width: 991px) {
  html.menu-open { overflow: hidden; }
  .nav-actions { display: flex; margin-right: 6px; }
  .nav-button { display: block; }

  /* The panel slides down from under the header. The clip moves in step with the slide, so only the
     part below the header ever shows and the links never pass over the header's own text. */
  .nav-menu {
    display: block;
    position: absolute;
    top: calc(100% + 1px); /* just under the header's bottom border */
    left: 0;
    right: 0;
    height: calc(100vh - var(--nav-h, 65px));
    height: calc(100dvh - var(--nav-h, 65px));
    padding: 4px 20px calc(32px + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--paper);
    transform: translateY(-100%);
    clip-path: inset(100% 0 0 0);
    visibility: hidden;
    transition: transform .4s ease, clip-path .4s ease, visibility 0s .4s;
  }
  .menu-open .nav-menu {
    transform: none;
    clip-path: inset(0);
    visibility: visible;
    transition: transform .4s ease, clip-path .4s ease;
  }

  .nav-link, .nav-dropdown-toggle {
    display: flex;
    width: 100%;
    padding: 18px 0;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.02em;
    border-bottom: 1px solid var(--line);
  }
  .nav-dropdown-toggle { justify-content: space-between; border-bottom: 0; }
  .nav-dropdown { border-bottom: 1px solid var(--line); }
  .chevron { width: 22px; height: 22px; margin-right: 2px; stroke-width: 2.5; }

  .nav-dropdown-list {
    display: block;
    position: static;
    max-height: 0;
    padding: 0;
    overflow: hidden;
    visibility: hidden;
    background: none;
    box-shadow: none;
    transition: max-height .35s var(--ease-out-in), visibility 0s .35s;
  }
  .nav-dropdown.is-open .nav-dropdown-list { max-height: 200px; visibility: visible; transition: max-height .35s var(--ease-out-in); }
  .nav-sub-link { padding: 9px 0; font-size: 19px; white-space: normal; color: var(--ink-soft); }
  .nav-sub-link:last-child { margin-bottom: 12px; }

  .nav-cta { display: block; margin: 28px 0 0; }
  .btn-primary, .btn-secondary { display: block; width: 100%; padding: 16px 18px; font-size: 18px; }
  .btn-secondary { margin-top: 12px; }
}

/* ---------- Page ---------- */

.page-main { max-width: 1200px; margin: 0 auto; padding: 0 20px 80px; }
.hero { padding: 72px 0 56px; }
.eyebrow {
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 20px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.hero-title {
  max-width: 820px;
  margin-bottom: 20px;
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.02em;
}
.hero-lead { max-width: 640px; margin-bottom: 32px; font-size: 20px; line-height: 1.5; color: var(--ink-soft); }
.hero-btn {
  display: inline-block;
  padding: 16px 28px;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 600;
  line-height: 20px;
  color: var(--paper);
  background: var(--ink);
  text-decoration: none;
}

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { min-height: 220px; padding: 28px 24px; border-radius: 14px; background: var(--card); }
.service-title { margin-bottom: 12px; font-family: var(--serif); font-size: 28px; font-weight: 500; line-height: 1.15; }
.service-text { font-size: 17px; line-height: 1.55; color: var(--ink-soft); }
.contact { min-height: 400px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }

@media (max-width: 991px) {
  .services { grid-template-columns: 1fr; }
}
@media (max-width: 479px) {
  .brand-name { font-size: 19px; }
  .hero { padding: 48px 0 40px; }
  .hero-title { font-size: 40px; }
  .hero-lead { font-size: 18px; }
  .hero-btn { display: block; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .burger-line, .chevron, .nav-menu, .nav-dropdown-list { transition: none !important; }
}
