/* ============================================================
   STUDIO LIFE STYLE — BASE + CHROME + UTILITIES
   Section-specific styles live in dedicated files per phase.
   ============================================================ */

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

html { scroll-behavior: smooth; }
html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- A11Y ---------- */
.ca-skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 999;
  background: var(--orange); color: #111;
  padding: 12px 18px; font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  transition: top .25s var(--ease);
}
.ca-skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* ---------- UTILITIES ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: .01em;
  line-height: .92;
  text-transform: uppercase;
}
.mono { font-family: var(--font-mono); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--orange);
}
.orange { color: var(--orange); }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 2px;
  font-weight: 700; font-size: 13px;
  letter-spacing: .12em; text-transform: uppercase;
  transition: transform .25s var(--ease), background .25s var(--ease),
              color .25s var(--ease), box-shadow .25s var(--ease);
  position: relative; white-space: nowrap;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(242,140,40,.5);
}
html[data-theme="light"] .btn-primary {
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(232,123,27,.45);
}
.btn-primary:hover {
  background: var(--ink); color: #fff;
  transform: translateY(-2px);
}
.btn-ghost {
  border: 1.5px solid var(--text);
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--text);
  color: var(--bg);
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--ink); color: #fff;
  border: 1.5px solid var(--ink);
}
.btn-dark:hover {
  background: var(--orange); color: #fff; border-color: var(--orange);
}
.btn-wa {
  background: var(--green-wa); color: #fff;
}
.btn-wa:hover {
  background: var(--green-wa-2); color: #fff; transform: translateY(-2px);
}
.btn-sm { padding: 10px 16px; font-size: 11px; }
.arrow { width: 14px; height: 14px; display: inline-block; }

/* ---------- NAV (always dark) ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  background: #000;
  transition: background .35s var(--ease), padding .35s var(--ease);
}
.nav .row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav.scrolled {
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav.scrolled .row { padding: 12px 0; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 1.5px solid var(--orange);
  display: grid; place-items: center;
  position: relative; overflow: hidden;
}
.logo-mark::before {
  content: ""; position: absolute; inset: 5px; border-radius: 50%;
  border: 1px dashed rgba(232,123,27,.55);
}
.logo-mark span {
  font-family: var(--font-display);
  color: var(--orange); font-size: 18px;
  letter-spacing: .04em; line-height: 1; text-align: center;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 20px; letter-spacing: .18em; line-height: 1; color: #fff;
}
.logo-text small {
  display: block; font-family: var(--font-mono);
  font-size: 9px; letter-spacing: .32em;
  color: rgba(255,255,255,.55); margin-top: 3px;
}

.menu { display: flex; align-items: center; gap: 32px; }
.menu a,
.menu .nav__link {
  font-size: 13px; font-weight: 500; color: #fff;
  position: relative; padding: 6px 0;
}
.menu a::after,
.menu .nav__link::after {
  content: ""; position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--orange);
  transition: right .25s var(--ease);
}
.menu a:hover::after,
.menu a.is-active::after,
.menu .nav__link:hover::after,
.menu .nav__link.is-active::after { right: 0; }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-icon {
  width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,.18); border-radius: 2px;
  display: grid; place-items: center; color: #fff;
  position: relative; transition: .25s var(--ease);
}
.nav-icon:hover { background: var(--orange); border-color: var(--orange); }
.nav-icon svg {
  width: 18px; height: 18px; stroke: currentColor; fill: none;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.nav-icon .badge {
  position: absolute; top: -6px; right: -6px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 99px;
  background: var(--orange); color: #fff;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700;
  display: grid; place-items: center;
  line-height: 1;
}
.nav-icon .badge[data-count="0"] { display: none; }

.burger {
  display: none; width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,.25); border-radius: 2px;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.burger span {
  display: block; width: 18px; height: 1.5px;
  background: #fff; transition: .25s var(--ease);
}
.burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- THEME TOGGLE ---------- */
.theme-toggle {
  width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,.18); border-radius: 2px;
  display: grid; place-items: center; color: #fff;
  transition: .25s var(--ease);
}
.theme-toggle:hover {
  background: var(--orange); border-color: var(--orange);
}
.theme-toggle svg {
  width: 18px; height: 18px; stroke: currentColor; fill: none;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
html[data-theme="light"] .theme-toggle .icon-sun { display: block; }
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ---------- MOBILE MENU ---------- */
.mobile-menu {
  position: fixed; inset: 0;
  background: rgba(10,10,10,.97);
  z-index: 79;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 28px;
  transform: translateY(-100%);
  transition: transform .4s var(--ease);
  padding: 80px 24px 40px;
}
html[data-theme="light"] .mobile-menu {
  background: rgba(246,241,230,.98);
  color: var(--ink);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu a,
.mobile-menu .nav__link {
  font-family: var(--font-display);
  font-size: 36px; letter-spacing: .06em;
  color: #fff;
}
html[data-theme="light"] .mobile-menu a,
html[data-theme="light"] .mobile-menu .nav__link {
  color: var(--ink);
}

/* Body offset for fixed nav on non-home pages (when no hero) */
.has-page-hero { padding-top: 0; }

/* ---------- PAGE HERO (internal pages) ---------- */
.page-hero {
  position: relative;
  padding: 180px 0 64px;
  background: var(--bg);
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 90% 10%, rgba(232,123,27,.14), transparent 70%),
    radial-gradient(40% 40% at 5% 100%, rgba(217,163,0,.10), transparent 70%);
  pointer-events: none;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg,  rgba(255,255,255,.04) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 80px);
  opacity: .6; pointer-events: none;
}
html[data-theme="light"] .page-hero::after {
  background-image:
    repeating-linear-gradient(0deg,  rgba(20,20,20,.04) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(90deg, rgba(20,20,20,.04) 0 1px, transparent 1px 80px);
}
.page-hero .container { position: relative; z-index: 1; }

.crumbs {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--mute);
  margin-bottom: 32px;
}
.crumbs a:hover { color: var(--orange); }
.crumbs .sep { opacity: .4; }
.crumbs .here { color: var(--text); }
.page-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 128px);
  line-height: .92;
  letter-spacing: -.005em;
  color: var(--text);
  text-transform: uppercase;
}
.page-title .orange { color: var(--orange); }
.page-lede {
  max-width: 560px; margin-top: 24px;
  color: var(--mute);
  font-size: 17px; line-height: 1.6;
}

