/* ==========================================================================
   Webotech WA — Modern design system (mobile-first, responsive, accessible)
   Palette derived from the logo: vivid red + charcoal ink + neutrals.
   No purple anywhere. WCAG 2.2 AA contrast targets.
   ========================================================================== */

:root {
  /* Brand */
  --red-600: #b81117;   /* text/links on white — ~6.4:1 */
  --red-500: #d81f26;   /* accents */
  --red-700: #940a0d;   /* hover/active */
  --ink-900: #1b1f24;   /* headings / dark surfaces */
  --ink-700: #333a42;
  --ink-500: #5b636c;   /* secondary text */

  /* Neutrals */
  --bg:       #ffffff;
  --surface:  #f6f7f8;
  --surface-2:#eef0f2;
  --border:   #e2e5e9;
  --white:    #ffffff;

  /* Status */
  --danger:   #c0242b;
  --success:  #1f7a4d;

  /* Type scale (fluid) */
  --step--1: clamp(0.83rem, 0.79rem + 0.2vw, 0.92rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.06rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.35rem);
  --step-2:  clamp(1.45rem, 1.25rem + 1vw, 1.85rem);
  --step-3:  clamp(1.9rem, 1.5rem + 2vw, 2.75rem);
  --step-4:  clamp(2.3rem, 1.7rem + 3vw, 3.6rem);

  /* Space scale (8pt) */
  --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem;
  --sp-6: 1.5rem; --sp-8: 2rem; --sp-12: 3rem; --sp-16: 4rem;

  /* Shape & elevation */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --shadow-1: 0 1px 2px rgba(16,24,32,.06), 0 1px 3px rgba(16,24,32,.08);
  --shadow-2: 0 4px 12px rgba(16,24,32,.08), 0 2px 6px rgba(16,24,32,.06);

  --container: 1120px;
  --ease: cubic-bezier(.2,.6,.2,1);
}

/* Light design only — no dark template. */

/* ---------- Base ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3 { color: var(--ink-900); line-height: 1.15; margin: 0 0 var(--sp-4); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p  { margin: 0 0 var(--sp-4); }

:where(a,button,input,select,textarea):focus-visible {
  outline: 3px solid var(--red-500);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

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

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-4); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--sp-3); top: -100px; z-index: 100;
  background: var(--ink-900); color: #fff; padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-sm);
}
.skip-link:focus { top: var(--sp-3); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 44px; padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius-pill); border: 1px solid transparent;
  font-size: var(--step-0); font-weight: 600; cursor: pointer;
  transition: background .2s var(--ease), transform .1s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red-600); color: #fff; box-shadow: var(--shadow-1); }
.btn-primary:hover { background: var(--red-700); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink-900); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); color: var(--ink-900); }
.btn-block { width: 100%; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: 176px; }
.brand img { height: 136px; width: auto; }
.nav-toggle { display: inline-flex; align-items: center; gap: var(--sp-2);
  min-height: 44px; padding: var(--sp-2) var(--sp-3); background: none; border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--ink-900); font-weight: 600; }
.nav-toggle svg { width: 20px; height: 20px; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-1); }
.primary-nav a {
  display: block; padding: var(--sp-3) var(--sp-3); border-radius: var(--radius-sm);
  color: var(--ink-700); font-weight: 500;
}
.primary-nav a:hover { background: var(--surface); text-decoration: none; color: var(--ink-900); }
.primary-nav .support { color: var(--red-600); }
.primary-nav .login { color: #fff; background: var(--red-600); text-align: center; }
.primary-nav .login:hover { background: var(--red-700); color: #fff; text-decoration: none; }

/* Mobile: collapsible panel driven by a hidden checkbox */
.nav-check { position: absolute; opacity: 0; pointer-events: none; }
.primary-nav {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .25s var(--ease);
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg); border-bottom: 1px solid var(--border);
}
.primary-nav > ul { overflow: hidden; padding: var(--sp-3); }
.nav-check:checked ~ .primary-nav { grid-template-rows: 1fr; }

@media (min-width: 62rem) {
  .nav-toggle { display: none; }
  .primary-nav { position: static; display: block; background: none; border: 0; }
  .primary-nav > ul { overflow: visible; padding: 0; }
  .primary-nav ul { flex-direction: row; align-items: center; gap: var(--sp-1); }
  .primary-nav .login { padding-inline: var(--sp-5, 1.25rem); }
}

