/* ==========================================================
   RateCenters.com — Stylesheet
   Palette: navy / blue / gray / white with a subtle green accent
   Type: Manrope (display) + Inter (body)
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --navy: #0B2545;
  --navy-800: #123058;
  --blue: #2C6ECB;
  --blue-600: #1F58AB;
  --blue-tint: #EAF2FF;
  --green: #2F8F6B;
  --green-tint: #EAF7F1;
  --gray-900: #14202B;
  --gray-700: #3D4B5C;
  --gray-500: #6B7A8C;
  --gray-300: #C6D0DB;
  --gray-150: #EDF1F5;
  --gray-100: #F6F8FA;
  --white: #FFFFFF;

  --font-display: 'Manrope', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(11,37,69,0.06), 0 1px 1px rgba(11,37,69,0.04);
  --shadow-md: 0 8px 24px rgba(11,37,69,0.08);
  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--gray-700); }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { color: var(--gray-700); }

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

.sr-only {
  position: absolute; 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: -9999px; top: 0; background: var(--navy); color: var(--white);
  padding: 10px 16px; z-index: 1000; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--gray-150);
  position: sticky; top: 0; background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(6px);
  z-index: 100;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: var(--white); font-family: var(--font-display); font-weight: 800;
  font-size: 0.8rem; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--navy); }
.brand__tagline { font-size: 0.7rem; color: var(--gray-500); font-weight: 500; }
.brand--footer .brand__mark { background: linear-gradient(135deg, var(--blue), var(--green)); }

.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.site-nav a {
  color: var(--gray-700); font-weight: 600; font-size: 0.92rem;
  padding: 8px 12px; border-radius: var(--radius-sm);
}
.site-nav a:hover { background: var(--gray-100); text-decoration: none; color: var(--navy); }
.site-nav a.is-active { color: var(--blue-600); background: var(--blue-tint); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 4px;
  background: none; border: 1px solid var(--gray-300); border-radius: var(--radius-sm);
  width: 40px; height: 36px; cursor: pointer;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--navy); margin: 0 auto; display: block; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { background: var(--gray-100); border-bottom: 1px solid var(--gray-150); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 10px 0; font-size: 0.82rem; }
.breadcrumbs li { display: flex; align-items: center; gap: 6px; color: var(--gray-500); }
.breadcrumbs a { color: var(--gray-500); font-weight: 500; }
.breadcrumbs__sep { color: var(--gray-300); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 15% 20%, rgba(44,110,203,0.08) 0, transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(47,143,107,0.08) 0, transparent 40%),
    var(--white);
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--gray-150);
  position: relative;
  overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--blue-600); background: var(--blue-tint); padding: 6px 12px; border-radius: 999px;
  margin-bottom: 16px;
}
.hero p.lede { font-size: 1.08rem; color: var(--gray-700); max-width: 52ch; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

.hero__diagram { width: 100%; height: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.92rem;
  padding: 11px 20px; border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-800); }
.btn-secondary { background: var(--white); color: var(--navy); border-color: var(--gray-300); }
.btn-secondary:hover { background: var(--gray-100); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section--tight { padding: 40px 0; }
.section--muted { background: var(--gray-100); }
.section__head { max-width: 68ch; margin: 0 0 32px; }
.section__head p { font-size: 1.02rem; }

/* ---------- Cards / grid ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--gray-150); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__icon {
  width: 40px; height: 40px; border-radius: 9px; background: var(--blue-tint);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px; color: var(--blue-600);
}
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 10px; font-size: 0.95rem; }
.card a.card-link { font-size: 0.88rem; font-weight: 600; }

/* ---------- Prose / article pages ---------- */
.article-layout {
  display: grid; grid-template-columns: 2.2fr 0.9fr; gap: 48px; align-items: start;
}
.prose { max-width: 74ch; }
.prose h2 { margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 0.92rem; }
.prose th, .prose td { border: 1px solid var(--gray-150); padding: 10px 12px; text-align: left; }
.prose th { background: var(--gray-100); font-family: var(--font-display); color: var(--navy); }
.prose blockquote {
  border-left: 3px solid var(--green); margin: 1.4em 0; padding: 4px 0 4px 18px;
  color: var(--gray-700); font-style: italic;
}

