/* SurfPup.Store — shared stylesheet. Self-hosted, zero third-party requests. */

:root {
  --font-sans: "Avenir Next", "Avenir", Futura, ui-sans-serif, Helvetica, Arial, sans-serif;
  --bone: #FAF7F2;
  --bone-dim: #F1ECE3;
  --ink: #1A1A18;
  --ink-soft: #4A4A45;
  --navy: #14304A;
  --navy-dark: #0D2135;
  --sand: #C8A97E;
  --white: #ffffff;
  --line: #E2DACB;
  --line-dark: rgba(255, 255, 255, 0.18);
  --radius: 3px;
  --radius-lg: 6px;
  --max-w: 1200px;
  --gap-section: 112px;
  --gap-section-sm: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  background: var(--bone);
  border-bottom: 1px solid var(--line);
}
.site-header .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.site-header .logo img { height: 34px; width: auto; mix-blend-mode: multiply; }
.site-header .wordmark { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; color: var(--ink); }
.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.main-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.main-nav a:not([aria-disabled]):hover { border-color: var(--navy); }
.main-nav a[aria-disabled] {
  color: #9C978C;
  cursor: default;
  pointer-events: none;
}
.cart-link { display: flex; align-items: center; color: var(--ink); }
.cart-link svg { width: 21px; height: 21px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 30px;
  border-radius: var(--radius);
  border: 1px solid var(--navy);
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  background: var(--navy);
  color: var(--white);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--navy-dark); border-color: var(--navy-dark); }
.btn:disabled {
  background: #C9C4B8;
  border-color: #C9C4B8;
  color: #fff;
  cursor: not-allowed;
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-block { width: 100%; }
.btn-lg { min-height: 54px; font-size: 13.5px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
  border-bottom: 1px solid var(--navy);
  padding-bottom: 2px;
}
.text-link:hover { color: var(--sand); border-color: var(--sand); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy-dark); }
.hero-media {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 50% 50%;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 33, 53, 0.05) 0%, rgba(13, 33, 53, 0.05) 45%, rgba(13, 33, 53, 0.72) 100%);
}
.hero-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 24px 44px;
  text-align: center;
}
.hero-caption .eyebrow { color: var(--sand); margin-bottom: 12px; }
.hero-caption h1 {
  margin: 0 0 22px;
  color: var(--white);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  font-size: clamp(1.7rem, 4vw, 2.9rem);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.hero-caption .btn { background: var(--white); color: var(--navy-dark); border-color: var(--white); }
.hero-caption .btn:hover { background: var(--bone); }

/* ---------- Statement bar ---------- */
.statement-bar {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 24px;
  text-align: center;
}
.statement-bar p {
  margin: 0 auto;
  max-width: 860px;
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Section rhythm ---------- */
.section { padding: var(--gap-section) 24px; }
.section-head { text-align: center; margin: 0 0 48px; }
.section-head .eyebrow { margin-bottom: 10px; }
.section-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ---------- Product grid (home) ---------- */
.shop-section { padding: var(--gap-section) 24px; }
.product-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.product-card { text-align: left; }
.product-card .card-img {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 18px;
  background: var(--bone-dim);
}
.product-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .card-img img { transform: scale(1.035); }
.product-card h3 { margin: 0 0 4px; font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
.product-card .price { margin: 0 0 14px; font-size: 14px; color: var(--ink-soft); }

/* ---------- Craft strip ---------- */
.craft-section { padding: var(--gap-section) 24px; background: var(--bone-dim); }
.craft-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.craft-inner img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4/5; max-height: 540px; object-fit: cover; object-position: 50% 72%; }
.craft-list { display: grid; gap: 34px; }
.craft-list .eyebrow { margin-bottom: 8px; }
.craft-list h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 700; }
.craft-list p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.6; }

