/* =============================================================================
   AMOCSOFT DESIGN SYSTEM
   Brand: trust-blue primary + warm amber accent. Original identity — not a
   truehost clone. All tokens are CSS custom properties so the whole site can be
   re-themed from this one block. Overrides for Hostiko markup follow below.
   ============================================================================= */

:root {
  /* --- Brand palette -------------------------------------------------------
     Primary: a deep, trustworthy blue. Accent: warm amber for CTAs so buttons
     pop against the cool blues. Ink/greys for text and surfaces. */
  --am-blue-900: #0a2540;   /* darkest — headings, footer */
  --am-blue-800: #10345a;
  --am-blue-700: #1450a3;   /* primary brand blue */
  --am-blue-600: #1a63c8;   /* primary hover / links */
  --am-blue-500: #2f7be0;   /* bright accents, focus rings */
  --am-blue-100: #e7f0fc;   /* tint backgrounds */
  --am-blue-50:  #f4f8fe;

  --am-accent-600: #d97706;  /* amber — primary CTA */
  --am-accent-500: #f59e0b;  /* amber hover */
  --am-accent-100: #fef3e2;

  --am-teal-500: #0ea5a4;    /* secondary accent (success/checkmarks) */

  --am-ink-900: #0f172a;     /* body headings */
  --am-ink-700: #334155;     /* body text */
  --am-ink-500: #64748b;     /* muted text */
  --am-ink-300: #cbd5e1;     /* borders */
  --am-surface: #ffffff;
  --am-surface-alt: #f8fafc; /* section alternating bg */

  --am-success: #16a34a;
  --am-danger:  #dc2626;

  /* --- Typography ---------------------------------------------------------- */
  --am-font-sans: "Inter", "Poppins", -apple-system, BlinkMacSystemFont,
                  "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --am-font-heading: "Poppins", var(--am-font-sans);

  --am-fs-hero: clamp(2.2rem, 5vw, 3.6rem);
  --am-fs-h1: clamp(1.9rem, 4vw, 2.8rem);
  --am-fs-h2: clamp(1.5rem, 3vw, 2.1rem);
  --am-fs-h3: 1.35rem;
  --am-fs-body: 1.05rem;
  --am-fs-small: 0.9rem;
  --am-lh-tight: 1.15;
  --am-lh-body: 1.65;

  /* --- Shape & depth ------------------------------------------------------- */
  --am-radius-sm: 8px;
  --am-radius: 14px;
  --am-radius-lg: 22px;
  --am-radius-pill: 999px;

  --am-shadow-sm: 0 1px 3px rgba(10, 37, 64, 0.08);
  --am-shadow: 0 8px 24px rgba(10, 37, 64, 0.10);
  --am-shadow-lg: 0 20px 48px rgba(10, 37, 64, 0.16);

  /* --- Layout -------------------------------------------------------------- */
  --am-container: 1200px;
  --am-gap: clamp(1rem, 3vw, 2.5rem);
  --am-section-y: clamp(3rem, 7vw, 6rem);
}

/* =============================================================================
   BASE / TYPOGRAPHY OVERRIDES
   ============================================================================= */
body,
body.hostiko {
  font-family: var(--am-font-sans);
  font-size: var(--am-fs-body);
  line-height: var(--am-lh-body);
  color: var(--am-ink-700);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--am-font-heading);
  color: var(--am-ink-900);
  line-height: var(--am-lh-tight);
  font-weight: 700;
}

a { color: var(--am-blue-600); transition: color .15s ease; }
a:hover { color: var(--am-blue-700); }

