/* =========================================================
   Girran Business Solutions — styles.css
   Professional / corporate. Chatbot-matched navy (#0C1044) + mint accent + white/greys.
   Fonts: Poppins (headings) / Open Sans (body)
   ========================================================= */

:root {
  --navy-900: #080B2E;
  --navy-800: #0C1044;
  --navy-700: #0C1044;   /* primary */
  --navy-600: #1E2678;
  --ink:      #171C3A;
  --slate:    #454E6B;
  --slate-2:  #5A6285;

  --emerald-700: #0B6E4C;
  --emerald-600: #128A62;
  --emerald-500: #2ECC8F;  /* accent */
  --emerald-400: #4FDBA6;
  --mint:        #8FEAC9;

  --white:    #ffffff;
  --surface:  #F4F6FA;   /* light section bg */
  --surface-2:#EAEEF5;
  --line:     #E3E8F0;

  --bg: var(--white);
  --primary: var(--navy-700);
  --accent: var(--emerald-500);

  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, sans-serif;

  --container: 1200px;
  --radius: 16px;
  --radius-sm: 11px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(8,11,46,.06), 0 4px 14px -8px rgba(8,11,46,.16);
  --shadow-md: 0 18px 44px -22px rgba(8,11,46,.30);
  --shadow-lg: 0 40px 90px -44px rgba(8,11,46,.5);

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--bg);
  line-height: 1.65; font-size: 17px; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0; letter-spacing: -0.02em; color: var(--ink); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.section { padding-block: clamp(68px, 9vw, 118px); position: relative; }
.ico { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.skip-link { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--navy-700); color: #fff; padding: 10px 16px; border-radius: 10px; transition: top .2s var(--ease); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--emerald-500); outline-offset: 3px; border-radius: 6px; }

.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 200; }
.scroll-progress span { display: block; height: 100%; width: 0; background: var(--emerald-500); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy-700); --btn-fg: #fff;
  position: relative; display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-head); font-weight: 600; font-size: .96rem;
  padding: .78em 1.5em; border-radius: 10px; border: 1px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg); cursor: pointer;
  transition: transform .22s var(--ease-out), box-shadow .22s var(--ease), background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
