/* ================================================================
   CASA COLIBRÍ — main.css
   Global design system, base styles, nav, footer, lightbox
   ================================================================ */

/* ─── Fonts ────────────────────────────────────────────────── */
/* Loaded via layout.ejs <head> */

/* ─── Design Tokens ─────────────────────────────────────────── */
:root {
  --white:      #FFFFFF;
  --cream:      #FDFAF6;
  --parch:      #F5EFE5;
  --sand:       #EDE3D3;
  --terra:      #C4622D;
  --terra-lt:   #D97A44;
  --terra-pale: #FBF0E9;
  --turq:       #1D7A7F;
  --turq-lt:    #E8F4F5;
  --dusk:       #7A6A58;
  --ink:        #2A2118;
  --mid:        #5C4F3E;
  --border:     #E2D8CB;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'DM Sans', sans-serif;
}

/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--mid);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: var(--sans); }

/* ─── Typography ─────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--terra);
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
}

.eyebrow--lines::before,
.eyebrow--lines::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
  flex-shrink: 0;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.1;
  color: var(--ink);
}
h1 { font-size: clamp(52px, 7vw, 88px); }
h2 { font-size: clamp(34px, 4vw, 54px); }
h3 { font-size: clamp(22px, 2.5vw, 30px); }
h4 { font-size: clamp(18px, 2vw, 22px); }

em { font-style: italic; color: var(--terra); }

p {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--mid);
  line-height: 1.75;
}

/* ─── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
  white-space: nowrap;
  line-height: 1;
  text-decoration: none;
}

.btn-primary {
  background: var(--terra);
  color: var(--white);
  border-color: var(--terra);
}
.btn-primary:hover {
  background: var(--terra-lt);
  border-color: var(--terra-lt);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.9);
}

.btn-outline {
  background: transparent;
  color: var(--terra);
  border-color: var(--terra);
}
.btn-outline:hover {
  background: var(--terra-pale);
}

.btn-white {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
  font-size: 12px;
}
.btn-white:hover {
  background: var(--cream);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 10px;
  letter-spacing: 1.5px;
}

/* ─── Layout Utilities ───────────────────────────────────────── */
.section-pad    { padding: 80px 0; }
.section-pad-lg { padding: 108px 0; }
.section-pad-sm { padding: 56px 0; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}
.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 40px;
}

.page-content { padding-top: 80px; }

/* ─── Dividers ────────────────────────────────────────────────── */
.terra-divider {
  height: 4px;
  background: var(--terra);
  width: 100%;
  display: block;
}

/* ─── Arrow Link ─────────────────────────────────────────────── */
.arrow-link {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--terra);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.25s ease;
  text-decoration: none;
}
.arrow-link:hover { gap: 16px; }

/* ─── Scroll Fade-up ──────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.72s ease, transform 0.72s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }

/* ─── NAV ─────────────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 80px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  transition: box-shadow 0.3s ease;
}
.site-nav.scrolled {
  box-shadow: 0 2px 24px rgba(42, 33, 24, 0.07);
}

.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}

.nav-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo img {
  height: 52px;
  width: auto;
}
.nav-logo-text {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 300;
  color: var(--ink);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mid);
  transition: color 0.2s ease;
  text-decoration: none;
}
.nav-links a:hover { color: var(--terra); }
.nav-links a.active { color: var(--terra); }

.nav-cta { display: flex; justify-content: flex-end; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.3s ease;
  border-radius: 1px;
}

/* Mobile overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.nav-overlay-close {
  position: absolute;
  top: 24px; right: 32px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  padding: 8px;
  transition: color 0.2s;
}
.nav-overlay-close:hover { color: var(--white); }

.nav-overlay-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin-bottom: 48px;
}
.nav-overlay-links a {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s ease;
  text-decoration: none;
}
.nav-overlay-links a:hover { color: var(--terra-lt); }

/* ─── FOOTER ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.65);
}
.footer-main {
  padding: 80px 0 64px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.6fr;
  gap: 56px;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 20px;
  text-decoration: none;
}
.footer-brand-logo img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}
.footer-logo-text {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.5px;
}

.footer-tagline {
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,0.45);
  max-width: 264px;
}

.footer-col h5 {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--terra-lt);
  margin-bottom: 22px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col ul li a {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s ease;
  text-decoration: none;
}
.footer-col ul li a:hover { color: var(--white); }

.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-contact-item a {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
  text-decoration: none;
}
.footer-contact-item a:hover { color: var(--white); }

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}
.footer-social {
  display: flex;
  gap: 18px;
  align-items: center;
}
.footer-social a {
  color: rgba(255,255,255,0.45);
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.footer-social a:hover { color: var(--white); }
.footer-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ─── Lightbox ─────────────────────────────────────────────────── */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 14, 6, 0.94);
}
.lb-container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 90vw;
  max-height: 90vh;
}
.lb-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-img {
  max-width: 78vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 2px;
  display: block;
}
.lb-close {
  position: fixed;
  top: 20px; right: 28px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  color: var(--white);
  font-size: 22px;
  width: 44px; height: 44px;
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}
.lb-close:hover { background: rgba(255,255,255,0.15); }
.lb-prev, .lb-next {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  font-size: 20px;
  width: 48px; height: 48px;
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.14); }
.lb-caption {
  position: fixed;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  text-align: center;
  white-space: nowrap;
}
.lb-counter {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.38);
}

/* ─── Page Hero (inner pages) ────────────────────────────────── */
.page-hero {
  position: relative;
  height: 420px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.page-hero-bg {
  position: absolute;
  inset: -10%;
  background-size: cover;
  background-position: center;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,14,6,0.65) 0%, rgba(20,14,6,0.18) 70%);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 0 64px;
  width: 100%;
}
.page-hero-content .eyebrow { color: rgba(255,255,255,0.7); margin-bottom: 14px; }
.page-hero-content h1 {
  color: var(--white);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 300;
}

/* ─── Responsive: Global ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .container, .container-wide, .container-narrow { padding: 0 28px; }
  .nav-inner { padding: 0 28px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
  .footer-grid .footer-col:last-child { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav-inner { grid-template-columns: 1fr auto; gap: 16px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-grid .footer-col:first-child { grid-column: 1 / -1; }
  .footer-grid .footer-col:last-child { grid-column: 1 / -1; }

  .section-pad    { padding: 60px 0; }
  .section-pad-lg { padding: 80px 0; }
  .section-pad-sm { padding: 40px 0; }

  .page-hero { height: 320px; }
  .lb-img { max-width: 92vw; }
  .lb-prev, .lb-next { display: none; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 16px; }
  .btn { padding: 13px 22px; }
}