/* Utility container used by our custom sections */
.am-container {
  max-width: var(--am-container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}
.am-section { padding-block: var(--am-section-y); }
.am-section--alt { background: var(--am-surface-alt); }
.am-section--blue {
  background: linear-gradient(135deg, var(--am-blue-800), var(--am-blue-700));
  color: #fff;
}
.am-section--blue h1,
.am-section--blue h2,
.am-section--blue h3 { color: #fff; }

/* =============================================================================
   BUTTONS  (map Hostiko + Elementor button classes onto brand)
   ============================================================================= */
.am-btn,
.hostiko .btn-primary,
.elementor-button.elementor-button-primary,
input[type="submit"].am-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: var(--am-font-heading);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: .95em 1.7em;
  border-radius: var(--am-radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
}
/* Primary = amber CTA (high contrast against blue hero) */
.am-btn--primary,
.hostiko .btn-primary {
  background: var(--am-accent-600);
  color: #fff;
  box-shadow: var(--am-shadow-sm);
}
.am-btn--primary:hover,
.hostiko .btn-primary:hover {
  background: var(--am-accent-500);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--am-shadow);
}
/* Secondary = solid blue */
.am-btn--blue {
  background: var(--am-blue-700);
  color: #fff;
}
.am-btn--blue:hover { background: var(--am-blue-600); color: #fff; transform: translateY(-2px); }
/* Ghost = outline, for use on blue backgrounds */
.am-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.55);
}
.am-btn--ghost:hover { background: rgba(255,255,255,.12); color:#fff; }

/* =============================================================================
   NAV / HEADER
   ============================================================================= */
.hostiko .main-header,
.site-header {
  box-shadow: var(--am-shadow-sm);
  background: #fff;
}
.hostiko .navbar-nav > li > a {
  color: var(--am-ink-900) !important;
  font-family: var(--am-font-heading);
  font-weight: 500;
}
.hostiko .navbar-nav > li > a:hover,
.hostiko .navbar-nav > li.active > a {
  color: var(--am-blue-700) !important;
}

/* =============================================================================
   HERO  (custom, brand-owned)
   ============================================================================= */
.am-hero {
  position: relative;
  background: radial-gradient(1200px 600px at 80% -10%, var(--am-blue-600) 0%, transparent 60%),
              linear-gradient(135deg, var(--am-blue-900) 0%, var(--am-blue-700) 100%);
  color: #fff;
  padding-block: clamp(3.5rem, 9vw, 7rem);
  overflow: hidden;
}
.am-hero h1 {
  color: #fff;
  font-size: var(--am-fs-hero);
  max-width: 15ch;
  margin: 0 0 1rem;
}
.am-hero p.am-hero__sub {
  font-size: 1.2rem;
  color: rgba(255,255,255,.85);
  max-width: 52ch;
  margin: 0 0 2rem;
}

/* Domain search box — the centrepiece */
.am-domain-search {
  display: flex;
  gap: .5rem;
  background: #fff;
  padding: .55rem;
  border-radius: var(--am-radius-pill);
  box-shadow: var(--am-shadow-lg);
  max-width: 620px;
}
.am-domain-search input[type="text"] {
  flex: 1;
  border: 0;
  outline: 0;
  font-size: 1.05rem;
  padding: .7em 1.2em;
  border-radius: var(--am-radius-pill);
  color: var(--am-ink-900);
  background: transparent;
}
.am-domain-search .am-btn { white-space: nowrap; }

.am-tld-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 1.5rem;
  color: rgba(255,255,255,.9);
  font-size: var(--am-fs-small);
}
.am-tld-strip b { color: #fff; font-family: var(--am-font-heading); }

/* =============================================================================
   PRICING TILES  (domains + hosting)
   ============================================================================= */
.am-grid {
  display: grid;
  gap: var(--am-gap);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.am-card {
  background: var(--am-surface);
  border: 1px solid var(--am-ink-300);
  border-radius: var(--am-radius);
  padding: 1.8rem;
  box-shadow: var(--am-shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.am-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--am-shadow);
  border-color: var(--am-blue-500);
}
.am-card--featured {
  border-color: var(--am-blue-700);
  box-shadow: var(--am-shadow);
  position: relative;
}
.am-card--featured::before {
  content: "Most popular";
  position: absolute;
  top: -.8rem; left: 50%;
  transform: translateX(-50%);
  background: var(--am-accent-600);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .3em 1em;
  border-radius: var(--am-radius-pill);
}
.am-price {
  font-family: var(--am-font-heading);
  font-weight: 800;
  color: var(--am-blue-900);
  font-size: 2rem;
  line-height: 1;
}
.am-price small { font-size: .95rem; color: var(--am-ink-500); font-weight: 500; }
.am-tld-tile {
  text-align: center;
}
.am-tld-tile .am-tld-name {
  font-family: var(--am-font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--am-blue-700);
}

/* Feature list with checkmarks */
.am-features { list-style: none; padding: 0; margin: 1rem 0; }
.am-features li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: .55rem;
  color: var(--am-ink-700);
}
.am-features li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--am-teal-500);
  font-weight: 800;
}

/* =============================================================================
   TRUST / STATS STRIP
   ============================================================================= */
.am-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--am-gap);
  text-align: center;
}
.am-stat__num {
  font-family: var(--am-font-heading);
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--am-blue-700);
  line-height: 1;
}
.am-stat__label { color: var(--am-ink-500); font-size: var(--am-fs-small); }

