/* ===== Tokens (Stormy Hosting brand book — blue palette) =====
   Primary:        #0155CB
   Secondary:      #45B0DD
   Lighter shade:  #AACBF8  (pale tint — backgrounds/highlights only, not text)
   Darker shade:   #000000
   Complementary:  #FE990B  (used sparingly — pair with dark text, not white)

   Extra working colors, derived rather than named in the brand book —
   needed so text stays readable wherever it sits, and so dark sections
   don't all read as one flat block:
   --deep-navy: near-black navy — used for the header/footer, so they read
                as a distinct, grounding band rather than blending into
                the hero (which starts at the same blue as the header did).
   --mid-navy:  a softer navy between Primary and deep-navy — used as the
                "far" end of the hero/trust-strip gradients so they don't
                fade all the way to near-black.
   --tint-on-dark: a pale cyan tint for body text/links on dark backgrounds,
                    where pure white would be too stark for every use.
*/
:root {
  --primary: #0155cb;
  --secondary: #45b0dd;
  --lighter: #aacbf8;
  --darker: #000000;
  --complementary: #fe990b;

  --deep-navy: #03102a;
  --mid-navy: #022f72;
  --tint-on-dark: #b8dbea;

  --ink: #0b1730;
  --ink-soft: #57607a;
  --paper: #f5f8fc;
  --white: #ffffff;
  --line: #e1e8f0;

  --font-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--primary);
}
p {
  margin: 0;
  line-height: 1.6;
  color: var(--ink-soft);
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
img,
svg {
  display: block;
  max-width: 100%;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 20px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  /* primary -> mid-navy, not primary -> secondary: keeps white button text
     readable at every point in the gradient (secondary alone fails contrast) */
  background: linear-gradient(135deg, var(--primary), var(--mid-navy));
  color: var(--white);
  box-shadow: 0 6px 16px rgba(2, 47, 114, 0.3);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(2, 47, 114, 0.38);
}
.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--primary);
}
.btn-outline:hover {
  border-color: var(--primary);
  background: var(--paper);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
  padding: 10px 20px;
  font-size: 14px;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* ===== Header =====
   Transparent by default, so it blends into the hero below it. JS toggles
   .is-scrolled once the person scrolls past the hero, which turns it into
   a floating, rounded, shadowed bar. */
.site-header {
  background: transparent;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: top 0.25s ease;
}
.site-header .header-inner {
  transition: background 0.25s ease, border-radius 0.25s ease,
    box-shadow 0.25s ease, margin 0.25s ease, padding 0.25s ease,
    height 0.25s ease;
  border-radius: 0;
}
.site-header.is-scrolled {
  top: 16px;
}
.site-header.is-scrolled .wrap.header-inner {
  background: rgba(1, 85, 203, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(3, 16, 42, 0.35);
  height: 90px;
  padding-left: 32px;
  padding-right: 32px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-img {
  height: 40px;
  width: auto;
  display: block;
}
.footer-brand .logo-img {
  height: 40px;
}

.main-nav ul {
  display: flex;
  gap: 6px;
}
.main-nav > ul > li {
  position: relative;
}
.main-nav > ul > li > a {
  display: block;
  padding: 12px 16px;
  color: var(--tint-on-dark);
  font-size: 15px;
  font-weight: 500;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}
.main-nav > ul > li > a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.has-dropdown .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;

  background: var(--deep-navy);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px;

  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.15s ease;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);

  /* CRITICAL FIX */
  display: block;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* CRITICAL FIX */
.has-dropdown .dropdown ul {
  display: block;
  flex-direction: column;
}

/* CRITICAL FIX */
.has-dropdown .dropdown li {
  display: block;
}

.dropdown li a {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--white);
  white-space: nowrap;
}

.dropdown li a:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  /* primary -> mid-navy: distinct from the header's deep-navy, and doesn't
     fade all the way to near-black like the deep-navy endpoint did */
  background: radial-gradient(
    ellipse at 30% 0%,
    var(--primary) 0%,
    var(--mid-navy) 70%
  );
  padding: 96px 0 120px;
  overflow: hidden;
  text-align: center;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin: 0 auto;
}
.eyebrow {
  color: var(--white);
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 15px;
  margin-bottom: 16px;
  opacity: 0.85;
}
.hero h1 {
  color: var(--white);
  font-size: 52px;
  line-height: 1.08;
  margin-bottom: 16px;
}
.hero-sub {
  color: var(--tint-on-dark);
  font-size: 18px;
  margin-bottom: 32px;
}

/* ===== Section head ===== */
.section-head {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 48px;
  padding: 12px;
}
.section-head h2 {
  font-size: 32px;
  margin-bottom: 10px;
}
.section-head p {
  font-size: 16px;
}