/* ---------- History section (dark editorial band) ---------- */
.history-section { padding: var(--gap-section) 24px; background: var(--navy-dark); }
.history-inner {
  max-width: 780px;
  margin: 0 auto;
}
.history-copy blockquote {
  margin: 0;
  padding-left: 28px;
  border-left: 2px solid var(--sand);
}
.history-copy blockquote p {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.5;
  font-weight: 500;
  color: var(--bone);
}
.history-copy cite {
  display: block;
  margin-top: 20px;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: var(--white); margin-top: 0; }
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 72px 24px 32px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 48px;
}
.footer-brand img.footer-logo { height: 34px; margin: 0 0 16px; filter: brightness(0) invert(1); }
.footer-brand p { margin: 0; font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.68); max-width: 320px; }
.footer-col h4 {
  margin: 0 0 16px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
}
.footer-col p, .footer-col a {
  display: block;
  font-size: 13px;
  line-height: 1.9;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
}
.newsletter-form { display: flex; gap: 8px; margin-top: 4px; }
.newsletter-form input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line-dark);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-family: inherit;
  font-size: 13px;
}
.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form .btn {
  min-height: 42px;
  padding: 0 18px;
  background: var(--white);
  color: var(--navy-dark);
  border-color: var(--white);
  flex-shrink: 0;
}
.newsletter-form .btn:hover { background: var(--sand); border-color: var(--sand); }
.footer-fine {
  border-top: 1px solid var(--line-dark);
  padding: 20px 24px;
  text-align: center;
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.5);
}

/* ---------- Product page: title ---------- */
.product-titlebar { max-width: var(--max-w); margin: 0 auto; padding: 40px 24px 8px; text-align: center; }
.product-titlebar .eyebrow { margin-bottom: 10px; }
.product-titlebar h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ---------- Main product layout ---------- */
.product-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 36px 24px var(--gap-section-sm);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: start;
}
.product-image-col .main-image-frame {
  aspect-ratio: 1 / 1;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.product-image-col .main-image-frame img { width: 100%; height: 100%; object-fit: contain; }
.product-tagline { margin: 16px 0 0; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.6; max-width: 46ch; }

.product-options-col { position: sticky; top: 90px; }

.field-label {
  display: block;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin: 22px 0 10px;
}
.field-label:first-child { margin-top: 0; }
select#size-select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
}

.color-row { display: flex; flex-wrap: wrap; gap: 12px; }
.color-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 0;
  position: relative;
  box-shadow: inset 0 0 0 2px var(--white);
}
.color-swatch[data-color="Wedding White"] { border-color: #D7D0C2; }
.color-swatch.is-selected {
  border-color: var(--navy);
  box-shadow: inset 0 0 0 2px var(--white), 0 0 0 2px var(--navy);
}
.color-name {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.price-line { margin: 22px 0 4px; font-size: 1.4rem; font-weight: 700; color: var(--ink); }
.stock-note { margin: 0 0 18px; font-size: 12.5px; color: var(--ink-soft); }

.cta-stack { display: grid; gap: 10px; margin-top: 4px; }
.express-element { margin-top: 10px; }
.express-element[hidden] { display: none; }
.express-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.express-pay[hidden] { display: none; }
.pay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.pay-btn:hover { opacity: 0.85; }
.pay-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.pay-btn svg { height: 19px; width: auto; }
.pay-apple { background: #000; color: #fff; }
.pay-google { background: #fff; color: #3c4043; border-color: #dadce0; }
.express-note { margin: 10px 0 0; font-size: 12px; color: var(--ink-soft); }

.fit-note-link { display: inline-block; margin-top: 14px; }
.delivery-note { margin: 18px 0 0; font-size: 12.5px; color: var(--ink-soft); line-height: 1.6; }

/* ---------- Craft / measure / safety copy ---------- */
.detail-section { max-width: var(--max-w); margin: 0 auto; padding: var(--gap-section-sm) 24px; border-top: 1px solid var(--line); }
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.detail-grid h2 { font-size: 1rem; font-weight: 700; margin: 26px 0 8px; letter-spacing: -0.005em; }
.detail-grid h2:first-child { margin-top: 0; }
.detail-grid p { line-height: 1.65; color: var(--ink-soft); font-size: 0.95rem; margin: 0; }
.safety-note {
  margin-top: 24px;
  background: var(--bone-dim);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.safety-note strong {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
  margin-bottom: 6px;
  color: var(--ink);
}
.safety-note p { color: var(--ink-soft); font-size: 0.88rem; }
.measure-media { display: grid; gap: 16px; }
.measure-media img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ---------- History blurb (product page, slim editorial note) ---------- */
.history-blurb {
  max-width: 760px;
  margin: 0 auto var(--gap-section-sm);
  padding: 32px 28px;
  display: flex;
  gap: 24px;
  align-items: center;
  background: var(--bone-dim);
  border-radius: var(--radius-lg);
}
.history-blurb img { width: 84px; height: 84px; object-fit: cover; border-radius: 50%; flex-shrink: 0; border: 3px solid var(--white); }
.history-blurb h2 {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
}
.history-blurb p { margin: 0; font-size: 0.92rem; line-height: 1.65; color: var(--ink-soft); }

/* ---------- About page ---------- */
.about-hero { position: relative; overflow: hidden; background: var(--navy-dark); }
.about-hero img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: 50% 42%;
}
.about-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 33, 53, 0) 40%, rgba(13, 33, 53, 0.7) 100%);
}
.about-hero-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 24px 44px;
  text-align: center;
}
.about-hero-caption .eyebrow { color: var(--sand); margin-bottom: 10px; }
.about-hero-caption h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.about-lede-section {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--gap-section) 24px calc(var(--gap-section-sm) / 2);
  text-align: center;
}
.about-lede { margin: 0; font-size: 1.18rem; line-height: 1.75; color: var(--ink-soft); }

