/* ============================================================
   Line & Land — Real Estate Minimal A
   style: minimal | category: realestate
   Single font: Inter (300/400/500/600). Hairline borders.
   Terracotta accent (#B85C2B) on prices + primary CTA only.
   ============================================================ */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  /* Palette */
  --bg: #FBFAF8;
  --surface: #FFFFFF;
  --fg: #1A1A18;
  --muted: #7C7A76;
  --primary: #1A1A18;
  --accent: #B85C2B;

  /* Breakpoints (reference) */
  --bp-sm: 480px;
  --bp-md: 720px;
  --bp-lg: 1024px;
  --bp-xl: 1440px;
  --bp-2xl: 1920px;

  /* Fluid type */
  --fs-hero: clamp(2.5rem, 5.5vw + 0.75rem, 5rem);
  --fs-h2: clamp(1.5rem, 2.5vw + 0.5rem, 2.25rem);
  --fs-h3: clamp(1rem, 1.2vw + 0.4rem, 1.25rem);
  --fs-body: clamp(0.9rem, 0.4vw + 0.82rem, 1rem);
  --fs-sm: 0.875rem;
  --fs-xs: 0.75rem;
  --fs-lg: 1.0625rem;
  --fs-price: clamp(1.05rem, 1.5vw + 0.4rem, 1.375rem);

  /* Layout */
  --container-max: 1200px;
  --gutter: clamp(24px, 4vw, 48px);
  --section-py: clamp(72px, 9vw, 112px);

  /* Borders — hairline only */
  --border: 1px solid rgba(26,26,24,0.10);

  /* Shadow — minimal */
  --shadow-sm: 0 2px 12px rgba(26,26,24,0.05);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul { list-style: none; }

/* Tabular nums for prices */
.listing-price,
.stat-item__value,
.hours-item__value {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* ── Typography ─────────────────────────────────────────── */
h1 {
  font-weight: 300;
  font-size: var(--fs-hero);
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--fg);
}

h2 {
  font-weight: 500;
  font-size: var(--fs-h2);
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--fg);
}

h3 {
  font-weight: 600;
  font-size: var(--fs-h3);
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--fg);
}

/* ── Layout ─────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section-title {
  margin-bottom: clamp(40px, 5vw, 60px);
}

.section-subtitle {
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-top: -clamp(28px, 3.5vw, 44px);
  margin-bottom: clamp(36px, 4.5vw, 56px);
}

.section-header {
  max-width: 64ch;
}

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

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  border-radius: 2px;
  border: none;
  text-decoration: none;
  min-height: 44px;
  min-width: 44px;
  white-space: nowrap;
  transition: background 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.btn--lg { padding: 15px 32px; font-size: var(--fs-body); }
.btn--full { width: 100%; }

/* Primary CTA — terracotta accent */
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: #9e4922;
  box-shadow: 0 4px 16px rgba(184,92,43,0.28);
}
.btn-primary:active { background: #8b3f1e; }

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid rgba(26,26,24,0.30);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--fg);
  background: rgba(26,26,24,0.04);
}

