/* ═══════════════════════════════════════════════════════════════
   ELVIS KIDAGISA — DESIGN SYSTEM v3
   Mobile-first · Navy/Gold/Teal · Playfair + DM Sans
   Breakpoints: 320 | 768 | 1024 | 1440
═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  /* Colors */
  --navy:        #0F172A;
  --navy-mid:    #1E293B;
  --navy-light:  #334155;
  --teal:        #0D9488;
  --teal-light:  #14B8A6;
  --teal-pale:   #CCFBF1;
  --gold:        #F59E0B;
  --gold-light:  #FBBF24;
  --gold-pale:   #FEF3C7;
  --cream:       #F8FAFC;
  --white:       #FFFFFF;
  --text:        #0F172A;
  --text-muted:  #475569;
  --border:      rgba(15,23,42,0.09);

  /* Spacing scale */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  6rem;

  /* Nav height */
  --nav-h: 68px;

  /* Easing */
  --ease:        cubic-bezier(0.25,0.46,0.45,0.94);
  --ease-spring: cubic-bezier(0.16,1,0.3,1);

  /* Section padding — fluid */
  --section-py: clamp(3rem, 8vw, 6rem);

  /* Max content line length */
  --measure: 65ch;
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Reduce motion — respect user preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

img  { max-width: 100%; height: auto; display: block; }
a    { text-decoration: none; color: inherit; }
svg  { display: block; }
button { font-family: inherit; }

/* ── TYPOGRAPHY SCALE ────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.12;
  color: var(--navy);
}

/* Fluid type scale using clamp(min, preferred, max) */
.t-hero  { font-size: clamp(2rem,    6.5vw, 5rem);    font-weight: 500; }
.t-h1    { font-size: clamp(1.75rem, 4.5vw, 3.5rem);  font-weight: 500; }
.t-h2    { font-size: clamp(1.5rem,  3.5vw, 2.75rem); font-weight: 500; }
.t-h3    { font-size: clamp(1.1rem,  2vw,   1.4rem);  font-weight: 600; }
.t-lead  { font-size: clamp(0.95rem, 1.8vw, 1.05rem); font-weight: 300; color: var(--text-muted); }
.t-body  { font-size: clamp(0.88rem, 1.5vw, 0.95rem); line-height: 1.8; }
.t-sm    { font-size: clamp(0.75rem, 1.2vw, 0.82rem); }
.t-label { font-size: clamp(0.6rem,  1vw,   0.68rem); font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; }

/* Constrain prose line length */
.prose { max-width: var(--measure); }

/* ── CONTAINER ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  /* Mobile-first padding */
  padding-inline: var(--space-sm);
}
@media (min-width: 768px)  { .container { padding-inline: var(--space-md); } }
@media (min-width: 1024px) { .container { padding-inline: var(--space-lg); } }
@media (min-width: 1440px) { .container { padding-inline: var(--space-xl); } }

/* ── SECTION SPACING ─────────────────────────────────────────── */
.section-pad { padding-block: var(--section-py); }