/* ---------- Hero (full-width banner background) ---------- */
.hero {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--border);
  background-color: #230101;
  background-image:
    linear-gradient(90deg, rgba(24,1,1,.94) 0%, rgba(30,2,2,.72) 40%, rgba(30,2,2,.32) 70%, rgba(30,2,2,.15) 100%),
    url(../images/banner.png);
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}
.hero-grid { position: relative; display: grid; gap: var(--sp-8); align-items: center;
  grid-template-columns: 1fr; min-height: 460px; padding-block: var(--sp-16) var(--sp-12); }
.hero-copy { max-width: 40rem; }

/* Text & controls tuned to the dark-red banner */
.hero h1 { color: #ffffff; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.hero p.lead { font-size: var(--step-1); color: rgba(255,255,255,.9); }
.eyebrow { display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--step--1); font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #ffffff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
  padding: var(--sp-1) var(--sp-3); border-radius: var(--radius-pill); margin-bottom: var(--sp-4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.hero .btn-primary { background: linear-gradient(135deg, #ff3b30, #e00611);
  color: #fff; box-shadow: 0 10px 28px rgba(255,45,45,.35); }
.hero .btn-primary:hover { background: linear-gradient(135deg, #ff5147, #c40510); color: #fff; }
.hero .btn-ghost { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.55); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.2); color: #fff; }

@media (max-width: 40rem) {
  .hero { background-position: center; }
  .hero-grid { min-height: 380px; }
}

/* ---------- Trust / stats strip ---------- */
.trust { position: relative; border-bottom: 1px solid var(--border); background: var(--bg); }
.trust-inner { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4);
  padding-block: var(--sp-8); text-align: center; }
.trust .num { font-size: var(--step-2); font-weight: 800; color: var(--ink-900); line-height: 1; }
.trust .lbl { font-size: var(--step--1); color: var(--ink-500); margin-top: var(--sp-2); }
@media (min-width: 48rem) { .trust-inner { grid-template-columns: repeat(4, 1fr); } }

/* Alternating band */
.band { background: var(--surface); border-block: 1px solid var(--border); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; color: #fff; border-radius: var(--radius);
  padding: var(--sp-12) var(--sp-8); text-align: center; box-shadow: var(--shadow-2);
  background: linear-gradient(135deg, var(--red-500), var(--red-700)); }
.cta-band::after { content: ""; position: absolute; inset: 0; opacity: .18; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.9) 1px, transparent 1.4px); background-size: 20px 20px; }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: var(--sp-3); }
.cta-band p { color: rgba(255,255,255,.9); max-width: 40rem; margin-inline: auto; margin-bottom: var(--sp-6); }
.cta-band .btn { background: #fff; color: var(--red-700); }
.cta-band .btn:hover { background: var(--surface); color: var(--red-700); }

/* ---------- Domain search ---------- */
.domain-search { background: var(--white); color: var(--ink-700); border: 1px solid var(--border);
  border-top: 4px solid var(--red-500); border-radius: var(--radius); padding: var(--sp-6);
  box-shadow: var(--shadow-2); margin-block: var(--sp-12); position: relative; }
.domain-search h2 { color: var(--ink-900); font-size: var(--step-1); margin-bottom: var(--sp-4); }
.domain-search form { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.domain-field { display: flex; flex: 1 1 100%; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden; }
.domain-field .prefix { display: flex; align-items: center; padding-inline: var(--sp-3); color: var(--ink-500); font-weight: 600; }
.domain-field input { flex: 1; min-width: 0; border: 0; padding: var(--sp-3); font-size: var(--step-0); color: var(--ink-900); }
.domain-field select { border: 0; border-left: 1px solid var(--border); padding: var(--sp-3); font-size: var(--step-0);
  color: var(--ink-900); background: var(--surface); min-height: 44px; }
.domain-search .btn { flex: 1 1 100%; }
.domain-search .view-pricing { color: var(--red-600); font-size: var(--step--1); font-weight: 600; }

@media (min-width: 40rem) {
  .domain-field { flex: 1 1 auto; }
  .domain-search .btn { flex: 0 0 auto; }
}

/* ---------- Sections & cards ---------- */
.py { padding-block: var(--sp-12); }
.section-head { max-width: 42rem; margin-bottom: var(--sp-8); }
.cards { display: grid; gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.card { position: relative; overflow: hidden; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--sp-6); box-shadow: var(--shadow-1);
  transition: box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease); }
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--red-500), var(--red-700)); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease); }
.card:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); border-color: color-mix(in srgb, var(--red-500) 40%, var(--border)); }
.card:hover::before { transform: scaleX(1); }
.card h3 { margin-bottom: var(--sp-2); }
.card p { color: var(--ink-500); }
.card .card-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--red-500) 12%, transparent); color: var(--red-600); margin-bottom: var(--sp-4); }
.card .card-icon svg { width: 24px; height: 24px; }
.card a.card-link { font-weight: 600; display: inline-flex; align-items: center; gap: var(--sp-1); margin-top: var(--sp-3); }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); color: var(--ink-700); border-top: 1px solid var(--border);
  padding-block: var(--sp-8); margin-top: var(--sp-16); }