.about-row { padding: var(--gap-section-sm) 24px; }
.about-row:last-of-type { padding-bottom: var(--gap-section); }
.about-row-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-row-inner img {
  width: 100%;
  aspect-ratio: 3/4;
  max-height: 580px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.about-row-flip .about-row-inner { grid-template-columns: 1fr 0.85fr; }
.about-row-flip .about-row-inner img { order: 2; }
.about-copy h2 { margin: 10px 0 18px; font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 700; letter-spacing: -0.01em; }
.about-copy p { margin: 0 0 16px; line-height: 1.75; color: var(--ink-soft); }
.about-copy .btn { margin-top: 10px; }
.about-hours {
  margin: 26px 0 24px;
  padding: 20px 22px;
  background: var(--bone-dim);
  border-left: 2px solid var(--sand);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.about-hours .eyebrow { margin-bottom: 8px; }
.about-hours-days { margin: 0 0 6px; font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.about-hours-addr { margin: 0; font-size: 0.92rem; line-height: 1.6; color: var(--ink-soft); }

/* ---------- Gallery ---------- */
.gallery-section { padding: 8px 0 var(--gap-section); }
.gallery-section .section-head { padding: 0 24px; }
.gallery-slider {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 24px 12px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.gallery-slider img {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 240px;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .about-row-inner,
  .about-row-flip .about-row-inner { grid-template-columns: 1fr; gap: 32px; }
  .about-row-flip .about-row-inner img { order: 0; }
  .about-row-inner img { aspect-ratio: 4/3; max-height: 420px; }
  .about-hero img { aspect-ratio: 16/9; }
  .history-inner { grid-template-columns: 1fr; gap: 32px; }
  .craft-inner { grid-template-columns: 1fr; gap: 32px; }
  .craft-inner img { aspect-ratio: 16/9; }
  .product-main { grid-template-columns: 1fr; }
  .product-options-col { position: static; }
  .detail-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  :root { --gap-section: 80px; --gap-section-sm: 48px; }
}
@media (max-width: 640px) {
  .site-header { flex-wrap: wrap; padding: 12px 16px; row-gap: 10px; }
  .main-nav { width: 100%; justify-content: space-between; gap: 16px; order: 3; }
  .main-nav ul { flex-wrap: wrap; gap: 14px 18px; }
  .hero-media { aspect-ratio: 4 / 5; object-position: 50% 50%; }
  .product-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; padding: 56px 24px 24px; gap: 32px; }
  .history-blurb { flex-direction: column; align-items: center; text-align: center; }
  :root { --gap-section: 64px; --gap-section-sm: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .product-card .card-img img { transition: none; }
}
