/* ============================================================
   I-SOFT SOLUTIONS — main.css
   Design: Syne display + DM Sans body, Navy/Blue/White palette
   ============================================================ */

:root {
  /* Brand Colours */
  --primary: #1a4fa0;
  --primary-dk: #0f3578;
  --primary-lt: #e8f0fc;
  --primary-mid: #2c5fbe;
  --accent: #0ea5e9;
  --accent-lt: #e0f5fe;
  --success: #16a34a;
  --success-lt: #dcfce7;
  --warning: #d97706;
  --danger: #dc2626;

  /* Neutrals */
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafd;
  --border: #e2e8f0;
  --border-dk: #cbd5e1;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;
  --text-inv: #ffffff;

  /* Shape */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.07);
  --shadow:    0 4px 16px rgba(0,0,0,.07), 0 1px 3px rgba(0,0,0,.05);
  --shadow-md: 0 8px 32px rgba(0,0,0,.1);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.12);
  --shadow-xl: 0 24px 64px rgba(26,79,160,.18);

  /* Typography */
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Transitions */
  --ease: cubic-bezier(.25,.46,.45,.94);
  --ease-out: cubic-bezier(0,0,.2,1);

  /* Layout */
  --max-w: 1180px;
  --nav-h: 68px;
  --topbar-h: 38px;
}

/* ─── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
select, input, textarea { font-family: inherit; }

/* ─── LAYOUT ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 2rem;
}
.section { padding: 6rem 0; }

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4, h5 { font-family: var(--font-display); line-height: 1.15; font-weight: 700; letter-spacing: -.5px; color: var(--text); }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -1.5px; font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -1px; }
h3 { font-size: 1.2rem; }

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .65rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600; font-size: .88rem;
  text-decoration: none; border: 1.5px solid transparent;
  transition: all .22s var(--ease); white-space: nowrap; cursor: pointer;
  line-height: 1;
}
.btn-primary   { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dk); border-color: var(--primary-dk); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,79,160,.35); }
.btn-outline   { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn-white     { background: #fff; color: var(--primary); border-color: #fff; }
.btn-white:hover { background: var(--primary-lt); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline-white:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-sm  { padding: .45rem 1rem; font-size: .82rem; }
.btn-lg  { padding: .85rem 2rem; font-size: .95rem; }
.btn-full { width: 100%; justify-content: center; }

/* ─── TOP BAR ─────────────────────────────────────────────── */
.topbar {
  background: var(--primary-dk);
  height: var(--topbar-h);
  display: flex; align-items: center;
}
.topbar-inner {
  display: flex; align-items: center;
  justify-content: space-between;
}
.tb-left { display: flex; gap: 1.5rem; }
.tb-link {
  display: flex; align-items: center; gap: .4rem;
  font-size: .75rem; color: rgba(255,255,255,.8);
  transition: color .18s;
}
.tb-link:hover { color: #fff; }
.tb-link--highlight { color: #fbbf24; font-weight: 600; }
.tb-link--highlight:hover { color: #fcd34d; }

/* ─── NAVBAR ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: var(--topbar-h); left: 0; right: 0;
  z-index: 500;
  height: var(--nav-h);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s, top .3s;
}
.navbar.scrolled { box-shadow: var(--shadow-md); top: 0; }
.navbar.hide-topbar { top: 0; }

.nav-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}

/* Logo */
.nav-logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; flex-shrink: 0; }
.logo-img  { height: 44px; width: auto; max-width: 180px; object-fit: contain; display: block; }
/* Hide the text wrap beside logo — image is sufficient */
.logo-text-wrap { display: none; }
.logo-fallback { display: none; align-items: center; gap: .5rem; }
.logo-mark {
  width: 36px; height: 36px;
  background: var(--primary); color: #fff;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: .95rem;
}
.logo-text { font-family: var(--font-display); font-size: 1rem; font-weight: 500; color: var(--text); }
.logo-text strong { color: var(--primary); }

/* Nav links */
.nav-links {
  display: flex; align-items: center; gap: .25rem;
  flex: 1; justify-content: center;
}
.nav-link {
  display: flex; align-items: center; gap: .25rem;
  padding: .55rem .85rem;
  font-size: .875rem; font-weight: 500; color: var(--text-2);
  border-radius: var(--radius-sm);
  transition: color .18s, background .18s; position: relative;
}
.nav-link:hover { color: var(--primary); background: var(--primary-lt); }
.nav-link.active { color: var(--primary); font-weight: 600; }
.nav-link.active::after {
  content: ''; position: absolute; bottom: -1px; left: .85rem; right: .85rem;
  height: 2px; background: var(--primary); border-radius: 2px;
}

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + .75rem); left: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: .5rem;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all .22s var(--ease);
  z-index: 600;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dd-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem .85rem;
  border-radius: var(--radius-sm);
  font-size: .85rem; color: var(--text-2);
  transition: background .15s, color .15s;
}
.dd-item:hover { background: var(--primary-lt); color: var(--primary); }
.dd-icon { font-size: 1rem; width: 22px; text-align: center; }