/* About page CTA variant */
.btn-accent {
  background: var(--accent);
  color: #fff;
  border-radius: 2px;
}
.btn-accent:hover,
.btn-accent:focus-visible {
  background: #9e4922;
  box-shadow: 0 4px 16px rgba(184,92,43,0.28);
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

/* ══════════════════════════════════════════════════════════
   NAV
   ══════════════════════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251,250,248,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--border);
  padding-block: 16px;
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  position: relative;
}

.nav__logo {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--fg);
  min-height: 44px;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0;
  margin-inline-start: auto;
}

.nav__link {
  padding: 8px 14px;
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--muted);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 150ms ease;
  border-radius: 2px;
}
.nav__link:hover,
.nav__link:focus-visible { color: var(--fg); }

.nav__cta {
  margin-inline-start: 16px;
  padding: 10px 20px;
  font-size: var(--fs-xs);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-inline-start: auto;
  border-radius: 2px;
}
.nav__hamburger span {
  display: block;
  height: 1px;
  width: 20px;
  background: var(--fg);
  transition: transform 200ms ease, opacity 200ms ease;
}
.nav__hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px var(--gutter) 24px;
  background: rgba(251,250,248,0.97);
  backdrop-filter: blur(12px);
  border-bottom: var(--border);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99;
}
.nav-mobile[hidden] { display: none; }
.nav-mobile .nav__link { padding: 12px 0; font-size: var(--fs-body); color: var(--fg); }
.nav-mobile .btn { margin-top: 12px; }

@media (max-width: 720px) {
  .nav__hamburger { display: flex; }
  .nav__links { display: none; }
}

/* ══════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════ */
.hero {
  padding-block: var(--section-py);
  border-bottom: var(--border);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(48px, 6vw, 80px);
}

.hero__eyebrow {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.hero__title {
  margin-bottom: 20px;
}

.hero__subtitle {
  color: var(--muted);
  font-size: var(--fs-lg);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 52ch;
  font-weight: 300;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
}

.hero--about .hero__inner,
.hero--compact .hero__inner {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 720px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero--about .hero__inner,
  .hero--compact .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__media img { aspect-ratio: 4 / 3; }
}

/* ══════════════════════════════════════════════════════════
   PRODUCT GRID — Listings
   ══════════════════════════════════════════════════════════ */
.product-grid {
  padding-block: var(--section-py);
  border-bottom: var(--border);
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.listing-card {
  border: var(--border);
  background: var(--surface);
  transition: box-shadow 150ms ease;
}

.listing-card:hover {
  box-shadow: var(--shadow-sm);
}

.listing-card__img-wrap {
  position: relative;
  overflow: hidden;
}

.listing-card__img-wrap img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  transition: transform 300ms ease;
}

.listing-card:hover .listing-card__img-wrap img {
  transform: scale(1.02);
}

@media (prefers-reduced-motion: reduce) {
  .listing-card__img-wrap img { transition: none; }
}

.listing-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  background: var(--surface);
  color: var(--fg);
  border: var(--border);
}

.listing-card__body {
  padding: 20px 20px 24px;
  border-top: var(--border);
}

.listing-name {
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.listing-specs {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 10px;
  line-height: 1.5;
}

.listing-price {
  font-size: var(--fs-price);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.01em;
}

@media (max-width: 1024px) {
  .listings-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .listings-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════
   SERVICES
   ══════════════════════════════════════════════════════════ */
.services {
  padding-block: var(--section-py);
  border-bottom: var(--border);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.service-card {
  padding: 40px 36px;
  border: var(--border);
  border-right: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-card:last-child {
  border-right: var(--border);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  margin-bottom: 4px;
}

.service-card__title {
  font-size: var(--fs-h3);
}

.service-card__desc {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 720px) {
  .services__grid { grid-template-columns: 1fr; }
  .service-card { border-right: var(--border); border-bottom: none; }
  .service-card:last-child { border-bottom: var(--border); }
}

/* ══════════════════════════════════════════════════════════
   STATS
   ══════════════════════════════════════════════════════════ */
.stats {
  padding-block: clamp(56px, 7vw, 80px);
  border-bottom: var(--border);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  padding: 32px 24px;
  border-left: var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-item:last-child {
  border-right: var(--border);
}

.stat-item__value {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--fg);
}

.stat-item__label {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(odd) { border-left: var(--border); }
  .stat-item:nth-child(even) { border-right: var(--border); }
}

/* ══════════════════════════════════════════════════════════
   TESTIMONIAL
   ══════════════════════════════════════════════════════════ */
.testimonial {
  padding-block: var(--section-py);
  border-bottom: var(--border);
}

.testimonial__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.testimonial-card {
  padding: 40px 36px;
  border: var(--border);
  border-right: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.testimonial-card:last-child {
  border-right: var(--border);
}

.testimonial-card__quote {
  font-size: var(--fs-sm);
  color: var(--fg);
  line-height: 1.75;
  flex-grow: 1;
  font-style: italic;
  font-weight: 300;
}

.testimonial-card__footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 24px;
  border-top: var(--border);
}

.testimonial-card__footer img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial-card__footer strong {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
}

.testimonial-card__footer span {
  font-size: var(--fs-xs);
  color: var(--muted);
}

@media (max-width: 1024px) {
  .testimonial__grid { grid-template-columns: 1fr; }
  .testimonial-card { border-right: var(--border); border-bottom: none; }
  .testimonial-card:last-child { border-bottom: var(--border); }
}

/* ══════════════════════════════════════════════════════════
   CONTACT SECTION (index)
   ══════════════════════════════════════════════════════════ */
.contact {
  padding-block: var(--section-py);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 80px);
  align-items: center;
}

.contact__heading { margin-bottom: 16px; }

.contact__sub {
  font-size: var(--fs-lg);
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 28px;
  max-width: 48ch;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.contact__details li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-sm);
  color: var(--muted);
}

.contact__details svg { flex-shrink: 0; }
.contact__details a { color: var(--fg); }
.contact__details a:hover { color: var(--accent); }

.contact__media img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
}

.contact__btn { margin-top: 0; }

@media (max-width: 720px) {
  .contact__inner { grid-template-columns: 1fr; }
  .contact__media { order: -1; }
}

/* ══════════════════════════════════════════════════════════
   STORY (about page)
   ══════════════════════════════════════════════════════════ */
.story {
  padding-block: var(--section-py);
  border-bottom: var(--border);
}

.story__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 80px);
  align-items: center;
}

