/* ============================================================
   Manukai — one-pager styles
   ============================================================ */

:root{
  --bg:#06212c;
  --bg-2:#082a37;
  --bg-hero-b:#020c12;
  --space-black:#020206; /* matches the near-black space in hero.jpg */
  --cyan:#3cc0f0;
  --cyan-soft:#8fdcf6;
  --coral:#f0436a;
  --coral-soft:#ff6b8a;
  --text:#eaf4f8;
  --muted:#9db8c4;
  --bar:#5bd4f2;
  --line:rgba(255,255,255,.09);
  --card:rgba(255,255,255,.035);

  --nav-h:72px;
  --maxw:1180px;
  --radius:10px;
}

/* ---------------- Reset / base ---------------- */
*{ box-sizing:border-box; margin:0; padding:0; }

html{
  scroll-behavior:smooth;
  scroll-padding-top:var(--nav-h);
  -webkit-text-size-adjust:100%;
}

body{
  font-family:'Epilogue', system-ui, -apple-system, sans-serif;
  background:var(--bg);
  color:var(--text);
  font-weight:400;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

img{ max-width:100%; display:block; }

a{ color:inherit; text-decoration:none; }

.container{
  width:100%;
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 clamp(20px,5vw,48px);
}

/* Visible focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible{
  outline:2px solid var(--cyan);
  outline-offset:2px;
  border-radius:4px;
}

/* ---------------- Buttons ---------------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5em;
  font-family:inherit;
  font-size:.98rem;
  font-weight:600;
  letter-spacing:.01em;
  padding:.78em 1.5em;
  border-radius:var(--radius);
  border:1px solid transparent;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, color .18s ease, border-color .18s ease, background .18s ease;
  white-space:nowrap;
}

.btn-primary{
  background:var(--coral);
  color:#fff;
  border-color:var(--coral);
}
.btn-primary:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 24px -8px rgba(240,67,106,.65);
}

.btn-ghost{
  background:transparent;
  color:var(--text);
  border:1px solid var(--line);
}
.btn-ghost:hover{
  border-color:var(--cyan);
  color:var(--cyan);
}

/* ---------------- Nav ---------------- */
.nav{
  position:fixed;
  top:0; left:0; right:0;
  height:var(--nav-h);
  z-index:1000;
  background:rgba(6,33,44,.55);
  backdrop-filter:blur(16px) saturate(150%);
  -webkit-backdrop-filter:blur(16px) saturate(150%);
  border-bottom:1px solid var(--line);
  transition:box-shadow .25s ease;
}
.nav.scrolled{ box-shadow:0 10px 30px -12px rgba(0,0,0,.55); }

.nav-inner{
  height:100%;
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 clamp(20px,5vw,48px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.brand{ display:flex; align-items:center; }
.brand-logo{ height:39px; width:auto; }

.nav-links{
  display:flex;
  align-items:center;
  gap:30px;
}

.nav-link{
  position:relative;
  font-size:.96rem;
  font-weight:400;
  color:var(--text);
  padding:4px 0;
}
.nav-link::after{
  content:"";
  position:absolute;
  left:0; bottom:-2px;
  width:0; height:2px;
  background:var(--cyan);
  transition:width .22s ease;
}
.nav-link:hover{ color:var(--cyan-soft); }
.nav-link:hover::after{ width:100%; }

.nav-cta{ padding:.6em 1.2em; }

.nav-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:42px; height:42px;
  background:transparent;
  border:none;
  cursor:pointer;
}
.nav-toggle span{
  display:block;
  width:24px; height:2px;
  background:var(--text);
  border-radius:2px;
  transition:transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero{
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:center;
  /* Matches the near-black space of hero.jpg so the image edges are seamless */
  background:var(--space-black);
  overflow:hidden;
  padding-top:var(--nav-h);
}
/* Hero background: Earth image fills the section, anchored bottom-right so
   the globe sits lower-right and the empty space fills the rest (no gap above). */
.hero-bg{
  position:absolute; inset:0;
  background-color:var(--space-black);
  background-image:url('../assets/hero.jpg');
  background-repeat:no-repeat;
  background-position:right bottom;
  background-size:cover;
}
/* Left-darkening scrim keeps the text on near-black while the globe and the
   bright cards on the right stay visible. */
.hero-scrim{
  position:absolute; inset:0;
  background:linear-gradient(90deg, rgba(2,2,6,.95) 0%, rgba(2,2,6,.82) 26%, rgba(2,2,6,.35) 44%, rgba(2,2,6,0) 56%);
}
.hero-inner{ position:relative; z-index:2; }
.hero-content{ max-width:430px; }

.hero-headline{
  font-weight:600;
  letter-spacing:-.02em;
  line-height:1.08;
  font-size:clamp(2.1rem,4.4vw,3.25rem);
  margin-bottom:.5em;
}
.hero-headline .line-1{ display:block; color:var(--coral); }
.hero-headline .line-2{ display:block; color:var(--coral-soft); }

.hero-lead{
  font-size:1.22rem;
  font-weight:400;
  color:var(--text);
  margin-bottom:.7em;
}
.hero-sub{
  font-size:1.02rem;
  font-weight:300;
  color:var(--muted);
  margin-bottom:1.8em;
}
.hero-cta{ display:flex; flex-wrap:wrap; gap:14px; }

/* ---------------- Sections ---------------- */
.section{
  position:relative;
  padding:clamp(64px,9vw,116px) 0;
  background:var(--bg);
}
.section-alt{ background:var(--bg-2); }
/* Signature deck cue: thin accent line atop alternating sections */
.section-alt::before{
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  height:2px;
  background:linear-gradient(90deg, var(--bar), transparent);
}

.eyebrow{
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.16em;
  color:var(--cyan);
  font-weight:600;
  margin-bottom:1em;
}

.section-title{
  font-weight:400;
  color:var(--cyan);
  letter-spacing:-.01em;
  line-height:1.15;
  font-size:clamp(2rem,4.2vw,3.1rem);
  margin-bottom:.5em;
  max-width:18ch;
}

.lead{
  font-size:1.12rem;
  font-weight:300;
  color:var(--muted);
  max-width:62ch;
  margin-bottom:2.6em;
}

/* ---------------- Cards ---------------- */
.cards{ display:grid; gap:24px; }
.cards-3{ grid-template-columns:repeat(3,1fr); }
.cards-2{ grid-template-columns:repeat(2,1fr); }

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:16px;
  padding:30px;
}

.card-title{
  font-size:1.22rem;
  font-weight:600;
  margin-bottom:.5em;
  letter-spacing:-.01em;
}
.card-title.cyan{ color:var(--cyan); }

.card-body{
  font-size:1rem;
  font-weight:300;
  color:var(--muted);
}

.icon-tile{
  width:46px; height:46px;
  display:flex; align-items:center; justify-content:center;
  border-radius:12px;
  margin-bottom:18px;
}
.icon-tile svg{ width:24px; height:24px; }
.icon-coral{ background:rgba(240,67,106,.14); color:var(--coral-soft); }
.icon-cyan{ background:rgba(60,192,240,.13); color:var(--cyan); }

.benefit-card{ transition:transform .2s ease, border-color .2s ease; }
.benefit-card:hover{ transform:translateY(-4px); border-color:rgba(60,192,240,.5); }

/* Industries: icon left, text right */
.industry-card{
  display:flex;
  gap:20px;
  align-items:flex-start;
  transition:transform .2s ease, border-color .2s ease;
}
.industry-card:hover{ transform:translateY(-4px); border-color:rgba(60,192,240,.5); }
.industry-card .icon-tile{ flex:0 0 auto; margin-bottom:0; }
.industry-card .card-title{ color:var(--text); }

/* ---------------- Mid CTA band ---------------- */
.mid-cta{
  background:
    radial-gradient(80% 180% at 30% 50%, rgba(240,67,106,.16) 0%, rgba(240,67,106,0) 60%),
    var(--bg);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:clamp(44px,6vw,68px) 0;
}
.mid-cta-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  flex-wrap:wrap;
}
.mid-cta-heading{
  font-size:clamp(1.5rem,3vw,2.1rem);
  font-weight:500;
  line-height:1.25;
  letter-spacing:-.01em;
}
.mid-cta-heading strong{ color:var(--coral); font-weight:700; }

/* ---------------- About ---------------- */
.about-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr;
  gap:48px;
  align-items:start;
}