/* Nav CTA */
.nav-cta { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: .3rem; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all .25s; }

.nav-spacer { height: calc(var(--topbar-h) + var(--nav-h)); }

/* ─── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: var(--surface);
  padding: 5.5rem 0 5rem;
  border-bottom: 1px solid var(--border);
}
.hero-bg-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: .4;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 40%, transparent 100%);
}
.hero-glow {
  position: absolute; top: -120px; right: -80px;
  width: 700px; height: 600px;
  background: radial-gradient(ellipse, rgba(26,79,160,.07) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 4rem; align-items: center;
  position: relative; z-index: 1;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--primary-lt);
  border: 1px solid rgba(26,79,160,.2);
  border-radius: 30px;
  padding: .35rem 1.1rem;
  font-size: .73rem; font-weight: 700; color: var(--primary);
  letter-spacing: .5px; text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.eyebrow-pulse {
  width: 7px; height: 7px; background: var(--primary);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.7)} }

.hero h1 { margin-bottom: 1.25rem; }
.hero-sub {
  font-size: 1.02rem; color: var(--text-2);
  max-width: 500px; margin-bottom: 2rem; line-height: 1.75;
}
.hero-actions { display: flex; gap: .85rem; flex-wrap: wrap; margin-bottom: 2rem; }
.trust-row { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.trust-item {
  display: flex; align-items: center; gap: .4rem;
  font-size: .78rem; color: var(--text-3);
}
.trust-icon {
  width: 18px; height: 18px;
  background: var(--success-lt); color: var(--success);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .62rem; font-weight: 800;
}

/* Hero card stack */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-card-stack { position: relative; width: 380px; height: 340px; }
.h-card {
  position: absolute; left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  transition: transform .6s var(--ease);
}
.h-card--back  { top: 40px; transform: rotate(-4deg) scale(.92); opacity: .65; }
.h-card--mid   { top: 20px; transform: rotate(-2deg) scale(.96); opacity: .82; }
.h-card--front {
  top: 0; transform: rotate(0) scale(1);
  animation: float-card 5s ease-in-out infinite;
}
@keyframes float-card { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

.hc-dot { width: 10px; height: 10px; border-radius: 50%; margin-bottom: .75rem; }
.hc-dot--blue { background: var(--primary); }
.hc-dot--green { background: var(--success); }
.hc-label { font-family: var(--font-display); font-size: .82rem; font-weight: 700; color: var(--text); margin-bottom: .75rem; }
.hc-bar { height: 8px; background: var(--primary-lt); border-radius: 4px; margin-bottom: .5rem; overflow: hidden; }
.hc-bar::after { content:''; display:block; height:100%; background:var(--primary); border-radius:4px; animation: bar-grow 2s ease-out forwards; }
.hc-bar--sm::after { background: var(--accent); animation-delay: .4s; }
@keyframes bar-grow { from{width:0} }

.hc-header { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.hc-avatar {
  width: 40px; height: 40px;
  background: var(--primary); color: #fff;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: .9rem;
  flex-shrink: 0;
}
.hc-name { font-family: var(--font-display); font-size: .9rem; font-weight: 700; color: var(--text); }
.hc-role { font-size: .72rem; color: var(--text-3); }
.hc-badge {
  margin-left: auto;
  background: var(--success-lt); color: var(--success);
  border-radius: 20px; padding: .2rem .7rem;
  font-size: .68rem; font-weight: 700;
  display: flex; align-items: center; gap: .3rem;
}
.hc-badge::before { content:''; width:6px; height:6px; background:var(--success); border-radius:50%; animation: pulse-dot 2s infinite; }

.hc-stats { display: flex; gap: 1.5rem; margin-bottom: 1.25rem; }
.hc-stat { display: flex; flex-direction: column; }
.hc-num { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: var(--primary); }
.hc-lbl { font-size: .68rem; color: var(--text-3); }

.hc-tech-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.hc-tech {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .25rem .65rem;
  font-size: .7rem; font-weight: 600; color: var(--text-2);
}

/* Scroll hint */
.scroll-hint {
  position: absolute; bottom: 1.75rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  font-size: .72rem; color: var(--text-3);
  animation: fade-in 2s 1.5s both;
}
@keyframes fade-in { from{opacity:0;transform:translateX(-50%) translateY(8px)} to{opacity:1;transform:translateX(-50%) translateY(0)} }
.scroll-mouse {
  width: 22px; height: 34px;
  border: 2px solid var(--border-dk);
  border-radius: 11px;
  display: flex; justify-content: center; padding-top: 4px;
}
.scroll-wheel {
  width: 4px; height: 8px;
  background: var(--text-3);
  border-radius: 2px;
  animation: scroll-wheel 1.6s ease-in-out infinite;
}
@keyframes scroll-wheel { 0%,100%{transform:translateY(0);opacity:1} 80%{transform:translateY(10px);opacity:0} }

/* ─── STATS STRIP ───────────────────────────────────────── */
.stats-strip {
  background: var(--primary);
  padding: 2.5rem 0;
}
.stats-inner {
  display: flex; align-items: center;
  justify-content: space-around; gap: 2rem; flex-wrap: wrap;
}
.stat-block { display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.stat-num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; color: #fff; line-height: 1; }
.stat-plus { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: rgba(255,255,255,.7); vertical-align: super; font-size: 1.2rem; }
.stat-lbl { font-size: .8rem; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .5px; }
.stat-divider { width: 1px; height: 50px; background: rgba(255,255,255,.2); }

/* ─── SECTION HEADER ────────────────────────────────────── */
.section-head { text-align: center; margin-bottom: 3.5rem; }
.section-eyebrow {
  display: inline-block;
  background: var(--primary-lt); color: var(--primary);
  border-radius: 30px; padding: .3rem 1rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; margin-bottom: .85rem;
}
.section-title { margin-bottom: .75rem; }
.section-sub { color: var(--text-2); font-size: .97rem; max-width: 520px; margin-inline: auto; }
.section-cta { text-align: center; margin-top: 3rem; }

/* ─── SERVICES GRID ─────────────────────────────────────── */
.services-section { background: var(--bg); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(26,79,160,.25);
}
.sc-icon {
  width: 60px; height: 60px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem; overflow: hidden;
}
.sc-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.sc-icon--blue   { background: var(--primary-lt); }
.sc-icon--red    { background: #fef2f2; }
.sc-icon--green  { background: var(--success-lt); }
.sc-icon--navy   { background: #e0e7ff; }
.sc-icon--teal   { background: #f0fdfa; }

.sc-title { font-size: 1.05rem; margin-bottom: .65rem; }
.sc-desc  { font-size: .87rem; color: var(--text-2); line-height: 1.7; margin-bottom: 1.25rem; }
.sc-link  { font-size: .85rem; font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: .3rem; transition: gap .18s; }
.sc-link:hover { gap: .6rem; }
.sc-link span { transition: transform .18s; }
.sc-link:hover span { transform: translateX(3px); }

.service-card--cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  border-color: transparent;
  display: flex; align-items: center; justify-content: center;
}
.sc-cta-inner { text-align: center; }
.sc-cta-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.service-card--cta h3 { color: #fff; margin-bottom: .65rem; }
.service-card--cta p  { color: rgba(255,255,255,.75); font-size: .88rem; margin-bottom: 1.5rem; }

/* ─── PRODUCTS GRID ─────────────────────────────────────── */
.products-section { background: var(--surface); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.pc-image-wrap { position: relative; overflow: hidden; aspect-ratio: 16/9; background: var(--bg); }
.pc-image { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .pc-image { transform: scale(1.04); }
.pc-image-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-lt);
}
.pc-image-placeholder img { width: 60%; height: 60%; object-fit: contain; opacity: .6; }
.pc-views {
  position: absolute; bottom: .75rem; right: .75rem;
  background: rgba(0,0,0,.55); color: #fff;
  border-radius: 20px; padding: .25rem .7rem;
  font-size: .7rem; display: flex; align-items: center; gap: .35rem;
  backdrop-filter: blur(4px);
}
.pc-body { padding: 1.5rem; }
.pc-title { font-size: 1.1rem; margin-bottom: .5rem; }
.pc-desc  { font-size: .85rem; color: var(--text-2); line-height: 1.65; margin-bottom: 1rem; }
.pc-price-row { margin-bottom: 1rem; }
.pc-price      { display: flex; align-items: baseline; gap: .35rem; flex-wrap: wrap; }
.price-usd     { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; color: var(--primary); letter-spacing: -.5px; }
.price-sep     { color: var(--text-3); font-size: .8rem; }
.price-inr     { font-size: .82rem; color: var(--text-3); font-weight: 500; }
.pc-actions { display: flex; gap: .65rem; }

/* ─── WHY SECTION ───────────────────────────────────────── */
.why-section { background: var(--bg); }
.why-inner { display: grid; grid-template-columns: 380px 1fr; gap: 5rem; align-items: start; }
.why-right  { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex; gap: 1rem; align-items: flex-start;
  transition: box-shadow .25s, border-color .25s;
}
.why-card:hover { box-shadow: var(--shadow); border-color: rgba(26,79,160,.25); }
.wc-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: .1rem; }
.wc-title { font-size: .95rem; font-weight: 700; margin-bottom: .4rem; color: var(--text); }
.wc-desc  { font-size: .83rem; color: var(--text-2); line-height: 1.65; }

/* ─── CTA BANNER ────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dk) 0%, var(--primary) 60%, var(--primary-mid) 100%);
  padding: 5rem 0;
  position: relative; overflow: hidden;
}
.cta-bg-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 28px 28px;
}
.cta-inner {
  display: flex; gap: 4rem; align-items: center; justify-content: space-between;
  position: relative; z-index: 1;
}
.cta-quote blockquote {
  font-family: var(--font-display);
  font-size: 1.2rem; font-style: italic; font-weight: 600;
  color: rgba(255,255,255,.9);
  max-width: 380px; line-height: 1.6;
  border-left: 3px solid rgba(255,255,255,.3);
  padding-left: 1.25rem;
  margin-bottom: .65rem;
}
.cta-quote cite { font-size: .82rem; color: rgba(255,255,255,.55); font-style: normal; }
.cta-action h3 { color: #fff; font-size: 1.5rem; margin-bottom: .6rem; }
.cta-action p  { color: rgba(255,255,255,.7); margin-bottom: 1.5rem; font-size: .95rem; }
.cta-btns { display: flex; gap: .85rem; flex-wrap: wrap; }

/* ─── FOOTER CONTACT ────────────────────────────────────── */
.footer-contact-section {
  background: var(--surface);
  padding: 6rem 0 4rem;
  border-top: 1px solid var(--border);
}
.fc-inner {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; align-items: start;
}
.fc-title { margin-bottom: .75rem; font-size: 2rem; }
.fc-sub   { color: var(--text-2); margin-bottom: 2rem; }
.fc-details { display: flex; flex-direction: column; gap: 1.25rem; }
.fc-detail-item {
  display: flex; gap: 1rem; align-items: flex-start;
  font-size: .88rem; color: var(--text-2); line-height: 1.6;
}
.fc-detail-item strong { display: block; color: var(--text); font-weight: 600; }
.fc-detail-item a:hover { color: var(--primary); }
.fcd-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: .1rem; }

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .82rem; font-weight: 600; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: .65rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem; color: var(--text);
  background: var(--surface);
  transition: border-color .18s, box-shadow .18s;
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,79,160,.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-3); }

.form-alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: .88rem; font-weight: 500;
  margin-bottom: .75rem;
}
.form-alert--success { background: var(--success-lt); color: var(--success); border: 1px solid rgba(22,163,74,.2); }
.form-alert--error   { background: #fef2f2; color: var(--danger); border: 1px solid rgba(220,38,38,.2); }

/* ─── MAIN FOOTER ───────────────────────────────────────── */
.main-footer { background: var(--text); color: rgba(255,255,255,.7); padding: 4rem 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
/* Footer logo image — sized correctly, inverted to show white on dark bg */
.footer-brand .footer-logo { margin-bottom: 1rem; display: inline-block; }
.footer-logo img {
  height: 46px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
  opacity: .9;
}
/* Hide the duplicate text-only fallback since image loads fine */
.footer-logo-text { display: none; }
.footer-logo-link { text-decoration: none; display: inline-block; margin-bottom: 1rem; }
/* Footer logo block used in new footer.php */
.footer-logo-block { display: flex; align-items: center; gap: .65rem; }
.footer-logo-img {
  height: 46px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
  opacity: .9;
}
.fl-isoft { display: none; }
.fl-solutions { display: none; }
.footer-tagline { font-size: .85rem; line-height: 1.7; margin-bottom: 1.25rem; max-width: 280px; }
.footer-offices { display: flex; flex-wrap: wrap; gap: .5rem; }
.fo-badge {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px; padding: .25rem .75rem;
  font-size: .72rem; color: rgba(255,255,255,.65);
}
.fc-head { font-family: var(--font-display); font-size: .85rem; font-weight: 700; color: #fff; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .5px; }
.fc-list { display: flex; flex-direction: column; gap: .6rem; }
.fc-list li a { font-size: .85rem; color: rgba(255,255,255,.6); transition: color .18s; }
.fc-list li a:hover { color: #fff; }
.footer-socials { display: flex; gap: .65rem; margin-top: .5rem; }
.fs-btn {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  transition: background .18s, color .18s;
}
.fs-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.5rem 0;
}
.footer-bottom-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: .8rem; color: rgba(255,255,255,.4);
}
.footer-legal { display: flex; gap: .75rem; align-items: center; }
.footer-legal a { color: rgba(255,255,255,.4); transition: color .18s; }
.footer-legal a:hover { color: rgba(255,255,255,.8); }
.footer-legal span { opacity: .3; }

/* ─── AOS ANIMATIONS ────────────────────────────────────── */
[data-aos] { opacity: 0; transform: translateY(24px); transition: opacity .55s var(--ease-out), transform .55s var(--ease-out); }
[data-aos].in-view { opacity: 1; transform: none; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { display: none; }
  .why-inner   { grid-template-columns: 1fr; gap: 3rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; --topbar-h: 34px; }
  .topbar .tb-left .tb-link:not(:first-child) { display: none; }
  .container { padding-inline: 1.25rem; }
  h1 { font-size: clamp(2rem, 8vw, 2.8rem); }

  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 1rem; box-shadow: var(--shadow-md); }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .has-dropdown .dropdown { position: static; box-shadow: none; border: none; opacity: 1; visibility: visible; transform: none; background: var(--bg); padding: .25rem .5rem; display: none; }
  .has-dropdown.open .dropdown { display: block; }

  .hero { padding: 3.5rem 0 3rem; }
  .section { padding: 4rem 0; }
  .services-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .why-right { grid-template-columns: 1fr; }
  .fc-inner   { grid-template-columns: 1fr; gap: 3rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .cta-inner  { flex-direction: column; gap: 2.5rem; }
  .stats-inner { gap: 1.5rem; }
  .stat-divider { display: none; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
