/* ============================================================
   NexaLink — main.css
   Navy · Sky Blue · White design system
   ============================================================ */

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

:root {
  --navy:       #0B1F3A;
  --navy-mid:   #1A3558;
  --navy-soft:  #243F63;
  --sky:        #5BA3D9;
  --sky-hover:  #4a8ec7;
  --sky-light:  #D6EAFA;
  --powder:     #B8D4F0;
  --white:      #FFFFFF;
  --off:        #F4F8FD;
  --text:       #0B1F3A;
  --muted:      #4A6380;
  --border:     #C8DDEF;
  --accent:     #2E7FBF;
  --green:      #25D366;

  --font-head:  'Outfit', sans-serif;
  --font-body:  'Plus Jakarta Sans', sans-serif;

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --radius-xl:  20px;

  --shadow-sm:  0 1px 4px rgba(11,31,58,.06);
  --shadow-md:  0 4px 20px rgba(11,31,58,.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

h1,h2,h3,h4,h5 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---------- Utility ---------- */
.container       { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.container--sm   { max-width: 780px;  margin: 0 auto; padding: 0 2rem; }
.section         { padding: 5rem 0; }
.section--dark   { background: var(--navy); }
.section--off    { background: var(--off); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.label {
  display: inline-block;
  background: var(--sky-light);
  color: var(--accent);
  padding: .25rem .9rem;
  border-radius: var(--radius-xl);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: .75rem;
  font-family: var(--font-head);
}
.label--dark {
  background: rgba(91,163,217,.18);
  color: var(--powder);
}

.section-header { margin-bottom: 3rem; }
.section-header h2 { font-size: clamp(1.6rem,3vw,2rem); margin-bottom: .5rem; }
.section-header p  { color: var(--muted); max-width: 480px; font-size: 15px; }
.section-header--center { text-align: center; }
.section-header--center p { margin: 0 auto; }
.section-header--dark h2 { color: var(--white); }
.section-header--dark p  { color: rgba(255,255,255,.55); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-head); font-weight: 600; font-size: 14.5px;
  padding: .7rem 1.6rem; border-radius: var(--radius-md);
  border: none; cursor: pointer; transition: background .18s, transform .12s;
  text-decoration: none; line-height: 1;
}
.btn:active { transform: scale(.97); }
.btn--primary  { background: var(--sky);   color: var(--white); }
.btn--primary:hover  { background: var(--sky-hover); }
.btn--outline  { border: 1.5px solid rgba(255,255,255,.3); color: rgba(255,255,255,.9); background: transparent; }
.btn--outline:hover  { border-color: rgba(255,255,255,.6); }
.btn--navy    { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-mid); }
.btn--ghost-dark { border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.75); background: transparent; font-weight: 500; }
.btn--ghost-dark:hover { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn--wa   { background: var(--green); color: var(--white); }
.btn--wa:hover { background: #1dab57; }
.btn--sm   { padding: .5rem 1.1rem; font-size: 13px; }
.btn--block { display: flex; width: 100%; justify-content: center; }

/* ---------- NAV ---------- */
#navbar {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 62px;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: box-shadow .2s;
}
#navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.25); }

.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 34px; height: 34px;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.logo-mark svg { width: 18px; height: 18px; }
.logo-text { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--white); letter-spacing: -.02em; }
.logo-text span { color: var(--sky); }

.nav-links { display: flex; gap: 1.8rem; }
.nav-links a { color: rgba(255,255,255,.6); font-size: 14px; font-weight: 500; transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a.active { position: relative; }
.nav-links a.active::after {
  content:''; position:absolute; bottom:-4px; left:0; right:0; height:2px;
  background: var(--sky); border-radius:2px;
}

.nav-actions { display: flex; gap: 10px; align-items: center; }
.btn-ghost { color: rgba(255,255,255,.75); background: transparent; border: 1px solid rgba(255,255,255,.2); padding: .4rem 1rem; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; }
.btn-ghost:hover { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-nav { background: var(--sky); color: var(--white); padding: .45rem 1.1rem; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; font-family: var(--font-head); }
.btn-nav:hover { background: var(--sky-hover); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: rgba(255,255,255,.8); border-radius: 2px; transition: all .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  background: var(--navy);
  background-image: url('../img/hero-bg.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 5rem 2rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Dark overlay so text stays readable over the background image */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 15, 35, 0.72);
  z-index: 0;
}
.hero-rings {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(91,163,217,.15); border: 1px solid rgba(91,163,217,.3);
  color: var(--powder); padding: .35rem 1rem; border-radius: var(--radius-xl);
  font-size: 12.5px; font-weight: 500; margin-bottom: 1.6rem;
  animation: fadeUp .6s ease both;
}
.badge-dot { width: 7px; height: 7px; background: var(--sky); border-radius: 50%; animation: pulse 2s infinite; }

.hero h1 {
  font-size: clamp(2rem,5vw,3rem); color: var(--white);
  margin-bottom: 1.1rem; letter-spacing: -.03em; max-width: 660px; margin-left: auto; margin-right: auto;
  animation: fadeUp .6s .1s ease both;
}
.hero h1 .hl { color: var(--sky); }
.hero-sub {
  font-size: 16px; color: rgba(255,255,255,.58); max-width: 440px;
  margin: 0 auto 2rem; line-height: 1.7;
  animation: fadeUp .6s .2s ease both;
}
.hero-btns { display: flex; gap: .85rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3.5rem; animation: fadeUp .6s .3s ease both; }

.hero-stats {
  max-width: 560px; margin: 0 auto;
  background: var(--navy-mid); border: 1px solid rgba(91,163,217,.18);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: grid; grid-template-columns: repeat(3,1fr);
  animation: fadeUp .6s .4s ease both;
}
.hero-stat { padding: 1.4rem 1rem; text-align: center; }
.hero-stat + .hero-stat { border-left: 1px solid rgba(91,163,217,.12); }
.hero-stat-val { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--sky); }
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,.45); margin-top: 3px; }

/* ---------- TRUST BAR ---------- */
.trust-bar {
  background: var(--sky-light); border-bottom: 1px solid var(--border);
  padding: .9rem 2rem;
  display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--navy-mid); font-weight: 500; }
