/* ============================================================
   THE LOFT — Stratford · Site stylesheet (V1)
   Palette + type from PHASE_2_BRAND_GUIDE.md
   Mobile-first, no framework, no build step.
   ============================================================ */

:root {
  --ink: #1C1917;
  --paper: #FAF7F2;
  --surface: #F1ECE3;
  --line: #E5DED2;
  --muted: #6B6259;
  --accent: #C14E2B;
  --accent-deep: #9E3F22;
  --pine: #2F4A3E;

  --font-display: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(28, 25, 23, .05), 0 8px 24px rgba(28, 25, 23, .07);
  --container: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.01em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.28rem; font-weight: 600; }
h4 { font-size: 1.02rem; font-weight: 600; }
ul, ol { padding-left: 1.2rem; }
strong { font-weight: 600; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--surface { background: var(--surface); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark h2 { color: var(--paper); }
.eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.lead { font-size: 1.18rem; color: var(--muted); }

/* ---------- Buttons / CTAs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: var(--radius-sm);
  border: 1.5px solid transparent; cursor: pointer; transition: .18s ease;
  line-height: 1.2; text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--surface); }
.btn-on-dark { background: transparent; border-color: rgba(250,247,242,.5); color: var(--paper); }
.btn-on-dark:hover { background: var(--paper); color: var(--ink); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; flex-direction: column; line-height: 1; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { font-family: var(--font-display); font-weight: 700; font-size: 1.22rem; letter-spacing: .04em; }
.brand-sub { font-size: .66rem; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); margin-top: 3px; }
.brand-img { width: 30px; height: 30px; flex: none; border-radius: 7px; }
.site-header .brand { flex-direction: row; align-items: center; gap: 10px; }
.site-header .brand-text { display: flex; flex-direction: column; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav > a:not(.btn) { color: var(--ink); font-weight: 500; font-size: .95rem; }
.site-nav > a:not(.btn):hover { color: var(--accent); }
.nav-cta { padding: 10px 20px; font-size: .92rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; transition: .2s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 84vh; display: flex; align-items: flex-end; overflow: hidden; color: #fff; }
.hero .ph { position: absolute; inset: 0; border-radius: 0; border: 0; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,25,23,.18) 0%, rgba(28,25,23,.62) 100%); }
.hero-inner { position: relative; z-index: 2; width: 100%; padding: 72px 0 88px; }
.hero-eyebrow { color: #F4EBDD; letter-spacing: .18em; font-size: .74rem; text-transform: uppercase; font-weight: 600; }
.hero h1 { max-width: 16ch; margin: 16px 0 18px; color: #fff; }
.hero .lead { color: rgba(255,255,255,.9); max-width: 54ch; margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 40px; }
.hero-stat strong { display: block; font-family: var(--font-display); font-size: 1.5rem; }
.hero-stat span { font-size: .85rem; color: rgba(255,255,255,.8); }

/* ---------- Placeholders (.ph) ---------- */
.ph {
  background: linear-gradient(135deg, var(--surface) 0%, #E9E1D3 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center; padding: 32px 20px; color: var(--muted);
}
.ph::before {
  content: ""; width: 42px; height: 34px; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='34' viewBox='0 0 40 32' fill='none' stroke='%236B6259' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='5' width='38' height='22' rx='3'/%3E%3Ccircle cx='20' cy='16' r='5'/%3E%3Cpath d='M11 5l2-3h14l2 3'/%3E%3C/svg%3E") center/contain no-repeat;
}
.ph-tag { font-size: .7rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.ph-label { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--ink); max-width: 26ch; }
.ph--wide { aspect-ratio: 16 / 9; width: 100%; }
.ph--tall { aspect-ratio: 3 / 4; width: 100%; }
.ph--sq { aspect-ratio: 1 / 1; width: 100%; }
.ph--hero { min-height: 360px; width: 100%; }

/* ---------- Real photos ---------- */
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo { width: 100%; object-fit: cover; border-radius: var(--radius); display: block; }
.photo--sq { aspect-ratio: 1 / 1; }
.photo--wide { aspect-ratio: 16 / 9; }
.photo--tall { aspect-ratio: 3 / 4; }
.split-media .photo { width: 100%; }
.gallery-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); display: block; }

/* ---------- Feature split / benefits ---------- */
.benefits-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.benefit { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.benefit h3 { font-size: 1.05rem; margin-bottom: 6px; }
.benefit p { font-size: .95rem; color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
.split-media .ph { min-height: 320px; }
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: .18s ease; display: flex; flex-direction: column; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .96rem; flex: 1; }
.card .link { margin-top: 16px; font-weight: 600; }
.event-card .ph { margin-bottom: 16px; aspect-ratio: 16/10; }

/* ---------- Packages ---------- */
.pkg { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; }
.pkg--featured { border-color: var(--accent); border-width: 2px; }
.pkg-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; }
.pkg-for { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: 14px; }
.pkg ul { margin-bottom: 20px; color: var(--muted); font-size: .95rem; }
.pkg .btn { margin-top: auto; }
.pkg-price { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); margin-bottom: 4px; }
.pkg-price small { font-weight: 500; color: var(--muted); font-size: .8rem; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

/* ---------- Table (bar options) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: .95rem; vertical-align: top; }
th { font-family: var(--font-display); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }

/* ---------- Forms ---------- */
.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 96px; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 0 18px; }
.hint { font-size: .82rem; color: var(--muted); margin-top: 5px; }
.form-note { font-size: .86rem; color: var(--muted); margin-top: 16px; }
.form-success { display: none; background: var(--pine); color: #fff; border-radius: var(--radius); padding: 22px; margin-top: 18px; }
.form-success.visible { display: block; }
.form-error { display: none; color: var(--accent-deep); font-weight: 600; margin-top: 14px; }
.form-error.visible { display: block; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; padding: 80px 0; }
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: rgba(250,247,242,.8); max-width: 52ch; margin: 0 auto 28px; }
.cta-band .hero-ctas { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(250,247,242,.75); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(250,247,242,.12); }
.footer-brand { color: var(--paper); }
.footer-brand .brand-sub { color: rgba(250,247,242,.55); }
.footer-tag { font-size: .92rem; max-width: 34ch; margin-top: 12px; }
.footer-grid h4 { color: var(--paper); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.footer-grid a { display: block; color: rgba(250,247,242,.75); font-size: .92rem; padding: 4px 0; }
.footer-grid a:hover { color: var(--paper); }
.footer-bottom { display: flex; flex-direction: column; gap: 8px; padding-top: 24px; font-size: .82rem; color: rgba(250,247,242,.5); }
.footer-social { display: none; }  /* social links hidden until accounts exist */
.footer-social a { color: rgba(250,247,242,.6); }
.footer-social a:hover { color: var(--paper); }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .benefits-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .section { padding: 96px 0; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (max-width: 899px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px; display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav > a:not(.btn) { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .site-nav .nav-cta { margin-top: 12px; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 640px) {
  .hero { min-height: 72vh; }
  .hero-inner { padding: 48px 0 64px; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { gap: 18px; }
}
