:root {
  --navy-950: #f8f1e6;
  --navy-900: #f1e7d4;
  --navy-800: #ffffff;
  --navy-700: #f2e9da;
  --turquoise: #3f8f86;
  --turquoise-light: #2b6b64;
  --blue-rim: #2e6b82;
  --coral: #b9814c;
  --coral-light: #cba06b;
  --sand: #f4ece0;
  --foam: #1e3a36;
  --ink: #15302c;
  --text-soft: rgba(30, 58, 54, 0.72);
  --shadow-deep: 0 20px 48px rgba(60, 45, 25, 0.16);
  --radius-lg: 28px;
  --radius-md: 16px;
  --font-head: "Bungee", "Arial Black", sans-serif;
  --font-accent: "Permanent Marker", cursive;
  --font-body: "Nunito Sans", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.12 0 0 0 0 0.23 0 0 0 0 0.21 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E"),
    var(--navy-950);
  color: var(--foam);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
  color: var(--foam);
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

.eyebrow {
  font-family: var(--font-accent);
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--turquoise-light);
  margin: 0 0 0.6em;
  transform: rotate(-1.5deg);
  display: inline-block;
}

/* ---------- Origin badge (Denia stamp) ---------- */

.origin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  border: 2px dashed rgba(185, 129, 76, 0.55);
  border-radius: 999px;
  padding: 0.5em 1.1em;
  font-family: var(--font-accent);
  font-size: 0.95rem;
  color: var(--coral);
  transform: rotate(-2deg);
  margin-bottom: 1.4em;
}

.origin-badge::before {
  content: "\2609";
  font-family: var(--font-body);
}

.founder-signature {
  font-family: var(--font-accent);
  font-size: 1.1rem;
  color: var(--turquoise-light);
  margin-top: 1.4rem;
  transform: rotate(-1deg);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.95em 1.9em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--turquoise) 0%, var(--blue-rim) 100%);
  color: var(--navy-950);
  box-shadow: 0 12px 30px rgba(63, 143, 134, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(63, 143, 134, 0.42);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(30, 58, 54, 0.35);
  color: var(--foam);
}

.btn-ghost:hover {
  border-color: var(--turquoise-light);
  color: var(--turquoise-light);
}

.btn-large {
  width: 100%;
  padding: 1.1em 1.5em;
  font-size: 1.05rem;
}

.btn:disabled {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 241, 230, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(30, 58, 54, 0.1);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

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

.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a {
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--turquoise-light);
}

.nav-cta {
  padding: 0.55em 1.3em;
  border-radius: 999px;
  background: var(--turquoise);
  color: var(--navy-950) !important;
  opacity: 1 !important;
  font-weight: 600;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.85rem;
  font-weight: 600;
}

.lang-sep {
  opacity: 0.4;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-soft);
  cursor: pointer;
  padding: 0.25em 0.3em;
  font: inherit;
  font-weight: 600;
}

.lang-btn.active {
  color: var(--turquoise-light);
}

@media (min-width: 860px) {
  .nav-links {
    display: flex;
  }
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 1.25rem 6rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(63, 143, 134, 0.18), transparent 55%),
    radial-gradient(ellipse at 85% 20%, rgba(46, 107, 130, 0.22), transparent 50%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero-content {
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.9rem, 5.2vw, 3rem);
  line-height: 1.25;
  margin-bottom: 0.5em;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-soft);
  max-width: 560px;
  margin: 0 auto 2em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.hero-photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-deep);
  border: 1px solid rgba(30, 58, 54, 0.12);
}

@media (min-width: 940px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }

  .hero-content {
    text-align: left;
  }

  .hero-sub {
    margin-inline: 0;
  }

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

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  line-height: 0;
  z-index: 1;
}

.hero-wave svg {
  width: 100%;
  height: 70px;
  display: block;
}

.hero-wave path {
  fill: var(--navy-900);
}

/* ---------- Features ---------- */

.features {
  background: var(--navy-900);
  padding: 4.5rem 1.25rem;
}

.features h2 {
  text-align: center;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.feature-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-700));
  border: 1px solid rgba(30, 58, 54, 0.08);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
}

.feature-icon {
  width: 52px;
  height: 52px;
  color: var(--turquoise-light);
  margin-bottom: 1rem;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4em;
}

.feature-card p {
  color: var(--text-soft);
  font-size: 0.94rem;
  margin: 0;
}

/* ---------- Description ---------- */

.description {
  background: var(--navy-950);
  padding: 5rem 1.25rem;
  display: grid;
  gap: 3rem;
  max-width: 1080px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .description {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 4rem;
  }
}

.description-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.description-media img {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-deep);
  border: 1px solid rgba(30, 58, 54, 0.1);
}

/* ---------- Lifestyle photo ---------- */

.gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 3.5rem 1.25rem;
  background: var(--navy-950);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 800px;
  width: 100%;
  justify-items: center;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.gallery-photo {
  width: 100%;
  max-width: 380px;
}

.gallery-photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-deep);
  border: 1px solid rgba(30, 58, 54, 0.1);
}

.lifestyle-caption {
  margin: 0;
  padding: 0.5em 1.2em;
  background: rgba(30, 58, 54, 0.06);
  border-radius: 999px;
  font-family: var(--font-accent);
  font-size: 0.95rem;
  color: var(--turquoise-light);
}

/* ---------- Sizing photo ---------- */

.sizing-photo {
  max-width: 420px;
  margin: 0 auto 2.5rem;
}

.sizing-photo img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-deep);
  border: 1px solid rgba(30, 58, 54, 0.1);
}

.description-copy h2 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
}

.description-copy p {
  color: var(--text-soft);
}

