/* Riptide Forge — shared stylesheet */

:root {
  --rf-blue:  #3D83B5;
  --rf-teal:  #2A9D8F;
  --rf-ink:   #0D1A1F;
  --rf-char:  #152028;
  --rf-gold:  #DDA84A;
  --text:     rgba(255,255,255,.93);
  --muted:    rgba(190,215,220,.70);
  --card:     rgba(255,255,255,.055);
  --border:   rgba(255,255,255,.10);
  --shadow:   0 20px 60px rgba(0,0,0,.50);
  --radius:   16px;
  --nav-h:    60px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background:
    radial-gradient(ellipse 900px 650px at 15% 5%,  rgba(42,157,143,.20), transparent 55%),
    radial-gradient(ellipse 700px 520px at 85% 15%, rgba(61,131,181,.18), transparent 50%),
    radial-gradient(ellipse 500px 350px at 45% 90%, rgba(42,157,143,.10), transparent 60%),
    linear-gradient(160deg, #0D1A1F, #152028);
  background-attachment: fixed;
  min-height: 100vh;
}

/* ── Bubbles ────────────────────────────────────────── */
.bubbles { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bubble {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.12), rgba(61,131,181,.04));
  border: 1px solid rgba(61,131,181,.15);
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0%   { transform: translateY(108vh) scale(.85); opacity: 0; }
  8%   { opacity: .75; }
  90%  { opacity: .55; }
  100% { transform: translateY(-15vh) scale(1.1); opacity: 0; }
}

/* ── Nav ────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(13,26,31,.88);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; height: 100%;
  padding: 0 max(16px,4vw);
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  font-size: 16px; font-weight: 700; letter-spacing: .2px; flex-shrink: 0;
}
.nav-brand img { height: 30px; width: auto; border-radius: 5px; }

.nav-menu { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-menu a {
  display: block; color: var(--muted); text-decoration: none;
  font-size: 14px; font-weight: 500;
  padding: 6px 11px; border-radius: 8px;
  transition: color .15s, background .15s; white-space: nowrap;
}
.nav-menu a:hover,
.nav-menu a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,.08); }
.nav-shop a {
  background: linear-gradient(135deg, rgba(61,131,181,.22), rgba(42,157,143,.16));
  border: 1px solid rgba(61,131,181,.38); color: var(--text);
}
.nav-shop a:hover {
  background: linear-gradient(135deg, rgba(61,131,181,.36), rgba(42,157,143,.28));
  border-color: rgba(61,131,181,.65);
}

.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 6px; border-radius: 8px;
}
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .22s, opacity .22s;
}
.nav-burger[aria-expanded="true"] span:first-child  { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:last-child   { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 640px) {
  .nav-burger { display: flex; }
  .nav-menu {
    display: none; position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: rgba(10,20,25,.97);
    border-bottom: 1px solid rgba(255,255,255,.10);
    padding: 10px 16px 16px; gap: 3px;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 11px 14px; font-size: 15px; }
}

/* ── Page layout ─────────────────────────────────────── */
.page {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto;
  padding: 52px max(16px,4vw) 80px;
}
.page-hero { text-align: center; margin-bottom: 52px; }
.page-hero h1 {
  font-size: clamp(28px,5vw,44px); font-weight: 800;
  letter-spacing: -.3px; line-height: 1.1; margin-bottom: 14px;
}
.page-hero p { color: var(--muted); font-size: 17px; max-width: 520px; margin: 0 auto; line-height: 1.6; }
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--rf-teal); margin-bottom: 10px;
}

/* ── Card ────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-top-color: rgba(255,255,255,.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}

/* ── Dividers ────────────────────────────────────────── */
hr.wave {
  border: none; height: 1px; margin: 44px 0;
  background: linear-gradient(90deg, transparent, rgba(61,131,181,.35) 30%, rgba(42,157,143,.25) 70%, transparent);
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 12px;
  font-size: 14px; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none;
  transition: filter .18s, transform .18s, box-shadow .18s, background .18s, border-color .18s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--rf-blue), var(--rf-teal));
  color: #fff; box-shadow: 0 4px 18px rgba(61,131,181,.28);
}
.btn-primary:hover { filter: brightness(1.12); transform: translateY(-2px); box-shadow: 0 8px 26px rgba(61,131,181,.38); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid rgba(61,131,181,.42);
}
.btn-outline:hover { background: rgba(61,131,181,.14); border-color: rgba(61,131,181,.78); transform: translateY(-2px); }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 10px; }

/* ── Placeholder images ──────────────────────────────── */
.ph-img {
  width: 100%; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; color: rgba(255,255,255,.28); font-size: 12px; text-align: center;
  border: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 30% 40%, var(--c1, rgba(61,131,181,.45)) 0%, transparent 55%),
    radial-gradient(circle at 72% 65%, var(--c2, rgba(42,157,143,.35)) 0%, transparent 50%),
    var(--base, rgba(13,26,31,1));
}
.ph-img svg { opacity: .35; }

