/* =========================================================
   Sevaen Family — Directory
   A multi-practice site presented as a building directory:
   three numbered departments, each with its own signal color.
   ========================================================= */

:root {
  /* Paper & ink */
  --paper:        #F2EEE6;
  --paper-raised: #FBF9F4;
  --ink:          #24272B;
  --ink-soft:     #6B675F;
  --line:         #D9D2C3;

  /* Department colors */
  --c-consulting: #3D5A73; /* slate blue — data / AI / tech */
  --c-salon:      #B6707A; /* dusty rose — home salon */
  --c-shop:       #C99A3B; /* mustard gold — curated finds */

  /* Type */
  --font-display: "Zilla Slab", Georgia, serif;
  --font-body: "Work Sans", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  /* Rhythm */
  --gap: clamp(1.25rem, 2vw, 2rem);
  --radius: 4px;
}

/* ---------------------------------------------------------
   Reset & base
   --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--ink-soft); max-width: 38em; }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--gap);
}

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

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

/* ---------------------------------------------------------
   Directory code labels (the "DEPT 0X" motif)
   --------------------------------------------------------- */
.dept-code {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.dept-code::before {
  content: "";
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  background: var(--dept-color, var(--ink));
  border-radius: 1px;
}

/* ---------------------------------------------------------
   Site header / directory nav
   --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
  gap: var(--gap);
}

.brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.brand small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--ink-soft);
  font-weight: 400;
  margin-top: 0.15em;
}

.directory-nav {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.directory-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 0.5em 0.8em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-raised);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.directory-nav a .tab-dot {
  width: 0.6em;
  height: 0.6em;
  border-radius: 1px;
  background: var(--tab-color, var(--ink-soft));
  flex: none;
}

.directory-nav a:hover {
  border-color: var(--tab-color, var(--ink));
  transform: translateY(-1px);
}

.directory-nav a[aria-current="page"] {
  border-color: var(--tab-color, var(--ink));
  background: var(--paper);
  font-weight: 600;
}

.nav-toggle { display: none; }

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid var(--line);
    background: var(--paper-raised);
    color: var(--ink);
    padding: 0.5em 0.8em;
    border-radius: var(--radius);
    cursor: pointer;
  }

  .directory-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    justify-content: flex-start;
    padding-bottom: 0.5rem;
  }

  .directory-nav a { width: 100%; }

  .site-header .wrap {
    flex-wrap: wrap;
  }

  .site-header.nav-open .directory-nav {
    display: flex;
  }
}

/* ---------------------------------------------------------
   Hero / Directory board
   --------------------------------------------------------- */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 6vw, 4rem);
}

.hero .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  max-width: 14ch;
}

.hero .lede {
  font-size: 1.15rem;
  max-width: 36em;
  margin-top: 1rem;
}

.hero .location {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5em 1.1em;
  background: var(--paper-raised);
}

.hero .location svg { width: 1em; height: 1em; }

/* The directory board itself */
.board {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 800px) {
  .board { grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
}

.plaque {
  --pc: var(--ink);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-left: 6px solid var(--pc);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line), 0 10px 24px -18px rgba(36,39,43,0.5);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.plaque:hover,
.plaque:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 1px 0 var(--line), 0 18px 30px -18px rgba(36,39,43,0.55);
}

.plaque .num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--pc);
  font-weight: 600;
}

.plaque h2 {
  font-size: 1.5rem;
  margin: 0.4rem 0 0.35rem;
}

.plaque p { margin: 0; font-size: 0.95rem; }

.plaque .icon {
  width: 2.4rem;
  height: 2.4rem;
  stroke: var(--pc);
}

.plaque .go {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pc);
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

/* ---------------------------------------------------------
   Sections (general content)
   --------------------------------------------------------- */
section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }

section + section { border-top: 1px solid var(--line); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1rem 2rem;
  margin-bottom: 1.75rem;
}

.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0; }

/* Page header used on practice pages */
.page-header {
  padding: clamp(2.5rem, 7vw, 4.5rem) 0 clamp(1.5rem, 4vw, 2.5rem);
  border-left: none;
}

.page-header .dept-code { margin-bottom: 0.9rem; }

.page-header h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  max-width: 18ch;
}

.page-header .lede { font-size: 1.1rem; max-width: 38em; }

/* Numbered offerings / process list */
.offerings {
  display: grid;
  gap: 1.5rem;
}

.offering {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.offering:last-child { border-bottom: none; padding-bottom: 0; }

.offering .tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--dept-color, var(--ink-soft));
  font-weight: 600;
}

.offering h3 { font-size: 1.25rem; margin-bottom: 0.35rem; }

.offering p { margin-bottom: 0; }

@media (max-width: 560px) {
  .offering { grid-template-columns: 1fr; gap: 0.4rem; }
}

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9em 1.6em;
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-solid {
  background: var(--dept-color, var(--ink));
  border-color: var(--dept-color, var(--ink));
  color: var(--paper);
}

.btn-solid:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ---------------------------------------------------------
   Price list (Home Salon)
   --------------------------------------------------------- */
.price-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-raised);
}

.price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--line);
}

.price-row:last-child { border-bottom: none; }

.price-row .name {
  font-weight: 600;
  color: var(--ink);
}

.price-row .desc {
  display: block;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 0.15em;
  font-weight: 400;
}

.price-row .price {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--c-salon);
  white-space: nowrap;
}

/* ---------------------------------------------------------
   Cards (eBay featured categories)
   --------------------------------------------------------- */
.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-raised);
  padding: 1.5rem;
}

.card .icon {
  width: 2.2rem;
  height: 2.2rem;
  stroke: var(--c-shop);
  margin-bottom: 0.9rem;
}

.card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }

.card p { font-size: 0.92rem; margin-bottom: 0; }

/* ---------------------------------------------------------
   About / two-column
   --------------------------------------------------------- */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 760px) {
  .split { grid-template-columns: 1.1fr 1fr; }
}

.portrait {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 2.5rem);
}

.portrait svg {
  width: 100%;
  height: auto;
  max-width: 340px;
}

/* ---------------------------------------------------------
   Contact form
   --------------------------------------------------------- */
.form-grid {
  display: grid;
  gap: 1.1rem;
  max-width: 32rem;
}

label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.5em;
}

input, textarea, select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75em 0.9em;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--ink);
}

textarea { resize: vertical; min-height: 8rem; }

.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.92rem;
}

.contact-meta a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-meta a:hover { border-color: var(--ink); }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer a { text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.site-footer a:hover { border-color: var(--ink); }

/* ---------------------------------------------------------
   Utility
   --------------------------------------------------------- */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

.note {
  font-size: 0.88rem;
  border-left: 3px solid var(--line);
  padding-left: 1rem;
  color: var(--ink-soft);
}