/* ── GRID TEXTURE ────────────────────────────────────────────── */
.grid-texture {
  background-image:
    linear-gradient(rgba(245,158,11,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,158,11,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ── SECTION LABEL ───────────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--space-sm);
}
.section-label::before {
  content: '';
  width: 22px;
  height: 1.5px;
  background: currentColor;
  flex-shrink: 0;
}
.section-label.gold  { color: var(--gold); }
.section-label.white { color: rgba(255,255,255,0.5); }

/* ── BUTTONS ─────────────────────────────────────────────────── */
/* Base — min 44px touch target */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 clamp(1.25rem, 3vw, 1.75rem);
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(0.7rem, 1.3vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  text-decoration: none;
}
.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.btn:active { transform: scale(0.98); }

.btn-gold {
  background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 50%, #F59E0B 100%);
  background-size: 200%;
  color: var(--navy);
  animation: goldShimmer 3s infinite;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(245,158,11,0.35); }

.btn-outline {
  background: transparent;
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-outline:hover { border-color: rgba(13,148,136,0.6); color: var(--teal-light); transform: translateY(-1px); }

.btn-teal {
  background: var(--teal);
  color: white;
}
.btn-teal:hover { background: var(--teal-light); transform: translateY(-1px); }

.btn-outline-dark {
  background: transparent;
  color: rgba(15,23,42,0.65);
  border: 1px solid rgba(15,23,42,0.15);
}
.btn-outline-dark:hover { border-color: var(--teal); color: var(--teal); }

@keyframes goldShimmer {
  0%,100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* ── BADGE ───────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(245,158,11,0.3);
  background: rgba(245,158,11,0.06);
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 3px;
}

/* ── PULSE DOT ───────────────────────────────────────────────── */
.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0%,100% { box-shadow: 0 0 0 0 rgba(13,148,136,0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(13,148,136,0); }
}

/* ── SCROLL REVEAL ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── PROGRESS BAR ────────────────────────────────────────────── */
#progress-bar {
  position: fixed; top: 0; left: 0; z-index: 10000;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ── PORTRAIT / IMAGE FRAME ──────────────────────────────────── */
.portrait-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, var(--navy-mid), var(--navy));
  border-radius: 4px;
}
.portrait-frame img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  transition: transform 7s var(--ease);
}
.portrait-frame:hover img { transform: scale(1.04); }
.portrait-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.88) 0%, rgba(15,23,42,0.2) 55%, transparent 100%);
}

/* Aspect-ratio image containers (no fixed heights) */
.ratio-portrait { aspect-ratio: 4 / 5; }
.ratio-landscape{ aspect-ratio: 16 / 9; }
.ratio-square   { aspect-ratio: 1 / 1; }
.ratio-card     { aspect-ratio: 3 / 2; }
.ratio-hero     { aspect-ratio: 3 / 4; }

/* ── GLOWS ───────────────────────────────────────────────────── */
.teal-glow { box-shadow: 0 0 60px rgba(13,148,136,0.22); }
.gold-glow  { box-shadow: 0 0 60px rgba(245,158,11,0.20); }

/* ── PAGE HERO (inner pages) ─────────────────────────────────── */
.page-hero {
  position: relative;
  background: var(--navy);
  overflow: hidden;
  padding-top: var(--nav-h);
  display: flex;
  align-items: flex-end;
  min-height: 44vh;
}
.page-hero .hero-content {
  position: relative; z-index: 2;
  padding: clamp(2.5rem,6vw,4rem) 0 clamp(3rem,7vw,4.5rem);
}
@media (min-width: 768px) { .page-hero { min-height: 50vh; } }

/* ── MARQUEE ─────────────────────────────────────────────────── */
.marquee-wrap {
  overflow: hidden;
  background: var(--teal);
  padding: 0.9rem 0;
}
.marquee-track {
  display: flex;
  gap: clamp(2rem, 5vw, 4rem);
  white-space: nowrap;
  animation: marqueeScroll 30s linear infinite;
  will-change: transform;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  font-size: clamp(0.55rem, 1.3vw, 0.68rem);
  font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.85); flex-shrink: 0;
}
.marquee-sep { color: rgba(255,255,255,0.3); flex-shrink: 0; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── SCROLLBAR ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 2px; }

/* ── WHATSAPP FLOAT ──────────────────────────────────────────── */
#wa-float {
  position: fixed;
  bottom: clamp(16px, 4vw, 28px);
  right: clamp(16px, 4vw, 28px);
  z-index: 500;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,0.4);
  transition: transform 0.2s var(--ease);
  text-decoration: none;
}
#wa-float:hover { transform: scale(1.08); }
#wa-float svg   { width: 26px; height: 26px; fill: white; }
/* Tooltip — desktop only */
@media (min-width: 768px) {
  #wa-float::before {
    content: 'Chat with Elvis';
    position: absolute; right: 62px; top: 50%; transform: translateY(-50%);
    background: var(--navy); color: white;
    font-size: 0.7rem; font-weight: 600; white-space: nowrap;
    padding: 6px 12px; border-radius: 3px;
    opacity: 0; pointer-events: none; transition: opacity 0.2s;
  }
  #wa-float:hover::before { opacity: 1; }
}

