/* styles.css - Froth Life Co. - Powder + Surf Theme */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #0f172a 0%, #020617 40%, #022c3a 100%);
  color: #f9fafb;
  line-height: 1.6;
}

/* Links */

a {
  color: #38bdf8; /* surfy aqua-blue */
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Navbar */

header {
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.98),
    rgba(8, 47, 73, 0.95)
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.nav-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: #e5f2ff;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
}

nav a {
  color: #e5e7eb;
  text-decoration: none;
}

nav a:hover {
  color: #7dd3fc; /* lighter aqua hover */
}

/* Layout */

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

/* Hero - index */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.9fr);
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 3vw, 3rem);
  margin-bottom: 1rem;
}

.hero-text p {
  color: #d4d4d8;
  margin-bottom: 1.5rem;
}

.highlight {
  color: #7dd3fc; /* icy / surf highlight */
  font-weight: 600;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.badge {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #cbd5f5;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.9),
    rgba(30, 64, 175, 0.7)
  );
}

/* Buttons */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    #38bdf8,
    #e0f2fe
  ); /* aqua to icy white */
  color: #020617;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.9);
  color: #e5e7eb;
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 0.8);
}

/* Hero media - snowy / wavy frame */

.hero-media {
  border-radius: 1.2rem;
  overflow: hidden;
  border: 1px solid rgba(191, 219, 254, 0.6);
  background: none;
  box-shadow:
    0 20px 40px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(191, 219, 254, 0.3);
}

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: normal;
  opacity: 1;
}


/* Sections */

.section-heading {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  font-size: 1.7rem;
  margin-bottom: 0.3rem;
  color: #e5f2ff;
}

.section-heading p {
  color: #a5b4fc;
  font-size: 0.95rem;
}

.about-body {
  max-width: 720px;
  font-size: 0.97rem;
  color: #e5e7eb;
}

.about-body p + p {
  margin-top: 1rem;
}

/* Shop */

.product-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.product-card {
  border-radius: 1rem;
  border: 1px solid rgba(191, 219, 254, 0.6);
  background:
    radial-gradient(circle at top, rgba(15, 118, 110, 0.25), transparent 60%),
    linear-gradient(to bottom right, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.85));
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.85);
}

.product-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #bae6fd;
}

.product-card h3 {
  font-size: 1.1rem;
  color: #e5f2ff;
}

.product-meta {
  font-size: 0.85rem;
  color: #cbd5f5;
}

.product-price {
  font-weight: 700;
  margin-top: 0.25rem;
  color: #7dd3fc;
}

.product-image {
  border-radius: 0.8rem;
  overflow: hidden;
  border: 1px solid rgba(191, 219, 254, 0.7);
  background: radial-gradient(circle at top, #e0f2fe, #0ea5e9);
}

.product-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Order text */

.order-cta {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #e5e7eb;
}

.order-cta strong {
  color: #e0f2fe;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.78rem;
  background: rgba(15, 23, 42, 0.9);
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
}

/* QR area */

.qr-wrapper {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.qr-wrapper img {
  display: block;
  width: 150px;
  height: 150px;
  border-radius: 0.75rem;
  border: 1px solid rgba(191, 219, 254, 0.8);
  background: radial-gradient(circle at top, #e0f2fe, #0ea5e9);
}

/* Footer */

footer {
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  margin-top: 3rem;
  padding: 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: #cbd5f5;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 1));
}

/* Small screens */

@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
  }

  main {
    padding-top: 1.5rem;
  }

  nav ul {
    gap: 0.75rem;
    font-size: 0.8rem;
  }
}
