/* ==========================================================================
   WaafiHost — Brand stylesheet
   Colors, type and components follow "WaafiHost Brand Guidelines v1.0"
   ========================================================================== */

:root {
  --navy: #0B1E36;
  --navy-soft: #12294a;
  --teal: #7C5CFF;       /* brief calls this "Digital Teal", hex is a violet */
  --teal-dark: #6a47eb;
  --amber: #FF9F1C;
  --white: #FFFFFF;

  --ink: var(--navy);
  --ink-soft: #4b5b73;
  --surface: var(--white);
  --surface-alt: #F5F7FB;
  --border: #E3E8F0;

  --font-head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Lato", "Segoe UI", Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 20px 45px -25px rgba(11, 30, 54, 0.35);
  --container: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--navy);
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }

p { margin: 0 0 1em; color: var(--ink-soft); max-width: 68ch; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }
section.tight { padding: 56px 0; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-amber {
  background: var(--amber);
  color: var(--navy);
}
.btn-amber:hover { background: #ffab3d; color: var(--navy); }

.btn-outline-dark {
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
  background: transparent;
}
.btn-outline-dark:hover { border-color: var(--white); color: var(--white); }

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

.btn-teal {
  background: var(--teal);
  color: var(--white);
}
.btn-teal:hover { background: var(--teal-dark); color: var(--white); }

.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  color: var(--navy);
}
.brand img { width: 30px; height: 30px; }
.brand .host { color: var(--teal); font-weight: 600; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--navy);
  font-weight: 600;
  font-size: 15px;
}
.nav-links a:hover { color: var(--teal); }
.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(120% 140% at 15% -10%, var(--navy-soft) 0%, var(--navy) 55%) ;
  color: var(--white);
  overflow: hidden;
  padding: 110px 0 100px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.35;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero p.lead {
  color: rgba(255,255,255,0.78);
  font-size: 1.15rem;
  max-width: 46ch;
}
.hero h1 { color: var(--white); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.hero-badges {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-badge {
  font-family: var(--font-head);
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-badge strong { color: var(--white); font-size: 15px; }

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}
.trust-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 40px;
}
.stat { text-align: center; }
.stat .num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2rem;
  color: var(--navy);
  display: block;
}
.stat .label {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 600;
}

/* ---------- Section headers ---------- */
.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head p { margin-left: auto; margin-right: auto; }

/* ---------- Value cards (Reliability/Speed/Security/Community) ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.value-card:nth-child(2) { border-top-color: var(--navy); }
.value-card:nth-child(3) { border-top-color: var(--amber); }
.value-card:nth-child(4) { border-top-color: var(--teal); }
.value-card .icon {
  width: 42px; height: 42px;
  margin-bottom: 16px;
}
.value-card h3 { margin-bottom: 8px; }
.value-card p { font-size: 15px; margin-bottom: 0; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}
.step {
  position: relative;
  padding-left: 54px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { margin-bottom: 6px; }
.step p { font-size: 15px; }

/* ---------- Diagram section ---------- */
.diagram-section {
  background: var(--navy);
  color: var(--white);
  border-radius: 24px;
  padding: 64px 40px;
  margin: 0 24px;
  max-width: calc(var(--container) - 0px);
  margin-left: auto;
  margin-right: auto;
}
.diagram-section .section-head h2,
.diagram-section .section-head p { color: var(--white); }
.diagram-section .section-head p { color: rgba(255,255,255,0.72); }
.diagram-caption {
  text-align: center;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-top: 20px;
}

