/* ==========================================================================
   Signupit — main stylesheet
   Palette: deep navy + coral + teal (refinepackaging-inspired)
   ========================================================================== */

:root {
  /* Palette inspired by refinepackaging.com: deep navy + coral + teal */
  --navy-900: #071726;   /* darkest: topbar, dark sections */
  --navy-800: #033651;
  --navy-700: #011f33;   /* hover / pressed */
  --navy-600: #022c44;   /* primary brand navy */
  --navy-500: #2f6b8a;
  --navy-400: #6c7a87;
  --navy-100: #e8f6f5;   /* mint tint: icon boxes */
  --navy-50:  #f2f9f8;   /* light mint: alt sections, hovers */
  --coral-600: #e2584a;
  --coral-500: #ee7163;  /* primary accent: CTAs, highlights */
  --coral-100: #fdebe8;
  --peach-50:  #fdf6f1;
  --teal-600: #148f86;
  --teal-500: #1baaa0;   /* secondary accent: icons, checks */
  --teal-400: #4fd1c5;
  --teal-100: #e8f6f5;
  --ink:      #022c44;
  --text:     #4f5d6b;
  --muted:    #6c7a87;
  --line:     #e3e9ee;
  --white:    #ffffff;
  --footer:   #071726;

  --grad: linear-gradient(135deg, #022c44 0%, #033a59 100%);
  --grad-accent: linear-gradient(135deg, #ee7163 0%, #f2877b 100%);

  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 8px rgba(2, 44, 68, .06);
  --shadow: 0 10px 30px rgba(115, 131, 169, .16);
  --shadow-lg: 0 24px 60px rgba(2, 44, 68, .18);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy-600); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal-600); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--teal-400); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--teal-500); color: #fff; padding: 10px 16px; z-index: 1000; }
.skip-link:focus { left: 10px; top: 10px; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .9rem 1.6rem; border-radius: 8px;
  font-weight: 700; font-size: 1rem; line-height: 1.2;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  font-family: inherit;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad-accent); color: #fff; box-shadow: 0 8px 22px rgba(238, 113, 99, .35); }