.story__title {
  font-size: var(--fs-h2);
  margin-bottom: 24px;
}

.story__body {
  color: var(--muted);
  line-height: 1.8;
  font-size: var(--fs-lg);
  font-weight: 300;
  margin-bottom: 16px;
}

.story__media img {
  width: 100%;
  aspect-ratio: 7 / 6;
  object-fit: cover;
}

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

/* ══════════════════════════════════════════════════════════
   TEAM
   ══════════════════════════════════════════════════════════ */
.team {
  padding-block: var(--section-py);
  border-bottom: var(--border);
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.team-card {
  padding: 40px 32px;
  border: var(--border);
  border-right: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.team-card:last-child {
  border-right: var(--border);
}

.team-card__avatar {
  width: 72px;
  height: 72px;
  object-fit: cover;
  margin-bottom: 8px;
}

.team-card__name {
  font-size: var(--fs-h3);
}

.team-card__role {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.team-card__bio {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
  flex-grow: 1;
}

@media (max-width: 720px) {
  .team__grid { grid-template-columns: 1fr; }
  .team-card { border-right: var(--border); border-bottom: none; }
  .team-card:last-child { border-bottom: var(--border); }
}

/* ══════════════════════════════════════════════════════════
   FEATURE GRID / VALUES
   ══════════════════════════════════════════════════════════ */
.feature-grid {
  padding-block: var(--section-py);
  border-bottom: var(--border);
}

.feature-grid__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.feature-card {
  padding: 36px 28px;
  border: var(--border);
  border-right: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-card:last-child {
  border-right: var(--border);
}

.feature-card__icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  margin-bottom: 8px;
}

.feature-card__title {
  font-size: var(--fs-h3);
}

.feature-card__desc {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
}

@media (max-width: 1024px) {
  .feature-grid__grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card:nth-child(even) { border-right: var(--border); }
}
@media (max-width: 480px) {
  .feature-grid__grid { grid-template-columns: 1fr; }
  .feature-card { border-right: var(--border); border-bottom: none; }
  .feature-card:last-child { border-bottom: var(--border); }
}

/* ══════════════════════════════════════════════════════════
   CTA BANNER
   ══════════════════════════════════════════════════════════ */
.cta-banner {
  padding-block: clamp(72px, 8vw, 96px);
  background: var(--fg);
  border-top: var(--border);
}

.cta-banner__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 640px;
}

.cta-banner__title {
  font-size: var(--fs-h2);
  color: rgba(255,255,255,0.92);
  font-weight: 300;
  letter-spacing: -0.03em;
}

.cta-banner__subtitle {
  font-size: var(--fs-body);
  color: rgba(255,255,255,0.50);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 12px;
  max-width: 52ch;
}

/* ══════════════════════════════════════════════════════════
   CONTACT PAGE — FORM + INFO
   ══════════════════════════════════════════════════════════ */
.contact-section {
  padding-block: var(--section-py);
  border-bottom: var(--border);
}

.contact-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 80px);
  align-items: start;
}