.pull-quote{
  font-size:1.32rem;
  font-weight:400;
  color:var(--text);
  line-height:1.5;
  border-left:3px solid var(--coral);
  padding-left:22px;
  margin-bottom:1.4em;
}
.about-narrative .card-body{ margin-bottom:1.2em; font-size:1.04rem; }
.about-narrative strong{ color:var(--text); font-weight:600; }

.partners-panel{ padding:32px; }
.panel-heading{
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:.74rem;
  font-weight:600;
  color:var(--muted);
  margin-bottom:22px;
}
.partner{ padding:18px 0; border-top:1px solid var(--line); }
.partner:first-of-type{ border-top:none; padding-top:0; }
.partner-logo{ height:30px; width:auto; margin-bottom:12px; }
.partner-logo-yd{ height:24px; }
.partners-panel .card-body{ font-size:.95rem; }
.partners-panel strong{ color:var(--text); font-weight:600; }

/* ---------------- Contact ---------------- */
.contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:48px;
  align-items:center;
}
.contact-list{ margin-top:.5em; }
.contact-item{ padding:14px 0; border-bottom:1px solid var(--line); }
.contact-item:last-child{ border-bottom:none; }
.contact-item dt{
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:.72rem;
  font-weight:600;
  color:var(--muted);
  margin-bottom:4px;
}
.contact-item dd{ font-size:1.06rem; color:var(--text); }
.contact-item dd a{ color:var(--cyan); }
.contact-item dd a:hover{ text-decoration:underline; }