.callout {
  background: var(--green-tint); border: 1px solid rgba(47,143,107,0.25);
  border-radius: var(--radius); padding: 18px 20px; margin: 1.6em 0;
}
.callout--note { background: var(--blue-tint); border-color: rgba(44,110,203,0.25); }
.callout h4 { margin-bottom: 6px; color: var(--navy); font-size: 0.95rem; }
.callout p:last-child { margin-bottom: 0; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 92px; }
.sidebar-box {
  border: 1px solid var(--gray-150); border-radius: var(--radius); padding: 20px; background: var(--gray-100);
}
.sidebar-box h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--gray-500); margin-bottom: 12px; }
.sidebar-box ul { list-style: none; padding: 0; margin: 0; }
.sidebar-box li { margin-bottom: 8px; font-size: 0.9rem; }
.sidebar-box li a { color: var(--gray-700); font-weight: 500; }
.sidebar-box li a:hover { color: var(--blue-600); }

/* ---------- Related links row ---------- */
.related-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.related-links a {
  background: var(--white); border: 1px solid var(--gray-300); border-radius: 999px;
  padding: 8px 14px; font-size: 0.85rem; font-weight: 600; color: var(--navy);
}
.related-links a:hover { border-color: var(--blue); color: var(--blue-600); text-decoration: none; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 78ch; }
.faq-item { border: 1px solid var(--gray-150); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 16px 20px; font-family: var(--font-display);
  font-weight: 700; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--gray-500); font-weight: 400; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item .faq-answer { padding: 0 20px 18px; color: var(--gray-700); }

/* ---------- Glossary ---------- */
.glossary-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 40px; }
.glossary-item { padding: 16px 0; border-bottom: 1px solid var(--gray-150); break-inside: avoid; }
.glossary-item dt { font-family: var(--font-display); font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.glossary-item dd { margin: 0; color: var(--gray-700); font-size: 0.94rem; }

/* ---------- Domain acquisition band ---------- */
.domain-band {
  background: linear-gradient(120deg, var(--navy), var(--navy-800));
  color: var(--white); border-radius: var(--radius); padding: 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.domain-band h3 { color: var(--white); margin-bottom: 6px; }
.domain-band p { color: rgba(255,255,255,0.78); margin-bottom: 0; max-width: 56ch; }

/* ---------- Contact form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: 0.88rem; color: var(--navy); }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font-body); font-size: 0.95rem; padding: 10px 12px;
  border: 1px solid var(--gray-300); border-radius: var(--radius-sm); background: var(--white); color: var(--gray-900);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint);
}
.form-hint { font-size: 0.8rem; color: var(--gray-500); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; }

.alert { border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 20px; font-size: 0.92rem; }
.alert--error { background: #FDECEC; border: 1px solid #F3B4B4; color: #8A2C2C; }
.alert--success { background: var(--green-tint); border: 1px solid rgba(47,143,107,0.3); color: #1F5C43; }

/* ---------- Ads ---------- */
.ad-slot {
  border: 1px dashed var(--gray-300); border-radius: var(--radius-sm);
  padding: 10px; text-align: center; margin: 28px 0; background: var(--gray-100);
}
.ad-slot__label {
  display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--gray-500); margin-bottom: 8px;
}

/* ---------- Stats strip ---------- */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat h3 { font-size: 1.9rem; margin-bottom: 2px; }
.stat p { font-size: 0.85rem; color: var(--gray-500); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--gray-100); border-top: 1px solid var(--gray-150); padding: 48px 0 24px; margin-top: 40px; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.site-footer__col h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-500); margin-bottom: 14px; }
.site-footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.site-footer__col a { color: var(--gray-700); font-size: 0.9rem; }
.site-footer__col a:hover { color: var(--blue-600); }
.site-footer__disclaimer { font-size: 0.85rem; color: var(--gray-500); margin-top: 12px; max-width: 42ch; }
.site-footer__domain {
  border-top: 1px solid var(--gray-300); border-bottom: 1px solid var(--gray-300);
  padding: 16px 0; margin-bottom: 20px; font-size: 0.9rem; color: var(--gray-700);
}
.link-inline { font-weight: 700; margin-left: 6px; }
.site-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 0.82rem; color: var(--gray-500); }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 90px 0; }
.error-page .code { font-family: var(--font-display); font-weight: 800; font-size: 5rem; color: var(--blue-tint); -webkit-text-stroke: 2px var(--blue); color: transparent; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero__inner { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .glossary-list { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--gray-150); box-shadow: var(--shadow-md); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: 12px; }
  .card-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .domain-band { flex-direction: column; align-items: flex-start; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