.btn-primary:hover { color: #fff; box-shadow: 0 12px 28px rgba(238, 113, 99, .45); }
.btn-navy { background: var(--navy-600); color: #fff; }
.btn-navy:hover { background: var(--navy-700); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy-600); }
.btn-outline { border-color: var(--navy-600); color: var(--navy-600); }
.btn-outline:hover { background: var(--navy-600); color: #fff; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--navy-900); color: rgba(255,255,255,.8); font-size: .875rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: .45rem; padding-bottom: .45rem; }
.topbar a { color: rgba(255,255,255,.9); display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover { color: var(--teal-400); }
.topbar svg { width: 15px; height: 15px; }
.topbar-links { display: flex; gap: 1.4rem; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav { position: relative; display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 1rem; }
.logo { display: flex; align-items: center; }
.logo img { height: 40px; width: auto; }

.menu { display: flex; align-items: center; gap: .25rem; list-style: none; }
.menu > li { position: relative; }
.menu > li.has-mega { position: static; }   /* dropdowns anchor to the header container */
.menu > li > a, .menu > li > button {
  display: flex; align-items: center; gap: .3rem;
  padding: .6rem .75rem; border-radius: 10px; white-space: nowrap;
  font-weight: 600; color: var(--ink); font-size: .975rem;
  background: none; border: 0; cursor: pointer; font-family: inherit;
}
.menu > li > a:hover, .menu > li > button:hover, .menu > li > a[aria-current="page"] { color: var(--navy-600); background: var(--navy-50); }
.menu .chev { width: 14px; height: 14px; transition: transform .2s; }

.mega {
  position: absolute; top: calc(100% - 6px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(1150px, 96vw);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 1.6rem;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.4rem;
  opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -26px; height: 26px; }  /* hover bridge */
.has-mega:hover .mega, .has-mega:focus-within .mega, .has-mega.open .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.has-mega:hover .chev, .has-mega.open .chev { transform: rotate(180deg); }
.mega-col h3 { font-size: .95rem; margin-bottom: .6rem; }
.mega-col h3 a { color: var(--navy-600); display: flex; align-items: center; gap: .5rem; }
.mega-col h3 svg { width: 20px; height: 20px; color: var(--teal-500); }
.mega-col ul { list-style: none; }
.mega-col li a { display: block; padding: .3rem 0; font-size: .9rem; color: var(--text); }
.mega-col li a:hover { color: var(--teal-600); }
.mega-sm { width: min(440px, 92vw); grid-template-columns: 1fr; padding: 1.2rem; }
.mega-list { display: grid; gap: .2rem; }
.mega-md { width: min(720px, 94vw); }
.mega-md .mega-list { grid-template-columns: 1fr 1fr; }
.mega-col .mega-list li a { display: flex; gap: .8rem; align-items: center; padding: .6rem .7rem; border-radius: 12px; }
.mega-col .mega-list li a:hover { background: var(--navy-50); }
.mega-list .mi { width: 40px; height: 40px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--teal-100); color: var(--teal-600); }
.mega-list .mi svg { width: 20px; height: 20px; }
.mega-list strong { display: block; color: var(--ink); font-size: .95rem; }
.mega-list small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.4; }

.nav-cta { display: flex; align-items: center; gap: .8rem; }
.nav-cta .btn { padding: .7rem 1.3rem; font-size: .95rem; }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--grad); color: rgba(255,255,255,.85);
  padding: 90px 0 110px;
  border-bottom-right-radius: 90px;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(10px); pointer-events: none;
}
.hero::before { width: 520px; height: 520px; right: -140px; top: -160px; background: radial-gradient(circle, rgba(27,170,160,.22), transparent 65%); }
.hero::after { width: 420px; height: 420px; left: -160px; bottom: -200px; background: radial-gradient(circle, rgba(255,255,255,.12), transparent 65%); }
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3.5rem; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 .hl { color: var(--coral-500); }
.hero .lead { font-size: 1.2rem; max-width: 600px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-500); margin-bottom: 1rem;
}
.hero .eyebrow { color: #7fe0d6; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); padding: .4rem .9rem; border-radius: 999px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 2.4rem; font-size: .95rem; }
.hero-trust span { display: flex; align-items: center; gap: .45rem; }
.hero-trust svg { width: 18px; height: 18px; color: var(--teal-400); }

/* Hero visual (pure CSS dashboard mockup) */
.hero-visual { position: relative; }
.mock {
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg);
  overflow: hidden; color: var(--text); transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
}
.mock-bar { display: flex; gap: 6px; padding: 12px 14px; background: var(--navy-50); border-bottom: 1px solid var(--line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e3d6e1; }
.mock-bar i:first-child { background: #ff6b6b; } .mock-bar i:nth-child(2) { background: #ffc94d; } .mock-bar i:nth-child(3) { background: #3ad29f; }
.mock-body { display: grid; grid-template-columns: 70px 1fr; min-height: 300px; }
.mock-side { background: var(--navy-700); padding: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.mock-side b { width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,.15); }
.mock-side b:first-child { background: var(--coral-500); }
.mock-main { padding: 18px; display: grid; gap: 14px; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-stat { border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.mock-stat small { display: block; font-size: .65rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.mock-stat strong { font-size: 1.1rem; color: var(--ink); }
.mock-chart { border: 1px solid var(--line); border-radius: 10px; padding: 12px; height: 130px; display: flex; align-items: flex-end; gap: 8px; }
.mock-chart span { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--teal-500), var(--navy-500)); }
.mock-rows { display: grid; gap: 7px; }
.mock-rows i { height: 9px; border-radius: 5px; background: var(--navy-100); }
.mock-rows i:nth-child(2) { width: 80%; } .mock-rows i:nth-child(3) { width: 60%; }
.float-card {
  position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: .8rem 1rem; display: flex; align-items: center; gap: .7rem; color: var(--ink); font-weight: 700; font-size: .9rem;
  animation: float 5s ease-in-out infinite;
}
.float-card small { display: block; color: var(--muted); font-weight: 500; font-size: .75rem; }
.float-card .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--grad-accent); }
.float-card .ic svg { width: 20px; height: 20px; }
.float-card.one { left: -30px; bottom: 30px; }
.float-card.two { right: -20px; top: -20px; animation-delay: -2.5s; }
.float-card.two .ic { background: var(--grad); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Page hero (inner pages) */
.page-hero { background: var(--grad); color: rgba(255,255,255,.85); padding: 60px 0 70px; position: relative; overflow: hidden; border-bottom-right-radius: 70px; }
.page-hero::before { content: ""; position: absolute; width: 480px; height: 480px; right: -120px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(27,170,160,.2), transparent 65%); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; max-width: 860px; }
.page-hero .lead { font-size: 1.15rem; max-width: 760px; }
.page-hero .hero-actions { margin-top: 1.6rem; }

.breadcrumb { margin-bottom: 1.4rem; font-size: .9rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.breadcrumb li { display: flex; align-items: center; gap: .4rem; }
.breadcrumb li + li::before { content: "/"; opacity: .5; }
.breadcrumb a { color: #7fe0d6; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current] { color: rgba(255,255,255,.75); }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }
.section-alt { background: var(--navy-50); }
.section-peach { background: var(--peach-50); }
.section-peach .icon-box { background: var(--coral-100); color: var(--coral-500); }
.section-dark { background: var(--navy-900); color: rgba(255,255,255,.8); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 3.2rem; }
.section-head p { font-size: 1.1rem; color: var(--muted); }
.section-dark .section-head p { color: rgba(255,255,255,.7); }

.grid { display: grid; gap: 1.6rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Cards */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2rem; transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card p { margin-bottom: 0; font-size: 1rem; }
.icon-box {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--teal-100); color: var(--teal-600); margin-bottom: 1.2rem; transition: background .25s, color .25s;
}
.icon-box svg { width: 28px; height: 28px; }
.card:hover .icon-box { background: var(--grad-accent); color: #fff; }

.service-card { display: flex; flex-direction: column; overflow: hidden; }
.service-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-accent); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.service-card:hover::before { transform: scaleX(1); }
.service-card ul { list-style: none; margin: 1rem 0 1.4rem; display: grid; gap: .35rem; }
.service-card li { display: flex; gap: .5rem; font-size: .95rem; }
.service-card li svg { width: 18px; height: 18px; flex: none; color: var(--teal-500); margin-top: .25rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; margin-top: auto; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* Sub-service link cards */
.sub-card { display: flex; flex-direction: column; color: var(--text); }
.sub-card h3 { color: var(--ink); }
.sub-card:hover h3 { color: var(--navy-600); }
.sub-card p { margin-bottom: 1.2rem; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat strong { display: block; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: #fff; line-height: 1.1; }
.stat span { color: rgba(255,255,255,.75); font-size: .95rem; }
.stats-band { background: var(--grad); padding: 50px 0; }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.check-list { list-style: none; display: grid; gap: .8rem; margin: 1.4rem 0; }
.check-list li { display: flex; gap: .7rem; }
.check-list svg { width: 22px; height: 22px; flex: none; color: var(--teal-500); margin-top: .2rem; }
.check-list strong { color: var(--ink); }

.panel {
  background: var(--grad); border-radius: var(--radius-lg); padding: 2.5rem; color: rgba(255,255,255,.85);
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.panel h3 { color: #fff; }
.panel::after { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; bottom: -80px; border-radius: 50%; background: radial-gradient(circle, rgba(27,170,160,.28), transparent 70%); }
.panel .check-list svg { color: var(--teal-400); }
.panel .check-list strong { color: #fff; }

/* Process */
.process { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.step { position: relative; padding: 2rem 1.6rem; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-size: 2.4rem; font-weight: 800; line-height: 1; margin-bottom: 1rem;
  background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step p { margin: 0; font-size: .98rem; }
.section-dark .step { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); }

/* Tech chips */
.chips { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
.chip { padding: .55rem 1.1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .92rem; color: var(--ink); }
.section-alt .chip { background: #fff; }

/* Industries */
.industry { text-align: center; padding: 1.8rem 1.2rem; }
.industry .icon-box { margin: 0 auto 1rem; }
.industry h3 { font-size: 1.05rem; margin: 0; }

/* Testimonials */
.quote { display: flex; flex-direction: column; }
.quote .stars { color: #ffb627; letter-spacing: 2px; margin-bottom: .8rem; }
.quote blockquote { margin: 0 0 1.4rem; font-size: 1rem; color: var(--text); }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: .8rem; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--grad); }
.quote figcaption strong { display: block; color: var(--ink); }
.quote figcaption small { color: var(--muted); }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 1rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1.4rem; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.2rem 0; font-weight: 700; color: var(--ink);
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--teal-500); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.2rem; margin: 0; }

/* Prose content */
.prose { max-width: 820px; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.3rem; margin-bottom: 1.1em; }
.prose li { margin-bottom: .4em; }

.content-grid { display: grid; grid-template-columns: 1fr 340px; gap: 3.5rem; align-items: start; }
.sidebar { position: sticky; top: 100px; display: grid; gap: 1.4rem; }
.side-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; }
.side-box h2 { font-size: 1.1rem; margin-bottom: 1rem; }
.side-box ul { list-style: none; display: grid; gap: .2rem; }
.side-box li a { display: flex; justify-content: space-between; align-items: center; padding: .55rem .8rem; border-radius: 10px; color: var(--text); font-weight: 600; font-size: .95rem; }
.side-box li a:hover { background: var(--navy-50); color: var(--navy-600); }
.side-box li a[aria-current="page"] { background: var(--navy-600); color: #fff; }
.side-cta { background: var(--grad); color: rgba(255,255,255,.85); border: 0; }
.side-cta h2 { color: #fff; }
.side-cta .btn { width: 100%; justify-content: center; margin-top: .6rem; }
.side-cta a.tel { color: #fff; font-weight: 700; display: flex; align-items: center; gap: .5rem; margin-top: .8rem; }
.side-cta a.tel svg { width: 18px; height: 18px; }

/* CTA band */
.cta-band { padding: 0 0 90px; }
.cta-box {
  background: var(--grad); border-radius: 28px; padding: 3.5rem; color: rgba(255,255,255,.85);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; position: relative; overflow: hidden;
}
.cta-box::before { content: ""; position: absolute; width: 380px; height: 380px; right: -100px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(27,170,160,.28), transparent 70%); }
.cta-box > * { position: relative; }
.cta-box h2 { color: #fff; margin-bottom: .4em; }
.cta-box p { margin: 0; font-size: 1.1rem; }
.cta-actions { display: flex; flex-direction: column; gap: .9rem; align-items: flex-start; }
.cta-actions .btn { width: 100%; justify-content: center; }

/* CTA card spanning the services grid */
.cta-card { grid-column: 1 / -1; background: var(--grad); color: rgba(255,255,255,.85); border: 0; flex-direction: row; align-items: center; gap: 1.6rem; }
.cta-card .icon-box { background: rgba(255,255,255,.12); color: #fff; margin: 0; flex: none; }
.cta-card h3 { color: #fff; margin-bottom: .3rem; }
.cta-card > div:not(.icon-box):not(.cta-card-actions) { flex: 1; }
.cta-card-actions { display: flex; gap: .8rem; flex-wrap: wrap; flex: none; }

.cta-tile { grid-column: auto; flex-direction: column; align-items: flex-start; }
.cta-tile .cta-card-actions { flex-direction: column; width: 100%; margin-top: auto; }
.cta-tile .cta-card-actions .btn { justify-content: center; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: start; }
.contact-cards { display: grid; gap: 1rem; }
.contact-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.4rem; }
.contact-card .icon-box { margin: 0; flex: none; width: 50px; height: 50px; }
.contact-card h3 { font-size: 1rem; margin-bottom: .2rem; }
.contact-card p, .contact-card a { margin: 0; font-size: 1rem; }
.form-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 2.4rem; border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; color: var(--ink); font-size: .92rem; margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 12px;
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 4px rgba(27,170,160,.15); }
.hp { display: none !important; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: .8rem; }
.form-status { margin-top: 1rem; padding: .9rem 1rem; border-radius: 12px; font-weight: 600; display: none; }
.form-status.ok { display: block; background: var(--teal-100); color: var(--teal-600); }
.form-status.err { display: block; background: #fde8e8; color: #b42318; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: rgba(255,255,255,.7); padding: 70px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2.5rem; }
.footer-brand img { height: 40px; width: auto; margin-bottom: 1.1rem; }
.footer-brand p { max-width: 320px; margin-bottom: 1.4rem; }
.footer-brand .btn { padding: .75rem 1.3rem; font-size: .95rem; }
.site-footer .footer-brand .btn, .site-footer .footer-brand .btn:hover { color: #fff; }
.footer-social { margin: 1.2rem 0 0; }
.site-footer h2 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer .footer-h2-gap { margin-top: 1.8rem; }
.site-footer ul { list-style: none; display: grid; gap: .55rem; }
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: var(--teal-400); }
.footer-contact li { display: flex; gap: .7rem; }
.footer-contact svg { width: 18px; height: 18px; flex: none; color: var(--teal-400); margin-top: .3rem; }
.footer-bottom { margin-top: 3.2rem; border-top: 1px solid rgba(255,255,255,.08); padding: 1.4rem 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .88rem; }

/* Floating contact button + quick contact form */
.fab-contact {
  position: fixed; right: 22px; bottom: 22px; z-index: 95;
  display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 1.3rem .85rem 1.1rem;
  border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 700; font-size: .98rem;
  background: var(--grad-accent); color: #fff; box-shadow: 0 10px 30px rgba(238,113,99,.45);
  transition: transform .2s, box-shadow .2s;
}
.fab-contact:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(238,113,99,.55); }
.fab-contact svg { width: 22px; height: 22px; }
.fab-contact .ic-close { display: none; }
.fab-contact[aria-expanded="true"] .ic-open { display: none; }
.fab-contact[aria-expanded="true"] .ic-close { display: block; }
.qc {
  position: fixed; right: 22px; bottom: 92px; z-index: 96; width: min(370px, calc(100vw - 32px));
  max-height: calc(100vh - 120px); overflow-y: auto;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  animation: qcIn .22s ease;
}
.qc[hidden] { display: none; }
@keyframes qcIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.qc-head { display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.3rem 1rem; background: var(--grad); color: rgba(255,255,255,.85); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.qc-head h2 { color: #fff; font-size: 1.2rem; margin: 0 0 .25rem; }
.qc-head p { margin: 0; font-size: .9rem; line-height: 1.5; }
.qc-close { flex: none; width: 34px; height: 34px; border-radius: 8px; border: 0; cursor: pointer; display: grid; place-items: center; background: rgba(255,255,255,.12); color: #fff; }
.qc-close:hover { background: rgba(255,255,255,.22); }
.qc-close svg { width: 18px; height: 18px; }
.qc-form { padding: 1.1rem 1.3rem 1.3rem; }
.qc-form .field { margin-bottom: .75rem; }
.qc-form .field label { font-size: .85rem; margin-bottom: .25rem; }
.qc-form .field input, .qc-form .field textarea { padding: .65rem .85rem; font-size: .95rem; border-radius: 10px; }
.qc-form .field textarea { min-height: 84px; }
.qc-form .btn { width: 100%; justify-content: center; margin-top: .3rem; }
.qc-form .form-status { font-size: .9rem; }

/* 404 */
.notfound { text-align: center; padding: 120px 0; }
.notfound .big { font-size: clamp(5rem, 15vw, 9rem); font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Reveal animation (progressive enhancement) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mega-md .mega-list { grid-template-columns: 1fr; }
  .cta-card { flex-direction: column; align-items: flex-start; }
  .grid-4, .process { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 1200px) {
  .nav-toggle { display: block; }
  .nav-cta .btn { display: none; }
  .menu {
    position: fixed; inset: 76px 0 0 0; background: #fff; flex-direction: column; align-items: stretch;
    padding: 1rem 22px 2rem; overflow-y: auto; gap: 0; transform: translateX(100%); transition: transform .3s;
  }
  .menu.open { transform: none; }
  .menu > li { border-bottom: 1px solid var(--line); }
  .menu > li > a, .menu > li > button { padding: 1rem .2rem; width: 100%; justify-content: space-between; font-size: 1.05rem; }
  .mega {
    position: static; transform: none; width: 100%; box-shadow: none; border: 0; padding: 0 0 1rem .5rem;
    grid-template-columns: 1fr; gap: 1rem; display: none; opacity: 1; visibility: visible;
  }
  .has-mega:hover .mega, .has-mega:focus-within .mega { transform: none; }
  .has-mega.open .mega { display: grid; transform: none; }
  .mega::before { display: none; }
  .topbar-hide { display: none; }
}
@media (max-width: 960px) {
  .hero-grid, .split, .contact-grid, .cta-box { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; margin: 1rem auto 0; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .section { padding: 64px 0; }
  .hero { padding: 60px 0 80px; }
  .grid-2, .grid-3, .grid-4, .process, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 2.2rem 1.6rem; }
  .hero { border-bottom-right-radius: 48px; }
  .page-hero { border-bottom-right-radius: 40px; }
  .form-card { padding: 1.6rem; }
  .float-card { display: none; }
  .mock { transform: none; }
  .topbar .container { justify-content: center; }
  .fab-contact { right: 16px; bottom: 16px; padding: .9rem; }
  .fab-contact span { display: none; }
  .qc { right: 16px; bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
