/* ============================================
   SipClip — Design Tokens
   Palette: sun-bleached river-rafting psychedelia
   ============================================ */
:root {
  --orange:      #FF5A1F;  /* life-jacket orange */
  --orange-dark: #D9430E;
  --teal:        #0E6E6E;  /* river teal */
  --teal-dark:   #0A4F4F;
  --yellow:      #FFC93C;  /* sun gold */
  --cream:       #FBF3E1;  /* bleached catalog paper */
  --ink:         #1B1B16;  /* near-black ink */
  --ink-soft:    #3A3A30;

  --font-display: 'Bungee', system-ui, sans-serif;
  --font-body: 'Space Grotesk', system-ui, sans-serif;

  --radius: 18px;
  --container: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 0.5px;
  margin: 0 0 1.2rem;
  color: var(--ink);
  text-transform: uppercase;
}
.section-title.light { color: var(--cream); }

/* ============ Badge stamp (signature element) ============ */
.badge-stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  padding: 0.55rem 1.1rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  transform: rotate(-3deg);
  margin-bottom: 1.2rem;
  white-space: nowrap;
}
.badge-stamp.alt {
  background: var(--orange);
  color: var(--cream);
  border-color: var(--ink);
  transform: rotate(2deg);
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  padding: 1rem 1.8rem;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  border: 3px solid var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 4px 4px 0 var(--ink);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(0, 0); box-shadow: 2px 2px 0 var(--ink); }

.btn-primary { background: var(--orange); color: var(--cream); }
.btn-ghost { background: var(--cream); color: var(--ink); }
.btn-block { width: 100%; }

/* ============ Nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 3px solid var(--orange);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-logo img { height: 46px; width: auto; }
.nav-links {
  display: flex;
  gap: 1.6rem;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a {
  color: var(--cream);
  text-decoration: none;
  position: relative;
}
.nav-links a:hover { color: var(--yellow); }
.nav-cta {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  background: var(--orange);
  color: var(--cream);
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid var(--orange);
}
.nav-cta:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  background: var(--teal);
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255,201,60,0.35) 0, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(255,90,31,0.35) 0, transparent 45%);
  overflow: hidden;
  padding: 4.5rem 1.5rem 0;
  text-align: center;
}
.hero-current {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 60% 40% at 20% 30%, rgba(120, 200, 220, 0.55) 0%, transparent 70%),
    radial-gradient(ellipse 70% 50% at 80% 20%, rgba(40, 140, 170, 0.5) 0%, transparent 70%),
    radial-gradient(ellipse 80% 50% at 30% 80%, rgba(90, 190, 200, 0.45) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 90% 85%, rgba(20, 110, 140, 0.5) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.hero-current::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      100deg,
      rgba(255,255,255,0.10) 0px,
      rgba(255,255,255,0.10) 18px,
      transparent 18px,
      transparent 90px
    );
  filter: blur(6px);
  mix-blend-mode: overlay;
}
.hero-content-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  max-width: 1280px;
  margin: 0 auto;
}
.hero-flank {
  flex: 0 0 220px;
  display: none;
}
.hero-photo-frame {
  aspect-ratio: 3/4;
  transform: rotate(-3deg);
}
.hero-flank-right .hero-photo-frame { transform: rotate(3deg); }

@media (min-width: 980px) {
  .hero-flank { display: block; }
}

.hero-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  z-index: 1;
  flex: 1 1 auto;
}
.hero-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  color: var(--ink);
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  margin-bottom: 1.8rem;
}
.hero-logo {
  width: 220px;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(3px 3px 0 var(--ink));
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 4.6rem);
  line-height: 1.05;
  margin: 0 0 1.5rem;
  color: var(--cream);
  text-shadow: 4px 4px 0 var(--ink);
}
.hero-title .line { display: block; }
.hero-title .accent { color: var(--yellow); }
.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--cream);
  max-width: 540px;
  margin: 0 auto 2.2rem;
  font-weight: 500;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}
.hero-wave {
  position: relative;
  line-height: 0;
}
.hero-wave svg {
  width: 100%;
  height: 70px;
  display: block;
}
.hero-wave path { fill: var(--cream); }

/* ============ About ============ */
.about {
  background: var(--cream);
  padding: 5rem 1.5rem;
}
.about-inner {
  max-width: var(--container);
  margin: 0 auto;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.about-copy { text-align: left; }
.about-text {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin: 0 0 1.2rem;
}
.about-photo-frame { aspect-ratio: 4/3; }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; }
}

/* ============ Product ============ */
.product {
  background: var(--yellow);
  padding: 5rem 1.5rem;
  position: relative;
}
.product-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.product-media {
  display: grid;
  gap: 1.2rem;
}
.photo-frame {
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink);
  aspect-ratio: 4/3;
  overflow: hidden;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }

.product-photo-frame.small { aspect-ratio: 16/9; }
.product-photo-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--ink-soft);
  background: repeating-linear-gradient(
    45deg,
    rgba(27,27,22,0.05) 0,
    rgba(27,27,22,0.05) 10px,
    transparent 10px,
    transparent 20px
  );
  text-align: center;
  padding: 1rem;
}
.product-photo-placeholder.dark {
  color: #D8D4C4;
  background: repeating-linear-gradient(
    45deg,
    rgba(251,243,225,0.06) 0,
    rgba(251,243,225,0.06) 10px,
    transparent 10px,
    transparent 20px
  );
}
.product-photo-placeholder span {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 1px;
}
.product-photo-placeholder small { font-size: 0.8rem; }

.product-copy { padding-top: 0.4rem; }

.product-text { font-size: 1.05rem; color: var(--ink); margin: 0 0 1.2rem; }
.product-text.muted { font-style: italic; color: var(--ink-soft); font-size: 0.98rem; }
.product-features {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.product-features li {
  position: relative;
  padding-left: 1.6rem;
  font-weight: 500;
}
.product-features li::before {
  content: "→";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--orange-dark);
}

@media (max-width: 860px) {
  .product-inner { grid-template-columns: 1fr; }
}

/* ============ Quality ============ */
.quality {
  background: var(--ink);
  padding: 5rem 1.5rem;
}
.quality-inner {
  max-width: var(--container);
  margin: 0 auto;
}
.quality-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.quality .section-title { color: var(--cream); }
.quality-copy { text-align: left; }
.quality-text {
  color: #D8D4C4;
  font-size: 1.02rem;
  margin: 0 0 1.1rem;
}
.quality-photo-frame {
  aspect-ratio: 4/3;
  border-color: var(--cream);
  box-shadow: 6px 6px 0 rgba(251,243,225,0.25);
}

@media (max-width: 860px) {
  .quality-grid { grid-template-columns: 1fr; }
  .quality-media { order: -1; }
}

/* ============ Shipping ============ */
.shipping {
  background: var(--teal);
  padding: 5rem 1.5rem;
}
.shipping-inner {
  max-width: 700px;
  margin: 0 auto;
}
.shipping .section-title { color: var(--cream); }
.shipping-intro { color: var(--cream); font-size: 1.05rem; margin-bottom: 1.8rem; }
.shipping-table {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
}
.shipping-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 1rem 1.4rem;
  box-shadow: 5px 5px 0 var(--ink);
}
.shipping-row.highlight {
  background: var(--yellow);
}
.shipping-qty { font-weight: 600; }
.shipping-price { font-family: var(--font-display); font-size: 0.85rem; color: var(--orange-dark); }
.shipping-note { color: var(--cream); font-size: 0.95rem; opacity: 0.9; }

/* ============ Buy ============ */
.buy {
  background: var(--orange);
  background-image: radial-gradient(circle at 80% 10%, rgba(255,201,60,0.4) 0, transparent 50%);
  padding: 5rem 1.5rem;
}
.buy-inner {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}
.buy-sub { color: var(--cream); font-size: 1.05rem; margin-bottom: 2rem; }

.buy-card {
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 7px 7px 0 var(--ink);
  padding: 2rem;
  text-align: left;
}

.qty-control { margin-bottom: 1.4rem; }
.qty-control label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.qty-stepper {
  display: flex;
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  width: fit-content;
}
.qty-stepper button {
  background: var(--ink);
  color: var(--cream);
  border: none;
  width: 42px;
  height: 42px;
  font-size: 1.3rem;
  cursor: pointer;
  font-family: var(--font-body);
}
.qty-stepper button:hover { background: var(--orange-dark); }
.qty-stepper input {
  width: 60px;
  height: 42px;
  border: none;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: var(--font-body);
  -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.buy-summary {
  border-top: 2px dashed var(--ink);
  border-bottom: 2px dashed var(--ink);
  padding: 1.1rem 0;
  margin-bottom: 1.2rem;
  display: grid;
  gap: 0.5rem;
}
.buy-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.98rem;
}
.buy-line.total {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-top: 0.4rem;
}

.bulk-message {
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}
.bulk-message a { font-weight: 700; text-decoration: underline; }

.buy-secure {
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-align: center;
  margin: 0.9rem 0 0;
}

.checkout-error {
  background: #FFE0D6;
  border: 2px solid var(--orange-dark);
  color: var(--orange-dark);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
  margin-top: 1rem;
  font-weight: 600;
}

/* ============ Footer ============ */
.footer {
  background: var(--ink);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
}
.footer-inner {
  max-width: 500px;
  margin: 0 auto;
}
.footer-logo { height: 30px; margin: 0 auto 1rem; }
.footer-tagline { color: var(--cream); font-weight: 600; margin: 0 0 0.6rem; }
.footer-meta { color: #9A968A; font-size: 0.82rem; margin: 0 0 0.6rem; }
.footer-email { color: var(--yellow); font-size: 0.9rem; text-decoration: none; }
.footer-email:hover { text-decoration: underline; }
