/* =========================================================
   Irgella — Performance Marketing Agency
   Clean & corporate theme. Brand colors live in :root below,
   so you can re-theme the whole site from one place.
   ========================================================= */

:root {
  /* Brand palette */
  --ink:        #0a2540;   /* deep navy — headings, dark sections */
  --ink-soft:   #16335a;
  --blue:       #2f6bff;   /* primary accent / buttons */
  --blue-dark:  #1f54d6;
  --blue-tint:  #eef3ff;   /* light blue wash */
  --slate:      #4a5a72;   /* body text */
  --slate-soft: #6b7a90;
  --line:       #e4e9f2;   /* borders */
  --bg:         #ffffff;
  --bg-soft:    #f6f8fc;   /* alt section background */
  --white:      #ffffff;

  --radius:     16px;
  --radius-sm:  11px;
  --shadow-sm:  0 1px 2px rgba(10,37,64,.06), 0 1px 3px rgba(10,37,64,.05);
  --shadow:     0 10px 30px -12px rgba(10,37,64,.18);
  --shadow-lg:  0 30px 60px -20px rgba(10,37,64,.28);

  --container:  1160px;
  --font-body:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-head:  'Plus Jakarta Sans', var(--font-body);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.02em;
  font-weight: 800;
}
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { margin: 0 0 1rem; }
a  { color: var(--blue); text-decoration: none; }

img, svg { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }

