/* ==========================================================================
   The Fresh Space Co. — shared styles
   ========================================================================== */

:root {
  --color-bg: #FBF7F1;
  --color-bg-alt: #F3EBDF;
  --color-card: #FFFDFA;
  --color-ink: #2B2620;
  --color-ink-soft: #6B6255;
  --color-sage: #7C9473;
  --color-sage-dark: #5F7857;
  --color-sage-light: #E4EBE0;
  --color-terracotta: #C97B5A;
  --color-terracotta-dark: #AD6244;
  --color-border: #E7DDCC;

  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1140px;
  --radius-lg: 20px;
  --radius-md: 12px;
  --shadow-soft: 0 10px 30px rgba(60, 50, 30, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--color-ink);
}

h1 { font-size: clamp(2.2rem, 4vw + 1rem, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 2vw + 1rem, 2.6rem); font-weight: 500; }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-sage-dark);
  font-weight: 600;
  margin-bottom: 0.9em;
}

.lede {
  font-size: 1.15rem;
  color: var(--color-ink-soft);
  max-width: 60ch;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 88px 0;
}

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

.section-tight {
  padding: 56px 0;
}

.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* -------------------- Buttons -------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--color-sage-dark);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  background: var(--color-ink);
  color: #fff;
}

.btn-outline-light {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

.btn-outline-light:hover {
  background: #fff;
  color: var(--color-ink);
}

.btn-block {
  width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-ink);
}

.brand svg {
  flex-shrink: 0;
}

.brand-logo {
  height: 76px;
  width: auto;
  display: block;
}

.brand-logo-footer {
  height: 64px;
  border-radius: 10px;
  background: var(--color-bg);
  padding: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-ink-soft);
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-sage-dark);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle svg {
  width: 26px;
  height: 26px;
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 24px 20px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 10px 0;
    width: 100%;
  }

  .nav-cta .btn-primary {
    padding: 10px 18px;
    font-size: 0.85rem;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

/* -------------------- Hero -------------------- */

.hero {
  padding: 72px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.hero-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-sage-dark);
}

.hero-stat span {
  font-size: 0.85rem;
  color: var(--color-ink-soft);
}

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 25% 20%, rgba(124,148,115,0.35), transparent 45%),
    radial-gradient(circle at 80% 75%, rgba(201,123,90,0.30), transparent 50%),
    linear-gradient(155deg, #EFE6D8 0%, #E3EFDE 100%);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    aspect-ratio: 16 / 10;
  }
}

/* -------------------- Cards / grids -------------------- */

.grid {
  display: grid;
  gap: 28px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--color-sage-light);
  color: var(--color-sage-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head.left {
  margin: 0 0 56px;
  text-align: left;
}

/* -------------------- Steps -------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  counter-reset: step;
}

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
}

.step {
  position: relative;
  padding-left: 4px;
}

.step-num {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  color: var(--color-sage);
  opacity: 0.5;
  display: block;
  margin-bottom: 8px;
}

/* -------------------- Testimonials -------------------- */

.quote-card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 32px;
}

.quote-card p {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-ink);
}

.quote-name {
  font-size: 0.9rem;
  color: var(--color-ink-soft);
  font-weight: 600;
  font-family: var(--font-body);
  font-style: normal;
}

/* -------------------- CTA band -------------------- */

.cta-band {
  background: linear-gradient(135deg, var(--color-sage-dark), var(--color-sage));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 64px;
  text-align: center;
}

.cta-band h2, .cta-band p {
  color: #fff;
}

.cta-band .lede {
  color: rgba(255,255,255,0.85);
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 28px;
  flex-wrap: wrap;
}

@media (max-width: 700px) {
  .cta-band { padding: 44px 24px; }
}

/* -------------------- Page hero (inner pages) -------------------- */

.page-hero {
  padding: 64px 0 48px;
  text-align: center;
}

.page-hero .lede {
  margin-left: auto;
  margin-right: auto;
}

.page-hero-image {
  margin: 40px auto 0;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 3 / 1;
}

.page-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-image.face {
  width: 60%;
  aspect-ratio: 4 / 3;
}

.page-hero-image.face img {
  object-position: center 20%;
}

.contact-grid .page-hero-image {
  width: 100%;
  margin: 32px 0 0;
}

@media (max-width: 700px) {
  .page-hero-image {
    width: 100%;
    aspect-ratio: 4 / 3;
  }

  .page-hero-image.face {
    width: 90%;
  }
}

