/* =========================================================
   Digital Web Hosting — global stylesheet
   ========================================================= */

:root {
  --navy: #0b1f3a;
  --navy-light: #132c52;
  --navy-lighter: #1c3a68;
  --teal: #14b8a6;
  --teal-dark: #0d8f81;
  --bg: #f7f9fb;
  --white: #ffffff;
  --text: #1b2733;
  --text-muted: #5b6b79;
  --border: #e1e7ed;
  --success: #1fa36b;

  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, 0.06);
  --shadow-md: 0 4px 12px rgba(11, 31, 58, 0.08);
  --shadow-lg: 0 8px 24px rgba(11, 31, 58, 0.10);

  --container-w: 1180px;

  font-size: 16px;
}

* , *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: inherit;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--text-muted); }

a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

ul { padding: 0; margin: 0; list-style: none; }

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

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

section { padding: 72px 0; }
section.tight { padding: 48px 0; }

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head p { font-size: 1.05rem; }
.eyebrow {
  display: inline-block;
  color: var(--teal-dark);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 12px;
}

.bg-alt { background: var(--white); }
.bg-navy { background: var(--navy); color: #cdd8e8; }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy p { color: #9fb0c8; }

/* ---------- Buttons ----------
   Two families, chosen by the background they sit on:
   - light bg (white / --bg sections):  .btn-primary (navy fill)   + .btn-outline (navy outline)
   - dark bg  (navy hero/footer/banners): .btn-accent (teal fill)   + .btn-outline-invert (white outline)
   Never pair .btn-outline / .btn-primary with a dark background — the text disappears into it.
------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-light); }

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

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

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

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

.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo:hover { text-decoration: none; }
.logo-img { height: 34px; width: auto; display: block; }
.footer-about .logo-img { height: 40px; }

.main-nav { flex: 1; }
.main-nav > ul {
  display: flex;
  justify-content: center;
  gap: 4px;
}
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block;
  padding: 10px 14px;
  color: #dbe4f0;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a {
  color: var(--white);
  background: rgba(255,255,255,0.08);
  text-decoration: none;
}

.has-dropdown > a::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 6px;
  margin-bottom: 2px;
}
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 240px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.15s ease;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
}
.dropdown a small { display: block; font-weight: 400; color: var(--text-muted); font-size: 0.8rem; }
.dropdown a:hover { background: var(--bg); text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: "";
  display: block;
  height: 2px;
  margin: 0 auto;
  width: 20px;
  background: var(--white);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 72px 0 40px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { color: var(--white); }
.hero .lead { font-size: 1.15rem; color: #b7c5d9; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.hero-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  color: var(--text);
}
.hero-card h3 { margin-bottom: 4px; }
.hero-card p.small { font-size: 0.88rem; margin-bottom: 18px; }
.domain-search-form { display: flex; gap: 10px; }
.domain-search-form input {
  flex: 1;
  min-width: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
}
.domain-search-form input:focus { outline: none; border-color: var(--teal); }
@media (max-width: 480px) {
  .domain-search-form { flex-direction: column; }
}

.trust-bar {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 40px;
  padding-top: 24px;
}
.trust-bar ul {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
}
.trust-bar li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cfd9e8;
  font-weight: 600;
  font-size: 0.92rem;
}
.trust-bar svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--teal); }

/* page header (non-home hero, simpler) */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 64px 0 56px;
  text-align: center;
}
.page-hero h1 { color: var(--white); }
.page-hero .lead { max-width: 640px; margin: 0 auto; color: #b7c5d9; font-size: 1.08rem; }
.breadcrumb { color: var(--teal); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }

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

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.15s ease;
}
.card:hover { border-color: #c3ceda; }
.card h3 { margin-bottom: 16px; }

.service-card .icon svg { width: 24px; height: 24px; color: var(--teal-dark); }
.card .icon svg { color: var(--teal-dark); }
.service-card a.more { font-weight: 700; font-size: 0.9rem; }

/* ---------- Service list (homepage overview) ---------- */
.service-list { border-top: 1px solid var(--border); }
.service-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.service-row .icon { color: var(--teal-dark); }
.service-row .icon svg { width: 30px; height: 30px; }
.service-row h3 { margin-bottom: 6px; }
.service-row p { margin: 0; }
.service-row .more { font-weight: 700; white-space: nowrap; }

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
  border-bottom: 1px solid var(--border);
}
.feature-list li:last-child { border-bottom: none; padding-bottom: 0; }
.feature-list li:first-child { padding-top: 0; }
.feature-list svg {
  width: 19px; height: 19px;
  color: var(--success);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- Startup package banner ---------- */
.package-banner {
  background: var(--navy);
  border-radius: var(--radius-lg);
  color: var(--white);
  padding: 44px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 32px;
  align-items: center;
}
.package-banner h2 { color: var(--white); }
.package-banner p { color: rgba(255,255,255,0.75); }
.package-banner .price-tag {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}
.price-tag .amount { font-size: 2.4rem; font-weight: 800; color: var(--white); }
.price-tag .per { font-size: 0.95rem; opacity: 0.85; }
.price-tag .note { font-size: 0.78rem; opacity: 0.8; margin-top: 6px; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.plan.featured {
  border-color: var(--navy);
  border-width: 2px;
  box-shadow: var(--shadow-md);
  position: relative;
}
.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}
.plan .plan-price { margin: 4px 0 20px; }
.plan .plan-price .amount { font-size: 2.2rem; font-weight: 800; color: var(--navy); }
.plan .plan-price .per { color: var(--text-muted); font-size: 0.9rem; }
.plan .feature-list { margin-bottom: 24px; flex: 1; }
.plan-delta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 10px 0 0;
}
.plan-delta strong { color: var(--teal-dark); font-weight: 700; }
.plan-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 40px;
}

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); }
table.compare {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  background: var(--white);
  min-width: 560px;
}
table.compare th, table.compare td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.94rem;
  vertical-align: middle;
}
table.compare thead th {
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
}
table.compare tbody tr:last-child td { border-bottom: none; }
table.compare td.yes { color: var(--success); font-weight: 700; }
table.compare .center { text-align: center; }

