/* ===== AWAFI — Shared Styles (v3 — Sans, no italics, square buttons) ===== */

@import url('https://api.fontshare.com/v2/css?f[]=general-sans@300,400,500,600,700&f[]=jetbrains-mono@400,500&display=swap');

:root {
  --ink: #1A1F1B;
  --ink-2: #2A302C;
  --paper: #F5F2EC;
  --paper-2: #EAE6DC;
  --paper-3: #DCD6C7;
  --sage: #8FA391;
  --sage-deep: #4A5D4F;
  --line: rgba(26, 31, 27, 0.12);
  --line-soft: rgba(26, 31, 27, 0.06);

  --accent: #C4D2C6;
  --accent-soft: #C4D2C6;
  --accent-deep: #4A5D4F;

  --font-display: 'General Sans', ui-sans-serif, system-ui, sans-serif;
  --font-sans: 'General Sans', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

  --pad-x: clamp(20px, 4vw, 64px);
  --max-w: 1440px;

  --btn-radius: 6px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*::selection { background: var(--ink); color: var(--paper); }

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
}

html { scroll-behavior: smooth; }

/* Kill italics globally */
em, i { font-style: normal; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

.serif { font-family: var(--font-sans); font-weight: 500; letter-spacing: -0.015em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  opacity: 0.6;
}

/* Nav - Floating Style */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--pad-x);
  transition: all 0.4s var(--ease-out-expo);
}

/* Floating state - activated on scroll */
.nav.floating {
  top: 16px;
  left: var(--pad-x);
  right: var(--pad-x);
  max-width: calc(var(--max-w) - 120px);
  margin: 0 auto;
  padding: 14px 40px;
  background: rgba(245, 242, 236, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 999px; /* Full pill shape */
  border: 1px solid var(--line);
  box-shadow: 0 10px 40px rgba(26, 31, 27, 0.12),
              0 4px 12px rgba(26, 31, 27, 0.06),
              0 2px 4px rgba(26, 31, 27, 0.04);
}

.nav.on-dark { color: var(--paper); }
.nav.on-dark.floating {
  background: rgba(26, 31, 27, 0.95);
  border-color: rgba(245,242,236,0.15);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3),
              0 4px 12px rgba(0, 0, 0, 0.15),
              0 2px 4px rgba(0, 0, 0, 0.08);
}

/* Floating nav - adjust logo and links */
.nav.floating .logo {
  font-size: 20px; /* Slightly smaller when floating */
}

.nav.floating .nav-links a {
  font-size: 13px; /* Slightly smaller when floating */
  padding: 6px 0;
}

.nav.floating .nav-cta {
  padding: 8px 12px;
  font-size: 12px;
}

.logo {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.005em;
  position: relative;
  padding: 4px 0;
  transition: opacity 0.3s;
  opacity: 0.65;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-links a.active::after {
  content: ''; position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px; background: currentColor;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--btn-radius);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s var(--ease-out-expo);
}
.nav.on-dark .nav-cta { border-color: rgba(245,242,236,0.25); }
.nav-cta:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.nav.on-dark .nav-cta:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.nav-cta .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--sage);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }

  /* Adjust floating nav for mobile */
  .nav.floating {
    top: 12px;
    left: 16px;
    right: 16px;
    padding: 12px 20px;
    border-radius: 999px; /* Keep pill shape on mobile */
    max-width: 100%;
  }

  .nav.floating .logo {
    font-size: 18px;
  }

  .nav.floating .nav-cta {
    font-size: 11px;
    padding: 7px 10px;
  }
}

/* Buttons - rectangular */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: var(--btn-radius);
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: -0.005em;
  transition: all 0.3s var(--ease-out-expo);
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--sage-deep); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-paper { background: var(--paper); color: var(--ink); }

.btn-arrow {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px;
  transition: transform 0.4s var(--ease-out-expo);
}
.btn:hover .btn-arrow { transform: translateX(3px); }

/* Footer */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 80px var(--pad-x) 32px;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-top {
  font-family: var(--font-sans);
  font-size: clamp(40px, 7vw, 96px);
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin-bottom: 60px;
}
.footer-top .stroke {
  -webkit-text-stroke: 1px var(--paper);
  color: transparent;
  font-weight: 500;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid rgba(245, 242, 236, 0.12);
  border-bottom: 1px solid rgba(245, 242, 236, 0.12);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 14px;
  opacity: 0.5;
  font-weight: 400;
}
.footer-col p, .footer-col a {
  font-size: 13px;
  line-height: 1.7;
  opacity: 0.75;
  display: block;
}
.footer-col a:hover { opacity: 1; }
.footer-bottom {
  display: flex; justify-content: space-between;
  padding-top: 24px;
  font-size: 11px;
  font-family: var(--font-mono);
  opacity: 0.5;
  flex-wrap: wrap; gap: 12px;
  letter-spacing: 0.05em;
}

/* Section utilities */
.section { padding: clamp(80px, 11vw, 160px) var(--pad-x); position: relative; }
.section-head {
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: end;
  gap: 32px;
  margin-bottom: 64px;
  max-width: var(--max-w);
  margin-left: auto; margin-right: auto;
}
.section-title {
  font-family: var(--font-sans);
  font-size: clamp(32px, 4.5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 500;
  max-width: 18ch;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--btn-radius);
  color: var(--ink);
  font-weight: 400;
}
.tag .led {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sage);
}
.tag.on-dark { color: var(--paper); border-color: rgba(245,242,236,0.2); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo); }
.reveal.in { opacity: 1; transform: none; }

/* Hero Text Animation - Word by Word */
.hero-title {
  opacity: 1;
}

.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(25px);
  animation: wordReveal 0.8s var(--ease-out-expo) forwards;
}