/* ---------- Pricing cards ---------- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan-card.featured {
  border-color: var(--teal);
  box-shadow: var(--shadow);
  transform: translateY(-8px);
}
.plan-badge {
  position: absolute;
  top: -14px;
  left: 28px;
  background: var(--amber);
  color: var(--navy);
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}
.plan-name { font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.plan-price { font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; color: var(--navy); margin-bottom: 2px; }
.plan-price span { font-size: 1rem; font-weight: 600; color: var(--ink-soft); }
.plan-desc { font-size: 14px; margin-bottom: 20px; }
.plan-features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  flex: 1;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li svg { flex-shrink: 0; margin-top: 3px; }

/* ---------- Comparison table ---------- */
.compare-wrap { overflow-x: auto; }
table.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  background: var(--surface);
}
table.compare th, table.compare td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
}
table.compare thead th {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 2px solid var(--navy);
}
table.compare tbody th {
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}
table.compare td.yes { color: var(--teal); font-weight: 700; }

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.testimonial {
  background: var(--surface-alt);
  border-radius: var(--radius);
  padding: 26px 24px;
  border: 1px solid var(--border);
}
.testimonial p.quote {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 18px;
}
.testimonial .who { font-size: 13.5px; color: var(--ink-soft); font-weight: 700; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--white);
  border-radius: 24px;
  padding: 56px 40px;
  text-align: center;
  margin: 0 24px;
  max-width: calc(var(--container) - 0px);
  margin-left: auto;
  margin-right: auto;
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,0.75); margin-left: auto; margin-right: auto; }
.cta-banner .btn-row { display: flex; justify-content: center; gap: 14px; margin-top: 26px; flex-wrap: wrap; }

/* ---------- We say / we don't say ---------- */
.voice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.voice-card {
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
}
.voice-card.say { border-left: 4px solid var(--teal); }
.voice-card.dont { border-left: 4px solid var(--ink-soft); }
.voice-card .label {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}
.voice-card.say .label { color: var(--teal); }
.voice-card.dont .label { color: var(--ink-soft); }
.voice-card p { font-style: italic; margin-bottom: 0; color: var(--navy); }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-question .plus {
  font-size: 22px;
  color: var(--teal);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-question .plus { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-answer p { padding-bottom: 18px; margin: 0; font-size: 15px; }

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
input, textarea, select {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(124,92,255,0.15);
}
textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 13px; color: var(--ink-soft); margin-top: 12px; }

/* ---------- Contact info cards ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.info-list { list-style: none; padding: 0; margin: 0 0 28px; }
.info-list li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.info-list .info-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-list strong { display: block; color: var(--navy); font-family: var(--font-head); font-size: 14.5px; }
.info-list span { font-size: 14px; color: var(--ink-soft); }

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 72px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.3;
}
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,0.75); max-width: 56ch; margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .brand { color: var(--white); margin-bottom: 12px; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 14px; }
.footer-col h4 {
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.68); font-size: 14.5px; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Alert / form status ---------- */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  margin-bottom: 20px;
  display: none;
}
.alert.show { display: block; }
.alert-success { background: #e9f9ee; color: #17703a; border: 1px solid #b9ecc9; }
.alert-error { background: #fdeceb; color: #a3241a; border: 1px solid #f6c6c1; }

/* ---------- Domain search ---------- */
.domain-search {
  max-width: 640px;
  margin: 0 auto;
}
.domain-search-form {
  display: flex;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 6px 6px 22px;
  box-shadow: var(--shadow);
}
.domain-search-input {
  flex: 1;
  border: none;
  font-size: 16px;
  padding: 10px 0;
}
.domain-search-input:focus { outline: none; box-shadow: none; }
.domain-search-form .btn { flex-shrink: 0; }

.domain-tld-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}
.tld-chip {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tld-chip.featured {
  color: var(--navy);
  background: rgba(255,159,28,0.12);
  border-color: var(--amber);
}
.tld-chip em {
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--amber);
}

.domain-results { margin-top: 24px; }
.domain-status {
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
}
.domain-status-error { color: #a3241a; }

.domain-result-list {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.domain-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.domain-result-row:last-child { border-bottom: none; }
.domain-result-name {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
}
.domain-result-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.domain-badge {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}
.domain-badge-available { background: #e9f9ee; color: #17703a; }
.domain-badge-taken { background: var(--surface-alt); color: var(--ink-soft); }
.domain-badge-error { background: #fdeceb; color: #a3241a; }
.domain-price {
  font-size: 13px;
  color: var(--ink-soft);
}
.domain-result-action { flex-shrink: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .trust-bar .container { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr; }
  .plan-card.featured { transform: none; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .voice-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links, .nav-actions .btn-outline { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    gap: 18px;
  }
  section { padding: 60px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .domain-search-form { flex-wrap: wrap; border-radius: var(--radius); padding: 14px; }
  .domain-search-input { flex-basis: 100%; }
  .domain-search-form .btn { flex: 1; }
  .domain-result-row { flex-wrap: wrap; }
  .domain-result-meta { margin-left: 0; }
}