.trust-item svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ---------- SERVICES GRID ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px,1fr)); gap: 1rem; }
.svc {
  background: var(--off); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.4rem;
  border-top: 3px solid transparent;
  transition: border-top-color .2s, background .2s, box-shadow .2s;
}
.svc:hover { border-top-color: var(--sky); background: var(--white); box-shadow: var(--shadow-sm); }
.svc-icon { font-size: 26px; margin-bottom: .65rem; }
.svc h4 { font-size: 14px; font-weight: 600; font-family: var(--font-head); color: var(--navy); margin-bottom: .3rem; }
.svc p  { font-size: 12.5px; color: var(--muted); line-height: 1.55; }

/* ---------- PLANS ---------- */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 1rem; }
.plan {
  background: var(--navy-mid); border: 1px solid rgba(91,163,217,.12);
  border-radius: var(--radius-lg); padding: 1.75rem 1.5rem;
  position: relative; transition: transform .2s, box-shadow .2s;
}
.plan:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,.2); }
.plan.hot { border-color: var(--sky); background: var(--navy-soft); }
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--sky); color: var(--white);
  font-size: 10.5px; font-weight: 700; padding: 4px 14px; border-radius: var(--radius-xl);
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap;
}
.plan-name { font-size: 12px; font-weight: 700; font-family: var(--font-head); color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .75rem; }
.plan-price { font-size: 2.4rem; font-weight: 700; font-family: var(--font-head); color: var(--white); line-height: 1; }
.plan-price sup { font-size: 1.1rem; vertical-align: top; margin-top: 8px; color: rgba(255,255,255,.55); font-weight: 500; }
.plan-mo { font-size: 12px; color: rgba(255,255,255,.4); margin: .35rem 0 1.25rem; }
.plan-feats { margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: 7px; }
.plan-feats li { font-size: 13px; color: rgba(255,255,255,.72); display: flex; align-items: center; gap: 8px; }
.chk { color: var(--sky); font-weight: 700; font-size: 14px; flex-shrink: 0; }
.plan-btn {
  display: block; text-align: center;
  background: rgba(91,163,217,.15); color: var(--sky);
  padding: .65rem; border-radius: var(--radius-md);
  font-size: 13.5px; font-weight: 600; font-family: var(--font-head);
  border: 1px solid rgba(91,163,217,.3);
  transition: background .18s;
}
.plan.hot .plan-btn { background: var(--sky); color: var(--white); border-color: var(--sky); }
.plan-btn:hover { opacity: .88; }