/* =============================================================================
   FOOTER
   ============================================================================= */
.hostiko .footer,
.site-footer {
  background: var(--am-blue-900);
  color: rgba(255,255,255,.8);
}
.hostiko .footer a,
.site-footer a { color: rgba(255,255,255,.75); }
.hostiko .footer a:hover,
.site-footer a:hover { color: #fff; }

/* =============================================================================
   FOCUS / ACCESSIBILITY
   ============================================================================= */
:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--am-blue-500);
  outline-offset: 2px;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */
@media (max-width: 640px) {
  .am-domain-search { flex-direction: column; border-radius: var(--am-radius); }
  .am-domain-search .am-btn { width: 100%; }
  .am-hero h1 { max-width: 100%; }
}

/* =============================================================================
   CHILD-THEME HEADER & FOOTER (self-contained, replaces broken parent header)
   ============================================================================= */
.am-skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--am-blue-700); color: #fff; padding: .6em 1em; border-radius: 0 0 8px 0;
}
.am-skip-link:focus { left: 0; }

.am-site-header {
  position: sticky; top: 0; z-index: 500;
  background: #fff;
  box-shadow: var(--am-shadow-sm);
}
.am-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 76px;
}
.am-branding { display: flex; align-items: center; flex: 0 0 auto; }
.am-logo-img, .am-branding .custom-logo { max-height: 46px; width: auto; display: block; }
.am-logo-text, .am-footer-brandname {
  font-family: var(--am-font-heading); font-weight: 800; font-size: 1.4rem;
  color: var(--am-blue-800); text-decoration: none;
}

/* Primary nav */
.am-primary-nav { display: flex; align-items: center; gap: 1.5rem; }
.am-menu {
  display: flex; align-items: center; gap: 1.2rem;
  list-style: none; margin: 0; padding: 0;
}
.am-menu li { position: relative; }
.am-menu a {
  font-family: var(--am-font-heading); font-weight: 500; font-size: 1rem;
  color: var(--am-ink-900); text-decoration: none; padding: .4em 0;
  display: inline-block;
}
.am-menu a:hover { color: var(--am-blue-700); }
/* Dropdowns */
.am-menu .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 200px;
  background: #fff; box-shadow: var(--am-shadow); border-radius: var(--am-radius-sm);
  list-style: none; margin: .5rem 0 0; padding: .5rem 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.am-menu .menu-item-has-children:hover > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.am-menu .sub-menu a { padding: .5em 1.2em; display: block; white-space: nowrap; }
.am-menu .sub-menu a:hover { background: var(--am-blue-50); }
.am-nav-cta { margin-left: .5rem; }

/* Mobile toggle */
.am-nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: .5rem;
}
.am-nav-toggle__bar { width: 26px; height: 3px; background: var(--am-blue-800); border-radius: 2px; transition: .2s; }

@media (max-width: 900px) {
  .am-nav-toggle { display: flex; }
  .am-primary-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; box-shadow: var(--am-shadow-lg);
    padding: 1rem; display: none;
  }
  .am-primary-nav.is-open { display: flex; }
  .am-menu { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .am-menu a { padding: .8em 0; border-bottom: 1px solid var(--am-blue-50); }
  .am-menu .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; margin: 0 0 0 1rem; padding: 0;
  }
  .am-nav-cta { margin: 1rem 0 0; text-align: center; }
}