/* ── Gallery ─────────────────────────────────────────── */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-btn {
  padding: 7px 16px; border-radius: 20px; border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05); color: var(--muted);
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.filter-btn:hover  { background: rgba(255,255,255,.10); color: var(--text); }
.filter-btn.active {
  background: rgba(61,131,181,.20); border-color: rgba(61,131,181,.55); color: var(--text);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.gallery-item { cursor: pointer; }
.gallery-item .ph-img { aspect-ratio: 4/3; transition: transform .2s, box-shadow .2s; }
.gallery-item:hover .ph-img { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(0,0,0,.4); }
.gallery-cap { margin-top: 8px; font-size: 13px; color: var(--muted); }

/* ── Lightbox ────────────────────────────────────────── */
.lightbox { display: none; position: fixed; inset: 0; z-index: 200; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(5,12,16,.92); backdrop-filter: blur(10px); }
.lb-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 24px;
}
.lb-close {
  position: absolute; top: -8px; right: -8px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.20);
  color: #fff; font-size: 15px; width: 34px; height: 34px;
  border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.lb-close:hover { background: rgba(255,255,255,.28); }
.lb-img-wrap .ph-img { width: min(640px,88vw); height: min(480px,65vh); border-radius: 14px; }
.lb-img-wrap img { max-width: min(640px,88vw); max-height: 70vh; border-radius: 14px; display: block; }
.lb-caption { color: var(--muted); font-size: 14px; text-align: center; }

/* ── Shop ────────────────────────────────────────────── */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.product-card {
  border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  border-top-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(12px);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,.40); border-color: rgba(61,131,181,.30); }
.product-card .ph-img { aspect-ratio: 4/3; border-radius: 0; }
.product-body { padding: 16px 16px 20px; display: flex; flex-direction: column; flex: 1; }
.product-name { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.product-desc { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 14px; flex: 1; }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.product-price { font-size: 18px; font-weight: 800; color: var(--rf-gold); }
.product-price span { font-size: 12px; font-weight: 500; color: var(--muted); }
.product-actions { display: flex; gap: 8px; }

/* ── About ───────────────────────────────────────────── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 52px; align-items: center; margin-bottom: 60px;
}
@media (max-width: 700px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }
.about-photo { width: 100%; aspect-ratio: 4/5; }
.about-text h2 { font-size: 28px; font-weight: 800; margin-bottom: 16px; line-height: 1.15; }
.about-text p { color: var(--muted); line-height: 1.7; margin-bottom: 14px; }
.about-text p:last-child { margin-bottom: 0; }

.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.process-step {
  padding: 24px 20px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.step-num {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--rf-blue); margin-bottom: 8px;
}
.process-step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.process-step p { font-size: 14px; color: var(--muted); line-height: 1.55; }

.stats-row { display: flex; gap: 0; margin: 48px 0; }
.stat {
  flex: 1; text-align: center; padding: 20px;
  border-right: 1px solid rgba(255,255,255,.08);
}
.stat:last-child { border-right: none; }
.stat-n { font-size: 32px; font-weight: 800; color: var(--rf-blue); line-height: 1; margin-bottom: 6px; }
.stat-l { font-size: 13px; color: var(--muted); }
@media (max-width: 500px) { .stats-row { flex-direction: column; } .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); } }

/* ── Contact form ────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 48px; }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.form-input,
.form-select,
.form-textarea {
  padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text); font-size: 14px; font-family: inherit;
  outline: none; transition: border-color .15s, background .15s;
  width: 100%;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: rgba(61,131,181,.65); background: rgba(255,255,255,.09); }
.form-select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,.5)' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-select option { background: #152028; }
.form-textarea { resize: vertical; min-height: 140px; }
.char-count { font-size: 12px; color: rgba(255,255,255,.35); text-align: right; }
.form-submit { width: 100%; padding: 13px; font-size: 15px; border-radius: 12px; margin-top: 4px; }

.contact-info h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.contact-info p  { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 24px; }
.contact-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 14px; margin-bottom: 10px;
  border: 1px solid rgba(61,131,181,.28); background: rgba(13,26,31,.40);
  text-decoration: none; color: var(--text);
  transition: background .18s, border-color .18s;
}
.contact-item:hover { background: rgba(61,131,181,.12); border-color: rgba(61,131,181,.60); }
.ci-icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(61,131,181,.12); border: 1px solid rgba(61,131,181,.25);
}
.ci-icon svg { width: 18px; height: 18px; fill: none; stroke: var(--rf-blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ci-text { font-size: 14px; font-weight: 500; }
.ci-sub  { font-size: 12px; color: var(--muted); }

/* ── CTA banner ──────────────────────────────────────── */
.cta-banner {
  margin-top: 60px; padding: 40px 32px; border-radius: 20px; text-align: center;
  background: linear-gradient(135deg, rgba(61,131,181,.14), rgba(42,157,143,.10));
  border: 1px solid rgba(61,131,181,.28);
}
.cta-banner h2 { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.cta-banner p  { color: var(--muted); margin-bottom: 24px; }
.cta-banner .btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
  position: relative; z-index: 1;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 24px max(16px,4vw);
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; color: rgba(255,255,255,.38); font-size: 12px; flex-wrap: wrap;
}
.site-footer a { color: rgba(255,255,255,.52); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.footer-links { display: flex; gap: 16px; }
