/* ───────────────────────────────────────────────
   The Loft — Editorial Direction
   Cool & editorial: paper white, deep ink, sage accent
─────────────────────────────────────────────── */

:root {
  --paper: #FAFAF7;
  --paper-warm: #F2EFE8;
  --ink: #1A1A1A;
  --ink-soft: #2A2A28;
  --muted: #6B6B68;
  --muted-soft: #9A9A95;
  --line: #E5E2DB;
  --accent: #B8472A;        /* terracotta — softened from the brand orange */
  --accent-pale: #E8D5CC;   /* dusty terracotta wash, for subtle backgrounds */

  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1320px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ── Typography ─────────────────────────── */

.eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.display-xl {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(56px, 9vw, 140px);
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.display-lg {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(44px, 6vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.005em;
}

.display-md {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.1;
}

.display-sm {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.2;
}

.lede {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.45;
  color: var(--ink-soft);
}

.body-prose {
  max-width: 58ch;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.75;
}

.body-prose p + p { margin-top: 1.2em; }

/* ── Layout ─────────────────────────────── */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section {
  padding-top: clamp(80px, 12vw, 160px);
  padding-bottom: clamp(80px, 12vw, 160px);
}

.divider {
  height: 1px;
  background: var(--line);
  width: 100%;
}

/* ── Header ─────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  padding: 20px var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}

.nav-primary, .nav-secondary {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-secondary { justify-content: flex-end; }

.nav-primary a, .nav-secondary a {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 400;
  transition: color .2s ease;
  position: relative;
}

.nav-primary a:hover, .nav-secondary a:hover { color: var(--accent); }

.nav-primary a.is-active::after,
.nav-secondary a.is-active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ink);
}

.nav-cta {
  border: 1px solid var(--ink) !important;
  padding: 10px 22px !important;
  font-size: 10.5px !important;
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--paper) !important;
}

.site-header__logo img {
  height: 56px;
  width: auto;
}

/* Header — handwritten 'the Loft' script (loftscript.svg).
   SVG canvas is square, so height drives the visible size. */
.site-header__logo-img {
  height: 88px;
  width: auto;
  display: block;
}

/* Optional fallback typeset stand-in (no longer in use, kept for reference) */
.site-header__logo-script {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 42px;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
  display: inline-block;
}

/* ── Hero ───────────────────────────────── */

.hero {
  padding-top: clamp(64px, 8vw, 120px);
  padding-bottom: clamp(64px, 8vw, 120px);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: end;
}

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.1fr 1fr; gap: 80px; }
}

.hero__title { margin-bottom: 32px; }

.hero__title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 300;
}

.hero__meta {
  display: flex;
  gap: 48px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.hero__meta-item .eyebrow { display: block; margin-bottom: 6px; }
.hero__meta-item p { font-size: 14px; color: var(--ink-soft); }

.hero__image {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--paper-warm);
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
}

/* ── Button ─────────────────────────────── */

.btn {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 16px 32px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: all .25s ease;
}

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

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

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

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  transition: gap .2s ease;
}

.link-arrow:hover { gap: 16px; }

/* ── Intro section ──────────────────────── */

.intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 900px) {
  .intro { grid-template-columns: 1fr 1.4fr; gap: 96px; }
}

.intro__label .eyebrow { display: block; margin-bottom: 16px; }
.intro__label h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 300;
  line-height: 1.15;
  max-width: 14ch;
}

/* ── Spaces grid ────────────────────────── */

.spaces {
  background: var(--paper-warm);
}

.spaces__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 80px;
}

.spaces__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 700px) { .spaces__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .spaces__grid { grid-template-columns: repeat(3, 1fr); gap: 64px 48px; } }

.space-card__media {
  aspect-ratio: 4/5;
  overflow: hidden;
  margin-bottom: 24px;
  background: var(--paper);
}

.space-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
  filter: saturate(0.92);
}

.space-card:hover .space-card__media img { transform: scale(1.03); }

.space-card__index {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.space-card h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 26px;
  margin-bottom: 8px;
}

.space-card p { color: var(--muted); font-size: 14px; }

/* ── Quote block ────────────────────────── */

.pull-quote {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}

.pull-quote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.25;
  color: var(--ink);
}

.pull-quote cite {
  display: block;
  margin-top: 32px;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Two column feature ─────────────────── */

.feature-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .feature-split { grid-template-columns: 1fr 1fr; gap: 96px; }
  .feature-split--reverse > :first-child { order: 2; }
}

.feature-split__media {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--paper-warm);
}

.feature-split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
}

.feature-split__text .eyebrow { display: block; margin-bottom: 24px; }
.feature-split__text h2 { margin-bottom: 32px; }
.feature-split__text p { margin-bottom: 24px; }

