/* Bakes & Grow — warm, bakery-adjacent palette, readable type */

:root {
  --color-bg: #faf6f0;
  --color-surface: #fffdf9;
  --color-ink: #2a2218;
  --color-ink-muted: #5c5348;
  --color-accent: #8b4513;
  --color-accent-soft: #c17a4a;
  --color-border: #e8dfd3;
  --color-hero-wash: #f0e6d8;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;
  --shadow-soft: 0 12px 40px rgba(42, 34, 24, 0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --space-section: clamp(4rem, 10vw, 7rem);
  --container: min(1120px, calc(100% - 2rem));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  padding: 0.5rem 1rem;
  background: var(--color-ink);
  color: var(--color-surface);
  border-radius: 6px;
  z-index: 100;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 249, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 0 rgba(42, 34, 24, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--color-ink);
  text-decoration: none;
  letter-spacing: -0.02em;
  min-width: 0;
}

.logo-mark {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: block;
}

.logo-text {
  white-space: nowrap;
}

.logo-amp {
  color: var(--color-accent);
  font-style: italic;
}

@media (max-width: 380px) {
  .logo-text {
    font-size: 1.05rem;
  }

  .logo-mark {
    width: 38px;
    height: 38px;
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--color-ink);
  margin-inline: auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.is-open .nav-toggle-bar:first-child {
  transform: translateY(4px) rotate(45deg);
}

.site-header.is-open .nav-toggle-bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.nav-list {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--color-ink-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--color-accent);
}

@media (max-width: 720px) {
  .nav-list a {
    font-size: 0.8125rem;
    letter-spacing: 0.05em;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .site-header.is-open .site-nav {
    max-height: 320px;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1rem 1.25rem;
  }

  .nav-list a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-list li:last-child a {
    border-bottom: none;
  }
}

/* Hero */

.hero {
  padding-block: clamp(3rem, 8vw, 5rem);
  background: linear-gradient(
    165deg,
    var(--color-hero-wash) 0%,
    var(--color-bg) 55%,
    var(--color-bg) 100%
  );
  border-bottom: 1px solid var(--color-border);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 2.5rem;
    align-items: center;
  }
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-collage {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.5rem;
  aspect-ratio: 5 / 4;
  max-height: min(380px, 52vw);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

@media (max-width: 599px) {
  .hero-collage {
    aspect-ratio: 4 / 5;
    max-height: min(340px, 70vw);
  }
}

@media (min-width: 900px) {
  .hero-collage {
    max-height: 400px;
  }
}

.hero-collage-cell {
  overflow: hidden;
  min-height: 0;
}

.hero-collage-cell--main {
  grid-row: 1 / -1;
  grid-column: 1;
}

.hero-collage-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-soft);
  margin: 0 0 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  color: var(--color-ink);
}

.lead {
  margin: 0 0 1.5rem;
  color: var(--color-ink-muted);
  max-width: 32em;
  font-size: 1.0625rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #6d3610;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-border);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--color-accent-soft);
  color: var(--color-accent);
}

.btn-block {
  width: 100%;
  box-sizing: border-box;
}

.btn-suffix {
  margin-left: 0.35em;
  font-weight: 500;
  opacity: 0.9;
}

.contact-map-btn {
  margin-bottom: 1rem;
}

.hero-panel {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
  padding: 1.5rem 1.5rem 1.35rem;
  align-self: stretch;
}

.hero-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.hero-chips li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-ink);
  line-height: 1.35;
}

.hero-chips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent-soft);
}

/* Sections */

.section {
  padding-block: var(--space-section);
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.75rem;
}

.section-head-tight {
  margin-bottom: 0;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.section-head p {
  margin: 0;
  color: var(--color-ink-muted);
  font-size: 1rem;
  line-height: 1.45;
  max-width: 28em;
}

/* Gallery */

.gallery {
  background: var(--color-bg);
}

.gallery-grid {
  --gallery-gap: 0.75rem;
  display: grid;
  gap: var(--gallery-gap);
  /* 2 cols: wide + 2×2 squares + wide — avoids a single orphan square (3-col gave 3+1) */
  grid-template-columns: repeat(2, 1fr);
  align-items: stretch;
}

@media (min-width: 640px) {
  .gallery-grid {
    --gallery-gap: 0.85rem;
  }
}

/* Wide enough for 4 square tiles in one row between the two banner images */
@media (min-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-tile {
  display: flex;
  flex-direction: column;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: 0 4px 20px rgba(42, 34, 24, 0.06);
}

.gallery-tile img {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  display: block;
}

.gallery-tile--wide {
  grid-column: 1 / -1;
}

.gallery-tile--wide img {
  aspect-ratio: 16 / 9;
}

/* Services */

.services {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .service-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent-soft);
  border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.5rem;
  position: relative;
}

.service-card-wide {
  grid-column: 1 / -1;
}

@media (min-width: 700px) {
  .service-card-wide {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 1.5rem;
    align-items: start;
  }

  .service-card-wide .service-num {
    grid-row: span 2;
  }

  .service-card-wide h3 {
    margin-top: 0;
  }
}

.service-num {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent-soft);
  display: block;
  margin-bottom: 0.75rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.service-card p {
  margin: 0;
  color: var(--color-ink-muted);
  font-size: 0.9375rem;
  line-height: 1.45;
}

/* Leadership */

.leadership-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

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

.director-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.director-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.director-role {
  margin: 0 0 0.5rem;
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.9375rem;
}

.director-hint {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  color: var(--color-ink-muted);
  line-height: 1.4;
}

.director-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding-block: 1.75rem;
  background: var(--color-surface);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

@media (min-width: 600px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-brand {
  margin: 0;
  font-weight: 600;
  font-size: 0.9375rem;
}

.footer-meta {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-ink-muted);
}