/* ---------- BUNDLES ---------- */
.bundles-list { display: flex; flex-direction: column; gap: 1rem; }
.bundle {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  transition: border-color .2s, box-shadow .2s;
}
.bundle:hover { border-color: var(--sky); box-shadow: var(--shadow-sm); }
.bundle-left h4 { font-size: 15.5px; font-family: var(--font-head); color: var(--navy); margin-bottom: .2rem; }
.bundle-left p  { font-size: 13px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: .7rem; }
.tag { background: var(--sky-light); color: var(--accent); font-size: 11.5px; padding: 3px 10px; border-radius: var(--radius-sm); font-weight: 500; }
.bundle-right { text-align: right; min-width: 90px; flex-shrink: 0; }
.bundle-price { font-size: 1.6rem; font-weight: 700; font-family: var(--font-head); color: var(--navy); line-height: 1; }
.bundle-period { font-size: 12px; color: var(--muted); margin-bottom: .5rem; }
.bundle-cta { color: var(--sky); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.bundle-cta:hover { text-decoration: underline; }

/* ---------- ADDONS ---------- */
.addons-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 1rem; }
.addon {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem;
  transition: box-shadow .2s;
}
.addon:hover { box-shadow: var(--shadow-sm); }
.addon-price { font-size: 1rem; font-weight: 700; font-family: var(--font-head); color: var(--sky); margin-bottom: .3rem; }
.addon-name  { font-size: 14px; font-weight: 600; font-family: var(--font-head); color: var(--navy); margin-bottom: .3rem; }
.addon-desc  { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* ---------- WHY US ---------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px,1fr)); gap: 1rem; }
.why { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.4rem; }
.why-icon { font-size: 24px; margin-bottom: .6rem; }
.why h4 { font-size: 14.5px; font-weight: 600; font-family: var(--font-head); color: var(--navy); margin-bottom: .4rem; }
.why p  { font-size: 12.5px; color: var(--muted); line-height: 1.55; }

/* ---------- ROADMAP ---------- */
.phases { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.phase { border-radius: var(--radius-md); padding: 1.4rem; border: 1px solid rgba(91,163,217,.1); }
.phase.active { background: rgba(91,163,217,.12); border-color: rgba(91,163,217,.3); }
.phase.future { background: rgba(255,255,255,.03); }
.phase-now { display: inline-block; background: var(--sky); color: var(--white); font-size: 9.5px; padding: 3px 9px; border-radius: var(--radius-xl); font-weight: 700; margin-bottom: .5rem; text-transform: uppercase; letter-spacing: .06em; font-family: var(--font-head); }
.phase-num { font-size: 10.5px; font-weight: 700; color: var(--sky); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .4rem; font-family: var(--font-head); }
.phase h4 { font-size: 14px; font-weight: 600; font-family: var(--font-head); color: var(--white); margin-bottom: .35rem; }
.phase p  { font-size: 12px; color: rgba(255,255,255,.45); line-height: 1.55; }

/* ---------- CTA SECTION ---------- */
.cta-section { background: var(--sky-light); border-top: 1px solid var(--border); text-align: center; padding: 5rem 2rem; }
.cta-section h2 { font-size: clamp(1.5rem,3vw,2rem); color: var(--navy); margin-bottom: .6rem; }
.cta-section p  { color: var(--muted); margin-bottom: 1.8rem; font-size: 15.5px; }
.cta-btns { display: flex; gap: .85rem; justify-content: center; flex-wrap: wrap; }

/* ---------- FOOTER ---------- */
footer { background: var(--navy); padding: 4rem 2rem 2rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo { font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--white); margin-bottom: .6rem; }
.footer-logo span { color: var(--sky); }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,.45); line-height: 1.7; margin-bottom: 1rem; }
.footer-wa { display: inline-flex; align-items: center; gap: 8px; background: var(--green); color: var(--white); padding: .5rem 1.1rem; border-radius: var(--radius-md); font-size: 13px; font-weight: 600; }
.footer-wa:hover { opacity: .88; }
.footer-col h5 { font-size: 12px; font-weight: 700; font-family: var(--font-head); color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .9rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .55rem; }
.footer-col li, .footer-col a { font-size: 13.5px; color: rgba(255,255,255,.5); }
.footer-col a:hover { color: var(--sky); }
.footer-bottom { max-width: 1100px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,.07); padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.footer-bottom p { font-size: 12.5px; color: rgba(255,255,255,.35); }

