/* =========================================================
   Esoh Creations LLC — Styles
   Mobile-first. Real brand palette sampled from the logo.

   Design intent (see docs/DESIGN.md §2): the LOGO is bold,
   the PAGE is calm. Red is an accent — never a large fill,
   never a section background. Whitespace does the work.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600&display=swap');

/* ---------- Design tokens ---------- */
:root {
  /* --- Brand ---
     Sampled directly from esoh-logo.png and vvstyles-logo1.png.
     Both logos use the identical red, so this is the real value. */
  --brand-red:   #EA3829;   /* LOGO + large decorative use ONLY.
                               4.12:1 on white — fails AA for body text. */
  --brand-black: #000000;

  /* Text-safe red: same hue, deepened to clear AA (5.5:1 on white).
     Use this for links, buttons, and anything at text size. */
  --color-primary:      #C9291C;
  --color-primary-dark: #A81E13;

  /* --- Surfaces ---
     Warm off-white, not pure white — this is most of the "calm". */
  --color-bg:        #FAF7F3;
  --color-bg-alt:    #F3EEE8;
  --color-surface:   #FFFFFF;

  /* --- Text --- soft near-black, never pure #000 in body copy */
  --color-text:      #241F1D;
  --color-text-soft: #5E5550;
  --color-border:    #E5DCD2;

  /* --- Typography --- */
  --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* --- Layout --- */
  --container-max: 1080px;
  --space-section: 5.5rem;
  --radius: 14px;
  --shadow:    0 1px 3px rgba(36, 31, 29, 0.04), 0 8px 24px rgba(36, 31, 29, 0.06);
  --shadow-lg: 0 2px 6px rgba(36, 31, 29, 0.05), 0 16px 40px rgba(36, 31, 29, 0.10);
}

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

html { scroll-behavior: smooth; }

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

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}

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

a { color: var(--color-primary); }
a:hover { color: var(--color-primary-dark); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Respect users who've asked for less motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

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

/* Small uppercase label above a section title */
.section-eyebrow {
  display: block;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.85rem;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1.25rem;
}

.section-body {
  max-width: 58ch;
  margin-inline: auto;
  text-align: center;
  color: var(--color-text-soft);
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease,
              border-color 0.18s ease, transform 0.18s ease;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border);
}
.btn-secondary:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 243, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
.brand-logo { width: 36px; height: 36px; object-fit: contain; }
.brand-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  margin-inline: auto;
  background: var(--color-text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.primary-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.primary-nav.is-open { display: block; }

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 1.5rem 1rem;
}
.primary-nav a {
  display: block;
  padding: 0.75rem 0;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
}
.primary-nav a:hover { color: var(--color-primary); }

/* ---------- Hero ----------
   One warm line with room around it. Resist adding elements here —
   the space IS the design. */
.hero {
  position: relative;
  padding-block: 5.5rem 5rem;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, #FFFFFF 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 50% 105%, rgba(234, 56, 41, 0.05) 0%, transparent 70%),
    var(--color-bg-alt);
  overflow: hidden;
}

.hero-logo {
  width: 108px;
  height: auto;
  margin: 0 auto 2rem;
}

.hero-title {
  font-size: clamp(2.1rem, 7vw, 3.4rem);
  font-weight: 400;
  margin-bottom: 0;
  line-height: 1.12;
}

.hero-tagline {
  max-width: 44ch;
  margin: 1.5rem auto 2.25rem;
  color: var(--color-text-soft);
  font-size: 1.1rem;
}

/* ---------- Prose (About) ---------- */
.prose {
  max-width: 62ch;
  margin-inline: auto;
  color: var(--color-text-soft);
  font-size: 1.05rem;
}
.prose p { margin: 0 0 1.2em; }
.prose strong { color: var(--color-text); font-weight: 600; }

/* Opening paragraph gets a touch more presence */
.prose-lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--color-text);
}

.founder-note {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.95rem;
}

/* ---------- Ventures ---------- */
.ventures-intro { margin-bottom: 3rem; }

.ventures-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

.venture-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.venture-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Image slot. Falls back to a soft wash + the venture logo/monogram
   until real photography is supplied — see docs/BUILD.md. */
.venture-media {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 80% 80% at 50% 30%, #FFFFFF 0%, transparent 75%),
    var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem;
}
.venture-media img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}
/* Placeholder line art, until real photography replaces it */
.venture-media svg { stroke: var(--brand-red); }
/* When a real photo is dropped in, it should fill the frame instead */
.venture-media.has-photo { padding: 0; background: var(--color-bg-alt); }
.venture-media.has-photo img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}
/* For portrait sources: bias the crop upward so the subject stays in frame
   instead of the centre-crop landing on torso/background. */
.venture-media.has-photo img.focus-top { object-position: 50% 6%; }

.venture-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex-grow: 1;
}

.venture-name { font-size: 1.35rem; margin-bottom: 0; }
.venture-tagline {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-primary);
}
.venture-desc {
  color: var(--color-text-soft);
  margin: 0;
  font-size: 0.97rem;
  flex-grow: 1;
}

/* Secondary product inside a venture card (Healing Threads) */
.venture-sub {
  flex-grow: 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.92rem;
}

.venture-body .btn,
.venture-body .badge { align-self: flex-start; margin-top: 0.35rem; }

.badge {
  display: inline-block;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}
.badge-soon {
  background: var(--color-bg-alt);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}

/* ---------- Contact form ---------- */
.contact-form {
  max-width: 540px;
  margin: 2.5rem auto 0;
  display: grid;
  gap: 1.25rem;
}
.form-field { display: grid; gap: 0.4rem; }
.form-field label { font-weight: 600; font-size: 0.92rem; }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font: inherit;
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color 0.15s ease;
}
.form-field input:hover,
.form-field textarea:hover { border-color: #cfc2b4; }
.form-field textarea { resize: vertical; }
.contact-form .btn { justify-self: start; }

/* Netlify honeypot — must stay in the DOM for bots to find, hidden from people.
   display:none also hides it from screen readers, which is correct: it isn't a
   real field and nobody should ever be prompted to fill it. */
.hidden-field { display: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-text);
  color: #fff;
  padding-block: 3rem 2rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}
.footer-logo {
  width: 52px;
  height: auto;
  opacity: 0.95;
}
.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.94rem;
}
.footer-nav a:hover { text-decoration: underline; }
.footer-copy {
  margin: 0;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.62);
}

/* =========================================================
   Tablet / desktop (min-width: 720px)
   ========================================================= */
@media (min-width: 720px) {
  .nav-toggle { display: none; }

  .primary-nav {
    display: block;
    position: static;
    border: none;
    background: none;
  }
  .primary-nav ul {
    display: flex;
    gap: 2rem;
    padding: 0;
  }
  .primary-nav a { padding: 0; }

  .section-title { font-size: 2.4rem; }
  .hero { padding-block: 7rem 6.5rem; }
  .hero-logo { width: 132px; }

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