/* ==========================================================================
   how-it-works.css — How It Works page
   Hinsch Portrait Studio

   Reuses the light "editorial" chrome established on about.html (same
   header/footer pattern as story.css) — kept self-contained here per the
   pattern used across the other page-specific CSS files in this rebuild.
   ========================================================================== */

:root {
  --color-brown-dark: #3a2f24;
  --color-brown-darker: #241c15;
  --color-olive-brown: #423a2c;
  --color-cream: #ede4d3;
  --color-cream-alt: #f2ead9;
  --color-gold: #a9822f;
  --color-gold-light: #cdb173;
  --color-ivory: #f7f2e7;
  --color-text: #2c2419;
  --color-text-muted: #5a5041;

  --font-display: 'Cormorant Garamond', 'EB Garamond', Garamond, Georgia, serif;
  --font-body: 'EB Garamond', Garamond, Georgia, serif;
  --font-label: 'Barlow Condensed', sans-serif;

  --max-width: 1240px;
}

.hiw-page {
  background: var(--color-cream);
  color: var(--color-text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

.hiw-page .container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.hiw-page img { max-width: 100%; display: block; }
.hiw-page a { text-decoration: none; }
a { color: inherit; }
.hiw-page :focus-visible { outline: 2px solid var(--color-gold); outline-offset: 3px; }

/* ==========================================================================
   HEADER (light chrome — same pattern as about.html / story.css)
   ========================================================================== */

.story-page-header {
  background: var(--color-cream);
  border-bottom: 1px solid rgba(43, 28, 20, 0.15);
  position: relative;
  z-index: 40;
}

.story-page-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 40px;
  gap: 24px;
}

.story-page-header .wordmark-block { display: flex; flex-direction: column; gap: 6px; }

.story-page-header .wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text);
  white-space: nowrap;
}

.story-page-header .wordmark-flourish { width: 150px; height: 10px; color: var(--color-gold); }
.story-page-header .wordmark-flourish svg { width: 100%; height: 100%; display: block; }

.story-page-header__nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 34px;
  margin: 0;
  padding: 0;
}

.story-page-header__nav a {
  font-family: var(--font-label);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  padding-bottom: 6px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.story-page-header__nav a:hover { color: var(--color-gold); }
.story-page-header__nav li.is-active a { color: var(--color-gold); border-bottom-color: var(--color-gold); }

.story-page-header__menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-text);
  border-radius: 2px;
  width: 42px;
  height: 38px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.story-page-header__menu-toggle span { display: block; width: 20px; height: 1.5px; background: var(--color-text); }

.story-page-header__mobile-nav {
  display: none;
  background: var(--color-cream);
  border-top: 1px solid rgba(43, 28, 20, 0.15);
}

.story-page-header__mobile-nav.is-open { display: block; }

.story-page-header__mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 8px 24px 20px;
  display: flex;
  flex-direction: column;
}

.story-page-header__mobile-nav a {
  display: block;
  padding: 12px 0;
  font-family: var(--font-label);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  border-bottom: 1px solid rgba(43, 28, 20, 0.08);
}

.story-page-header__mobile-nav li.is-active a { color: var(--color-gold); }

/* ==========================================================================
   INTRO HERO
   ========================================================================== */

.hiw-hero {
  padding: 64px 0 40px;
}

.hiw-hero__grid {
  display: grid;
  grid-template-columns: 48% 52%;
  gap: 40px;
  align-items: start;
}

.hiw-hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 5.4vw, 4.3rem);
  line-height: 1.05;
  color: var(--color-text);
  margin: 0 0 16px;
}

.hiw-hero__subhead {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 1.9vw, 1.5rem);
  line-height: 1.4;
  color: var(--color-gold);
  margin: 0;
}

.hiw-hero__body {
  padding-top: 6px;
}

.hiw-hero__body p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text);
  margin: 0;
}

.hiw-hero__divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 46px;
}

.hiw-hero__divider::before,
.hiw-hero__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-gold-light);
}

.hiw-hero__divider svg { width: 22px; height: 22px; color: var(--color-gold); flex-shrink: 0; }

/* ==========================================================================
   PROCESS STEPS
   ========================================================================== */

.hiw-steps { padding: 20px 0 10px; }

.hiw-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid rgba(169, 130, 47, 0.28);
}

.hiw-step:last-child { border-bottom: none; }

.hiw-step--reverse .hiw-step__image { order: 2; }
.hiw-step--reverse .hiw-step__text { order: 1; }

.hiw-step__image img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(43, 28, 20, 0.08);
}

.hiw-step__numeral {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3.4rem, 6vw, 5rem);
  line-height: 1;
  color: var(--color-gold);
  margin: 0 0 8px;
}

