:root {
  --navy: #000e2e;
  --navy-soft: #0d2049;
  --gold: #fca605;
  --gold-light: #ffc247;
  --gold-deep: #9c6300; /* WCAG AA-compliant gold for text/icons on white or light backgrounds (4.5:1+); use --gold only on dark backgrounds or as a fill */
  --gray-bg: #f4f6fa;
  --text-dark: #000e2e;
  --text-muted: #57607a;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 14, 46, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--gold); color: var(--navy); font-weight: 700;
  padding: 10px 18px; border-radius: 8px; transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

h1, h2, h3 { font-weight: 800; line-height: 1.15; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.2rem; }

.eyebrow {
  color: var(--gold-deep);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.eyebrow.center { text-align: center; }
.hero .eyebrow { color: var(--gold); }

.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-sub { color: var(--text-muted); margin-top: 10px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(252,166,5,0.35); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }
.btn-lg { padding: 15px 34px; font-size: 1.05rem; }
.btn-block { display: block; text-align: center; width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 900; }
.logo-img { height: 42px; width: auto; display: block; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--gold); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.logo-text { font-size: 1.15rem; letter-spacing: 0.03em; color: var(--white); }

.main-nav { display: flex; gap: 32px; }
.main-nav a { font-weight: 600; font-size: 0.95rem; color: #dfe4f0; }
.main-nav a:hover, .main-nav a.active { color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--white); }

/* Hero */
.hero { background: var(--navy); color: var(--white); padding: 90px 0 70px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 50px; align-items: center; }
.hero-copy h1 { font-size: 3rem; color: var(--white); margin-bottom: 20px; }
.hero-copy h1 .highlight { color: var(--gold); }
.hero-sub { color: #c9c9dc; font-size: 1.05rem; max-width: 520px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.hero .btn-outline { border-color: var(--white); color: var(--white); }
.hero .btn-outline:hover { background: var(--white); color: var(--navy); }
.hero-trust { color: var(--gold-light); font-weight: 600; font-size: 0.9rem; }

.hero-art { position: relative; }
.art-card {
  background: var(--navy-soft);
  border: 1px solid rgba(227,166,62,0.25);
  border-radius: var(--radius);
  padding: 26px;
  display: flex; flex-direction: column; gap: 16px;
}
.art-row { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: #e3e3ef; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.dot-green { background: #4ade80; }
.dot-gold { background: var(--gold); }
.art-badge {
  position: absolute; bottom: -24px; right: -18px;
  background: var(--gold); color: var(--navy);
  border-radius: var(--radius);
  padding: 16px 22px;
  box-shadow: var(--shadow);
}
.art-badge-num { font-size: 1.6rem; font-weight: 900; line-height: 1; }
.art-badge-label { font-size: 0.78rem; font-weight: 600; }

/* Trust strip */
.trust-strip { background: var(--gray-bg); padding: 20px 0; }
.trust-strip-inner { text-align: center; color: var(--text-muted); font-weight: 600; font-size: 0.9rem; }

/* Trust badges (Google / rating pills) */
.trust-badges {
  display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
  padding: 26px 0; background: var(--white); border-bottom: 1px solid #ececf2;
}
.trust-badge { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text-dark); font-size: 0.95rem; }
.trust-badge .stars { color: var(--gold-deep); letter-spacing: 1px; }
.trust-badge .badge-sub { display: block; font-weight: 500; color: var(--text-muted); font-size: 0.78rem; }

/* Why GloRefs grows your business */
.grow-section { padding: 70px 0; background: var(--gray-bg); }
.grow-list {
  max-width: 720px; margin: 0 auto 28px; display: flex; flex-direction: column; gap: 16px;
  counter-reset: grow-counter;
}
.grow-list li {
  list-style: none; counter-increment: grow-counter;
  position: relative; padding-left: 40px;
  background: var(--white); border-radius: 12px; padding: 16px 20px 16px 52px;
  font-size: 0.95rem; color: var(--text-dark); line-height: 1.5;
  box-shadow: var(--shadow);
}
.grow-list li::before {
  content: counter(grow-counter);
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--gold); color: var(--navy); font-weight: 800; font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
}
.grow-closing {
  max-width: 640px; margin: 0 auto; text-align: center;
  font-weight: 700; font-size: 1.05rem; color: var(--text-dark);
}

/* Testimonial marquee */
.marquee-section { background: var(--navy); padding: 46px 0; overflow: hidden; }
.marquee-head { text-align: center; margin-bottom: 26px; }
.marquee-head p.eyebrow { color: var(--gold-light); }
.marquee-head h2 { color: var(--white); font-size: 1.6rem; }
.marquee-viewport { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 20px; width: max-content; animation: marquee-scroll 42s linear infinite; }
.marquee-section:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee-viewport { overflow-x: auto; }
}
.marquee-card {
  flex: 0 0 300px; background: var(--navy-soft); border: 1px solid rgba(227,166,62,0.2);
  border-radius: var(--radius); padding: 22px;
}
.marquee-card p { color: #d7d7e6; font-size: 0.88rem; font-style: italic; margin-bottom: 12px; }
.marquee-card cite { color: var(--gold-light); font-weight: 700; font-style: normal; font-size: 0.85rem; }
.marquee-card.is-video { display: flex; align-items: center; gap: 12px; }
.marquee-video-thumb {
  position: relative; flex-shrink: 0; width: 54px; height: 54px; border-radius: 50%; overflow: hidden;
}
.marquee-video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.marquee-video-thumb::after {
  content: "▶"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(20,20,31,0.35); color: var(--gold); font-size: 0.8rem;
}

/* Full-width feature rows (per-product, Stone-Systems style) */
.feature-row { padding: 70px 0; }
.feature-row:nth-child(even) { background: var(--gray-bg); }
.feature-inner {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 8px; max-width: 720px; margin: 0 auto;
}
.feature-copy .eyebrow { display: flex; align-items: center; justify-content: center; gap: 10px; }
.feature-copy .eyebrow .num { background: var(--gold); color: var(--navy); width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; }
.feature-copy h2 { font-size: 1.9rem; margin-bottom: 14px; }
.feature-copy > p:not(.eyebrow) { color: var(--text-muted); margin-bottom: 30px; }
.feature-points {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 36px;
  text-align: left; margin-bottom: 32px; width: 100%;
}
.feature-point h4 { font-size: 1rem; margin-bottom: 4px; }
.feature-point p { color: var(--text-muted); font-size: 0.88rem; }
.feature-copy { display: flex; flex-direction: column; align-items: center; }
.feature-copy .btn { align-self: center; }

/* Scroll-linked hero inset */
.hero-art { transform: scale(calc(1 - var(--scroll-p, 0) * 0.05)); border-radius: calc(var(--radius) + var(--scroll-p, 0) * 10px); will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  .hero-art { transform: none !important; }
}

/* Products */
.products { padding: 90px 0; }

/* Process */
.process { background: var(--gray-bg); padding: 90px 0; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.process-step { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.process-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; margin-bottom: 16px;
}
.process-step h3 span { font-weight: 500; color: var(--text-muted); font-size: 0.85rem; }
.process-step p { color: var(--text-muted); font-size: 0.92rem; margin-top: 10px; }

/* Pricing */
.pricing { padding: 90px 0; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.price-card {
  border: 1px solid #ececf2;
  border-radius: var(--radius);
  padding: 36px 30px;
  display: flex; flex-direction: column;
}
.price-card-featured {
  background: var(--navy);
  color: var(--white);
  border: none;
  transform: scale(1.03);
  box-shadow: var(--shadow);
}
.price-tag { color: var(--gold); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.08em; margin-bottom: 10px; }
.price-tag-alt { color: var(--text-muted); }
.price-card h3 { margin-bottom: 14px; }
.price-amount { font-size: 2.4rem; font-weight: 900; margin-bottom: 24px; }
.price-amount .currency { font-size: 1.4rem; font-weight: 700; vertical-align: top; }
.price-amount .period { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.price-card-featured .price-amount .period { color: #b9b9cf; }
.price-features { margin-bottom: 28px; flex-grow: 1; }
.price-features li {
  padding-left: 22px; position: relative; margin-bottom: 12px; font-size: 0.93rem;
}
.price-features li::before {
  content: "✓"; position: absolute; left: 0; color: var(--gold-deep); font-weight: 700;
}
.price-card-featured .price-features li::before { color: var(--gold); }
.pricing-note { text-align: center; color: var(--text-muted); font-size: 0.9rem; margin-top: 30px; }

/* Testimonials */
.testimonials { background: var(--gray-bg); padding: 90px 0; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.testimonial-card p { font-style: italic; margin-bottom: 14px; color: var(--text-dark); }
.testimonial-card cite { color: var(--gold-deep); font-weight: 700; font-style: normal; font-size: 0.88rem; }

/* Why us */
.why-us { padding: 90px 0; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.why-item h3 { margin-bottom: 8px; }
.why-item p { color: var(--text-muted); font-size: 0.92rem; }

/* FAQ */
.faq { background: var(--gray-bg); padding: 90px 0; }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white); border-radius: 10px; padding: 18px 22px; border: 1px solid #ececf2;
}
.faq-item summary { font-weight: 700; cursor: pointer; list-style: none; position: relative; padding-right: 24px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 0; color: var(--gold-deep); font-weight: 800; font-size: 1.2rem; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin-top: 12px; color: var(--text-muted); font-size: 0.92rem; }

/* CTA */
.cta-final { background: var(--navy); padding: 80px 0; }
.cta-inner { text-align: center; color: var(--white); }
.cta-inner h2 { color: var(--white); margin-bottom: 14px; }
.cta-inner p { color: #c9c9dc; margin-bottom: 30px; }

/* Footer */
.site-footer { background: #0f0f22; color: #b9b9cf; padding: 60px 0 20px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 40px; }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.footer-brand .logo-text { color: var(--white); }
.footer-brand p { width: 100%; margin-top: 12px; font-size: 0.88rem; color: #8a8aa3; }
.footer-col h4 { color: var(--white); font-size: 0.9rem; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 0.88rem; margin-bottom: 10px; color: #b9b9cf; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid #26264a; padding-top: 20px; font-size: 0.82rem; text-align: center; color: #6f6f88; }

/* Active nav link */
.main-nav a.active { color: var(--gold); }

/* Page header (interior pages) */
.page-header { background: var(--navy); color: var(--white); padding: 64px 0 56px; text-align: center; }
.page-header h1 { color: var(--white); font-size: 2.4rem; margin-bottom: 12px; }
.page-header p { color: #c9c9dc; max-width: 560px; margin: 0 auto; }

/* Scroll-reveal animation */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1.visible { transition-delay: 0.08s; }
.reveal-delay-2.visible { transition-delay: 0.16s; }
.reveal-delay-3.visible { transition-delay: 0.24s; }
.reveal-delay-4.visible { transition-delay: 0.32s; }
.reveal-delay-5.visible { transition-delay: 0.4s; }
.reveal-delay-6.visible { transition-delay: 0.48s; }

/* Pricing toggle */
.billing-toggle {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 0 auto 50px; font-weight: 600;
}
.billing-toggle .toggle-off { color: var(--text-muted); }
.billing-toggle .toggle-on { color: var(--text-dark); }
.switch {
  position: relative; width: 52px; height: 28px;
  background: var(--gold); border-radius: 999px; border: none; cursor: pointer;
  flex-shrink: 0;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px; border-radius: 50%; background: var(--white);
  transition: transform 0.2s ease;
}
.switch.is-annual::after { transform: translateX(24px); }
.save-badge {
  background: #e34e4e; color: var(--white); font-size: 0.72rem; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; margin-left: 4px;
}
.price-amount .amt-monthly.hidden,
.price-amount .amt-annual.hidden { display: none; }

/* Our Work */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.work-card { border: 1px solid #ececf2; border-radius: var(--radius); overflow: hidden; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.work-thumb {
  height: 200px; background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 2rem; font-weight: 900;
}
.work-body { padding: 24px; }
.work-body h3 { margin-bottom: 8px; }
.work-body p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 14px; }
.work-stats { display: flex; gap: 18px; }
.work-stat { }
.work-stat-num { font-weight: 800; color: var(--gold-deep); font-size: 1.2rem; }
.work-stat-label { font-size: 0.76rem; color: var(--text-muted); }

/* About page */
.about-story { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; padding: 90px 0; }
.about-story h2 { margin-bottom: 18px; }
.about-story p { color: var(--text-muted); margin-bottom: 14px; }
.about-art { background: var(--gray-bg); border-radius: var(--radius); height: 320px; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--gold-deep); }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-card { text-align: center; padding: 24px; }
.value-icon { font-size: 1.8rem; margin-bottom: 12px; }
.value-card h3 { font-size: 1rem; margin-bottom: 8px; }
.value-card p { color: var(--text-muted); font-size: 0.86rem; }

/* Video testimonials */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 60px; }
.video-card {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  background: var(--navy); aspect-ratio: 9/12; display: flex; align-items: flex-end;
  border: none; padding: 0;
}
.video-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: 0.75; }
.video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%; background: var(--gold);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--navy);
}
.video-name {
  position: relative; z-index: 1; padding: 16px; color: var(--white); font-weight: 700; font-size: 0.9rem;
  background: linear-gradient(to top, rgba(15,15,34,0.9), transparent);
  width: 100%;
}
.video-modal {
  position: fixed; inset: 0; background: rgba(15,15,34,0.85);
  display: none; align-items: center; justify-content: center; z-index: 1000; padding: 24px;
}
.video-modal.open { display: flex; }
.video-modal-inner { max-width: 420px; width: 100%; }
.video-modal video { width: 100%; border-radius: var(--radius); aspect-ratio: 9/16; background: #000; }
.video-modal-close {
  display: block; margin: 14px auto 0; background: var(--gold); color: var(--navy);
  border: none; padding: 10px 22px; border-radius: 999px; font-weight: 700; cursor: pointer;
}

/* Book a call form */
.book-section { padding: 80px 0; }
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.book-form { display: flex; flex-direction: column; gap: 16px; }
.book-form label { font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; display: block; }
.book-form input, .book-form select, .book-form textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid #dcdce6; font-family: inherit; font-size: 0.95rem;
}
.book-form input:focus, .book-form select:focus, .book-form textarea:focus { outline: 2px solid var(--gold); border-color: transparent; }
.book-perks { background: var(--gray-bg); border-radius: var(--radius); padding: 32px; }
.book-perks h3 { margin-bottom: 16px; }
.book-perks li { padding-left: 22px; position: relative; margin-bottom: 12px; font-size: 0.92rem; color: var(--text-muted); }
.book-perks li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-deep); font-weight: 700; }

.ghl-calendar-slot {
  border: 2px dashed #d5d5e0; border-radius: var(--radius);
  min-height: 420px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  background: var(--gray-bg); gap: 8px;
}
.ghl-calendar-label { font-weight: 700; color: var(--text-dark); }
.ghl-calendar-sub { font-size: 0.85rem; color: var(--text-muted); }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .product-grid, .process-grid, .pricing-grid, .testimonial-grid, .why-grid,
  .work-grid, .video-grid, .values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .price-card-featured { transform: none; }
  .about-story, .book-grid { grid-template-columns: 1fr; }
  .feature-inner { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-inner { direction: ltr; }
}

@media (max-width: 720px) {
  .main-nav { position: absolute; top: 76px; left: 0; right: 0; background: var(--navy); flex-direction: column; padding: 20px 24px; gap: 18px; border-bottom: 1px solid rgba(255,255,255,0.08); display: none; z-index: 99; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero-copy h1 { font-size: 2.2rem; }
  .product-grid, .process-grid, .pricing-grid, .testimonial-grid, .why-grid,
  .work-grid, .video-grid, .values-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  h2 { font-size: 1.7rem; }
  .page-header h1 { font-size: 1.9rem; }
}