/* ── ACCESSIBILITY ───────────────────────────────────────────── */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
/* Skip to content */
.skip-link {
  position: absolute; top: -100%; left: var(--space-sm);
  background: var(--gold); color: var(--navy);
  padding: 8px 16px; font-weight: 700; border-radius: 3px;
  z-index: 10001;
  transition: top 0.2s;
}
.skip-link:focus { top: var(--space-sm); }

/* ── UTILITY ─────────────────────────────────────────────────── */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ─────────────────────────────────────────────────────────────
   NAVIGATION — full-screen mobile panel
───────────────────────────────────────────────────────────── */
#site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(15,23,42,0.95);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid rgba(245,158,11,0.07);
  transition: box-shadow 0.3s;
}
#site-nav.scrolled { box-shadow: 0 4px 40px rgba(0,0,0,0.4); }

.nav-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-sm);
}

/* Brand */
.nav-brand {
  display: flex; align-items: center;
  gap: clamp(8px, 1.5vw, 12px);
  text-decoration: none; flex-shrink: 0;
  min-height: 44px; /* touch target */
}
.brand-mono {
  width: 36px; height: 36px; border-radius: 2px; flex-shrink: 0;
  background: linear-gradient(135deg,#F59E0B 0%,#FBBF24 50%,#F59E0B 100%);
  background-size: 200%; animation: goldShimmer 3s infinite;
  display: flex; align-items: center; justify-content: center;
}
.brand-mono span {
  font-family: 'Playfair Display',serif; font-weight: 700;
  color: #0F172A; font-size: 0.82rem;
}
.brand-name {
  font-family: 'Playfair Display',serif; font-weight: 600;
  color: white; font-size: clamp(0.82rem,1.8vw,0.95rem);
  line-height: 1.2;
}
.brand-sub {
  font-size: 0.52rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: #14B8A6; margin-top: 1px;
  display: none; /* hidden on mobile — saves space */
}
@media (min-width: 400px) { .brand-sub { display: block; } }

/* Desktop links */
.nav-links {
  display: none;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
@media (min-width: 900px) { .nav-links { display: flex; } }

.nav-link {
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  text-decoration: none; position: relative; padding-bottom: 3px;
  transition: color 0.2s;
  white-space: nowrap;
  min-height: 44px; display: inline-flex; align-items: center;
}
.nav-link::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.3s var(--ease);
}
.nav-link:hover, .nav-link.active { color: rgba(255,255,255,0.92); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Nav right */
.nav-right {
  display: flex; align-items: center; gap: var(--space-xs);
}
.nav-cta {
  display: none;
  font-size: 0.68rem !important; padding-inline: 18px !important;
}
@media (min-width: 900px) { .nav-cta { display: inline-flex; } }

/* Hamburger */
.hamburger {
  display: flex; flex-direction: column; justify-content: center;
  gap: 5px; align-items: flex-end;
  background: none; border: none; cursor: pointer;
  padding: 10px 6px; /* 44px touch area */
  min-width: 44px; min-height: 44px;
}
.ham-line {
  display: block; width: 22px; height: 1.5px;
  background: rgba(255,255,255,0.7);
  transition: all 0.3s var(--ease); border-radius: 1px;
}
.ham-line:nth-child(3) { width: 14px; }
.hamburger[aria-expanded="true"] .ham-line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); width: 22px; }
.hamburger[aria-expanded="true"] .ham-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger[aria-expanded="true"] .ham-line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); width: 22px; }

@media (min-width: 900px) { .hamburger { display: none; } }

/* Mobile panel — full screen */
.mobile-panel {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  z-index: 999;
  background: rgba(8,14,26,0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--space-md);
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s var(--ease), visibility 0.3s, transform 0.3s var(--ease);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-panel.open {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.mobile-nav-links {
  display: flex; flex-direction: column; gap: var(--space-xs);
  margin-bottom: var(--space-md);
}
.mobile-nav-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(14px,3vw,18px) 0;
  font-family: 'Playfair Display',serif;
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 500; color: rgba(255,255,255,0.5);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s, padding-left 0.2s;
}
.mobile-nav-link:hover { color: white; padding-left: 8px; }
.mobile-nav-link .arrow { font-size: 0.9rem; opacity: 0.3; }
.mobile-panel-footer {
  display: flex; flex-direction: column; gap: var(--space-xs);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.07);
}
.mobile-panel-info {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.2);
}