/* ===== Plans ===== */
.plans {
  padding: 88px 0;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.plan-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 28px;
  text-align: left;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(11, 23, 48, 0.1);
}
.plan-card--featured {
  border-color: var(--primary);
  box-shadow: 0 16px 40px rgba(1, 85, 203, 0.16);
}
.plan-badge {
  position: absolute;
  top: -13px;
  right: 24px;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 18px;
  padding: 5px 14px;
  border-radius: 999px;
}
.plan-icon {
  margin-bottom: 18px;
}
.plan-card h3 {
  font-size: 28px;
  margin-bottom: 8px;
}
.plan-tagline {
  font-size: 16px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 14px;
}
.plan-price {
  margin-bottom: 20px;
  font-size: 15px;
  color: var(--ink-soft);
}
.plan-price span {
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--primary);
}
.plan-specs {
  margin-bottom: 26px;
}
.plan-specs li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--ink-soft);
}
.plan-specs li:last-child {
  border-bottom: none;
}
.plan-card .btn {
  width: 100%;
}

/* ===== Domain search ===== */
.domain-search {
  background: var(--primary);
  padding: 72px 0;
}
.domain-inner {
  text-align: center;
}
.domain-inner h2 {
  color: var(--white);
  margin-bottom: 24px;
  font-size: 28px;
}
.domain-form {
  display: flex;
  max-width: 520px;
  margin: 0 auto 32px;
  gap: 10px;
}
.domain-form input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 15px;
  font-family: var(--font-body);
}
.domain-form input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}
.domain-prices {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 28px;
}
.domain-prices li {
  color: var(--tint-on-dark);
  font-size: 14px;
}
.domain-prices .tld {
  color: var(--white);
  font-weight: 600;
  margin-right: 6px;
}

/* ===== Services ===== */
.services {
  padding: 88px 0;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
}
.service-icon {
  margin-bottom: 16px;
}
.service-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
.service-card p {
  margin-bottom: 16px;
  font-size: 15px;
}
.text-link {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 14.5px;
  font-family: var(--font-display);
}

/* ===== Trust strip ===== */
.trust-strip {
  background: linear-gradient(135deg, var(--primary), var(--mid-navy));
  padding: 56px 0;
}
.trust-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.trust-quote {
  color: var(--white);
  font-family: var(--font-display);
  text-transform: none;
  letter-spacing: normal;
  font-size: 24px;
  line-height: 1.4;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--deep-navy);
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-tag {
  color: var(--tint-on-dark);
  font-size: 14px;
  margin-top: 12px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col li {
  margin-bottom: 10px;
}
.footer-col a {
  color: var(--tint-on-dark);
  font-size: 14.5px;
}
.footer-col a:hover {
  color: var(--white);
}
.social-list {
  display: flex;
  flex-direction: column;
}
.footer-bottom {
  padding: 24px 0;
  text-align: center;
}
.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

/* ===== Page hero (interior pages, shorter than homepage hero) ===== */
.hero--page {
  padding: 116px 0 88px;
}
.hero--page h1 {
  font-size: 44px;
}

/* ===== Small button variant (table cells) ===== */
.btn-sm {
  padding: 9px 18px;
  font-size: 18px;
  width: 100%;
}

/* ===== Comparison table ===== */
.compare {
  padding: 0 0 96px;
}
.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.compare-table th,
.compare-table td {
  padding: 14px 20px;
  text-align: center;
  font-size: 16px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.compare-feature-col {
  text-align: left !important;
  color: var(--ink);
  font-weight: 600;
  width: 32%;
}
.compare-table thead tr:first-child th {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 24px;
  color: var(--primary);
  padding-top: 24px;
  border-bottom: none;
}
.compare-price-row th,
.compare-price-row td {
  font-weight: 600;
  color: var(--primary);
  padding-top: 0;
  padding-bottom: 20px;
}
.compare-table tbody th {
  text-align: left;
  color: var(--ink);
  font-weight: 500;
  font-size: 14.5px;
}
.compare-featured {
  background: rgba(1, 85, 203, 0.06);
}
.compare-yes {
  color: var(--primary);
  font-weight: 700;
}
.compare-cta-row td {
  padding: 20px;
  border-bottom: none;
}
.compare-cta-row th {
  border-bottom: none;
}

/* ===== Bandwidth note (standalone, pulled out of the comparison table
   since it's identical on every plan and added no comparison value) ===== */
.bandwidth-note {
  text-align: center;
  font-size: 15px;
  color: var(--ink-soft);
  margin: -16px 0 32px;
}

/* ===== Subtle inline note within a table header cell, e.g. old term in
   parentheses next to the current one ===== */
.compare-subnote {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 13px;
  text-transform: none;
  letter-spacing: normal;
}

/* ===== All Plans Include box ===== */
.all-include-box {
  margin-top: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 36px;
  text-align: center;
}
.all-include-box h3 {
  font-size: 22px;
  margin-bottom: 20px;
}
.all-include-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
}
.all-include-list li {
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
}

/* ===== Eco / complementary badge — orange, sparingly, always with dark text
   (white text on the orange fails contrast) ===== */
.eco-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--complementary);
  color: var(--ink);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
}

/* ===== Domain search (hero variant on /domains/) ===== */
.domain-form--hero {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
}
.domain-form--hero input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 15px;
  font-family: var(--font-body);
}
.domain-form--hero input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* ===== TLD pricing grid ===== */
.tld-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tld-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tld-name {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--primary);
  letter-spacing: 0.02em;
}
.tld-price {
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
}
.tld-price small {
  color: var(--ink-soft);
  font-weight: 400;
  font-size: 12px;
}