.contact-form-wrap__title,
.contact-info__title {
  font-size: var(--fs-h3);
  margin-bottom: 28px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form__label {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-form__input {
  width: 100%;
  background: var(--surface);
  border: var(--border);
  border-bottom-width: 1px;
  border-radius: 0;
  padding: 14px 0;
  font-size: 1rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 300;
  color: var(--fg);
  border-left: none;
  border-right: none;
  border-top: none;
  border-bottom: 1px solid rgba(26,26,24,0.18);
  background: transparent;
  transition: border-color 150ms ease;
  -webkit-appearance: none;
}

.contact-form__input:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.contact-form__textarea { resize: vertical; min-height: 120px; }

.contact-form__submit {
  margin-top: 8px;
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: 0;
  width: 100%;
  min-height: 52px;
  transition: background 150ms ease;
}
.contact-form__submit:hover,
.contact-form__submit:focus-visible {
  background: #9e4922;
}

.contact-info__items {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 28px;
  border-bottom: var(--border);
}

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

.contact-info__item > svg { margin-top: 3px; flex-shrink: 0; color: var(--muted); }

.contact-info__label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 5px;
}

.contact-info__value {
  font-size: var(--fs-body);
  color: var(--fg);
  font-weight: 400;
}

.contact-info__value:is(a):hover { color: var(--accent); }

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

/* ══════════════════════════════════════════════════════════
   HOURS (contact page stats)
   ══════════════════════════════════════════════════════════ */
.hours {
  padding-block: clamp(48px, 6vw, 64px);
  border-bottom: var(--border);
}

.hours__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.hours-item {
  padding: 28px 24px;
  border-left: var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hours-item:last-child {
  border-right: var(--border);
}

.hours-item__value {
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.hours-item__label {
  font-size: var(--fs-xs);
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.04em;
}

@media (max-width: 720px) {
  .hours__grid { grid-template-columns: repeat(2, 1fr); }
  .hours-item { border: var(--border); border-right: none; border-top: none; }
  .hours-item:nth-child(even) { border-right: var(--border); }
  .hours-item:nth-child(-n+2) { border-top: var(--border); }
}

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
.footer {
  background: var(--surface);
  border-top: var(--border);
  padding-block: 40px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 32px;
}

.footer__logo {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: -0.01em;
  color: var(--fg);
  min-height: 44px;
}

.footer__copy {
  font-size: var(--fs-xs);
  color: var(--muted);
  margin-top: 4px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.footer__link {
  padding: 8px 12px;
  font-size: var(--fs-xs);
  color: var(--muted);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 150ms ease;
  border-radius: 2px;
}
.footer__link:hover,
.footer__link:focus-visible { color: var(--fg); }

.footer__social {
  display: flex;
  gap: 4px;
}

.footer__social-link {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border-radius: 2px;
  transition: color 150ms ease;
}
.footer__social-link:hover,
.footer__social-link:focus-visible { color: var(--fg); }

@media (max-width: 720px) {
  .footer__inner { grid-template-columns: 1fr; gap: 20px; }
}

/* ══════════════════════════════════════════════════════════
   PRESET CLASSES (editor drag-drop compatibility)
   ══════════════════════════════════════════════════════════ */

.preset-text {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--fg);
}

.preset-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
  border: none;
  border-radius: 0;
  background: var(--accent);
  color: #FFFFFF;
  min-height: 44px;
  min-width: 44px;
  white-space: nowrap;
  transition: background 150ms ease;
}

.preset-button:hover,
.preset-button:focus-visible {
  background: #9e4922;
}

.preset-image {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.preset-form-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.preset-form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(26,26,24,0.18);
  padding: 14px 0;
  font-size: 1rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 300;
  color: #1A1A18;
  transition: border-color 150ms ease;
}

.preset-form-input:focus {
  outline: none;
  border-bottom-color: #B85C2B;
}

.preset-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: #B85C2B;
  color: #FFFFFF;
  padding: 14px 32px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  margin-top: 8px;
  transition: background 150ms ease;
  min-height: 52px;
}

.preset-form-submit:hover {
  background: #9e4922;
}

.preset-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding: clamp(64px, 8vw, 96px) clamp(24px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

/* Section-scoped overrides */
[data-section-type="hero"] .preset-button {
  padding: 15px 32px;
  font-size: var(--fs-body);
}

[data-section-type="nav"] .preset-button {
  padding: 10px 20px;
  font-size: var(--fs-xs);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

[data-section-type="cta-banner"] .preset-button {
  background: var(--accent);
  color: #FFFFFF;
}

[data-section-type="cta-banner"] .preset-button:hover {
  background: #9e4922;
}

[data-section-type="footer"] .preset-button {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.2);
}

[data-section-type="footer"] .preset-button:hover {
  color: rgba(255,255,255,0.92);
  border-color: rgba(255,255,255,0.5);
}

/* --- section-pool token contract (auto-added by normalize-template-tokens) --- */
:root {
  --primary-fg: #FFFFFF;
  --border-token: rgba(26,26,24,0.10);
  --font-heading: "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --fs-small: 0.875rem;
  /* legacy alias for --fs-sm */
  --fs-sm: var(--fs-small);
  --lh-tight: 1.1;
  --lh-body: 1.6;
  --container-px: clamp(24px, 5vw, 48px);
  --gap-lg: 40px;
  --gap-md: 24px;
  --gap-sm: 12px;
  --radius-input: 0px;
}

/* --- section-pool preset classes (auto-added) --- */

.preset-heading {
  font-family: var(--font-heading);
  font-weight: 300;
  line-height: var(--lh-tight);
  letter-spacing: -0.03em;
  color: var(--fg);
  margin: 0;
}

.preset-card {
  background: var(--surface);
  border: 1px solid var(--border-token);
  padding: 24px;
}

.preset-input {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid var(--border-token);
  background: transparent;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 300;
  transition: border-color 150ms ease;
}