@media (min-width: 900px) { .mobile-panel { display: none !important; } }

/* ─────────────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────────────── */
.site-footer { background: #050D16; border-top: 1px solid rgba(245,158,11,0.07); }
.footer-inner { padding-block: clamp(3rem,8vw,5rem) 2rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-bottom: clamp(2rem,5vw,3.5rem);
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand-col { display: flex; flex-direction: column; gap: var(--space-sm); }

.footer-logo-wrap {
  display: inline-flex; align-items: center; gap: 11px; text-decoration: none;
}
.footer-mono {
  width: 40px; height: 40px; border-radius: 2px; flex-shrink: 0;
  background: linear-gradient(135deg,#F59E0B,#FBBF24,#F59E0B);
  background-size: 200%; animation: goldShimmer 3s infinite;
  display: flex; align-items: center; justify-content: center;
}
.footer-mono span { font-family:'Playfair Display',serif; font-weight:700; color:#0F172A; font-size:0.88rem; }
.footer-brand-name { font-family:'Playfair Display',serif; font-weight:600; color:white; font-size:1rem; }
.footer-brand-sub  { font-size:0.52rem; font-weight:700; letter-spacing:0.16em; text-transform:uppercase; color:#14B8A6; }

.footer-bio { font-size:0.82rem; color:rgba(255,255,255,0.28); line-height:1.85; max-width:28ch; }

.footer-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(13,148,136,0.2); background: rgba(13,148,136,0.05);
  padding: 7px 12px; border-radius: 3px;
  font-size:0.6rem; font-weight:700; letter-spacing:0.14em; text-transform:uppercase; color:#0D9488;
  width: fit-content;
}

.footer-socials { display:flex; flex-wrap:wrap; gap:8px; }
.social-icon {
  width:34px; height:34px; border-radius:4px;
  border:1px solid rgba(255,255,255,0.08); background:rgba(255,255,255,0.03);
  display:flex; align-items:center; justify-content:center;
  color:rgba(255,255,255,0.4); text-decoration:none;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
  min-width:34px; /* touch target supplemented by padding */
}
.social-icon:hover {
  background:rgba(13,148,136,0.14); border-color:rgba(13,148,136,0.35);
  color:#14B8A6; transform:translateY(-2px);
}
.social-wa { background:rgba(37,211,102,0.08); border-color:rgba(37,211,102,0.2); color:#25D366; }
.social-wa:hover { background:rgba(37,211,102,0.18); border-color:rgba(37,211,102,0.4); color:#25D366; }

.footer-col-title {
  font-size:0.6rem; font-weight:700; letter-spacing:0.2em; text-transform:uppercase;
  color:rgba(255,255,255,0.2); margin-bottom:var(--space-sm);
}
.footer-links { list-style:none; display:flex; flex-direction:column; gap:9px; }
.footer-links a {
  font-size:0.82rem; color:rgba(255,255,255,0.32); text-decoration:none;
  transition:color 0.2s, padding-left 0.2s;
  display:inline-block; padding-block:2px; /* better touch target */
}
.footer-links a:hover { color:rgba(255,255,255,0.78); padding-left:4px; }

.footer-contact { display:flex; flex-direction:column; gap:9px; font-size:0.82rem; color:rgba(255,255,255,0.28); line-height:1.7; }
.footer-email { color:#0D9488 !important; }
.footer-phone { color:#25D366 !important; }

.footer-divider { height:1px; background:rgba(255,255,255,0.05); margin-bottom:1.75rem; }
.footer-bottom {
  display:flex; flex-wrap:wrap; align-items:center;
  justify-content:space-between; gap:var(--space-xs);
}
.footer-bottom p { font-size:0.7rem; color:rgba(255,255,255,0.15); }