/* Honey House — base styles */

/* Display face for the section titles — a retro brush script in the spirit of
   the Surf Club matchbook. Self-hosted, latin subset only (22KB). */
@font-face {
  font-family: 'Surt';
  src: url('assets/fonts/surt-regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Surt';
  src: url('assets/fonts/surt-medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Surt';
  src: url('assets/fonts/surt-semibold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}


:root {
  /* Monochrome: black on warm paper white. */
  --bg: #FFFCF8;
  --ink: #000000;
  --rule: rgba(0, 0, 0, 0.24);
  --muted: #595959;
  --btn: #021EC4;
  --measure: 36rem;
  --pad: 1.5rem;
  --header-h: 3.5rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Surt', "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* --- hero --------------------------------------------------------------- */

/* Hero: one oversized line, centred, holding the first screen on its own. */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  min-height: calc(100svh - var(--header-h));
  padding: 3.5rem 0 3rem;
  text-align: center;
  overflow-x: clip;
}

.hero-line {
  margin: 0;
  padding: 0 var(--pad);
  /* Sized for a sentence rather than a short title. */
  max-width: 26ch;
  font-size: clamp(1.75rem, 4.2vw, 3.5rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

@media (min-width: 60rem) {
  .hero {
    padding: 2rem 0 4rem;
  }
}

/* Drops in on first load — desktop only, never for reduced motion. */
@media (min-width: 60rem) and (prefers-reduced-motion: no-preference) {
  .hero-line {
    animation: hero-drop 1s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}

@keyframes hero-drop {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* --- header ------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0 var(--pad);
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

/* Stand-in for the monogram until the artwork arrives. */
.logo-mark {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.5rem;
  letter-spacing: -0.06em;
}

.logo img {
  display: block;
  height: 1.75rem;
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-cta {
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--btn);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 0.8rem;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.header-cta:hover { filter: brightness(0.88); }

/* Hamburger: three bars drawn from one element, becoming a cross when open. */
.menu-toggle {
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  background: transparent;
  border: 1px solid var(--rule);
  color: inherit;
  cursor: pointer;
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
  position: absolute;
  left: 50%;
  width: 1.05rem;
  height: 1px;
  margin-left: -0.525rem;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.15s ease;
}

.menu-bars { top: 50%; }
.menu-bars::before { content: ""; margin-left: 0; left: 0; top: -0.35rem; }
.menu-bars::after  { content: ""; margin-left: 0; left: 0; top: 0.35rem; }

.menu-toggle.is-open .menu-bars { background: transparent; }
.menu-toggle.is-open .menu-bars::before { transform: translateY(0.35rem) rotate(45deg); }
.menu-toggle.is-open .menu-bars::after  { transform: translateY(-0.35rem) rotate(-45deg); }

/* Panel drops from under the bar, right-aligned to the hamburger. */
.site-menu {
  position: absolute;
  top: 100%;
  right: var(--pad);
  display: flex;
  flex-direction: column;
  min-width: 13rem;
  padding: 0.5rem 0;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-top: none;
}

/* display:flex would otherwise beat the browser's [hidden] rule. */
.site-menu[hidden] { display: none; }

.site-menu a {
  padding: 0.7rem 1.1rem;
  text-decoration: none;
  font-size: 0.95rem;
}

.site-menu a:hover,
.site-menu a.is-current {
  background: var(--ink);
  color: var(--bg);
}

/* --- panels ------------------------------------------------------------ */

/* Column flex + centred content: the section fills the screen when the copy is
   short, and grows past it when the copy is long, without the scroll cue ever
   landing on top of the text. */
.panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100svh - var(--header-h));
  padding: 3.5rem var(--pad) 3rem;
  /* clip, not hidden: keeps the scroll-shifted figure and copy from widening
     the page without turning each panel into its own scroll container. */
  overflow-x: clip;
}

.panel-inner { width: 100%; }

/* Scroll-linked motion is driven from JS; this only hints the compositor, and
   only where the effect actually runs. */
@media (min-width: 60rem) {
  .panel-figure,
  .panel-copy {
    will-change: transform, opacity;
  }
}

/* Below the two-column breakpoint the page is locked — the scroll moves too
   fast for the effect to read. Belt and braces against any stale inline value. */
@media (max-width: 59.999rem) {
  .panel-figure,
  .panel-copy {
    transform: none !important;
    opacity: 1 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .panel-figure,
  .panel-copy {
    will-change: auto;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Mobile reads in source order: heading + lede, then the illustration at full
   column width, then the rest of the copy. */
.panel-head { margin: 0 0 2rem; }

.panel-figure {
  margin: 0 0 2rem;
  mix-blend-mode: multiply;
}

.panel-figure img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

/* Wide enough for two columns: illustration on the left, the whole text
   column on the right, with the figure spanning both text rows. */
@media (min-width: 60rem) {
  .panel-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    grid-template-areas:
      "fig head"
      "fig body";
    gap: 0 4rem;
    align-content: center;
  }

  .panel-head   { grid-area: head; align-self: end; margin: 0 0 1.75rem; }
  .panel-figure { grid-area: fig; margin: 0; align-self: center; }
  .panel-body   { grid-area: body; align-self: start; }

  .panel-figure img {
    max-height: calc(100svh - 14rem);
    object-fit: contain;
  }
}

.panel-title {
  margin: 0 0 1.5rem;
  font-family: 'Surt', "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -0.02em;
  max-width: 18ch;
}


.panel-body {
  max-width: var(--measure);
}

/* Body copy sits a step below the lede so the opening line carries the section. */
.panel-body p {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.panel-body p:last-child { margin-bottom: 0; }

/* Also selected inside .panel-body, which would otherwise win on specificity
   and drop the opening line to body size. */
.lede,
.panel-body .lede {
  max-width: var(--measure);
  margin: 0;
  font-size: 1.375rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.35;
}


/* Numbered steps: hairline rows with the number in its own gutter, so the
   text block stays flush left regardless of the number's width. */
.steps {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: 0 0.75rem;
  padding: 0.875rem 0;
  border-top: 1px solid var(--rule);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.steps li:last-child { border-bottom: 1px solid var(--rule); }

.step-num {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}


/* --- offer -------------------------------------------------------------- */

/* The contact section needs more room than the reading measure allows. */
.panel-body-wide { max-width: 46rem; }

.options {
  display: grid;
  gap: 0;
  margin-top: 2rem;
  border-top: 1px solid var(--rule);
}

.option {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
}

.option-label {
  margin: 0 0 0.25rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.option-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}

.contact {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.375rem 0.75rem;
  margin: 0;
  font-size: 1.0625rem;
}

.contact dt { color: var(--muted); }
.contact dd { margin: 0; }

.contact a {
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
}

.contact a:hover { background: var(--ink); color: var(--bg); border-bottom-color: var(--ink); }

.form-box {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  max-width: 24rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--btn);
  color: #FFFFFF;
  font: inherit;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.form-box:hover { filter: brightness(0.88); }



/* --- wider screens ------------------------------------------------------ */

@media (min-width: 48rem) {
  :root { --pad: 3rem; --header-h: 4rem; }
  body { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}


/* --- full-bleed section (about us) -------------------------------------- */

/* The photograph sits as a plate: inset from the page edges with generous air
   above and below, rather than running edge to edge. */
.panel-bleed {
  display: block;
  padding: 4.5rem var(--pad) 4rem;
}

.bleed-figure {
  /* column-reverse: the title is after the image in the DOM so the image stays
     the figure's primary content, but it reads above it. */
  display: flex;
  flex-direction: column-reverse;
  max-width: 60rem;
  margin: 0 auto;
}

.bleed-figure img {
  display: block;
  width: 100%;
  height: auto;
  /* The photograph stays in colour, so no multiply blend here. */
  mix-blend-mode: normal;
}

.bleed-title {
  margin: 0;
  /* overrides the 18ch cap on .panel-title-sans so it centres on the page */
  max-width: none;
  padding: 0 var(--pad);
  text-align: left;
}

.panel-bleed .panel-inner {
  display: block;
  /* matches the photograph's width so their left edges line up; the written
     line breaks keep the text itself well short of this */
  max-width: 60rem;
  margin: 0 auto;
  padding: 3rem 0 0;
}

.panel-bleed .panel-body { max-width: none; }

@media (min-width: 48rem) {
  .bleed-title { padding-bottom: 1.5rem; }
  .panel-bleed .panel-inner { padding-top: 4rem; }
}

@media (max-width: 47.999rem) {
  .bleed-title {
    padding-top: 0;
    padding-bottom: 1.25rem;
    /* matches the centred letter beneath it */
    text-align: center;
  }
}


/* --- letter-style copy --------------------------------------------------- */

/* Now flowing prose rather than one line per break, so the text is held to a
   readable measure while its left edge still lines up with the photograph. */
.panel-body .letter {
  line-height: 1.75;
  max-width: 42rem;
}

/* Matches the opening line's treatment so the two read as the same voice. */
/* In the letter block the opener needs the breathing room the heading block
   used to provide. */
.panel-body .lede { margin-bottom: 1.25rem; }


.panel-body .sub {
  margin: 2.25rem 0 1rem;
  font-family: 'Surt', "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.375rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
}

/* Inline links in the process copy, matching the contact links. */
.steps a {
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
}

.steps a:hover { background: var(--ink); color: var(--bg); }


/* --- rotating photo strip ------------------------------------------------ */

/* The hero carries no side padding (the headline pads itself), so the strip is
   simply full width — no vw tricks that fight the scrollbar. */
.strip {
  width: 100%;
  overflow: hidden;
}

/* Two identical runs sit side by side; shifting exactly half the track swaps
   the second run into the first one's place, so the loop never shows a seam. */
.strip-track {
  display: flex;
  width: max-content;
  animation: strip-scroll 80s linear infinite;
}

.strip-track img {
  display: block;
  /* margin, not gap: gap would not divide evenly into the 50% shift */
  margin-right: 0.75rem;
  height: 15rem;
  width: auto;
  object-fit: cover;
}

@keyframes strip-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.strip:hover .strip-track { animation-play-state: paused; }

@media (max-width: 47.999rem) {
  .strip-track img { height: 14rem; margin-right: 0.5rem; }
  .strip-track { animation-duration: 24.3s; }  /* another 1.5x */

  /* Even air above the line, between line and strip, and below the strip.
     The hero's own vertical padding is dropped so all three gaps are equal. */
  .hero {
    justify-content: space-evenly;
    gap: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .strip { overflow-x: auto; }
  .strip-track { animation: none; }
}

/* The letter reads as a centred block on phones. */
@media (max-width: 47.999rem) {
  .bleed-copy { text-align: center; }
  .bleed-copy .lede { margin-left: auto; margin-right: auto; }

  /* Buttons centre on phones (the about one already inherits this). */
  .panel-body .cta-row { text-align: center; }
}

/* Solid call to action closing the process section. */
.panel-body .cta-row { margin-top: 2rem; }

.btn {
  display: inline-block;
  font-family: inherit;
  cursor: pointer;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--btn);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn:hover { filter: brightness(0.88); }


/* --- closing quote ------------------------------------------------------- */

/* The hero's treatment at a size that suits a longer passage. */
.quote-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6rem var(--pad) 4.5rem;
  text-align: center;
}

.quote-line {
  margin: 0;
  max-width: 30ch;
  font-size: clamp(1.25rem, 2.6vw, 2.125rem);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.quote-cite {
  margin: 2rem 0 0;
  font-size: 1.0625rem;
  color: var(--muted);
}


/* Buttons carry the painted blue texture; the flat colour underneath is the
   fallback if the image is slow or blocked. */
.header-cta,
.form-box,
.btn {
  background-color: var(--btn);
  background-image: url('assets/img/button-texture.jpg');
  background-size: cover;
  background-position: center;
  transition: filter 0.15s ease;
}


/* Footer: two line icons and a hairline, so the page ends deliberately
   rather than just running out. */
.site-footer {
  padding: 0 var(--pad) 4rem;
}

.footer-inner {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  max-width: 60rem;
  margin: 0 auto;
  padding-top: 3rem;
  border-top: 1px solid var(--rule);
}

.social-link {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  color: var(--ink);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.social-link svg {
  width: 1.5rem;
  height: 1.5rem;
}

.social-link:hover {
  color: var(--btn);
  background-color: rgba(2, 30, 196, 0.07);
}

.social-link:focus-visible {
  outline: 2px solid var(--btn);
  outline-offset: 2px;
}