/* ===== Policy page — tabs, one panel visible at a time ===== */
.policy-content {
  padding: 64px 0 96px;
}

.policy-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}
.policy-tab {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.policy-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.policy-tab.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.policy-panels {
  max-width: 760px;
  margin: 0 auto;
}
.policy-panel {
  display: none;
}
.policy-panel.is-active {
  display: block;
}
.policy-panel h2 {
  font-size: 28px;
  margin-bottom: 20px;
}
.policy-placeholder {
  background: var(--paper);
  border: 1.5px dashed var(--line);
  border-radius: 10px;
  padding: 20px;
  font-style: italic;
  font-size: 14.5px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .plan-grid {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero h1 {
    font-size: 38px;
  }
  .domain-form {
    flex-direction: column;
  }
  .tld-grid {
    grid-template-columns: 1fr 1fr;
  }
  .policy-tabs {
    gap: 6px;
  }
  .policy-tab {
    font-size: 13.5px;
    padding: 8px 14px;
  }
}

/* Header spacing inside policy pages */
.policy-panel p strong {
  display: block;
  margin-top: 1.4rem;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

/* Bullet lists */

.policy-panel ul {
  list-style: disc;
  margin-left: 1.4rem;
  padding-left: 0.4rem;
}

/* Sub‑bullets */
.policy-panel ul ul {
  list-style: circle;
  margin-left: 1.2rem;
}

/* Paragraph + bullet text sizing + colour */
.policy-panel p,
.policy-panel li {
  color: var(--ink-soft);
  line-height: 1.6;
}
.plan-card {
  text-align: center;
}

.plan-icon {
  margin: 0 auto 18px;
}

.plan-card h3,
.plan-tagline,
.plan-price {
  text-align: center;
}

/* center the list block */
.plan-specs {
  display: inline-block;
  text-align: left;
  margin: 0 auto;
  padding: 0;
}

/* each feature line */
.plan-specs li {
  position: relative;
  padding-left: 32px; /* ← increased spacing between chevron and text */
  margin: 6px 0;
  border-bottom: none;
}

/* chevron */
.plan-specs li::before {
  content: "›";
  position: absolute;
  left: 0; /* ← chevron stays on the left edge */
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-weight: 700;
  font-size: 20px;
}
.plan-specs {
  display: inline-block;
  text-align: left;
  margin: 0 auto;
  padding: 0 0 20px 0; /* ← bottom padding before the button */
}
.compare-table {
  table-layout: fixed; /* forces equal column widths */
  width: 100%; /* full width */
}

.compare-table th,
.compare-table td {
  text-align: center; /* keeps everything tidy */
}

.compare-feature-col {
  width: 28%; /* slightly smaller first column */
}

.compare-table th:nth-child(2),
.compare-table th:nth-child(3),
.compare-table th:nth-child(4),
.compare-table td:nth-child(2),
.compare-table td:nth-child(3),
.compare-table td:nth-child(4) {
  width: 24%; /* equal width for Rain / Thunder / Tornado */
}
.compare-logo-row img.compare-logo {
  display: block;
  margin: 10px auto 20px;
  max-width: 60px;
  height: auto;
}
/* Logo styling (keep what you already had) */
.compare-logo-row img.compare-logo {
  display: block;
  margin: 10px auto 20px;
  max-width: 60px;
  height: auto;
}

/* NEW: remove the line under the logo row */
.compare-logo-row,
.compare-logo-row th,
.compare-logo-row td {
  border-bottom: none;
}
.plan-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 16px; /* centers + adds spacing above the heading */
  height: 40px; /* optional but keeps icons aligned */
}
.plan-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 16px;
  height: 50px; /* slightly taller to account for padding */
}
.service-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.service-card--split .service-split {
  display: grid;
  grid-template-columns: 64px 1fr; /* left column fixed, right flexible */
  grid-template-rows: auto auto; /* two rows */
  column-gap: 16px;
}

.service-card--split .service-split-left {
  grid-row: 1 / span 2; /* ← THIS makes the image span both rows */
  display: flex;
  align-items: center;
}

.service-card--split .service-split-right h3 {
  margin-top: 0;
}

.service-card--split .service-split-right p {
  margin-bottom: 0;
}
/* ===== Screenshot B layout: vertical sidebar + content ===== */

/* Make the whole policy area a two-column layout */
.policy-content .wrap {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

/* Left sidebar: vertical list of tabs */
.policy-tabs {
  flex: 0 0 260px; /* fixed-ish width */
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Right side: policy text panels */
.policy-panels {
  flex: 1 1 auto;
}

/* Sidebar buttons styled like vertical menu items */
.policy-tab {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--text);
  font-size: 0.95rem;
  cursor: pointer;
}

/* Active item highlighted */
.policy-tab.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* Panels: only show active one */
.policy-panel {
  display: none;
}

.policy-panel.is-active {
  display: block;
}