/* ── Pricing tiles ──────────────────────── */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

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

.pricing-tile {
  background: var(--paper);
  padding: 56px 40px;
}

.pricing-tile--featured {
  background: var(--ink);
  color: var(--paper);
}

.pricing-tile--featured .eyebrow,
.pricing-tile--featured .pricing-tile__meta { color: var(--muted-soft); }
.pricing-tile--featured .pricing-tile__price { color: var(--paper); }

.pricing-tile .eyebrow { display: block; margin-bottom: 16px; }

.pricing-tile h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 34px;
  margin-bottom: 16px;
}

.pricing-tile__price {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 300;
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-tile__price span {
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--muted);
  letter-spacing: 0.05em;
}

.pricing-tile__meta {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}

.pricing-tile ul {
  list-style: none;
  margin-bottom: 40px;
}

.pricing-tile ul li {
  font-size: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(229, 226, 219, 0.4);
  color: var(--ink-soft);
}

.pricing-tile--featured ul li {
  border-bottom-color: rgba(255,255,255,0.1);
  color: var(--paper);
}

/* ── Portfolio grid ─────────────────────── */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

@media (min-width: 900px) { .portfolio-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }

.portfolio-grid__item {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--paper-warm);
  cursor: pointer;
}

.portfolio-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
  transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .4s;
}

.portfolio-grid__item:hover img {
  transform: scale(1.04);
  filter: saturate(1);
}

.portfolio-grid__item--tall { aspect-ratio: 3/5; }
.portfolio-grid__item--wide { aspect-ratio: 5/4; }

/* ── Filter bar ─────────────────────────── */

.filter-bar {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  margin-bottom: 64px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.filter-bar button {
  background: none;
  border: none;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  padding: 8px 0;
  position: relative;
  font-family: var(--font-sans);
}

.filter-bar button.is-active { color: var(--ink); }

.filter-bar button.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -32px;
  height: 1px;
  background: var(--ink);
}

/* ── FAQ ────────────────────────────────── */

.faq-item {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 32px;
}

.faq-item:last-child { border-bottom: 1px solid var(--line); }

.faq-item__num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--muted);
  font-size: 16px;
}

.faq-item h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  margin-bottom: 12px;
}

.faq-item p {
  color: var(--ink-soft);
  max-width: 70ch;
}

/* ── Contact form ───────────────────────── */

.contact-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
}

@media (min-width: 900px) { .contact-split { grid-template-columns: 1fr 1.2fr; gap: 96px; } }

.form-field {
  margin-bottom: 32px;
}

.form-field label {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 8px 0;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color .2s ease;
}

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

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

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* ── Footer ─────────────────────────────── */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 96px var(--gutter) 32px;
}

.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

@media (min-width: 800px) {
  .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
}

.site-footer h5 {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-soft);
  font-weight: 400;
  margin-bottom: 20px;
}

.site-footer ul { list-style: none; }

.site-footer ul li { margin-bottom: 12px; }

.site-footer ul a {
  font-size: 14px;
  color: var(--paper);
  opacity: 0.85;
  transition: opacity .2s ease;
}

.site-footer ul a:hover { opacity: 1; }

/* Footer logo container */
.site-footer__logo {
  margin-bottom: 20px;
  line-height: 0;
}

/* Footer — handwritten 'the Loft' script.
   Renders in its native orange/red on the dark ink footer. */
.site-footer__logo-img {
  height: 110px;
  width: auto;
  display: block;
}

.site-footer__address {
  font-size: 14px;
  opacity: 0.75;
  line-height: 1.7;
  max-width: 28ch;
}

.site-footer__legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-soft);
  flex-wrap: wrap;
  gap: 16px;
}

/* ── Marquee text ───────────────────────── */

.marquee {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(60px, 11vw, 180px);
  line-height: 1;
  color: var(--paper-warm);
  white-space: nowrap;
  overflow: hidden;
  padding: 32px 0;
}

.marquee span { padding: 0 32px; }

/* ── Utility ────────────────────────────── */

.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 32px; }
.mt-lg { margin-top: 48px; }
.mb-md { margin-bottom: 32px; }
.mb-lg { margin-bottom: 48px; }

/* ── Mobile menu (simple) ───────────────── */

@media (max-width: 899px) {
  .nav-primary, .nav-secondary { display: none; }
  .site-header__inner { grid-template-columns: 1fr auto; }
  .site-header__logo { grid-column: 2; }
  .nav-secondary { display: flex; grid-column: 3; }
  .nav-secondary a:not(.nav-cta) { display: none; }
}