.footer-inner { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; justify-content: space-between; }
.site-footer nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-4); margin: 0; padding: 0; }
.site-footer a { color: var(--ink-700); }
.site-footer a:hover { color: var(--red-600); }
.site-footer .copy { font-size: var(--step--1); color: var(--ink-500); }

/* ==========================================================================
   Legacy page components — restyled responsively & on-brand.
   Used by domain-names, web-hosting, email-office, support, contact & legal
   pages, which keep their original markup classes.
   ========================================================================== */

/* Layout: responsive container + columns (replaces the fixed 960 grid) */
.container_12 { width: 100%; max-width: var(--container); margin-inline: auto;
  padding-inline: var(--sp-4); display: flex; flex-wrap: wrap; gap: var(--sp-6);
  padding-block: var(--sp-8); }
.grid_12, .grid_8, .grid_4 { flex: 1 1 100%; min-width: 0; }
@media (min-width: 64rem) {
  .grid_8 { flex: 1 1 0; }
  .grid_4 { flex: 0 0 340px; }
}

/* Prose sections */
.section { padding-block: var(--sp-2); }
.section > h1:first-child, .section > h2:first-child { margin-top: 0; }
.section p { color: var(--ink-700); }
.section ul, .section ol { margin: 0 0 var(--sp-4) var(--sp-6); }
.section ul > li { list-style: disc; margin-bottom: var(--sp-2); }
.section ol > li { list-style: decimal; margin-bottom: var(--sp-2); }
.section.terms h3 { margin-top: var(--sp-8); }
.section h2 { margin-top: var(--sp-6); }

/* Arrow bullet lists */
.arrows { list-style: none; margin: 0 0 var(--sp-4); padding: 0; }
.arrows li { position: relative; padding-left: var(--sp-6); margin-bottom: var(--sp-2); }
.arrows li::before { content: "›"; position: absolute; left: 0; color: var(--red-600); font-weight: 800; }
.arrows a { color: var(--ink-700); }
.arrows a:hover { color: var(--red-600); }

/* Legacy .button → brand pill */
.button { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 44px; padding: var(--sp-3) var(--sp-6); border-radius: var(--radius-pill);
  background: var(--red-600); color: #fff !important; font-weight: 600; text-decoration: none;
  border: 0; cursor: pointer; transition: background .2s var(--ease); text-transform: none; }
.button:hover { background: var(--red-700); color: #fff !important; text-decoration: none; }

/* Sidebar aside cards */
.aside { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--sp-6); margin-bottom: var(--sp-6); }
.aside h3 { margin-bottom: var(--sp-2); }
.aside p { color: var(--ink-500); }
.aside ul { list-style: none; margin: var(--sp-3) 0; padding: 0; }
.aside li { position: relative; padding-left: var(--sp-6); margin-bottom: var(--sp-2); }
.aside li::before { content: "✓"; position: absolute; left: 0; color: var(--red-600); font-weight: 700; }
.aside.privacy { border-top: 4px solid var(--red-500); }

/* Link boxes (transfer / renew) */
.link-box { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--sp-6); margin-bottom: var(--sp-4); box-shadow: var(--shadow-1); }
.link-box h3 { margin-bottom: var(--sp-2); font-size: var(--step-1); }
.link-box h3 a { color: var(--ink-900); }
.link-box p { color: var(--ink-500); margin-bottom: var(--sp-3); }
.link-box .arrow { display: inline-block; color: var(--red-600); font-weight: 600;
  text-indent: 0 !important; width: auto; height: auto; background: none !important; float: none; }
.link-box .arrow::after { content: " →"; }

/* Featured domain prices */
.price-grid { display: grid; gap: var(--sp-3); margin-block: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); }
.price-grid h2 { grid-column: 1 / -1; margin: 0; }
.price-grid > div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: var(--sp-4); text-align: center; font-weight: 600; }
.price-grid span { display: block; font-size: var(--step-2); font-weight: 800; color: var(--ink-900); }
.price-grid sup { font-size: .5em; }

