/* ==========================================================================
   Localism Merch — Global Styles
   ========================================================================== */

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

:root {
  /* Palette — La Jolla coastal */
  --ocean-900: #0f3a4d;
  --ocean-800: #134a63;
  --ocean-700: #17607f;
  --ocean-600: #1c7a9c;
  --sand-100: #fbf6ec;
  --sand-200: #f5ecd9;
  --sand-300: #ecdcb9;
  --gold-500: #cc7a52;
  --gold-600: #b3653f;
  --gold-100: #f6e2d3;
  --kelp-600: #2f6d5c;
  --ink-900: #14262c;
  --ink-600: #45595f;
  --ink-400: #7c8c91;
  --white: #ffffff;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 8px rgba(15, 58, 77, 0.08);
  --shadow-md: 0 8px 30px rgba(15, 58, 77, 0.12);
  --shadow-lg: 0 20px 60px rgba(15, 58, 77, 0.18);

  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink-900);
  background: var(--sand-100);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ocean-900);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--ink-600); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--gold-600);
  display: inline-block;
}

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

section { padding: 96px 0; }

@media (max-width: 720px) {
  section { padding: 64px 0; }
}

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold-500);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--gold-600); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-ocean {
  background: var(--ocean-900);
  color: var(--white);
}
.btn-ocean:hover { background: var(--ocean-800); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  border-color: var(--ocean-900);
  color: var(--ocean-900);
}
.btn-outline:hover { background: var(--ocean-900); color: var(--white); transform: translateY(-2px); }

.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.btn-outline-light:hover { background: var(--white); color: var(--ocean-900); }

/* Header ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 246, 236, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 58, 77, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 48px;
  width: auto;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

nav.main-nav a {
  padding: 10px 16px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-600);
  transition: background 0.15s ease, color 0.15s ease;
}

nav.main-nav a:hover { background: var(--sand-200); color: var(--ocean-900); }
nav.main-nav a.active { color: var(--ocean-900); background: var(--sand-300); }

.header-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ocean-900); border-radius: 2px; }

@media (max-width: 900px) {
  nav.main-nav {
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--sand-100);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 24px;
    border-bottom: 1px solid rgba(15,58,77,0.08);
    box-shadow: var(--shadow-md);
    display: none;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { padding: 14px 10px; }
  .header-cta .btn-outline { display: none; }
  .nav-toggle { display: flex; }
}

/* Hero ---------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 110px;
  background: linear-gradient(180deg, var(--sand-100) 0%, var(--sand-200) 100%);
}

.hero-copy h1 {
  margin-top: 20px;
}

.hero-copy h1 .headline-mobile { display: none; }

@media (max-width: 640px) {
  .hero-copy h1 .headline-desktop { display: none; }
  .hero-copy h1 .headline-mobile { display: inline; }
}

.hero-copy p.lead {
  font-size: 1.15rem;
  max-width: 640px;
  margin-top: 24px;
}

.hero-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

@media (max-width: 600px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
}

/* Waves divider -------------------------------------------------------------- */
.wave-divider { display: block; width: 100%; line-height: 0; }
.wave-divider svg { width: 100%; height: auto; display: block; }

/* Section headers --------------------------------------------------------- */
.section-head {
  max-width: 640px;
  margin: 0 0 52px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Cards grid ---------------------------------------------------------------- */

.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 940px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--sand-200);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--ocean-800);
}
.icon-badge svg { width: 26px; height: 26px; }
.icon-badge.gold { background: var(--gold-100); color: var(--gold-600); }
.icon-badge.kelp { background: #e4efe9; color: var(--kelp-600); }

.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 0.96rem; }

/* Section variants ---------------------------------------------------------- */

