/* ═══════════════════════════════════════════════════════
   MODO CASONA — Shared Design System
   ═══════════════════════════════════════════════════════ */

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

/* ── TOKENS ──────────────────────────────────────────── */
:root {
  --bg-primary:   #fdfcfa;
  --bg-secondary: #f7f3ed;
  --carbon:       #1c1a18;
  --carbon-2:     #2e2319;
  --violeta:      #3d2b56;
  --violeta-dark: #241934;
  --orange:       #e8784a;
  --brand:        #8f3d18;
  --cream:        #eae2d3;
  --text-muted:   #c4b39a;
}

/* ── BASE ────────────────────────────────────────────── */
body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-primary);
  color: var(--carbon);
  overflow-x: hidden;
}

/* ── NAV ─────────────────────────────────────────────── */
.nav {
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 29px 80px;
  position: sticky;
  top: 0;
  z-index: 200;
  transform: translateY(0);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav--hidden {
  transform: translateY(-100%);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.nav-logo-text {
  font-size: 32px;
  font-weight: 600;
  color: var(--carbon);
  letter-spacing: -0.64px;
  line-height: 1.2;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-size: 16px;
  font-weight: 400;
  color: var(--carbon);
  text-decoration: none;
  padding: 8px;
  line-height: 1.4;
  transition: opacity .2s;
  white-space: nowrap;
}

.nav-links a:hover { opacity: .65; }

.nav-links a.active {
  font-weight: 600;
  border-bottom: 1.5px solid var(--carbon);
  padding-bottom: 6px;
}

/* ── SECTION MARK ────────────────────────────────────── */
.section-mark {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: fit-content;
}

.section-mark span {
  font-size: 13px;
  font-weight: 500;
  color: var(--carbon-2);
  letter-spacing: .5px;
  white-space: nowrap;
}

.section-mark-line {
  height: 3.6px;
  background: var(--orange);
  width: 100%;
  border-radius: 2px;
}

/* ── BUTTONS ─────────────────────────────────────────── */
.btn-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fdf4ef;
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 400;
  padding: 14px 18px;
  border-radius: 9px;
  border: 1.1px solid var(--brand);
  text-decoration: none;
  cursor: pointer;
  width: fit-content;
  transition: opacity .2s;
  line-height: 1;
}

.btn-brand:hover { opacity: .85; }

.btn-link {
  font-size: 15px;
  font-weight: 400;
  color: var(--violeta-dark);
  text-decoration: none;
  padding: 8px 0;
  margin-top: 8px;
  transition: opacity .2s;
}

.btn-link:hover { opacity: .65; }

/* ── FOOTER ──────────────────────────────────────────── */
footer {
  background: var(--carbon);
  color: #fff;
  padding: 40px 80px;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 768px;
  max-width: 100%;
  gap: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  flex-shrink: 0;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo-text {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.48px;
  line-height: 1.2;
  white-space: nowrap;
}

.footer-instagram {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-instagram a {
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  line-height: 1.4;
  transition: opacity .2s;
}

.footer-instagram a:hover { opacity: .7; }

.footer-address {
  font-size: 16px;
  color: #fff;
  line-height: 1.4;
  text-align: center;
  max-width: 220px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.footer-nav a {
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
  transition: opacity .2s;
}

.footer-nav a:hover { opacity: .7; }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤768px)
   ═══════════════════════════════════════════════════════ */

/* ── Hamburger button (always in DOM, hidden on desktop) ─ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 310;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--carbon);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
  transform-origin: center;
}

.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Full-screen overlay — always hidden unless .is-open */
.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-secondary);
  z-index: 300;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.nav-mobile-overlay.is-open { display: flex; }

.nav-mobile-overlay a {
  font-size: 28px;
  font-weight: 600;
  color: var(--carbon);
  text-decoration: none;
  padding: 12px 24px;
  letter-spacing: -.5px;
  transition: opacity .2s;
}

.nav-mobile-overlay a:hover  { opacity: .6; }
.nav-mobile-overlay a.active { color: var(--brand); }

/* ── TABLET ≤1100px ──────────────────────────────────── */
@media (max-width: 1100px) {
  .nav          { padding: 20px 40px; }
  .nav-logo-text { font-size: clamp(20px, 2.2vw, 28px); }
  .nav-links    { gap: 24px; }
  .nav-links a  { font-size: 14px; }

  footer        { padding: 40px; min-height: auto; }
  .footer-inner { width: 100%; }
}

/* ── MOBILE ≤768px ───────────────────────────────────── */
@media (max-width: 768px) {
  /* Nav: fixed, hamburger, hide links */
  .nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: 14px 20px;
    z-index: 200;
    transform: none; /* reset any inherited transform */
  }
  .nav--hidden { transform: translateY(-100%); }
  .nav-logo-text { display: none; }
  .nav-links     { display: none; }
  .nav-hamburger { display: flex; }

  /* Compensate for fixed nav (~60px) */
  body { padding-top: 60px; }

  /* Footer: single centred column */
  footer { padding: 40px 24px; }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 28px;
    text-align: center;
  }
  .footer-nav { align-items: center; }

  /* Shared section helpers */
  .section-mark span { font-size: 11px; }
  .btn-brand { font-size: 16px; padding: 13px 16px; }
}