/* line-icon default styling */
svg use { stroke: currentColor; }
svg:not(.brand-mark) { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--blue);
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-head);
  font-weight: 700; font-size: .98rem;
  padding: 13px 22px; border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap; line-height: 1;
}
.btn-icon { transition: transform .2s ease; }
.btn:hover .btn-icon { transform: translate(2px, -2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -8px rgba(47,107,255,.65); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(47,107,255,.7); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-lg { padding: 16px 28px; font-size: 1.04rem; }
.btn-sm { padding: 10px 18px; font-size: .9rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-mark { border-radius: 10px; flex: none; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.32rem; letter-spacing: -.02em; }

.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a {
  color: var(--slate); font-weight: 500; font-size: .97rem; position: relative; padding: 4px 0;
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--blue); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 12px; margin-left: 28px; }
.nav-toggle {
  display: none; background: none; border: none; color: var(--ink); cursor: pointer; padding: 4px; border-radius: 8px;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(56px, 9vw, 104px) 0 clamp(60px, 9vw, 96px);
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(47,107,255,.10), transparent 70%),
    linear-gradient(180deg, var(--blue-tint), #fff 62%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }

.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); background: #fff; border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px; box-shadow: var(--shadow-sm);
}
.eyebrow.light { background: rgba(255,255,255,.1); color: #9dc0ff; border-color: rgba(255,255,255,.18); }
.grad-text { background: linear-gradient(90deg, var(--blue), #7a4bff); -webkit-background-clip: text; background-clip: text; color: transparent; }

.lead { font-size: 1.18rem; color: var(--slate); max-width: 38ch; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; padding: 0; margin: 0; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); font-size: .95rem; }
.hero-trust svg { color: var(--blue); }

/* Hero visual */
.hero-visual { position: relative; }
.dash-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-lg); padding: 24px; position: relative; z-index: 2;
}
.dash-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.dash-label { display: block; font-size: .82rem; color: var(--slate-soft); font-weight: 600; }
.dash-value { display: block; font-family: var(--font-head); font-weight: 800; font-size: 2.1rem; color: var(--ink); line-height: 1.1; margin: 2px 0; }
.dash-sub { display: block; font-size: .78rem; color: var(--slate-soft); }
.dash-badge { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 700; color: #19a974; background: #e7f8f0; padding: 5px 10px; border-radius: 999px; }
.dash-badge svg { color: #19a974; width: 14px; height: 14px; }
.dash-chart { width: 100%; height: 120px; margin: 6px 0 14px; }
.chart-line { stroke-dasharray: 520; stroke-dashoffset: 520; animation: draw 1.8s ease forwards .3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.dash-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.dash-stats > div { display: flex; flex-direction: column; }
.ds-k { font-size: .74rem; color: var(--slate-soft); font-weight: 600; }
.ds-v { font-family: var(--font-head); font-weight: 800; color: var(--ink); font-size: 1.18rem; }

.float-chip {
  position: absolute; z-index: 3; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow); border-radius: 12px; padding: 9px 14px;
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .85rem; color: var(--ink);
}
.float-chip svg { color: var(--blue); }
.chip-1 { top: -18px; left: -18px; animation: float 5s ease-in-out infinite; }
.chip-2 { bottom: -16px; right: -18px; animation: float 5s ease-in-out infinite 1.4s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- Trust strip ---------- */
.strip { padding: 38px 0; border-bottom: 1px solid var(--line); background: #fff; }
.strip-label { text-align: center; color: var(--slate-soft); font-weight: 600; font-size: .92rem; margin-bottom: 26px; }
.strip-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.strip-stats > div { text-align: center; }
.strip-stats strong { display: block; font-family: var(--font-head); font-size: 1.7rem; color: var(--ink); font-weight: 800; letter-spacing: -.02em; }
.strip-stats span { font-size: .88rem; color: var(--slate-soft); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 104px) 0; }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 680px; margin: 0 auto clamp(40px, 6vw, 60px); text-align: center; }
.section-sub { font-size: 1.1rem; color: var(--slate); margin: 0; }

/* ---------- Cards (services) ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #d5e0f5; }
.card-icon {
  display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 14px;
  background: var(--blue-tint); color: var(--blue); margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 18px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; align-items: center; gap: 10px; font-size: .94rem; color: var(--ink); font-weight: 500; }
.ticks svg { color: var(--blue); flex: none; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
}
.step-num {
  font-family: var(--font-head); font-weight: 800; font-size: 1rem; color: var(--blue);
  background: var(--blue-tint); width: 46px; height: 46px; border-radius: 12px;
  display: inline-grid; place-items: center; margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; font-size: .96rem; }

/* ---------- Why / features ---------- */
.features { gap: 22px 26px; }
.feature { display: flex; gap: 16px; align-items: flex-start; background: transparent; box-shadow: none; border: none; padding: 6px 0; }
.feature-icon {
  flex: none; display: inline-grid; place-items: center; width: 46px; height: 46px;
  border-radius: 12px; background: var(--blue-tint); color: var(--blue);
}
.feature h3 { margin-bottom: 4px; }
.feature p { margin: 0; font-size: .95rem; }

/* ---------- Results (dark) ---------- */
.section-dark { background: var(--ink); color: #c7d3e6; position: relative; overflow: hidden; }
.section-dark::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(50% 60% at 80% 0%, rgba(47,107,255,.22), transparent 70%);
}
.section-dark .container { position: relative; z-index: 1; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .section-sub { color: #aab9d2; }
.metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.metric {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 30px 26px; transition: transform .25s ease, background .25s ease;
}
.metric:hover { transform: translateY(-5px); background: rgba(255,255,255,.07); }
.metric-k {
  display: inline-block; font-family: var(--font-head); font-weight: 800; font-size: .82rem; letter-spacing: .14em;
  color: #7fa8ff; background: rgba(47,107,255,.16); padding: 6px 12px; border-radius: 8px; margin-bottom: 16px;
}
.metric p { margin: 0; color: #aab9d2; }

.quote {
  max-width: 760px; margin: clamp(40px,6vw,56px) auto 0; text-align: center; padding: 0;
}
.quote blockquote {
  font-family: var(--font-head); font-weight: 700; color: #fff; font-size: clamp(1.25rem,2.4vw,1.6rem);
  line-height: 1.4; margin: 0 0 14px; letter-spacing: -.01em;
}
.quote figcaption { color: #7fa8ff; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm); overflow: hidden; transition: border-color .2s ease;
}
.faq details[open] { border-color: #cddbf6; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 22px; font-family: var(--font-head);
  font-weight: 700; color: var(--ink); font-size: 1.04rem; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-chevron { color: var(--blue); flex: none; transition: transform .25s ease; }
.faq details[open] .faq-chevron { transform: rotate(180deg); }
.faq-body { padding: 0 22px 20px; }
.faq-body p { margin: 0; color: var(--slate); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--ink), var(--ink-soft));
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(40% 90% at 90% 50%, rgba(47,107,255,.3), transparent 70%);
}
.cta-inner {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between;
  gap: 30px; padding: clamp(40px,6vw,60px) 24px; flex-wrap: wrap;
}
.cta-inner h2 { color: #fff; margin-bottom: 6px; }
.cta-inner p { color: #b9c6dd; margin: 0; max-width: 52ch; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.book-cta { margin-top: 8px; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-card {
  display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 18px; box-shadow: var(--shadow-sm); color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
a.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cddbf6; }
.cc-icon { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: var(--blue-tint); color: var(--blue); }
.cc-text { display: flex; flex-direction: column; }
.cc-k { font-size: .78rem; color: var(--slate-soft); font-weight: 600; }
.cc-v { font-weight: 700; font-size: .98rem; }

/* ---------- Footer ---------- */
.site-footer { background: #07182b; color: #9fb0c9; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { max-width: 34ch; font-size: .95rem; }
.footer-nav h4, .footer-contact h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a, .footer-contact a { color: #9fb0c9; font-size: .95rem; }
.footer-nav a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact p { font-size: .95rem; margin: 4px 0 0; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 24px; }
.footer-bottom p { margin: 0; font-size: .88rem; }
.footer-cta { color: #7fa8ff; font-weight: 700; font-size: .92rem; }
.footer-cta:hover { color: #fff; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .chart-line { animation: none; stroke-dashoffset: 0; }
  .float-chip { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { text-align: center; margin: 0 auto; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-trust { justify-content: center; }
  .hero-visual { max-width: 460px; margin: 0 auto; }
  .steps { grid-template-columns: repeat(2,1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 820px) {
  .nav {
    position: fixed; inset: 72px 0 auto; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px 24px 18px; margin: 0;
    transform: translateY(-130%); transition: transform .3s ease; visibility: hidden;
  }
  .nav.open { transform: translateY(0); visibility: visible; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a:last-child { border-bottom: none; }
  .nav a::after { display: none; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .cards-3 { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .strip-stats { grid-template-columns: repeat(2,1fr); gap: 26px 16px; }
  .steps { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .header-actions .btn-sm { display: none; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