.hiw-step__heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-text);
  margin: 0 0 14px;
  position: relative;
  padding-bottom: 16px;
}

.hiw-step__heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 2px;
  background: var(--color-gold);
}

.hiw-step__copy {
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--color-text);
  margin: 0;
}

/* ==========================================================================
   CTA BAND
   ========================================================================== */

.hiw-cta {
  margin: 56px 0 0;
  background: var(--color-cream-alt);
  border: 1px solid rgba(169, 130, 47, 0.3);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.hiw-cta__leaf { color: var(--color-gold); width: 46px; height: 46px; flex-shrink: 0; }

.hiw-cta__text { flex: 1; min-width: 240px; }

.hiw-cta__heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  color: var(--color-text);
  margin: 0 0 6px;
}

.hiw-cta__subhead {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-muted);
  margin: 0;
}

.hiw-cta .btn--outline-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-label);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  background: transparent;
  border: 1px solid var(--color-gold);
  padding: 16px 32px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.hiw-cta .btn--outline-gold:hover { background: var(--color-gold); color: var(--color-ivory); }

/* ==========================================================================
   FOOTER (light chrome — same pattern as about.html)
   ========================================================================== */

.story-footer {
  background: var(--color-brown-darker);
  color: var(--color-ivory);
  padding: 60px 0 0;
  margin-top: 64px;
}

.story-footer__top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  padding-bottom: 40px;
}

.story-footer__brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--color-gold-light);
  letter-spacing: 0.03em;
  margin: 0 0 8px;
}

.story-footer__brand-line {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(247, 242, 231, 0.78);
  margin: 0;
  max-width: 30ch;
}

.story-footer__monogram { display: flex; justify-content: center; }
.story-footer__monogram img { width: 90px; height: 90px; object-fit: contain; }

.story-footer__connect { text-align: right; }

.story-footer__connect-label {
  display: block;
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 242, 231, 0.65);
  margin-bottom: 14px;
}

.story-footer__connect-icons { display: flex; gap: 12px; justify-content: flex-end; }

.story-footer__connect-icons a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--color-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold-light);
  transition: background 0.2s ease, color 0.2s ease;
}

.story-footer__connect-icons a:hover { background: var(--color-gold); color: var(--color-brown-darker); }
.story-footer__connect-icons svg { width: 16px; height: 16px; }

.story-footer__divider { border: none; border-top: 1px solid rgba(247, 242, 231, 0.15); margin: 0; }

.story-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 0;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(247, 242, 231, 0.6);
}

.story-footer__legal-links { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.story-footer__legal-links a:hover { color: var(--color-gold-light); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Nav collapses to the mobile menu earlier than other breakpoints because
   the 7-item nav (after adding "What Can Be Created?") needs more horizontal
   room than the site's standard 1080px tablet breakpoint provides. Verified
   empirically against the widest label in the set. Isolated in its own query
   so it doesn't shift any other 1080px layout rules earlier than intended. */
@media (max-width: 1900px) {
  .story-page-header__nav { display: none; }
  .story-page-header__menu-toggle { display: flex; }
}

@media (max-width: 1080px) {
  .hiw-hero__grid { grid-template-columns: 1fr; gap: 24px; }

  .story-footer__top { grid-template-columns: 1fr; text-align: center; gap: 26px; }
  .story-footer__connect { text-align: center; }
  .story-footer__connect-icons { justify-content: center; }
}

@media (max-width: 860px) {
  .hiw-page .container { padding: 0 24px; }
  .story-page-header .header-inner { padding: 20px 24px; }

  .hiw-step {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 40px 0;
  }

  .hiw-step__image { order: 2; margin-top: 8px; }
  .hiw-step__text { order: 1; }
  .hiw-step--reverse .hiw-step__image { order: 2; }
  .hiw-step--reverse .hiw-step__text { order: 1; }
}

@media (max-width: 640px) {
  .hiw-page .container { padding: 0 20px; }
  .story-page-header .header-inner { padding: 18px 20px; }
  .story-page-header .wordmark { font-size: 1.25rem; }

  @media (max-width: 380px) {
    .story-page-header .wordmark { font-size: 1.05rem; }
    .story-page-header .wordmark-flourish { display: none; }
    .story-page-header .header-inner { padding: 16px 14px; gap: 12px; }
  }
  .story-page-header .wordmark-flourish { width: 110px; }

  .hiw-hero { padding: 44px 0 28px; }

  .hiw-cta { flex-direction: column; align-items: stretch; text-align: center; padding: 32px 24px; }
  .hiw-cta__leaf { margin: 0 auto; }
  .hiw-cta .btn--outline-gold { justify-content: center; }

  .story-footer__bottom { flex-direction: column; text-align: center; }
}
