/* ============================================================
   MySiteRanks.io — Global Stylesheet
   Compiled Tailwind-inspired utility CSS
   Version: 1.0 | April 2026
   ============================================================ */

/* ---- RESET & ROOT ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #ffffff;
  color: #0f172a;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ---- CSS VARIABLES ---- */
:root {
  --navy:         #0b0f2e;
  --navy-mid:     #111740;
  --blue-primary: #1e3a8a;
  --blue-bright:  #2563eb;
  --blue-card:    #3b5bdb;
  --gold:         #f59e0b;
  --gold-dark:    #d97706;
  --lavender-bg:  #eef0fb;
  --white:        #ffffff;
  --off-white:    #f8f9ff;
  --text-dark:    #0f172a;
  --text-mid:     #334155;
  --text-light:   #64748b;
  --border:       #e2e8f0;
  --green:        #16a34a;
  --red:          #dc2626;
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:    0 8px 30px rgba(0,0,0,0.12);
  --shadow-lg:    0 20px 60px rgba(30,58,138,0.18);
  --transition:   all 0.25s ease;
  --container:    1160px;
}

/* ---- LAYOUT ---- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 90px 0; }
.section-sm { padding: 56px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.text-center { text-align: center; }

/* ---- TYPOGRAPHY ---- */
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(245,158,11,0.12);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.section-label.blue {
  color: var(--blue-bright);
  background: rgba(37,99,235,0.1);
}
h1, .h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 900; line-height: 1.1; letter-spacing: -0.02em; }
h2, .h2 { font-size: clamp(1.75rem, 3.5vw, 2.6rem); font-weight: 800; line-height: 1.2; }
h3, .h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
h4, .h4 { font-size: 0.95rem; font-weight: 700; }
.lead { font-size: 1.05rem; color: var(--text-mid); line-height: 1.7; }
.lead.light { color: rgba(255,255,255,0.75); }
.text-gold { color: var(--gold); }
.text-blue { color: var(--blue-bright); }
.text-white { color: var(--white); }
.text-mid { color: var(--text-mid); }
.text-light-color { color: var(--text-light); }
em.highlight { font-style: normal; color: var(--gold); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,158,11,0.35); }
.btn-blue {
  background: var(--blue-primary);
  color: var(--white);
  border-color: var(--blue-primary);
}
.btn-blue:hover { background: var(--blue-bright); border-color: var(--blue-bright); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(30,58,138,0.3); }
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-outline-blue {
  background: transparent;
  color: var(--blue-primary);
  border-color: var(--blue-primary);
}
.btn-outline-blue:hover { background: var(--blue-primary); color: var(--white); }
.btn-white {
  background: var(--white);
  color: var(--blue-primary);
  border-color: var(--white);
}
.btn-white:hover { background: transparent; color: var(--white); }
.btn-group { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- NAVIGATION ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-icon {
  width: 42px;
  height: 42px;
  background: var(--blue-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-logo-icon svg { width: 24px; height: 24px; fill: var(--white); }
.nav-logo-text .brand { font-size: 1rem; font-weight: 800; color: var(--blue-primary); letter-spacing: -0.01em; display: block; line-height: 1.2; }
.nav-logo-text .tagline { font-size: 0.62rem; font-weight: 500; color: var(--text-light); letter-spacing: 0.04em; text-transform: uppercase; display: block; }
.nav-logo-img { height: 48px; width: auto; max-width: 240px; display: block; object-fit: contain; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 0.9rem; font-weight: 600; color: var(--text-mid); transition: var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--blue-primary); }
.nav-contact { display: flex; flex-direction: column; align-items: flex-end; font-size: 0.78rem; color: var(--text-mid); line-height: 1.5; }
.nav-contact a { color: var(--blue-bright); font-weight: 600; }
.nav-contact a:hover { color: var(--blue-primary); }

/* Mobile nav toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text-dark); border-radius: 2px; transition: var(--transition); }

/* ---- HERO SECTIONS ---- */
.hero-dark {
  background: var(--navy);
  background-image:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(37,99,235,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(245,158,11,0.08) 0%, transparent 60%);
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-dark .container { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.hero-eyebrow span { width: 24px; height: 2px; background: var(--gold); display: inline-block; }
.hero-trust { display: flex; gap: 24px; margin-top: 32px; flex-wrap: wrap; }
.hero-trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: rgba(255,255,255,0.65); font-weight: 500; }
.hero-trust-item svg { width: 16px; height: 16px; fill: var(--green); flex-shrink: 0; }

/* Page hero (interior pages) */
.page-hero {
  background: var(--navy);
  background-image: radial-gradient(ellipse 70% 60% at 60% 50%, rgba(37,99,235,0.3) 0%, transparent 70%);
  padding: 80px 0 70px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero .container { position: relative; z-index: 1; }

/* ---- CARDS ---- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-dark {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 28px 28px 24px;
  transition: var(--transition);
}
.card-dark:hover { background: rgba(255,255,255,0.08); border-color: rgba(245,158,11,0.3); }
.card-icon {
  width: 48px;
  height: 48px;
  background: var(--lavender-bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.card-icon svg { width: 24px; height: 24px; fill: var(--blue-primary); }
.card-icon.gold { background: rgba(245,158,11,0.15); }
.card-icon.gold svg { fill: var(--gold); }

/* ---- TRUST BADGES / PILLS ---- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue-primary);
  background: rgba(30,58,138,0.08);
  padding: 6px 14px;
  border-radius: 50px;
}
.pill svg { width: 14px; height: 14px; fill: var(--blue-primary); }
.pill-group { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

/* ---- TESTIMONIALS ---- */
.testimonial {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue-card);
  border-radius: var(--radius-md);
  padding: 28px 28px 24px;
}
.testimonial blockquote { font-size: 0.95rem; color: var(--text-mid); line-height: 1.7; font-style: italic; margin-bottom: 16px; }
.testimonial cite { font-size: 0.82rem; font-weight: 700; color: var(--text-dark); font-style: normal; display: block; }
.testimonial cite span { font-weight: 400; color: var(--text-light); }

/* ---- FEATURE LIST ---- */
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.92rem; color: var(--text-mid); line-height: 1.5; }
.feature-list li svg { width: 18px; height: 18px; fill: var(--blue-card); flex-shrink: 0; margin-top: 1px; }
.feature-list li strong { color: var(--text-dark); }

/* ---- SECTION BACKGROUNDS ---- */
.bg-white { background: var(--white); }
.bg-off-white { background: var(--off-white); }
.bg-lavender { background: var(--lavender-bg); }
.bg-navy { background: var(--navy); }
.bg-blue { background: var(--blue-primary); }

/* ---- DIVIDERS ---- */
.divider { height: 1px; background: var(--border); margin: 24px 0; }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--navy);
  padding: 60px 0 0;
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand .brand-name { font-size: 1rem; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.footer-brand p { line-height: 1.7; margin-bottom: 16px; }
.footer-col h4 { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.65); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--gold); }
.footer-social a svg { width: 16px; height: 16px; fill: rgba(255,255,255,0.7); }
.footer-social a:hover svg { fill: var(--navy); }