/* ---------- FLOATING WA BUTTON ---------- */
.wa-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 500;
  width: 54px; height: 54px; background: var(--green);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(37,211,102,.4);
  transition: transform .2s, box-shadow .2s;
  color: var(--white);
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(37,211,102,.55); }

/* ---------- FORM STYLES (contact.php) ---------- */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 13.5px; font-weight: 600; color: var(--navy); margin-bottom: .4rem; font-family: var(--font-head); }
.form-control {
  width: 100%; padding: .75rem 1rem; font-size: 14.5px; font-family: var(--font-body);
  border: 1.5px solid var(--border); border-radius: var(--radius-md);
  color: var(--text); background: var(--white); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(91,163,217,.18); }
textarea.form-control { resize: vertical; min-height: 130px; }
.form-success { background: #e6f7ef; border: 1px solid #a3d9be; color: #1a6b3c; padding: 1rem 1.25rem; border-radius: var(--radius-md); font-size: 14px; }
.form-error   { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; padding: 1rem 1.25rem; border-radius: var(--radius-md); font-size: 14px; }

/* ---------- PAGE HERO (inner pages) ---------- */
.page-hero { background: var(--navy); padding: 4rem 2rem; text-align: center; }
.page-hero h1 { font-size: clamp(1.8rem,4vw,2.5rem); color: var(--white); margin-bottom: .5rem; }
.page-hero p  { color: rgba(255,255,255,.55); font-size: 16px; max-width: 500px; margin: 0 auto; }

/* ---------- DOMAIN SEARCH ---------- */
.domain-search-box { max-width: 600px; margin: 0 auto; }
.search-row { display: flex; gap: 0; border-radius: var(--radius-md); overflow: hidden; border: 2px solid var(--sky); background: var(--white); }
.search-row input { flex: 1; padding: .85rem 1.2rem; font-size: 15.5px; font-family: var(--font-body); border: none; outline: none; color: var(--text); }
.search-row button { background: var(--sky); color: var(--white); border: none; padding: 0 1.6rem; font-size: 15px; font-weight: 700; font-family: var(--font-head); cursor: pointer; transition: background .18s; white-space: nowrap; }
.search-row button:hover { background: var(--sky-hover); }
.domain-results { margin-top: 1.5rem; }
.domain-result-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1rem 1.25rem; display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.domain-result-item.available { border-color: #86efac; }
.domain-result-item.taken     { opacity: .55; }

/* ---------- ANIMATIONS ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%,100% { opacity: 1; } 50% { opacity: .4; }
}
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    display: none; flex-direction: column; gap: 0;
    position: absolute; top: 62px; left: 0; right: 0;
    background: var(--navy-mid); border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 1rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: .75rem 2rem; font-size: 15px; }
  .nav-links a.active::after { display: none; }

  .nav-actions { display: none; }

  .hero { padding: 3.5rem 1.5rem 0; }
  .hero-stats { grid-template-columns: repeat(3,1fr); }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }

  .phases { grid-template-columns: 1fr; }

  .section { padding: 3.5rem 0; }

  .bundle { flex-direction: column; align-items: flex-start; }
  .bundle-right { text-align: left; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.85rem; }
  .hero-stats { font-size: 13px; }
  .footer-inner { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr; }
}