/* ---------- Domain checker widget ---------- */
.domain-checker {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.domain-checker-inline {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
upm-dac { display: block; min-height: 60px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
  color: var(--white);
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: #b7c5d9; max-width: 560px; margin: 0 auto 24px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Stat strip ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-strip .stat-num { font-size: 2rem; font-weight: 800; color: var(--teal-dark); }
.stat-strip .stat-label { font-size: 0.88rem; color: var(--text-muted); font-weight: 600; }

/* ---------- Badge (Nominet etc) ---------- */
.badge-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy);
}
.badge svg { width: 16px; height: 16px; color: var(--teal-dark); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 700; font-size: 0.9rem; color: var(--navy); }
.form-field input, .form-field select, .form-field textarea {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.form-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 10px; }
.form-success {
  display: none;
  background: rgba(31,163,107,0.1);
  border: 1px solid var(--success);
  color: var(--success);
  padding: 14px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  margin-bottom: 18px;
}

.contact-info-card { background: var(--navy); color: var(--white); border-radius: var(--radius-lg); padding: 32px; }
.contact-info-card h3 { color: var(--white); }
.contact-info-card .item { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-info-card .item svg { width: 22px; height: 22px; color: var(--teal); flex-shrink: 0; margin-top: 2px; }
.contact-info-card .item span { color: #b7c5d9; font-size: 0.92rem; }
.contact-info-card .item strong { display: block; color: var(--white); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #9fb0c8; 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.1);
}
.footer-grid h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: #9fb0c8; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--white); }
.footer-about p { color: #8fa0b8; font-size: 0.9rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.82rem;
  color: #7a8ca4;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom .legal-links { display: flex; gap: 18px; }
.footer-bottom a { color: #9fb0c8; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 480px; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .main-nav, .header-actions .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .header-actions { gap: 8px; }

  body.nav-open .main-nav {
    display: block;
    position: fixed;
    inset: 0;
    top: 66px;
    background: var(--navy);
    padding: 20px;
    overflow-y: auto;
  }
  body.nav-open .main-nav > ul { flex-direction: column; align-items: stretch; }
  body.nav-open .main-nav > ul > li > a { padding: 14px; font-size: 1.05rem; }
  body.nav-open .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255,255,255,0.04);
    display: block;
  }
  body.nav-open .dropdown a { color: #dbe4f0; }
  body.nav-open .dropdown a:hover { background: rgba(255,255,255,0.08); }
  body.nav-open .header-actions .btn-ghost { display: none; }

  .service-row { grid-template-columns: 40px 1fr; row-gap: 8px; }
  .service-row .more { grid-column: 2; }

  .package-banner { grid-template-columns: 1fr; text-align: center; }
  .pricing-grid { grid-template-columns: 1fr; }
  .plan.featured { transform: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 52px 0; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner, .package-banner { padding: 32px 22px; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .table-wrap { overflow-x: visible; border: none; }
  table.compare { min-width: 0; }
  table.compare thead { display: none; }
  table.compare, table.compare tbody, table.compare tr, table.compare td { display: block; width: auto !important; }
  table.compare tr {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 12px;
    background: var(--white);
  }
  table.compare td { padding: 4px 0; border-bottom: none; text-align: left !important; }
  table.compare td:first-child { font-weight: 700; color: var(--navy); padding-bottom: 8px; }
  table.compare td:not(:first-child) {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.9rem;
  }
  table.compare td:not(:first-child)::before {
    content: attr(data-label);
    color: var(--text-muted);
    font-weight: 600;
  }
}