.spec-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.spec-list li {
  position: relative;
  padding-left: 1.6em;
  color: var(--foam);
  font-size: 0.95rem;
}

.spec-list li::before {
  content: "◡";
  position: absolute;
  left: 0;
  color: var(--turquoise);
}

/* ---------- Sizing ---------- */

.sizing {
  background: var(--navy-900);
  padding: 4.5rem 1.25rem;
  text-align: center;
}

.sizing h2 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
}

.sizing-sub {
  color: var(--text-soft);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.sizing-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .sizing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sizing-card {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-700));
  border: 1px solid rgba(30, 58, 54, 0.08);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sizing-number {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--turquoise-light);
}

.sizing-card span:last-child {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.sizing-tip {
  max-width: 620px;
  margin: 2rem auto 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* ---------- Buy ---------- */

.buy {
  background: radial-gradient(ellipse at 50% 0%, rgba(63, 143, 134, 0.14), transparent 60%), var(--navy-950);
  padding: 5rem 1.25rem;
  display: flex;
  justify-content: center;
}

.buy-card {
  max-width: 480px;
  width: 100%;
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
  border: 1px solid rgba(30, 58, 54, 0.1);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-deep);
}

.buy-card h2 {
  font-size: 1.8rem;
}

.price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.6em;
  margin: 0.5em 0 1em;
}

.price-amount {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--turquoise-light);
}

.price-note {
  font-size: 0.85rem;
  color: var(--text-soft);
}

.buy-desc {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.checkout-error {
  color: #c1433f;
  font-size: 0.88rem;
  margin-top: 0.8em;
}

.buy-fine {
  font-size: 0.8rem;
  color: rgba(30, 58, 54, 0.55);
  margin-top: 1.2em;
}

.buy-partner {
  font-family: var(--font-accent);
  font-size: 0.92rem;
  color: var(--coral);
  margin: 0.8em 0 1.4em;
}

.shipping-select {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
  text-align: left;
  margin-bottom: 1.2em;
}

.shipping-select label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
}

.shipping-select select {
  width: 100%;
  padding: 0.75em 1em;
  border-radius: var(--radius-md);
  border: 1px solid rgba(30, 58, 54, 0.2);
  background: var(--navy-800);
  color: var(--foam);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.buy-contact {
  margin-top: 1.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(30, 58, 54, 0.1);
  font-size: 0.9rem;
}

.buy-contact p {
  margin: 0 0 0.3em;
  color: var(--text-soft);
}

.buy-contact a {
  color: var(--turquoise-light);
  font-weight: 600;
}

/* ---------- Status pages ---------- */

.status-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem;
}

.status-card {
  max-width: 460px;
  width: 100%;
  text-align: center;
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
  border: 1px solid rgba(30, 58, 54, 0.1);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  box-shadow: var(--shadow-deep);
}

.status-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.2rem;
}

.status-success .status-icon {
  color: var(--turquoise-light);
}

.status-cancel .status-icon {
  color: #c9803a;
}

.status-card h1 {
  font-size: 1.8rem;
}

.status-card p {
  color: var(--text-soft);
  margin-bottom: 1.8em;
}

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

.footer {
  background: var(--navy-950);
  border-top: 1px solid rgba(30, 58, 54, 0.08);
  padding: 3rem 1.25rem 2rem;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.footer-brand .logo-img {
  height: 60px;
}

.footer-brand p {
  color: var(--text-soft);
  font-size: 0.88rem;
  margin: 0.3em 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--text-soft);
}

.footer-links a:hover {
  color: var(--turquoise-light);
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(30, 58, 54, 0.45);
  margin: 0;
}

@media (min-width: 760px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .footer-brand {
    align-items: flex-start;
  }
}

/* ---------- Legal page ---------- */

.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.legal-head h1 {
  font-size: clamp(1.7rem, 5vw, 2.2rem);
  margin-bottom: 0.3em;
}

.legal-updated {
  color: var(--text-soft);
  font-size: 0.88rem;
  margin-bottom: 2rem;
}

.legal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.legal-tabs a {
  padding: 0.55em 1.1em;
  border-radius: 999px;
  border: 1px solid rgba(30, 58, 54, 0.18);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.legal-tabs a:hover {
  border-color: var(--turquoise-light);
  color: var(--turquoise-light);
}

.legal-paper {
  background: var(--sand);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.75rem;
  box-shadow: var(--shadow-deep);
}

@media (min-width: 640px) {
  .legal-paper {
    padding: 3rem 3.25rem;
  }
}

.legal-section {
  max-width: 62ch;
  margin: 0 auto;
}

.legal-section + .legal-section {
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px dashed rgba(7, 20, 38, 0.18);
}

.legal-section h2 {
  color: var(--navy-900);
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  margin-bottom: 0.7em;
}

.legal-section h3 {
  color: var(--navy-800);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 1.6em 0 0.5em;
}

.legal-section p {
  color: rgba(7, 20, 38, 0.82);
  font-size: 0.96rem;
}

.legal-section a {
  color: var(--blue-rim);
  font-weight: 600;
  text-decoration: underline;
}

.legal-facts {
  margin: 1.2rem 0;
  padding: 1.25rem 1.4rem;
  background: rgba(7, 20, 38, 0.05);
  border-radius: var(--radius-md);
  display: grid;
  gap: 1rem;
}

.legal-facts div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.legal-facts dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--blue-rim);
}

.legal-facts dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink);
}

.legal-disclaimer {
  margin-top: 1.6rem;
  padding: 1rem 1.2rem;
  background: rgba(185, 129, 76, 0.12);
  border: 1px solid rgba(185, 129, 76, 0.35);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: rgba(7, 20, 38, 0.75);
}
