/* SOUTHSIDE HB — beach & surf accessories */

:root {
  --paper: #fdf8ee;
  --paper-2: #f3eee4;
  --ink: #1c1b18;
  --ink-soft: #3f3d38;
  --sage: #7d8c76;
  --sage-deep: #5d6b56;
  --ocean: #1a4e90;
  --ocean-deep: #12386c;
  --sun: #efc21a;
  --foam: #f8f5ee;
  --steel: #c5c8cb;
  --header-h: 4.75rem;
  --font-display: "Oswald", "Arial Narrow", "Franklin Gothic Medium", sans-serif;
  --font-body: "Outfit", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --rule: rgba(28, 27, 24, 0.16);
  --shadow: 0 18px 40px rgba(28, 27, 24, 0.08);
  --max: 72rem;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
}

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 400;
  min-height: 100vh;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* Brand lockup: SOUTHSIDE + stacked H / line / B */

.brand-lockup {
  --lockup-size: 2.5rem;
  display: inline-flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.16em;
  color: var(--ink);
  font-size: var(--lockup-size);
  line-height: 1;
  text-decoration: none;
}

.brand-southside {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1em;
  letter-spacing: -0.02em;
  line-height: 0.82;
  text-transform: uppercase;
  display: flex;
  align-items: center;
}

.brand-hb {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.33em;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 0.05em 0 0;
  text-transform: uppercase;
}

.brand-h,
.brand-b {
  display: block;
}

.brand-line {
  display: block;
  width: 1.1em;
  height: 0.13em;
  background: currentColor;
  flex-shrink: 0;
  margin: 0.22em 0;
}

.brand-lockup.is-on-dark {
  color: var(--foam);
}

.brand-lockup.is-compact {
  --lockup-size: 1.35rem;
  vertical-align: -0.12em;
}

p .brand-lockup,
.lede .brand-lockup {
  --lockup-size: 1.05em;
  vertical-align: -0.18em;
}

.brand-lockup.is-footer {
  --lockup-size: 2.1rem;
}

.brand-lockup.is-masthead {
  --lockup-size: clamp(2.8rem, 8vw, 5.5rem);
}

.place-line {
  margin: 0.55rem 0 0;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--sage-deep);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.55rem 1.25rem;
  background: rgba(253, 248, 238, 0.96);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(10px);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-width: 0;
  overflow: hidden;
}

.header-logo {
  height: 8.25rem;
  width: auto;
  max-width: none;
  margin: -2.15rem 0 -2.15rem -1.15rem;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--rule);
  background: transparent;
  cursor: pointer;
  padding: 0;
  color: var(--ink);
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.15rem;
  height: 1.5px;
  background: currentColor;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -1px 0 var(--sage);
}

/* Hero */

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  text-align: left;
  padding: 3.5rem 1.5rem 3.25rem;
  overflow: hidden;
  color: var(--foam);
  background: #1a2428;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(18, 24, 28, 0.78) 0%,
    rgba(18, 24, 28, 0.28) 48%,
    rgba(18, 24, 28, 0.18) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.hero-content .brand-lockup {
  margin-bottom: 1rem;
}

.hero .hero-kicker {
  color: var(--foam);
}

.hero .hero-location {
  color: #c5d0b8;
}

.hero .hero-wave {
  color: #c5d0b8;
  margin-left: 0;
}

.hero .hero-actions {
  justify-content: flex-start;
}

.hero-kicker {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--ink);
}

.hero-location {
  margin: 0.45rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sage-deep);
}

.hero-wave {
  width: min(14rem, 50vw);
  height: 1.1rem;
  margin: 1.35rem auto 0;
  color: var(--sage);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.75rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.25rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.btn:hover {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-sun {
  background: var(--sun);
  border-color: var(--sun);
  color: var(--ocean-deep);
}

.btn-sun:hover {
  background: var(--foam);
  border-color: var(--foam);
}

.btn-foam {
  background: transparent;
  border-color: var(--foam);
  color: var(--foam);
}

.btn-foam:hover {
  background: var(--foam);
  color: var(--ocean-deep);
}

/* Layout blocks */

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
}

.section {
  padding: 4.5rem 0;
}

.section-label {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  margin: 0 0 1.25rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sage-deep);
}

.section-label .num {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  color: var(--ink);
}

.lede {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.35;
  font-weight: 400;
  max-width: 38rem;
}

.statement {
  background: var(--paper);
  border-top: 1px solid var(--rule);
}

.statement-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: end;
}

.statement h2 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
}

/* Lineup switcher */

.lineup {
  border-top: 1px solid var(--rule);
  background: var(--paper-2);
  padding: 1.25rem 0;
}

.lineup-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.lineup-row span {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-right: 0.5rem;
}

.lineup-row button {
  appearance: none;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  padding: 0.65rem 1rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.lineup-row button.is-active,
.lineup-row button:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* Featured lip balm */

[data-product-panel] {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.featured {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--ocean-deep);
  color: var(--foam);
  min-height: 36rem;
}

.featured.is-highlighted {
  box-shadow: inset 0 0 0 3px var(--sun);
}

.featured-copy {
  padding: clamp(2rem, 5vw, 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.15rem;
}

.featured-copy h2 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  color: var(--foam);
}

.featured-copy .product-kind {
  color: var(--sun);
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0;
}

.featured-copy p {
  max-width: 34rem;
  color: rgba(248, 245, 238, 0.88);
}

.specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.5rem 0 0.75rem;
  padding: 0;
  list-style: none;
}