@media (max-width: 640px) {
  .page-hero { padding: 140px 0 48px; }
}

/* ---------- FOOTER ---------- */
footer.ca-footer {
  background: var(--footer-bg);
  padding: 80px 0 24px;
  color: var(--footer-text);
  border-top: 1px solid var(--footer-line);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 60px;
}
.foot-brand .logo-text { color: #fff; }
.foot-brand .logo-text small { color: var(--footer-mute); }
.foot-tag {
  font-family: var(--font-display);
  font-size: 30px; letter-spacing: .04em; line-height: 1.05;
  margin-top: 24px; color: var(--footer-text);
  max-width: 320px;
}
.foot-tag .orange { color: var(--orange); }
.foot-col h5 {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--footer-mute); margin-bottom: 18px;
}
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-col a {
  font-size: 14px; color: var(--footer-text);
  transition: .2s var(--ease);
}
.foot-col a:hover { color: var(--orange); }
.foot-bot {
  border-top: 1px solid var(--footer-line);
  padding-top: 24px;
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--footer-mute);
}

/* ---------- WHATSAPP FAB ---------- */
.fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--green-wa);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 16px 40px -10px rgba(37,211,102,.5);
  transition: .3s var(--ease);
}
.fab:hover { transform: scale(1.08); }
.fab svg { width: 30px; height: 30px; fill: #fff; }
.fab::before {
  content: ""; position: absolute; inset: -6px;
  border-radius: 50%; border: 2px solid var(--green-wa);
  opacity: .4;
  animation: fabring 2.2s infinite var(--ease);
}
@keyframes fabring {
  0% { transform: scale(.85); opacity: .5; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ---------- REVEAL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ---------- PHOTO PLACEHOLDERS ---------- */
.ph {
  position: relative; width: 100%; height: 100%;
  background-size: cover; background-position: center;
  background-repeat: no-repeat;
}
.ph-fallback {
  background:
    repeating-linear-gradient(45deg, rgba(0,0,0,.05) 0 8px, transparent 8px 16px),
    linear-gradient(135deg, var(--bg-2), var(--bg-3));
}
.ph-fallback::after {
  content: attr(data-label);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--mute);
}

/* ---------- RESPONSIVE BASE ---------- */
@media (max-width: 1024px) {
  .menu { display: none; }
  .burger { display: flex; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  :root { --container-pad: 18px; }
  .nav .row { padding: 14px 0; }
  .nav-cta .btn { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
  .logo-text small { display: none; }
}