/* Footer */
.am-site-footer { background: var(--am-blue-900); color: rgba(255,255,255,.8); margin-top: 0; }
.am-footer-grid {
  display: grid; gap: var(--am-gap);
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.am-footer-logo { max-height: 44px; width: auto; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.am-footer-tag { color: rgba(255,255,255,.65); font-size: var(--am-fs-small); max-width: 32ch; }
.am-footer-col h4 { color: #fff; font-size: 1rem; margin: 0 0 1rem; }
.am-footer-col ul { list-style: none; margin: 0; padding: 0; }
.am-footer-col li { margin-bottom: .6rem; }
.am-footer-col a { color: rgba(255,255,255,.75); text-decoration: none; }
.am-footer-col a:hover { color: #fff; }
.am-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.2rem; font-size: var(--am-fs-small); }
.am-footer-bottom p { margin: 0; color: rgba(255,255,255,.6); }

@media (max-width: 780px) {
  .am-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .am-footer-grid { grid-template-columns: 1fr; }
}

/* =============================================================================
   FRONTEND DOMAIN SEARCH RESULTS (rendered under the hero search box)
   ============================================================================= */
.am-domain-results { margin-top: 1.25rem; max-width: 620px; }
.am-searching, .am-search-error {
  background: rgba(255,255,255,.12); color: #fff;
  padding: .9rem 1.2rem; border-radius: var(--am-radius-sm);
}
.am-search-error { background: rgba(220,38,38,.22); }

.am-result--feature {
  background: #fff; color: var(--am-ink-900);
  border-radius: var(--am-radius); padding: 1.3rem 1.5rem;
  box-shadow: var(--am-shadow-lg);
  display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem;
}
.am-result--feature.is-available { border-left: 6px solid var(--am-success); }
.am-result--feature.is-taken { border-left: 6px solid var(--am-danger); }
.am-result__name { font-family: var(--am-font-heading); font-weight: 800; font-size: 1.2rem; }
.am-result__status { color: var(--am-ink-500); }
.am-result--feature.is-available .am-result__status { color: var(--am-success); font-weight: 600; }
.am-result__price { font-family: var(--am-font-heading); font-weight: 800; color: var(--am-blue-800); font-size: 1.3rem; margin-left: auto; }
.am-result__price small { font-size: .8rem; color: var(--am-ink-500); font-weight: 500; }
.am-result--feature .am-btn { margin-left: .5rem; }

.am-result-list {
  background: #fff; border-radius: var(--am-radius);
  margin-top: .6rem; overflow: hidden; box-shadow: var(--am-shadow);
}
.am-result-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem 1.3rem; border-bottom: 1px solid var(--am-blue-50);
}
.am-result-row:last-child { border-bottom: 0; }
.am-result-row__name { font-family: var(--am-font-heading); font-weight: 600; color: var(--am-ink-900); }
.am-result-row.is-taken .am-result-row__name { color: var(--am-ink-500); text-decoration: line-through; }
.am-result-row__meta { display: flex; align-items: center; gap: .9rem; }
.am-result-row__meta b { color: var(--am-blue-800); font-family: var(--am-font-heading); }
.am-taken { color: var(--am-ink-500); font-size: var(--am-fs-small); }
.am-btn--sm { padding: .5em 1.1em; font-size: .85rem; }

/* =============================================================================
   LANDING / INNER PAGES
   ============================================================================= */
.am-hero--inner { padding-block: clamp(3rem, 6vw, 5rem); }
.am-hero--inner h1 { max-width: 20ch; }

.am-card h3 { margin-top: 0; }

/* FAQ accordion */
.am-faq__item {
  background: #fff; border: 1px solid var(--am-ink-300);
  border-radius: var(--am-radius-sm); margin-bottom: .8rem; overflow: hidden;
}
.am-faq__item summary {
  cursor: pointer; padding: 1.1rem 1.4rem; font-family: var(--am-font-heading);
  font-weight: 600; color: var(--am-ink-900); list-style: none; position: relative;
}
.am-faq__item summary::-webkit-details-marker { display: none; }
.am-faq__item summary::after {
  content: "+"; position: absolute; right: 1.4rem; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--am-blue-600); font-weight: 400;
}
.am-faq__item[open] summary::after { content: "–"; }
.am-faq__a { padding: 0 1.4rem 1.2rem; color: var(--am-ink-700); }

/* =============================================================================
   PRODUCT PLAN CARDS (VPS / hosting / pricing — live from WHMCS)
   ============================================================================= */
.am-plans .am-plan { display: flex; flex-direction: column; text-align: center; }
.am-plan h3 { font-size: 1.25rem; }
.am-plan .am-price { font-size: 1.9rem; margin: .4rem 0 .2rem; }
.am-plan__annual { color: var(--am-ink-500); font-size: var(--am-fs-small); margin: 0 0 .8rem; }
.am-plan .am-features { text-align: left; flex: 1; }
.am-plan .am-btn { margin-top: auto; }

.am-plans-placeholder {
  margin-top: 2rem; text-align: center;
  background: var(--am-blue-50); border: 1px dashed var(--am-blue-500);
  border-radius: var(--am-radius); padding: 2.5rem 1.5rem; max-width: 680px; margin-inline: auto;
}
.am-plans-placeholder p { color: var(--am-ink-700); max-width: 52ch; margin: 0 auto 1.3rem; }

/* Domain-search cart forms render inline like the old buttons did */
.am-cartform { display: inline; margin: 0; }
.am-result--feature .am-cartform { margin-left: .5rem; }