.contact-card{
  text-align:center;
  padding:40px 34px;
}
.contact-card-title{
  font-size:1.4rem;
  font-weight:600;
  color:var(--cyan);
  margin-bottom:.6em;
}
.contact-card .card-body{ margin-bottom:1.6em; }
.contact-card-cta{ display:flex; flex-direction:column; gap:12px; align-items:center; }
.contact-card-cta .btn{ width:100%; max-width:280px; }

/* ---------------- Footer ---------------- */
.footer{
  background:var(--bg-hero-b);
  border-top:1px solid var(--line);
  padding:56px 0 30px;
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  gap:40px;
  flex-wrap:wrap;
  padding-bottom:34px;
}
.footer-brand{ max-width:420px; }
.footer-logo{ height:24px; width:auto; margin-bottom:16px; }
.footer-tagline{ font-size:.96rem; font-weight:300; color:var(--muted); margin-bottom:18px; }

.footer-social{
  display:inline-flex;
  align-items:center;
  gap:9px;
  color:var(--cyan);
  font-size:.92rem;
  font-weight:500;
  transition:color .18s ease, transform .18s ease;
}
.footer-social svg{ width:22px; height:22px; }
.footer-social:hover{ color:var(--cyan-soft); transform:translateY(-1px); }
.footer-links{ display:flex; flex-direction:column; gap:12px; }
.footer-links a{ font-size:.96rem; color:var(--muted); }
.footer-links a:hover{ color:var(--cyan); }

.footer-bottom{
  display:flex;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  padding-top:24px;
  border-top:1px solid var(--line);
  font-size:.86rem;
  color:var(--muted);
}
.footer-hashtag{ color:var(--cyan); font-weight:600; }

/* ---------------- Modal ---------------- */
.modal{
  position:fixed; inset:0;
  z-index:2000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
}
.modal.open{ display:flex; }

.modal-backdrop{
  position:absolute; inset:0;
  background:rgba(3,12,18,.6);
  backdrop-filter:blur(9px) saturate(120%);
  -webkit-backdrop-filter:blur(9px) saturate(120%);
}

.modal-panel{
  position:relative;
  width:100%;
  max-width:520px;
  max-height:90vh;
  overflow-y:auto;
  background:rgba(9,30,40,.82);
  backdrop-filter:blur(22px) saturate(150%);
  -webkit-backdrop-filter:blur(22px) saturate(150%);
  border:1px solid var(--line);
  border-radius:22px;
  padding:38px clamp(26px,4vw,40px);
  animation:modalRise .28s ease;
}
@keyframes modalRise{
  from{ opacity:0; transform:translateY(18px); }
  to{ opacity:1; transform:translateY(0); }
}