@keyframes wordReveal {
  0% {
    opacity: 0;
    transform: translateY(25px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger animation for hero elements */
.hero-animate-1 {
  opacity: 0;
  transform: translateY(40px);
  animation: heroTextReveal 1.2s var(--ease-out-expo) forwards;
  animation-delay: 0.2s;
}
.hero-animate-2 {
  opacity: 0;
  transform: translateY(40px);
  animation: heroTextReveal 1.2s var(--ease-out-expo) forwards;
  animation-delay: 0.4s;
}
.hero-animate-3 {
  opacity: 0;
  transform: translateY(40px);
  animation: heroTextReveal 1.2s var(--ease-out-expo) forwards;
  animation-delay: 0.6s;
}
.hero-animate-4 {
  opacity: 0;
  transform: translateY(40px);
  animation: heroTextReveal 1.2s var(--ease-out-expo) forwards;
  animation-delay: 0.8s;
}

@keyframes heroTextReveal {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Marquee */
.marquee {
  display: flex;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}
.marquee-track {
  display: flex; gap: 48px;
  padding: 18px 0;
  animation: marquee 50s linear infinite;
  white-space: nowrap;
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 48px; }
.marquee-track .star { opacity: 0.4; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* Loader */
.loader {
  position: fixed; inset: 0;
  background: var(--ink);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  color: var(--paper);
  pointer-events: none;
}
.loader.gone { transform: translateY(-100%); transition: transform 1.1s var(--ease-out-expo); }
.loader-text {
  font-family: var(--font-sans);
  font-size: clamp(48px, 12vw, 140px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--ink); border-radius: 4px; }

/* Page hero shared */
.page-hero {
  padding: 140px var(--pad-x) 80px;
  position: relative;
}
.page-hero-inner { max-width: var(--max-w); margin: 0 auto; }
.breadcrumbs {
  display: flex; gap: 8px; align-items: center;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  opacity: 0.5; margin-bottom: 28px;
}
.ph-title {
  font-family: var(--font-sans);
  font-size: clamp(40px, 6vw, 75px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 500;
  max-width: 100%;
}
.ph-title .stroke { -webkit-text-stroke: 1px currentColor; color: transparent; }


/* ============================================================
   FLOATING — WhatsApp button + curvy floating menu
   ============================================================ */

/* WhatsApp FAB (right) */
.fab-whatsapp {
  position: fixed;
  right: clamp(16px, 2.4vw, 28px);
  bottom: clamp(20px, 3vw, 36px);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  z-index: 80;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.34), 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s;
  cursor: pointer;
}
.fab-whatsapp:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 10px 28px rgba(37, 211, 102, 0.42); }
.fab-whatsapp::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0;
  animation: fab-ping 2.4s var(--ease-out-expo) infinite;
}
@keyframes fab-ping {
  0%   { transform: scale(1);    opacity: 0.55; }
  70%  { transform: scale(1.6);  opacity: 0; }
  100% { transform: scale(1.6);  opacity: 0; }
}
.fab-whatsapp svg { width: 26px; height: 26px; }
.fab-whatsapp .fab-tip {
  position: absolute; right: calc(100% + 12px);
  top: 50%; transform: translateY(-50%) translateX(8px);
  background: var(--ink); color: var(--paper);
  font-family: var(--font-sans); font-size: 12px;
  font-weight: 500; letter-spacing: -0.01em;
  padding: 8px 14px; border-radius: 6px;
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease-out-expo);
}
.fab-whatsapp .fab-tip::after {
  content: ''; position: absolute;
  right: -4px; top: 50%; transform: translateY(-50%) rotate(45deg);
  width: 8px; height: 8px; background: var(--ink);
}
.fab-whatsapp:hover .fab-tip { opacity: 1; transform: translateY(-50%) translateX(0); }
@media (max-width: 600px) { .fab-whatsapp .fab-tip { display: none; } }

/* Curvy floating menu — appears on scroll, with concave side cuts */
.float-nav {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(140%);
  z-index: 75;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 56px;
  display: flex; align-items: center; gap: 6px;
  /* concave side cuts via inverted radial mask on left and right */
  -webkit-mask-image:
    radial-gradient(circle 22px at 0 50%, transparent 22px, black 23px),
    radial-gradient(circle 22px at 100% 50%, transparent 22px, black 23px);
  -webkit-mask-composite: source-in;
          mask-image:
    radial-gradient(circle 22px at 0 50%, transparent 22px, black 23px),
    radial-gradient(circle 22px at 100% 50%, transparent 22px, black 23px);
          mask-composite: intersect;
  border-radius: 999px;
  transition: transform 0.5s var(--ease-out-expo), opacity 0.4s;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 10px 40px rgba(0,0,0,0.18);
}
.float-nav.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.float-nav a {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--paper);
  padding: 8px 16px;
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
  opacity: 0.7;
  transition: opacity 0.25s, background 0.25s, color 0.25s;
  white-space: nowrap;
}
.float-nav a:hover { opacity: 1; }
.float-nav a.active {
  opacity: 1;
  background: var(--paper);
  color: var(--ink);
}
.float-nav .fn-divider {
  width: 1px; height: 18px;
  background: rgba(245,242,236,0.18);
  margin: 0 4px;
}
.float-nav .fn-cta {
  background: var(--sage-deep);
  color: var(--paper);
  opacity: 1;
  padding: 8px 16px;
}
.float-nav .fn-cta:hover { background: var(--sage); color: var(--ink); }

@media (max-width: 700px) {
  .float-nav { padding: 8px 44px; gap: 2px; }
  .float-nav a { padding: 6px 10px; font-size: 12px; }
  .float-nav .fn-divider { display: none; }
}