/* -------------------- Service list items -------------------- */

.service-detail {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 24px;
  padding: 36px 0;
  border-top: 1px solid var(--color-border);
}

.service-detail:last-child {
  border-bottom: 1px solid var(--color-border);
}

.service-detail .card-icon {
  margin-bottom: 0;
  width: 64px;
  height: 64px;
}

.service-detail .card-icon svg {
  width: 30px;
  height: 30px;
}

.service-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-terracotta-dark);
  background: rgba(201,123,90,0.12);
  padding: 5px 12px;
  border-radius: 999px;
}

@media (max-width: 600px) {
  .service-detail {
    grid-template-columns: 1fr;
  }
}

/* -------------------- Gallery -------------------- */

.gallery-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-card);
}

.ba-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 220px;
}

.ba-pair.single {
  grid-template-columns: 1fr;
}

.ba-panel {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ba-before {
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,0.08) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, #B9AE9A, #8C8272);
}

.ba-after {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.10) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, var(--color-sage), var(--color-sage-dark));
}

.ba-panel.ba-photo {
  padding: 0;
  overflow: hidden;
  background: none;
}

.ba-panel.ba-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-panel.ba-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45), transparent 55%);
}

.ba-label {
  position: relative;
  z-index: 1;
  padding: 14px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.gallery-caption {
  padding: 20px 22px 24px;
}

.gallery-caption h3 {
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.gallery-caption p {
  margin: 0;
  color: var(--color-ink-soft);
  font-size: 0.92rem;
}

/* -------------------- Pricing -------------------- */

.price-card {
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card.featured {
  border-color: var(--color-sage);
  box-shadow: var(--shadow-soft);
}

.price-badge {
  position: absolute;
  top: -14px;
  left: 32px;
  background: var(--color-terracotta);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}

.price-amount {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--color-ink);
  margin: 12px 0 4px;
}

.price-amount span {
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--color-ink-soft);
  font-weight: 500;
}

.price-features {
  list-style: none;
  margin: 24px 0 32px;
  padding: 0;
  flex-grow: 1;
}

.price-features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--color-ink-soft);
}

.price-features svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-sage-dark);
}

.pricing-footnote {
  text-align: center;
  color: var(--color-ink-soft);
  font-size: 0.9rem;
  margin-top: 32px;
}

/* -------------------- About -------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-photo {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--color-sage-light), var(--color-bg-alt));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-sage-dark);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.about-photo svg {
  width: 90px;
  height: 90px;
  opacity: 0.6;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 20px;
}

@media (max-width: 760px) {
  .values-grid { grid-template-columns: 1fr; }
}

/* -------------------- Coverage map -------------------- */

#coverage-map {
  height: 520px;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  background: var(--color-bg-alt);
}

.map-note {
  background: var(--color-sage-light);
  border: 1px dashed var(--color-sage);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  color: var(--color-sage-dark);
  font-size: 0.92rem;
  margin-top: 24px;
}

.town-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.town-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}

.town-item:last-child {
  border-bottom: none;
}

.town-item .distance {
  color: var(--color-ink-soft);
  font-size: 0.82rem;
  white-space: nowrap;
}

/* -------------------- Contact / Form -------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-info-item .card-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

.contact-info-item h3 {
  margin-bottom: 2px;
  font-size: 1.05rem;
}

.contact-info-item p {
  margin: 0;
  color: var(--color-ink-soft);
}

.form-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-sage);
  box-shadow: 0 0 0 3px rgba(124,148,115,0.2);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  font-size: 0.85rem;
  color: var(--color-ink-soft);
  margin-top: 14px;
}

.form-success {
  display: none;
  background: var(--color-sage-light);
  border: 1px solid var(--color-sage);
  color: var(--color-sage-dark);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 20px;
  font-weight: 600;
}

.form-success.show {
  display: block;
}

/* -------------------- Footer -------------------- */

.site-footer {
  background: var(--color-ink);
  color: #E9E3D8;
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 14px;
  color: #fff;
}

.footer-grid p {
  color: rgba(233,227,216,0.7);
  font-size: 0.92rem;
}

.footer-heading {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(233,227,216,0.5);
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(233,227,216,0.8);
  font-size: 0.92rem;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 0.85rem;
  color: rgba(233,227,216,0.5);
  flex-wrap: wrap;
  gap: 12px;
}