/* All available extensions */
.all-prices { display: grid; grid-template-columns: 1fr auto; gap: 0 var(--sp-4); margin-top: var(--sp-4); }
@media (min-width: 48rem) { .all-prices { grid-template-columns: 1fr auto 1fr auto 1fr auto; column-gap: var(--sp-6); } }
.all-prices > div { padding: var(--sp-2) 0; border-bottom: 1px solid var(--border); font-size: var(--step--1); }
.all-prices .conditions { grid-column: 1 / -1; border: 0; color: var(--ink-500); padding-top: var(--sp-4); }

/* Pricing comparison tables */
#tabDetails { overflow-x: auto; }
#tabDetails h1 { margin-top: 0; }
table.hosting { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 560px; margin-top: var(--sp-6); }
table.hosting th, table.hosting td { border-bottom: 1px solid var(--border); padding: var(--sp-3); text-align: center; vertical-align: middle; }
table.hosting th { background: var(--surface); vertical-align: top; }
table.hosting th h2 { font-size: var(--step-1); margin: 0 0 var(--sp-2); }
table.hosting .item { text-align: left; font-weight: 600; color: var(--ink-900); background: var(--bg); }
table.hosting .empty { background: var(--bg); border: 0; }
table.hosting .price { font-size: var(--step--1); color: var(--ink-500); margin-bottom: var(--sp-3); }
table.hosting .price span { display: block; font-size: var(--step-2); font-weight: 800; color: var(--red-600); }
table.hosting .price sup { font-size: .5em; }
table.hosting .button { margin-top: var(--sp-2); }

/* FAQ */
.faq { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--sp-6); margin-bottom: var(--sp-4); }
.faq h3 { margin-bottom: var(--sp-2); }
.faq p { color: var(--ink-500); }
.faq-list { list-style: none; padding: 0; }
.faq-list > li { padding-bottom: var(--sp-6); margin-bottom: var(--sp-6); border-bottom: 1px solid var(--border); list-style: none; }
.faq-list > li:last-child { border-bottom: 0; }
.faq-list > li > strong { display: block; font-size: var(--step-1); color: var(--ink-900); margin-bottom: var(--sp-3); }
.faq-list ul > li { list-style: disc; margin-left: var(--sp-6); margin-bottom: var(--sp-2); }
.faq-list ol > li { list-style: decimal; margin-left: var(--sp-6); margin-bottom: var(--sp-2); }
.faq-list .top { float: right; font-size: var(--step--1); }
.back { display: inline-block; color: var(--red-600); font-weight: 600; margin-bottom: var(--sp-4); }
.back::before { content: "‹ "; }

/* Contact details */
.contact { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--sp-6); margin-bottom: var(--sp-6); display: flex; flex-wrap: wrap; gap: var(--sp-8); }
.contact .phonemail, .contact .address { min-width: 12rem; }
.contact span { display: block; color: var(--ink-500); font-size: var(--step--1); text-transform: uppercase; letter-spacing: .04em; }
.contact p { font-weight: 600; margin: 0 0 var(--sp-3); }

/* Contact form */
.contact-form h3 { margin-bottom: var(--sp-4); }
.contact-form label { display: block; font-weight: 600; margin-bottom: var(--sp-1); }
.contact-form .req { color: var(--red-600); }
.contact-form input[type=text], .contact-form input[type=email], .contact-form textarea {
  width: 100%; padding: var(--sp-3); margin-bottom: var(--sp-4);
  border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit;
  background: var(--bg); color: var(--ink-900); }
.contact-form .error { color: var(--danger); font-size: var(--step--1); display: inline-block; margin-bottom: var(--sp-1); }
.contact-form input.error, .contact-form textarea.error { border-color: var(--danger); }
#captcha { display: block; margin-bottom: var(--sp-3); border-radius: var(--radius-sm); max-width: 100%; }
#different { color: var(--red-600); font-size: var(--step--1); display: inline-block; margin-bottom: var(--sp-3); }
.contact-form .g-recaptcha { margin: var(--sp-2) 0 var(--sp-4); }
.contact-form code { background: var(--surface-2); padding: 0 .3em; border-radius: 4px; font-size: .9em; }

/* Domain-search band spacing when used as an include between sections */
.search-band { padding-block: var(--sp-4); }