.modal-close{
  position:absolute;
  top:16px; right:18px;
  width:38px; height:38px;
  font-size:1.6rem;
  line-height:1;
  background:transparent;
  border:none;
  color:var(--muted);
  cursor:pointer;
  border-radius:8px;
  transition:color .18s ease;
}
.modal-close:hover{ color:var(--text); }

.modal-title{
  font-size:1.6rem;
  font-weight:600;
  letter-spacing:-.01em;
  margin-bottom:1.1em;
  color:var(--text);
}

.field{ margin-bottom:16px; }
.field label{
  display:block;
  font-size:.82rem;
  font-weight:500;
  color:var(--muted);
  margin-bottom:6px;
}
.field input,
.field select,
.field textarea{
  width:100%;
  font-family:inherit;
  font-size:.98rem;
  color:var(--text);
  background:rgba(255,255,255,.04);
  border:1px solid var(--line);
  border-radius:10px;
  padding:11px 13px;
  transition:border-color .18s ease;
}
.field input::placeholder,
.field textarea::placeholder{ color:var(--muted); }
.field input:focus,
.field select:focus,
.field textarea:focus{ outline:none; border-color:var(--cyan); }
.field select{ appearance:none; cursor:pointer; }
.field select option{ background:#082a37; color:var(--text); }
.field textarea{ resize:vertical; }

.modal-submit{ width:100%; margin-top:8px; }

.form-status{
  margin-top:14px;
  font-size:.94rem;
  text-align:center;
  min-height:1.2em;
}
.form-status.success{ color:var(--cyan-soft); }
.form-status.error{ color:var(--coral-soft); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width:980px){
  .cards-3{ grid-template-columns:1fr; }
  .about-grid{ grid-template-columns:1fr; gap:36px; }
  .contact-grid{ grid-template-columns:1fr; gap:36px; }
  .section-title{ max-width:none; }
}

@media (max-width:760px){
  .nav-toggle{ display:flex; }

  .nav-links{
    position:fixed;
    top:var(--nav-h); left:0; right:0;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    padding:14px clamp(20px,5vw,48px) 24px;
    background:rgba(6,33,44,.92);
    backdrop-filter:blur(16px) saturate(150%);
    -webkit-backdrop-filter:blur(16px) saturate(150%);
    border-bottom:1px solid var(--line);
    transform:translateY(-130%);
    transition:transform .3s ease;
    box-shadow:0 18px 36px -16px rgba(0,0,0,.6);
  }
  .nav-links.open{ transform:translateY(0); }
  .nav-link{
    padding:14px 0;
    border-bottom:1px solid var(--line);
    font-size:1.05rem;
  }
  .nav-link::after{ display:none; }
  .nav-cta{ margin-top:16px; width:100%; padding:.9em 1.2em; }

  /* Mobile uses the label-free globe image so it can read clearly behind the
     copy. A lighter top-down scrim keeps text legible while the globe shows. */
  .hero-bg{
    background-image:url('../assets/hero_mobile.jpg');
    background-position:center bottom;
  }
  .hero-scrim{
    background:linear-gradient(180deg, rgba(2,2,6,.82) 0%, rgba(2,2,6,.6) 38%, rgba(2,2,6,.42) 70%, rgba(2,2,6,.55) 100%);
  }

  .cards-2{ grid-template-columns:1fr; }
  .industry-card{ gap:16px; }
  .mid-cta-inner{ flex-direction:column; align-items:flex-start; }
  .footer-bottom{ flex-direction:column; gap:8px; }
}

@media (max-width:420px){
  .hero-headline{ font-size:clamp(2.1rem,9vw,2.6rem); }
  .card{ padding:24px; }
  .hero-cta{ flex-direction:column; align-items:stretch; }
  .hero-cta .btn{ width:100%; }
}

@media (prefers-reduced-motion:reduce){
  *{ animation:none !important; transition:none !important; scroll-behavior:auto !important; }
}