/* ---- CTA BAND ---- */
.cta-band {
  background: var(--navy);
  background-image: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(37,99,235,0.3) 0%, transparent 70%);
  padding: 90px 0;
  text-align: center;
}
.cta-band h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; color: var(--white); letter-spacing: -0.02em; margin-bottom: 16px; }
.cta-band p { font-size: 1.05rem; color: rgba(255,255,255,0.7); max-width: 520px; margin: 0 auto 36px; line-height: 1.65; }
.cta-band-blue {
  background: var(--blue-primary);
  padding: 56px 0;
}
.cta-band-blue h2 { font-size: 1.6rem; font-weight: 800; color: var(--white); margin-bottom: 10px; }
.cta-band-blue p { font-size: 0.95rem; color: rgba(255,255,255,0.78); line-height: 1.65; }

/* ---- CONTACT FORM ---- */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.82rem; font-weight: 700; color: var(--text-dark); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--blue-bright); box-shadow: 0 0 0 3px rgba(37,99,235,0.12); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---- STATS BAR ---- */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat-item { padding: 32px 24px; text-align: center; border-right: 1px solid rgba(255,255,255,0.1); }
.stat-item:last-child { border-right: none; }
.stat-item .value { font-size: 2.4rem; font-weight: 900; color: var(--white); line-height: 1; margin-bottom: 6px; }
.stat-item .value em { font-style: normal; color: var(--gold); }
.stat-item .label { font-size: 0.78rem; color: rgba(255,255,255,0.55); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---- BREADCRUMB ---- */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-bottom: 20px; }
.breadcrumb a { color: rgba(255,255,255,0.5); transition: var(--transition); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: rgba(255,255,255,0.3); }

/* ---- FAQ ---- */
.faq-item {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 28px 24px;
}
.faq-item h3 { font-size: 0.95rem; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; display: flex; align-items: flex-start; gap: 10px; }
.faq-item h3 .num { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; background: var(--blue-card); color: var(--white); font-size: 0.7rem; font-weight: 800; border-radius: 50%; flex-shrink: 0; margin-top: 1px; }
.faq-item p { font-size: 0.88rem; color: var(--text-mid); line-height: 1.65; padding-left: 32px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stat-item:nth-child(2n) { border-right: none; }
}
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .section-sm { padding: 40px 0; }
  .hero-dark { padding: 70px 0 60px; }
  .page-hero { padding: 60px 0 50px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 20px 24px; gap: 16px; box-shadow: var(--shadow-md); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .btn-group { flex-direction: column; }
  .btn-group .btn { justify-content: center; }
  .cta-band-blue .container { flex-direction: column; gap: 24px; text-align: center; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1, .h1 { font-size: 2rem; }
  h2, .h2 { font-size: 1.6rem; }
  .stats-bar { grid-template-columns: 1fr; }
}