.btn .ico { width: 1.05em; height: 1.05em; transition: transform .22s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:hover .ico { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn-primary { --btn-bg: var(--navy-700); }
.btn-primary:hover { --btn-bg: var(--navy-600); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--navy-800); border-color: rgba(12,16,68,.24); }
.btn-ghost:hover { --btn-bg: rgba(12,16,68,.05); box-shadow: none; }
.btn-light { --btn-bg: #fff; --btn-fg: var(--navy-800); }
.btn-light:hover { --btn-bg: var(--mint); }
.btn-sm { padding: .6em 1.1em; font-size: .88rem; }
.btn-lg { padding: .92em 1.7em; font-size: 1rem; }

/* ---------- Top utility bar ---------- */
.topbar { background: var(--navy-900); color: rgba(255,255,255,.82); font-size: .84rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; }
.topbar-contact { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,.82); transition: color .2s var(--ease); }
.topbar a:hover { color: #fff; }
.topbar .ico { width: 15px; height: 15px; color: var(--mint); }
.topbar-social { display: flex; align-items: center; gap: 14px; }
.topbar-social span { color: rgba(255,255,255,.55); font-family: var(--font-head); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; font-size: .72rem; }
.topbar-social a { color: rgba(255,255,255,.75); }
.topbar-social svg { width: 16px; height: 16px; fill: currentColor; }
@media (max-width: 640px) { .topbar-social span, .topbar-contact a:nth-child(2) span { display: none; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent; transition: box-shadow .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 46px; height: 46px; object-fit: contain; flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-head); }
.brand-name strong { font-size: 1.14rem; font-weight: 700; color: var(--navy-900); letter-spacing: -0.01em; }
.brand-name em { font-style: normal; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--slate-2); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > a { padding: 8px 14px; border-radius: 8px; font-weight: 500; font-size: .95rem; color: var(--navy-800); position: relative; transition: color .2s var(--ease); }
.nav > a:not(.btn)::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--emerald-500); transform: scaleX(0); transform-origin: left; transition: transform .26s var(--ease); }
.nav > a:not(.btn):hover::after, .nav > a.active:not(.btn)::after { transform: scaleX(1); }
.nav-cta { color: #fff !important; margin-left: 8px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; background: transparent; border: 0; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy-800); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; flex-direction: column; gap: 2px; padding: 10px clamp(20px,5vw,40px) 22px; background: #fff; border-top: 1px solid var(--line); }
.mobile-nav a { padding: 13px 8px; font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
.mobile-nav a.btn { justify-content: center; border: 0; margin-top: 12px; color: #fff; }
.mobile-nav.open { display: flex; animation: fadeDown .28s var(--ease-out); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 104px); background: linear-gradient(180deg, #fff 0%, var(--surface) 100%); }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-glow { position: absolute; top: -20%; right: -10%; width: 55vw; height: 55vw; max-width: 760px; max-height: 760px; border-radius: 50%; background: radial-gradient(circle, rgba(46,204,143,.16), transparent 68%); filter: blur(10px); }
.grid-overlay { position: absolute; inset: 0; background-image: linear-gradient(rgba(12,16,68,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(12,16,68,.045) 1px, transparent 1px); background-size: 58px 58px; mask-image: radial-gradient(ellipse 75% 65% at 60% 40%, #000 20%, transparent 78%); }

.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero-copy { max-width: 640px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: .8rem; letter-spacing: .05em; color: var(--emerald-700); background: rgba(46,204,143,.1); border: 1px solid rgba(46,204,143,.24); padding: 7px 15px; border-radius: 999px; margin-bottom: 24px; text-transform: uppercase; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald-500); }
.hero-title { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 700; letter-spacing: -0.03em; }
.grad { background: linear-gradient(100deg, var(--emerald-600), var(--emerald-500) 45%, var(--navy-600)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(1.05rem, 1.8vw, 1.22rem); color: var(--slate); max-width: 560px; margin-top: 24px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-meta { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.hero-meta > span { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; color: var(--slate-2); }
.hero-meta > strong { font-family: var(--font-head); font-weight: 600; color: var(--navy-800); font-size: .98rem; }

/* Hero credential card */
.hero-card { position: relative; background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); color: #fff; border-radius: var(--radius-lg); padding: clamp(28px, 3vw, 40px); box-shadow: var(--shadow-lg); overflow: hidden; }
.hero-card::before { content: ""; position: absolute; top: -35%; right: -25%; width: 65%; height: 80%; background: radial-gradient(circle, rgba(46,204,143,.4), transparent 70%); filter: blur(14px); }
.hero-card-emblem { position: relative; width: 60px; height: 60px; object-fit: contain; margin-bottom: 22px; }
.hero-card-lead { position: relative; font-family: var(--font-head); font-weight: 500; font-size: 1.2rem; line-height: 1.4; letter-spacing: -0.01em; }
.hero-card-list { position: relative; display: grid; gap: 13px; margin-top: 24px; }
.hero-card-list li { display: flex; align-items: flex-start; gap: 11px; font-size: .96rem; color: rgba(255,255,255,.9); }
.hero-card-list .ico { width: 19px; height: 19px; color: #fff; background: var(--emerald-500); border-radius: 50%; padding: 4px; flex: none; margin-top: 2px; stroke-width: 3; }
.hero-card-badge { position: relative; display: inline-block; margin-top: 28px; padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); font-family: var(--font-head); font-weight: 600; font-size: .8rem; color: var(--mint); }

/* ---------- Stats ---------- */
.stats { background: var(--navy-800); color: #fff; padding-block: clamp(44px, 6vw, 64px); position: relative; overflow: hidden; }
.stats::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 12% 0%, rgba(46,204,143,.22), transparent 42%); }
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 6px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: -12px; top: 12%; height: 76%; width: 1px; background: rgba(255,255,255,.12); }
.stat-num { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.2rem, 4.6vw, 3.2rem); line-height: 1; color: #fff; display: block; }
.stat-num .count { background: linear-gradient(120deg, #ffffff, var(--mint) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat.in .stat-num { animation: statPop .6s var(--ease-out) both; }
@keyframes statPop { from { transform: translateY(6px) scale(.96); } to { transform: none; } }
.stat-label { display: block; margin-top: 10px; color: rgba(255,255,255,.72); font-size: .92rem; max-width: 190px; margin-inline: auto; }

/* ---------- Section heads ---------- */
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.centered { text-align: center; margin-inline: auto; }
.section-head.centered .section-eyebrow { justify-content: center; }
.section-eyebrow { font-family: var(--font-head); font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--emerald-600); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.section-eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--emerald-500); border-radius: 2px; }
.section-title { font-size: clamp(1.85rem, 3.6vw, 2.85rem); font-weight: 700; }
.section-intro { color: var(--slate); margin-top: 18px; font-size: 1.1rem; }

/* ---------- Services ---------- */
.services { background: var(--white); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px 34px; overflow: hidden; transition: transform .3s var(--ease-out), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.card::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--emerald-500), var(--emerald-400)); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(46,204,143,.35); }
.card:hover::after { transform: scaleX(1); }
.card-ico { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 14px; background: var(--surface); color: var(--navy-700); margin-bottom: 20px; transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease-out); }
.card-ico .ico { width: 25px; height: 25px; }
.card:hover .card-ico { background: var(--navy-700); color: var(--mint); transform: translateY(-2px); }
.card h3 { font-size: 1.26rem; font-weight: 600; margin-bottom: 11px; }
.card p { color: var(--slate); font-size: .97rem; }
.card-index { position: absolute; top: 26px; right: 26px; font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--surface-2); transition: color .3s var(--ease); }
.card:hover .card-index { color: var(--emerald-400); }
.card-cta { background: linear-gradient(155deg, var(--navy-700), var(--navy-900)); color: #fff; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; border: 0; }
.card-cta::after { display: none; }
.card-cta h3 { color: #fff; }
.card-cta p { color: rgba(255,255,255,.75); margin-bottom: 18px; }

/* ---------- About ---------- */
.about { background: var(--surface); }
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.about-body .lead { font-size: 1.16rem; color: var(--navy-800); font-weight: 500; margin-bottom: 18px; line-height: 1.5; }
.about-body p { color: var(--slate); margin-bottom: 16px; }
.about-body .section-eyebrow { color: var(--emerald-600); }
.check-list { display: grid; gap: 12px; margin-top: 26px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--navy-800); font-weight: 500; }
.check-list .ico { width: 20px; height: 20px; color: #fff; background: var(--emerald-500); border-radius: 50%; padding: 4px; flex: none; margin-top: 2px; stroke-width: 3; }

.quote-card { position: relative; margin: 0; background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); color: #fff; border-radius: var(--radius-lg); padding: clamp(30px, 4vw, 46px); box-shadow: var(--shadow-lg); overflow: hidden; }
.quote-card::before { content: ""; position: absolute; top: -30%; right: -25%; width: 70%; height: 85%; background: radial-gradient(circle, rgba(46,204,143,.38), transparent 70%); filter: blur(16px); }
.quote-emblem { position: relative; width: 58px; height: 58px; object-fit: contain; margin-bottom: 22px; }
.quote-card blockquote { position: relative; margin: 0; font-family: var(--font-head); font-weight: 500; font-size: clamp(1.3rem, 2.5vw, 1.7rem); line-height: 1.35; letter-spacing: -0.01em; }
.quote-card figcaption { position: relative; margin-top: 18px; color: var(--mint); font-weight: 600; font-family: var(--font-head); font-size: .95rem; }
.quote-badges { position: relative; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.badge { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); padding: 8px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600; font-family: var(--font-head); }
.badge .ico { width: 15px; height: 15px; color: var(--mint); }

.partner-card { margin-top: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 14px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; box-shadow: var(--shadow-sm); }
.partner-label { font-family: var(--font-head); font-weight: 600; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--slate-2); }
.partner-logo { display: block; width: min(380px, 98%); height: auto; margin-inline: auto; }

/* About snippets */
.about-snippets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: clamp(40px, 5vw, 62px); }
.snippet { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; transition: transform .3s var(--ease-out), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.snippet:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(46,204,143,.35); }
.snippet-ico { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--surface); color: var(--navy-700); margin-bottom: 16px; }
.snippet-ico .ico { width: 22px; height: 22px; }
.snippet h3 { font-size: 1.06rem; font-weight: 600; margin-bottom: 8px; }
.snippet p { color: var(--slate); font-size: .92rem; line-height: 1.6; }

/* ---------- Bridge statement ---------- */
.bridge { background: var(--white); padding-block: clamp(56px, 8vw, 96px); text-align: center; }
.bridge p { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.6rem, 4vw, 2.8rem); line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); max-width: 960px; margin-inline: auto; }

