/* ===== Design Tokens (sampled from the Thulir logo) ===== */
:root {
  --blue: #159bd7;        /* badge ring / banner blue */
  --blue-dark: #0a6fa8;
  --blue-deep: #073a60;   /* deep blue shading */
  --green: #2fa63d;       /* the "து" + sprout */
  --green-leaf: #5cb948;
  --red: #e0241d;         /* the "ளிர்" + SINCE 2023 banner */
  --yellow: #ffd80a;      /* SINCE 2023 lettering accent */
  --brown: #6e4326;       /* roots */
  --ink: #0f2433;
  --muted: #56697a;
  --line: #e6eef5;
  --bg: #ffffff;
  --bg-soft: #f1f8fd;
  --grad: linear-gradient(135deg, #159bd7 0%, #073a60 100%);
  --grad-bright: linear-gradient(135deg, #29b0ec 0%, #0a6fa8 100%);
  --grad-green: linear-gradient(135deg, #5cb948 0%, #2fa63d 100%);
  --grad-red: linear-gradient(135deg, #f0524c 0%, #e0241d 100%);
  --shadow-xs: 0 2px 8px rgba(7, 58, 96, 0.06);
  --shadow-sm: 0 6px 20px rgba(7, 58, 96, 0.08);
  --shadow-md: 0 18px 44px rgba(7, 58, 96, 0.14);
  --shadow-lg: 0 30px 70px rgba(7, 58, 96, 0.20);
  --radius: 20px;
  --radius-sm: 12px;
  --maxw: 1180px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 108px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, .brand-text strong { font-family: 'Plus Jakarta Sans', sans-serif; line-height: 1.18; letter-spacing: -0.01em; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ===== Buttons ===== */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: 9px; padding: 14px 30px; border-radius: 50px;
  font-weight: 700; font-size: 0.96rem; cursor: pointer;
  border: 2px solid transparent; transition: transform .25s, box-shadow .25s, background .25s, color .25s;
  font-family: 'Plus Jakarta Sans', sans-serif; overflow: hidden;
}
.btn::after { content: "→"; transition: transform .25s; }
.btn-primary { background: var(--grad-bright); color: #fff; box-shadow: 0 10px 24px rgba(21,155,215,.35); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(21,155,215,.45); }
.btn-primary:hover::after { transform: translateX(4px); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: #fff; color: var(--blue-deep); border-color: #fff; transform: translateY(-3px); }
.btn-ghost:hover::after { transform: translateX(4px); }
.btn-block { width: 100%; }

/* ===== Header ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent; border-bottom: 1px solid transparent;
  transition: box-shadow .3s, background .3s, border-color .3s, backdrop-filter .3s;
}
.header.scrolled {
  background: rgba(255,255,255,.92); backdrop-filter: blur(16px) saturate(160%);
  box-shadow: var(--shadow-sm); border-bottom-color: var(--line);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; height: 100px; }

.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo {
  width: 84px; height: 84px; object-fit: contain; flex: none; transition: transform .3s;
  background: #fff; border-radius: 16px; padding: 6px; box-shadow: 0 6px 16px rgba(7,58,96,.18);
}
.brand:hover .brand-logo { transform: rotate(-6deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong {
  font-size: 1.5rem; font-weight: 800; letter-spacing: -0.015em; color: #fff;
  transition: color .3s;
}
.brand-text small {
  font-size: .68rem; font-weight: 600; letter-spacing: .26em; color: rgba(255,255,255,.85);
  text-transform: uppercase; margin-top: 2px; transition: color .3s;
}
/* dark wordmark once the header turns white */
.header.scrolled .brand-text strong {
  background: linear-gradient(120deg, #1591cf 0%, #073a60 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.header.scrolled .brand-text small { color: var(--muted); }

.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative; display: inline-block; padding: 9px 15px; border-radius: 10px;
  font-weight: 600; font-size: .93rem; color: rgba(255,255,255,.92); transition: color .2s, background .2s;
}
.nav-link::before {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 4px; height: 2px;
  background: currentColor; border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav-link:hover { color: #fff; }
.nav-link.active { color: #fff; }
.nav-link.active::before { transform: scaleX(1); }
/* dark links once the header turns white */
.header.scrolled .nav-link { color: var(--ink); }
.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active { color: var(--blue); }

.nav-cta { background: #fff; color: var(--blue-deep) !important; padding: 10px 22px; box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.nav-cta::before { display: none; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,0,0,.22); }
.header.scrolled .nav-cta { background: var(--grad-bright); color: #fff !important; box-shadow: 0 8px 20px rgba(21,155,215,.3); }
.header.scrolled .nav-cta:hover { box-shadow: 0 12px 26px rgba(21,155,215,.42); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { width: 24px; height: 2.5px; background: #fff; border-radius: 2px; transition: .3s; }
.header.scrolled .menu-toggle span { background: var(--ink); }
.menu-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; padding: 160px 0 80px; overflow: hidden; color: #fff; }
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(135deg, #0d83c4 0%, #0a5e96 45%, #073a60 100%);
}
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 84% 14%, rgba(92,185,72,.40), transparent 40%),
    radial-gradient(circle at 8% 92%, rgba(41,176,236,.45), transparent 48%),
    radial-gradient(circle at 60% 75%, rgba(224,36,29,.18), transparent 42%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0; opacity: .4;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
          mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 18px; border-radius: 50px; font-size: .8rem;
  font-weight: 600; letter-spacing: .02em; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28); margin-bottom: 22px; backdrop-filter: blur(6px);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(255,216,10,.25); }
.hero h1 { font-size: clamp(1.9rem, 3.9vw, 2.9rem); font-weight: 800; margin-bottom: 16px; white-space: nowrap; }
@media (max-width: 640px) { .hero h1 { white-space: normal; font-size: clamp(1.9rem, 8vw, 2.6rem); } }
.hero-tagline {
  font-size: clamp(1.1rem, 2.3vw, 1.5rem); font-weight: 700; margin-bottom: 18px;
  background: linear-gradient(90deg,#ffffff, #d7f0ff); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-intro { font-size: 1.02rem; color: rgba(255,255,255,.9); max-width: 560px; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }
/* solid white primary so it stands out on the blue hero */
.hero-actions .btn-primary { background: #fff; color: var(--blue-deep); box-shadow: 0 12px 28px rgba(0,0,0,.18); }
.hero-actions .btn-primary:hover { background: #f3faff; color: var(--blue-deep); transform: translateY(-3px); box-shadow: 0 18px 36px rgba(0,0,0,.24); }
.hero-stats { display: flex; gap: 14px; flex-wrap: wrap; }
.stat {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(6px);
  border-radius: 14px; padding: 14px 22px; min-width: 110px;
}
.stat strong { display: block; font-size: 1.7rem; font-family: 'Plus Jakarta Sans', sans-serif; }
.stat span { font-size: .82rem; color: rgba(255,255,255,.82); }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 260px; }
.orb { position: absolute; border-radius: 50%; filter: blur(6px); opacity: .6; animation: float 7s ease-in-out infinite; }
.orb-1 { width: 190px; height: 190px; background: var(--green-leaf); top: -16px; right: 0; }
.orb-2 { width: 140px; height: 140px; background: var(--red); bottom: -10px; left: 14px; animation-delay: -3.5s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }
.hero-card {
  position: relative; z-index: 2; width: 100%;
  background: linear-gradient(180deg, #ffffff 0%, #f5fafe 100%);
  border: 1px solid rgba(255,255,255,.7); border-radius: 24px; padding: 28px 26px 24px;
  box-shadow: var(--shadow-lg); overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
}
.hero-card::before {
  content: ""; position: absolute; top: -60px; right: -60px; width: 160px; height: 160px;
  border-radius: 50%; background: radial-gradient(circle, rgba(21,155,215,.12), transparent 70%);
  pointer-events: none;
}
.hero-card:hover { transform: translateY(-6px); box-shadow: 0 38px 80px rgba(7,58,96,.26); }
.hero-card-top { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); text-align: left; }
.hero-card-icon {
  width: 56px; height: 56px; flex: none; border-radius: 18px; font-size: 1.7rem;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #eafaef, #d4f1da);
  box-shadow: inset 0 0 0 1.5px rgba(47,166,61,.3), 0 8px 18px rgba(47,166,61,.18);
}
.hero-card h3 {
  font-size: 1.22rem; margin-bottom: 4px;
  background: linear-gradient(120deg, #1591cf, #073a60);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-card p { color: var(--muted); font-size: .88rem; line-height: 1.5; }
.hero-card-list { display: grid; gap: 9px; }
.hero-card-list li {
  display: flex; align-items: center; gap: 13px; font-weight: 600; font-size: .94rem; color: var(--ink);
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.hero-card-list li:hover { transform: translateX(5px); border-color: #bfdef5; box-shadow: var(--shadow-xs); }
.hc-dot {
  width: 34px; height: 34px; flex: none; border-radius: 11px; font-size: 1rem;
  display: grid; place-items: center; background: #fff;
  box-shadow: inset 0 0 0 1px var(--line); overflow: hidden;
}
.hc-dot img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }

/* ===== Sections ===== */
.section { padding: 96px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--bg-soft), #ffffff); }
.section-alt::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(circle at 90% 0%, rgba(21,155,215,.07), transparent 35%);
}
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; position: relative; }
.section-tag {
  display: inline-flex; align-items: center; gap: 7px; font-size: .76rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue); background: #e7f3fc;
  padding: 7px 16px; border-radius: 50px; margin-bottom: 16px; border: 1px solid #d2e8f8;
}
.section-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.section-head h2 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); color: var(--ink); }
.section-head h2::after {
  content: ""; display: block; width: 70px; height: 4px; margin: 16px auto 0; border-radius: 4px;
  background: linear-gradient(90deg, var(--blue) 0 33%, var(--green) 33% 66%, var(--red) 66% 100%);
}
.section-sub { color: var(--muted); margin-top: 14px; font-size: 1.04rem; }

/* ===== About ===== */
.section-about { padding: 56px 0; }                /* reduced top/bottom spacing */
.section-about .section-head { margin-bottom: 40px; }
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.about-lead { font-size: 1.16rem; color: var(--ink); font-weight: 500; margin-bottom: 18px; }
.about-text p { color: var(--muted); margin-bottom: 18px; font-size: 1.03rem; }
.about-text strong { color: var(--ink); }

.about-mission {
  display: flex; gap: 14px; align-items: flex-start;
  background: linear-gradient(135deg, #eafaef, #f1f8fd); border: 1px solid #d4ecdb;
  border-left: 4px solid var(--green); border-radius: 14px; padding: 18px 20px; margin-bottom: 22px;
}
.about-mission-icon { font-size: 1.5rem; line-height: 1.4; }
.about-mission p { color: var(--ink); font-size: .98rem; margin: 0; }
.about-mission strong { color: var(--green); }

.about-points {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 32px; box-shadow: var(--shadow-md); overflow: hidden;
}
.about-points::before { content: ""; position: absolute; top: 0; left: 0; width: 6px; height: 100%; background: var(--grad-green); }
.about-points-title { font-size: 1.2rem; color: var(--blue-deep); margin-bottom: 20px; }
.about-points ul { display: grid; gap: 18px; }
.about-points li { display: flex; align-items: center; gap: 14px; font-weight: 600; color: var(--ink); }
.check {
  width: 28px; height: 28px; flex: none; border-radius: 9px; background: var(--grad-green);
  color: #fff; display: grid; place-items: center; font-size: .85rem; font-weight: 700;
  box-shadow: 0 4px 10px rgba(47,166,61,.35);
}

/* ===== Cards grid ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card, .feature {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; box-shadow: var(--shadow-xs);
  transition: transform .3s, box-shadow .3s, border-color .3s; overflow: hidden;
}
.card::before, .feature::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad-bright); transform: scaleX(0); transform-origin: left; transition: transform .35s;
}
.feature::before { background: var(--grad-green); }
.card:hover, .feature:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.card:hover::before, .feature:hover::before { transform: scaleX(1); }

.card-icon, .feature-icon {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.8rem; margin-bottom: 20px; background: linear-gradient(135deg,#e7f3fc,#d2e9fb);
  box-shadow: inset 0 0 0 1px rgba(21,155,215,.12); transition: transform .3s;
}
.feature-icon { background: linear-gradient(135deg,#e6f7ea,#d4f1da); box-shadow: inset 0 0 0 1px rgba(47,166,61,.14); }
.card:hover .card-icon, .feature:hover .feature-icon { transform: scale(1.08) rotate(-4deg); }
/* brand-logo icon tile (e.g. Salesforce) */
.card-icon--brand { background: #fff; box-shadow: inset 0 0 0 1px var(--line); padding: 8px; }
.card-icon--brand img { width: 100%; height: 100%; object-fit: contain; }
.card:hover .card-icon--brand { transform: scale(1.06); }
.card h3, .feature h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--ink); }
.card p, .feature p { color: var(--muted); font-size: .97rem; }

/* numbered service cards */
.card .card-num {
  position: absolute; top: 26px; right: 26px; font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800; font-size: 1.5rem; color: #e7f0f7; line-height: 1; transition: color .3s;
}
.card:hover .card-num { color: #cfe6f6; }

/* services: tighter spacing + centered cards (no awkward 3+2 split) */
.section-services { padding: 56px 0; }
.section-services .section-head { margin-bottom: 40px; }
#services .cards { display: flex; flex-wrap: wrap; justify-content: center; }
#services .card { flex: 1 1 300px; max-width: 350px; }

/* ===== Finance Module ===== */
.section-finance { padding: 56px 0; }
.section-finance .section-head { margin-bottom: 40px; }
.finance-cta {
  position: relative; margin-top: 32px; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(135deg, #159bd7 0%, #0a5e96 55%, #073a60 100%);
  border-radius: var(--radius); padding: 30px 36px; box-shadow: var(--shadow-md);
}
.finance-cta::after {
  content: ""; position: absolute; top: -60px; right: -40px; width: 220px; height: 220px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.16), transparent 70%);
}
.finance-cta-text { position: relative; color: #fff; }
.finance-cta-text h3 { font-size: 1.3rem; margin-bottom: 6px; }
.finance-cta-text p { color: rgba(255,255,255,.9); font-size: .98rem; max-width: 560px; }
.btn-light { position: relative; background: #fff; color: var(--blue-deep); box-shadow: 0 10px 24px rgba(0,0,0,.18); flex: none; }
.btn-light:hover { transform: translateY(-3px); background: #f3faff; box-shadow: 0 16px 30px rgba(0,0,0,.24); }

/* ===== Clients ===== */
.section-clients { padding: 56px 0; }
.section-clients .section-head { margin-bottom: 40px; }
.clients-grid { grid-template-columns: repeat(3, 1fr); }
.client-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; text-align: center; box-shadow: var(--shadow-xs);
  transition: transform .3s, box-shadow .3s, border-color .3s; overflow: hidden;
}
.client-card::after {
  content: ""; position: absolute; inset: -40% 60% 60% -40%; background: radial-gradient(circle, rgba(21,155,215,.10), transparent 70%);
  transition: transform .5s; transform: scale(0);
}
.client-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: #cfe4f5; }
.client-card:hover::after { transform: scale(1); }

/* logo area: consistent height for differently-sized logos */
.client-logo {
  position: relative; height: 92px; margin: 0 auto 18px;
  display: grid; place-items: center;
}
.client-logo img {
  max-height: 84px; max-width: 100%; object-fit: contain;
  transition: transform .35s;
}
.client-card:hover .client-logo img { transform: scale(1.04); }

/* plain placeholder (clients without a logo) */
.client-logo--placeholder {
  width: 84px; height: 84px; border-radius: 20px; font-size: 2.2rem;
  background: #f1f5f9; border: 1px dashed #cdd9e3; color: var(--muted);
}
.client-card h3 { position: relative; font-size: 1.12rem; margin-bottom: 6px; }
.client-card p { position: relative; color: var(--muted); font-size: .92rem; }

/* ===== Contact ===== */
.section-contact { padding: 56px 0; }
.section-contact .section-head { margin-bottom: 40px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 38px; align-items: stretch; }
.contact-info { display: grid; gap: 16px; grid-auto-rows: 1fr; }
.map-link {
  display: inline-block; margin-top: 8px; font-weight: 600; font-size: .9rem; color: var(--blue);
  transition: color .2s, transform .2s;
}
.map-link:hover { color: var(--blue-dark); transform: translateX(3px); }
.contact-item {
  display: flex; gap: 16px; align-items: center; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px;
  box-shadow: var(--shadow-xs); transition: transform .25s, border-color .25s, box-shadow .25s;
}
a.contact-item:hover { transform: translateX(5px); border-color: #bfdef5; box-shadow: var(--shadow-sm); }
.contact-ico {
  width: 50px; height: 50px; flex: none; border-radius: 14px; font-size: 1.35rem;
  display: grid; place-items: center; background: linear-gradient(135deg,#e7f3fc,#d2e9fb); color: var(--blue-dark);
}
.contact-item span:last-child { color: var(--muted); font-size: .97rem; overflow-wrap: anywhere; }
.contact-item strong { display: block; color: var(--ink); margin-bottom: 2px; font-family: 'Plus Jakarta Sans', sans-serif; }

.contact-form {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; box-shadow: var(--shadow-md); display: grid; gap: 12px; overflow: hidden;
}
.contact-form::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--grad-bright); }
.field { display: grid; gap: 5px; }
.field label { font-weight: 600; font-size: .86rem; color: var(--ink); }
.field input, .field textarea {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .95rem; color: var(--ink); background: #fbfdff; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(21,155,215,.14); background: #fff;
}
.field textarea { resize: vertical; }
.field-error { display: none; color: var(--red); font-size: .8rem; font-weight: 500; }
.field.has-error .field-error { display: block; }
.field.has-error input, .field.has-error textarea { border-color: var(--red); background: #fff6f6; }
.field.has-error input:focus, .field.has-error textarea:focus { box-shadow: 0 0 0 4px rgba(224,36,29,.12); }
/* honeypot — hidden off-screen from users (not display:none, so bots still see it) */
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* button spinner + loading state */
.btn-spinner {
  display: none; width: 18px; height: 18px; flex: none;
  border: 2.5px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%;
  animation: btn-spin .7s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }
.btn.is-loading { cursor: not-allowed; }
.btn.is-loading .btn-spinner { display: inline-block; }
.btn.is-loading::after { display: none; }   /* hide the arrow while loading */
.btn:disabled { opacity: .8; transform: none !important; box-shadow: none; }

.form-note { font-size: .92rem; min-height: 1em; text-align: center; margin-top: 2px; }
.form-note.ok { color: var(--green); font-weight: 600; }
.form-note.err { color: var(--red); font-weight: 600; }

/* ===== Footer ===== */
.footer { position: relative; background: var(--blue-deep); color: rgba(255,255,255,.82); padding-top: 64px; overflow: hidden; }
.footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--blue) 0 33%, var(--green) 33% 66%, var(--red) 66% 100%);
}
.footer::after {
  content: ""; position: absolute; top: -60px; right: -60px; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(41,176,236,.18), transparent 70%);
}
.footer-inner { position: relative; display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 44px; padding-bottom: 44px; }
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-logo { width: 84px; height: 84px; object-fit: contain; flex: none; background: #fff; border-radius: 16px; padding: 6px; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.footer-brand strong { color: #fff; font-size: 1.22rem; font-family: 'Plus Jakarta Sans', sans-serif; }
.footer-tagline { font-size: .94rem; margin-top: 8px; color: rgba(255,255,255,.9); }
.footer-desc { font-size: .9rem; margin-top: 10px; max-width: 440px; line-height: 1.7; color: rgba(255,255,255,.72); }
.footer h4 { color: #fff; margin-bottom: 18px; font-size: 1rem; }
.footer-links ul { display: grid; gap: 11px; }
.footer-links a, .footer-contact a { transition: color .2s, padding .2s; position: relative; }
.footer-links a:hover { color: #fff; padding-left: 6px; }
.footer-contact a:hover { color: #fff; }
.footer-contact p { margin-bottom: 9px; font-size: .94rem; }
.footer-contact-list { display: grid; gap: 12px; }
.footer-contact-list li { display: flex; gap: 11px; align-items: flex-start; font-size: .94rem; overflow-wrap: anywhere; }
.fc-icon {
  flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  font-size: .95rem; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
}
.footer-contact-list address { font-style: normal; line-height: 1.6; color: rgba(255,255,255,.82); }
.footer-contact-list a { padding-top: 4px; }
.footer-bottom {
  position: relative; border-top: 1px solid rgba(255,255,255,.12); text-align: center;
  padding: 24px 0; font-size: .88rem; color: rgba(255,255,255,.72);
}

/* ===== FAQ ===== */
.section-faq { padding: 56px 0; }
.section-faq .section-head { margin-bottom: 40px; }
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs); overflow: hidden; transition: border-color .25s, box-shadow .25s;
}
.faq-item[open] { border-color: #bfdef5; box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px 22px; font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600; font-size: 1.02rem; color: var(--ink); transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--blue); }
.faq-icon { position: relative; flex: none; width: 22px; height: 22px; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 13px; height: 2.5px;
  background: var(--blue); border-radius: 2px; transform: translate(-50%, -50%); transition: transform .3s;
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq-answer { padding: 0 22px 20px; }
.faq-answer p { color: var(--muted); font-size: .97rem; margin: 0; }

/* ===== Back to top ===== */
.back-top {
  position: fixed; bottom: 28px; right: 28px; width: 50px; height: 50px;
  border-radius: 50%; background: var(--grad-bright); color: #fff; font-size: 1.35rem;
  display: grid; place-items: center; box-shadow: var(--shadow-md); z-index: 90;
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.9); transition: .3s;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.back-top:hover { transform: translateY(-3px) scale(1.05); }

/* ===== Responsive ===== */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: auto; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .cards, .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  /* compact header + hamburger on phones/tablets */
  html { scroll-padding-top: 84px; }
  .nav-container { height: 76px; }
  .brand-logo { width: 56px; height: 56px; border-radius: 13px; padding: 5px; }
  .brand-text strong { font-size: 1.2rem; }
  .brand-text small { font-size: .58rem; letter-spacing: .2em; }
  .hero { padding: 118px 0 64px; }

  .menu-toggle { display: flex; }
  .nav {
    position: fixed; top: 76px; right: 0; width: min(300px, 82%); height: calc(100vh - 76px);
    background: #fff; box-shadow: -10px 0 40px rgba(7,58,96,.14);
    transform: translateX(100%); transition: transform .32s ease; padding: 26px;
  }
  .nav.open { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
  /* mobile panel is white, so links/CTA always use the dark/filled treatment */
  .nav-link, .header.scrolled .nav-link { padding: 14px 16px; color: var(--ink); }
  .nav-link:hover, .nav-link.active,
  .header.scrolled .nav-link:hover, .header.scrolled .nav-link.active { color: var(--blue); }
  .nav-link::before { display: none; }
  .nav-cta, .header.scrolled .nav-cta {
    text-align: center; margin-top: 10px; background: var(--grad-bright); color: #fff !important;
  }
}

@media (max-width: 560px) {
  .section,
  .section-about, .section-services, .section-finance,
  .section-clients, .section-faq, .section-contact { padding: 52px 0; }
  .hero { padding: 110px 0 56px; }
  .cards, .clients-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { flex-direction: column; gap: 12px; }
  .hero-stats { gap: 10px; }
  .stat { min-width: 0; flex: 1; padding: 12px 14px; }
  .contact-form { padding: 24px 18px; }
  .finance-cta { padding: 26px 22px; text-align: center; }
  .finance-cta .btn { width: 100%; }
}
