/* ══════ BLOCK 1: DESIGN TOKENS ══════ */
:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --muted: #6b645a;
  --accent: #b08d57;
  --accent-dark: #8f6f3f;
  --line: #e6dfd3;

  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;

  --space: clamp(1rem, 4vw, 2rem);
}

.theme-noir {
  --bg: #0e0e0e; --surface: #171717; --ink: #f3ede4; --muted: #a89f91;
  --accent: #c9a961; --accent-dark: #e0c17a; --line: #2a2a2a;
}
.theme-emerald {
  --bg: #0f2a24; --surface: #143530; --ink: #f4efe6; --muted: #b3bdb6;
  --accent: #c9a961; --accent-dark: #e0c17a; --line: #24483f;
}

/* ══════ BLOCK 2: BASE ══════ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ══════ BLOCK 3: TYPOGRAPHY ══════ */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }

.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

p { margin: 0 0 1em; color: var(--muted); }
a { color: inherit; }

/* ══════ BLOCK 4: LAYOUT ══════ */
.container {
  width: min(1200px, 100% - 2 * var(--space));
  margin-inline: auto;
}
.narrow { max-width: 720px; text-align: center; }
section { padding-block: clamp(3rem, 8vw, 7rem); }
.section-head { text-align: center; margin-bottom: 3rem; }

/* ══════ BLOCK 5: COMPONENTS ══════ */

/* ── Buttons and divider ── */
.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bg);
  background: var(--accent);
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}
.btn:hover { background: transparent; color: var(--accent); }
.btn--outline { background: transparent; color: var(--accent); }
.btn--outline:hover { background: var(--accent); color: var(--bg); }

.divider {
  width: 60px; height: 1px;
  background: var(--accent);
  margin: 1.5rem auto;
  border: 0;
}

/* ── SECTION 2: HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
}

/* Logo + name: text block is centered on the middle of the logo */
.logo {
  display: flex;
  align-items: center;          /* vertical middle of logo = middle of text */
  gap: 0.8rem;
  text-decoration: none;
  line-height: 1;
}
.logo img {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--line);   /* thin ring: keeps the black logo visible on dark themes */
}
.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.logo-name {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}
.logo-tag {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
}

@media (max-width: 480px) {
  .logo { gap: 0.55rem; }
  .logo img { width: 38px; height: 38px; }
  .logo-name { font-size: 1.1rem; letter-spacing: 0.16em; }
  .logo-tag { font-size: 0.5rem; letter-spacing: 0.22em; }
}

.nav-toggle {
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.5rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}
.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 1.5rem var(--space);
}
.site-nav.is-open { display: block; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.site-nav a {
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}
.site-nav a:hover { color: var(--accent); }

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: block;
    position: static;
    background: none;
    border: 0;
    padding: 0;
  }
  .site-nav ul { flex-direction: row; gap: 2.5rem; }
}

/* ── SECTION 3: HERO ── */
.hero {
  min-height: 85vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #f3ede4;
  background:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    url("../images/hero.webp") center / cover no-repeat,
    #1a1a1a;
}
.hero p { color: #e8e0d3; max-width: 32rem; margin-inline: auto; margin-bottom: 2rem; }
.hero .btn { margin: 0.4rem; }
.hero .btn--outline { color: #f3ede4; border-color: #f3ede4; }
.hero .btn--outline:hover { background: #f3ede4; color: #1a1a1a; }

.hero-logo {
  display: block;
  width: clamp(90px, 14vw, 140px);
  height: clamp(90px, 14vw, 140px);   /* equal = perfect circle */
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 2px solid #ffffff;          /* light ring: the black logo stays visible on the dark hero */
}

/* ── SECTION 4: PRODUCTS ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease, border-color 0.4s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--line);
  margin-bottom: 1rem;
}
.card .family {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}
.card .notes { font-size: 0.95rem; }
.card .price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}
.size-select {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
}
.card .btn { margin-top: auto; }

/* ── SECTION 5: ABOUT ── */
.about { background: var(--surface); }

/* ── SECTION 6: FOOTER ── */
.site-footer { border-top: 1px solid var(--line); padding-top: 4rem; }
.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}
.footer-title {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
}
.copyright {
  text-align: center;
  font-size: 0.8rem;
  padding: 2rem 1rem;
  margin: 3rem 0 0;
  border-top: 1px solid var(--line);
}

/* ── SECTION 7: FLOATING WHATSAPP ── */
.wa-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  background: #25d366;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* ── SECTION 1: SPLASH SCREEN ── */ 

.splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  text-align: center;
  background: radial-gradient(ellipse at center, #f7f7f7 0%, var(--bg) 70%);
  animation: splash-out 1s ease 4.5s forwards;   /* fades away after 3.6s */
}
.splash-logo {
  width: min(180px, 50vw);
  height: min(180px, 50vw);
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line), 0 0 60px rgba(144, 207, 207, 0.55);
  /* 5 full turns: very fast at first, slowing gradually until it stops */
  animation: logo-spin 3s cubic-bezier(.05, .7, .15, 1) forwards;
}
.splash-name {
  font: 600 clamp(1.8rem, 6vw, 2.6rem) var(--font-heading);
  letter-spacing: .25em;
  color: var(--ink);
  margin: 0;
  opacity: 0;
  animation: splash-text 1s ease 1.8s forwards;
}
.splash-tag {
  font-size: .75rem;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--accent);
  margin: .5rem 0 0;
  opacity: 0;
  animation: splash-text 1s ease 2.2s forwards;
}
@keyframes logo-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(1800deg); }   /* 1800 = 5 x 360, so it ends upright */
}
@keyframes splash-text {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes splash-out {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}



/* ══════ BLOCK 6: ACCESSIBILITY (always last) ══════ */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .splash { display: none; }
}