/* ---------- Approach ---------- */
.approach { background: var(--surface); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { position: relative; padding: 30px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .3s var(--ease-out), box-shadow .3s var(--ease); }
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.step-num { display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--emerald-700); background: rgba(46,204,143,.12); width: 44px; height: 44px; border-radius: 12px; margin-bottom: 18px; letter-spacing: .02em; }
.step h3 { font-size: 1.18rem; margin-bottom: 8px; }
.step p { color: var(--slate); font-size: .95rem; }
.steps .step:not(:last-child)::after { content: ""; position: absolute; top: 52px; right: -13px; width: 22px; height: 2px; background: var(--emerald-400); opacity: .5; z-index: 1; }

/* ---------- Contact ---------- */
.contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 76px); align-items: start; }
.contact-info .lead { color: var(--slate); font-size: 1.12rem; margin-top: 16px; line-height: 1.55; }
.contact-list { display: grid; gap: 16px; margin-top: 32px; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.ci-ico { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 13px; background: var(--surface); color: var(--emerald-600); flex: none; }
.ci-ico .ico { width: 22px; height: 22px; }
.ci-text { display: flex; flex-direction: column; }
.ci-text small { color: var(--slate-2); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; font-family: var(--font-head); font-weight: 600; }
.ci-text a { font-family: var(--font-head); font-weight: 600; color: var(--navy-800); font-size: 1.04rem; transition: color .2s var(--ease); }
.ci-text a:hover { color: var(--emerald-600); }
.socials { margin-top: 34px; }
.socials-label { display: block; color: var(--slate-2); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; font-family: var(--font-head); font-weight: 600; margin-bottom: 13px; }
.social-row { display: flex; gap: 12px; }
.social { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--navy-800); transition: transform .22s var(--ease-out), background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease); }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.social:hover { transform: translateY(-3px); background: var(--navy-700); color: #fff; border-color: var(--navy-700); }

.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 42px); box-shadow: var(--shadow-sm); display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { position: relative; }
.field input, .field textarea { width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--navy-900); padding: 20px 16px 8px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); resize: vertical; }
.field textarea { padding-top: 26px; min-height: 130px; }
.field label { position: absolute; left: 17px; top: 16px; color: var(--slate-2); font-size: 1rem; pointer-events: none; transition: transform .18s var(--ease), color .18s var(--ease), font-size .18s var(--ease); transform-origin: left top; }
.field textarea + label { top: 18px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--emerald-500); box-shadow: 0 0 0 4px rgba(46,204,143,.14); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-10px) scale(.78); color: var(--emerald-700); font-weight: 600; }
.field.invalid input, .field.invalid textarea { border-color: #DC2626; background: #fff6f6; }
.field-error { display: block; color: #C41E1E; font-size: .82rem; margin-top: 6px; min-height: 1em; font-weight: 500; }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
#submitBtn { min-width: 150px; justify-content: center; }
.btn-spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#submitBtn.loading .btn-label { opacity: .6; }
#submitBtn.loading .btn-spinner { display: inline-block; }
#submitBtn.success { background: var(--emerald-600); }
#submitBtn.error { background: #C0392B; }
.form-note { font-size: .92rem; font-weight: 500; }
.form-note.ok { color: var(--emerald-700); }
.form-note.err { color: #C41E1E; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.72); padding-top: clamp(54px, 8vw, 80px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 46px; }
.footer-brand .brand-mark { width: 50px; height: 50px; }
.brand-footer .brand-name strong { color: #fff; }
.brand-footer .brand-name em { color: var(--mint); }
.footer-brand p { margin-top: 18px; max-width: 340px; font-size: .95rem; line-height: 1.7; }
.footer-brand .social-row { margin-top: 22px; }
.footer-brand .social { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #fff; }
.footer-brand .social:hover { background: var(--emerald-500); border-color: var(--emerald-500); }
.footer-col h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; font-weight: 600; }
.footer-col a { display: block; padding: 6px 0; font-size: .95rem; color: rgba(255,255,255,.72); transition: color .2s var(--ease), transform .2s var(--ease); }
.footer-col a:hover { color: var(--mint); transform: translateX(3px); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .86rem; color: rgba(255,255,255,.6); }

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 48px; height: 48px; border-radius: 13px; border: 0; background: var(--navy-700); color: #fff; cursor: pointer; box-shadow: var(--shadow-md); display: grid; place-items: center; opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease-out), background .2s var(--ease); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--emerald-600); transform: translateY(-2px); }
.to-top .ico { width: 22px; height: 22px; }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { max-width: 520px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about-snippets { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps .step:nth-child(2)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
  .stat + .stat::before { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .about-snippets { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps .step::after { display: none !important; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: flex-start; }
  .topbar-contact { gap: 14px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