.specs li {
  border-top: 1px solid rgba(248, 245, 238, 0.22);
  padding-top: 0.65rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.specs strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.featured-art {
  background: #0c2d59;
  min-height: 22rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.featured-art img {
  width: 100%;
  height: 100%;
  min-height: 28rem;
  max-height: 46rem;
  object-fit: cover;
  object-position: top center;
}

.featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.5rem;
}

/* Metal comb */

.comb-section {
  background: var(--paper);
  border-top: 1px solid var(--rule);
}

.comb-section.is-highlighted {
  box-shadow: inset 0 0 0 3px var(--sage);
}

.comb-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: 2.5rem;
  align-items: center;
}

.comb-art {
  background: var(--foam);
  border: 1px solid var(--rule);
  padding: 0;
  overflow: hidden;
}

.comb-art img {
  width: 100%;
  margin: 0 auto;
}

.comb-copy h2 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  margin-bottom: 0.85rem;
}

.jar-section {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
}

.jar-section.is-highlighted {
  box-shadow: inset 0 0 0 3px var(--sage);
}

.comb-copy .product-kind {
  color: var(--sage-deep);
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0 0 0.75rem;
}

.comb-copy p {
  color: var(--ink-soft);
  max-width: 32rem;
}

/* Closer */

.closer {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: 5rem 1.25rem;
}

.closer h2 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 1rem;
}

.closer p {
  max-width: 34rem;
  margin: 0 auto 1.75rem;
  color: rgba(245, 240, 228, 0.78);
}

.closer .brand-lockup {
  color: var(--paper);
  margin-bottom: 1.25rem;
}

/* Product index */

.shop-hero {
  padding: 3.5rem 0 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.shop-hero h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
}

.shop-list {
  display: grid;
  gap: 0;
}

.shop-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  align-items: start;
}

.shop-card:hover h2 {
  color: var(--sage-deep);
}

.shop-card img {
  width: 100%;
  height: 22rem;
  object-fit: cover;
  object-position: center center;
  background: var(--foam);
  border: 1px solid var(--rule);
}

.shop-card.alt {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}

.shop-card.alt .shop-card-copy {
  order: -1;
}

.shop-card h2 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  margin: 0.35rem 0 0.7rem;
}

/* Product detail */

.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2.5rem;
  align-items: start;
  padding: 3rem 0 4rem;
}

.pdp-art {
  background: var(--foam);
  border: 1px solid var(--rule);
  padding: 1.25rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.pdp-art img {
  max-height: 70vh;
  width: 100%;
  object-fit: contain;
  margin: 0 auto;
}

.pdp-extra {
  margin: 1.5rem 0 1.75rem;
  width: 100%;
  display: block;
}

.pdp-art.ocean {
  background: var(--ocean-deep);
  border-color: var(--ocean);
}

.pdp h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  margin: 0.3rem 0 1rem;
}

.pdp-kind {
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--sage-deep);
  font-weight: 500;
}

.fact-list {
  list-style: none;
  margin: 1.25rem 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.fact-list li {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.95rem;
}

.fact-list strong {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--sage-deep);
}

.also {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0 4rem;
}

.also a {
  text-decoration: none;
  display: inline-block;
}

.also a:hover h2 {
  color: var(--sage-deep);
}

.also h2 {
  font-size: 2rem;
  margin-top: 0.35rem;
}

/* About */

.about-photo {
  width: 100%;
  max-height: 28rem;
  object-fit: cover;
  object-position: center 70%;
  display: block;
}

.about-mast {
  padding: 3.5rem 0 2rem;
}

.about-body {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 3rem;
  padding-bottom: 4rem;
}

.about-body .lede {
  max-width: none;
}

.about-col p {
  color: var(--ink-soft);
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 3rem;
  padding: 3rem 0 4.5rem;
}

.contact-grid h1 {
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  margin-bottom: 1rem;
}

label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
}

input,
textarea {
  width: 100%;
  font: inherit;
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--rule);
  background: var(--foam);
  color: var(--ink);
  margin-bottom: 1rem;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

.form-status {
  margin: 0.75rem 0 0;
  padding: 0.85rem 1rem;
  background: var(--paper-2);
  border-left: 3px solid var(--sage);
}

.contact-meta {
  font-size: 1rem;
  color: var(--ink-soft);
}

.contact-meta a {
  color: var(--ink);
}

/* Footer */

.site-footer {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  padding: 2.75rem 1.25rem 2.2rem;
}

.footer-inner {
  width: min(var(--max), calc(100% - 0rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: end;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  justify-content: flex-end;
}

.footer-nav a {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
}

.footer-nav a:hover {
  color: var(--ink);
}

.footer-copy {
  grid-column: 1 / -1;
  margin: 1.5rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.78rem;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-tag {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-deep);
}

/* Pages without a full hero still fill the first screen */

.page-fill {
  min-height: calc(100vh - var(--header-h));
}

/* Mobile */

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1.25rem 1.25rem;
    gap: 0;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--rule);
  }

  .header-logo {
    height: 6.4rem;
    margin: -1.7rem 0 -1.7rem -0.85rem;
  }

  .statement-grid,
  .featured,
  .comb-grid,
  .shop-card,
  .shop-card.alt,
  .pdp,
  .about-body,
  .contact-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .shop-card.alt .shop-card-copy {
    order: 0;
  }

  .pdp-art {
    position: static;
  }

  .specs {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: calc(100vh - var(--header-h));
    padding-top: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