.section-ocean {
  background: var(--ocean-900);
  color: var(--sand-100);
}
.section-ocean h2, .section-ocean h3 { color: var(--white); }
.section-ocean p { color: rgba(251,246,236,0.92); }
.section-ocean .eyebrow { color: #f4c99a; }
.section-ocean .eyebrow::before { background: #f4c99a; }
.section-ocean .value-quote { color: var(--white); }

/* White cards sitting on a navy section keep normal dark text */
.section-ocean .card h3,
.section-ocean .beach-card h3 { color: var(--ocean-900); }
.section-ocean .card p,
.section-ocean .beach-card p { color: var(--ink-600); }

.section-sand { background: var(--sand-200); }

/* CTA band -------------------------------------------------------------------- */

.cta-band {
  background: linear-gradient(135deg, var(--ocean-800), var(--ocean-900));
  border-radius: var(--radius-lg);
  padding: 64px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 10px; }
.cta-band p { color: rgba(251,246,236,0.8); margin-bottom: 0; max-width: 46ch; }

@media (max-width: 720px) {
  .cta-band { padding: 40px 28px; text-align: center; justify-content: center; }
}

/* Footer ------------------------------------------------------------------------ */

footer.site-footer {
  background: var(--ocean-900);
  color: rgba(251,246,236,0.82);
  padding: 70px 0 30px;
}
footer.site-footer p { color: inherit; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-grid h4 {
  color: var(--sand-100);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a:hover { color: var(--white); }

.footer-logo { display: flex; align-items: center; margin-bottom: 14px; }
.footer-logo-img { height: 36px; width: auto; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 10px;
}

.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.social-row a:hover { background: var(--gold-500); }
.social-row svg { width: 16px; height: 16px; }

/* Page hero (interior pages) ------------------------------------------------ */

.page-hero {
  padding: 70px 0 60px;
  background: linear-gradient(180deg, var(--sand-100), var(--sand-200));
  text-align: center;
}
.page-hero .eyebrow { justify-content: center; }
.page-hero p.lead {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Utility --------------------------------------------------------------------- */

.value-quote {
  border-left: 4px solid var(--gold-500);
  padding-left: 24px;
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  color: var(--ocean-900);
  font-weight: 500;
  margin: 30px 0;
}

/* Philanthropy block --------------------------------------------------------- */

.beach-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 30px;
  align-items: center;
  box-shadow: var(--shadow-md);
}
@media (max-width: 700px) { .beach-card { grid-template-columns: 1fr; text-align: center; } }

.beach-icon {
  width: 84px; height: 84px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  display: flex; align-items: center; justify-content: center;
  color: white;
  flex-shrink: 0;
  margin: 0 auto;
}
.beach-icon svg { width: 42px; height: 42px; }

.coming-soon-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gold-100);
  color: var(--gold-600);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 10px;
}

/* Filter tabs (Designs page) -------------------------------------------------- */

.filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 50px;
}
.filter-tab {
  padding: 10px 22px;
  border-radius: 100px;
  background: var(--white);
  border: 1px solid var(--sand-300);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-600);
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-tab:hover { border-color: var(--ocean-700); color: var(--ocean-800); }
.filter-tab.active { background: var(--ocean-900); border-color: var(--ocean-900); color: var(--white); }

/* Product mockup cards ------------------------------------------------------- */

.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.product-visual {
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.product-visual svg { width: 58%; height: 58%; }

.product-info { padding: 20px 22px 24px; }
.product-info .category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-600);
  margin-bottom: 6px;
  display: block;
}
.product-info h3 { margin-bottom: 4px; font-size: 1.1rem; }
.product-info p { font-size: 0.9rem; margin-bottom: 0; }

.bg-1 { background: linear-gradient(160deg, #cfe6ec, #a9cfd8); }
.bg-2 { background: linear-gradient(160deg, #fbe0d0, #f4bfa1); }
.bg-3 { background: linear-gradient(160deg, #dce9df, #b9d3bf); }
.bg-4 { background: linear-gradient(160deg, #e7ddf0, #c9b8dd); }
.bg-5 { background: linear-gradient(160deg, #f6e3c8, #ecc98d); }
.bg-6 { background: linear-gradient(160deg, #d7e8ee, #aecdd9); }

.designs-note {
  text-align: center;
  max-width: 620px;
  margin: 40px auto 0;
  padding: 22px 28px;
  border-radius: var(--radius-md);
  background: var(--sand-200);
}

/* Survey / Form ---------------------------------------------------------------- */

.form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 50px;
  box-shadow: var(--shadow-md);
  max-width: 820px;
  margin: 0 auto;
}
@media (max-width: 620px) { .form-wrap { padding: 30px 22px; } }

.form-section { margin-bottom: 38px; }
.form-section:last-of-type { margin-bottom: 0; }
.form-section h3 {
  font-size: 1.05rem;
  color: var(--ocean-900);
  margin-bottom: 4px;
}
.form-section > p.hint { font-size: 0.88rem; margin-bottom: 20px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; gap: 0; } }

.field { margin-bottom: 20px; }
.form-row .field { margin-bottom: 0; }

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-900);
  margin-bottom: 8px;
}
.field .req { color: var(--gold-500); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--sand-300);
  background: var(--sand-100);
  font-family: 'Inter', sans-serif;
  font-size: 0.96rem;
  color: var(--ink-900);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ocean-700);
  background: var(--white);
}

.field textarea { resize: vertical; min-height: 100px; }

.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 560px) { .check-grid { grid-template-columns: 1fr; } }

.check-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--sand-300);
  background: var(--sand-100);
  cursor: pointer;
  font-size: 0.92rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.check-option:hover { border-color: var(--ocean-600); }
.check-option input { margin-top: 3px; accent-color: var(--gold-500); flex-shrink: 0; }

.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--sand-300);
  background: var(--sand-100);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
}
.radio-pill input { accent-color: var(--gold-500); }
.radio-pill:hover { border-color: var(--ocean-600); }

.form-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.form-submit p { font-size: 0.82rem; margin: 0; max-width: 40ch; color: var(--ink-400); }

.form-note {
  background: var(--sand-200);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  font-size: 0.88rem;
  margin-bottom: 30px;
  color: var(--ink-600);
}

#form-success {
  display: none;
  text-align: center;
  padding: 60px 20px;
}
#form-success .icon-badge { margin: 0 auto 20px; width: 68px; height: 68px; }
#form-success .icon-badge svg { width: 34px; height: 34px; }
