/* ==========================================================================
   Technodata v2 — brand-driven redesign
   Palette pulled directly from the Technodata logo mark:
     indigo/purple #58468C  +  sky blue #2FC0FF
   ========================================================================== */

:root {
  --color-purple: #58468c;
  --color-purple-mid: #453674;
  --color-purple-dark: #241b42;
  --color-purple-darker: #170f2b;
  --color-blue: #2fc0ff;
  --color-blue-dark: #0ea5e0;
  --color-blue-darker: #0b85ba;
  --color-pink: #e14f91;

  --color-ink: #201a33;
  --color-ink-muted: #675f7d;
  --color-bg: #ffffff;
  --color-bg-alt: #f6f4fb;
  --color-border: #e8e3f3;
  --color-invert: #f1edfb;
  --color-invert-muted: #b9afd6;

  --gradient-brand: linear-gradient(135deg, #58468c 0%, #4a5aa8 45%, #2fc0ff 100%);
  --gradient-dark: linear-gradient(160deg, #170f2b 0%, #241b42 45%, #453674 100%);
  --gradient-btn: linear-gradient(135deg, #6c53ab 0%, #1c95d6 100%);
  --gradient-btn-hover: linear-gradient(135deg, #5b4390 0%, #0e7db4 100%);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;
  --shadow-sm: 0 6px 18px rgba(36, 27, 66, 0.08);
  --shadow: 0 14px 36px rgba(36, 27, 66, 0.12);
  --shadow-lg: 0 28px 70px rgba(23, 15, 43, 0.22);
  --container: 1200px;
  --font-heading: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --header-h: 88px;
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  font-weight: 700;
}
h1 { font-size: clamp(2.3rem, 4.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.28rem; }

p { margin: 0 0 1em; }
a { color: var(--color-blue-darker); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

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

.section { padding: 100px 0; }
.section-sm { padding: 64px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-dark { background: var(--gradient-dark); color: var(--color-invert); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: var(--color-invert-muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-purple);
  background: rgba(88, 70, 140, 0.09);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--color-blue); }
.section-dark .eyebrow { color: #bfe6ff; background: rgba(47, 192, 255, 0.14); }

.section-head { max-width: 700px; margin: 0 0 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--color-ink-muted); font-size: 1.08rem; }

.text-center { text-align: center; }
.muted { color: var(--color-ink-muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary { background: var(--gradient-btn); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--gradient-btn-hover); box-shadow: var(--shadow); color: #fff; }
.btn-outline { border-color: rgba(255,255,255,0.45); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-outline-dark { border-color: rgba(88,70,140,0.35); color: var(--color-purple); }
.btn-outline-dark:hover { background: rgba(88,70,140,0.08); color: var(--color-purple); }
.btn-dark { background: var(--color-purple-dark); color: #fff; }
.btn-dark:hover { background: var(--color-purple-darker); color: #fff; }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ==========================================================================
   Header
   ========================================================================== */
.header-wrap { position: sticky; top: 0; z-index: 100; padding: 18px 20px 0; }
.site-header {
  max-width: 1320px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(88,70,140,0.08);
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(36,27,66,0.06);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow); background: rgba(255,255,255,0.96); }

.header-inner { display: flex; align-items: center; gap: 22px; height: 88px; padding: 0 10px 0 22px; }

.logo { display: flex; align-items: center; margin-right: auto; }
.logo img { height: 46px; width: auto; display: block; }
.logo:hover { text-decoration: none; }

.primary-nav ul { display: flex; align-items: center; gap: 6px; }
.primary-nav a {
  color: var(--color-ink);
  font-weight: 600;
  font-size: 0.94rem;
  font-family: var(--font-heading);
}
.primary-nav > ul > li > a { padding: 10px 14px; border-radius: 999px; display: inline-block; }
.primary-nav > ul > li > a:hover { text-decoration: none; color: var(--color-purple); background: rgba(88,70,140,0.08); }

.has-dropdown { position: relative; }
.has-dropdown > a::after { content: " \25BE"; font-size: 0.7em; }

.dropdown.mega-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  padding: 22px;
  width: 640px;
  opacity: 0;
  visibility: hidden;
  translate: 0 10px;
  transition: opacity 0.18s ease, translate 0.18s ease, visibility 0.18s ease;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; translate: 0 0; }

.mega-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
.mega-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}
.mega-item:hover { background: var(--color-bg-alt); text-decoration: none; }
.mega-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  background: rgba(88,70,140,0.09); color: var(--color-purple);
}
.mega-icon svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.mega-text strong { display: block; font-family: var(--font-heading); font-size: 0.92rem; color: var(--color-ink); margin-bottom: 2px; }
.mega-text small { display: block; color: var(--color-ink-muted); font-size: 0.78rem; line-height: 1.4; }
.mega-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--color-border);
}
.mega-viewall { font-family: var(--font-heading); font-weight: 700; font-size: 0.88rem; color: var(--color-purple); }
.mega-viewall:hover { color: var(--color-blue-darker); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.phone-link { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--color-purple); font-size: 0.92rem; font-family: var(--font-heading); }
.phone-link svg { width: 17px; height: 17px; stroke: var(--color-blue-dark); }
.phone-link:hover { text-decoration: none; color: var(--color-blue-darker); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--color-purple); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s 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); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; overflow: hidden; padding: 70px 0 60px; background: var(--color-bg); }
.hero::before {
  content: "";
  position: absolute; inset: -10% -10% auto -10%;
  height: 640px;
  background: radial-gradient(60% 60% at 25% 20%, rgba(88,70,140,0.14), transparent 70%),
              radial-gradient(50% 50% at 85% 10%, rgba(47,192,255,0.16), transparent 70%);
  z-index: 0;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center; }
.hero-copy p { font-size: 1.15rem; color: var(--color-ink-muted); max-width: 540px; }
.hero-cta { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.hero-trust { margin-top: 46px; }
.hero-trust span { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-ink-muted); margin-bottom: 14px; }
.hero-trust-logos { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.hero-trust-logos img { height: 22px; width: auto; filter: grayscale(1); opacity: 0.55; transition: opacity 0.2s ease, filter 0.2s ease; }
.hero-trust-logos img:hover { filter: grayscale(0); opacity: 1; }

.hero-visual { position: relative; }
.hero-photo-frame {
  position: relative;
  border-radius: 46% 54% 62% 38% / 50% 44% 56% 50%;
  overflow: hidden;
  aspect-ratio: 1 / 1.05;
  max-width: 460px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  background: var(--gradient-brand);
}
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
.hero-blob-deco {
  position: absolute; z-index: -1; border-radius: 50%;
  background: var(--gradient-brand); opacity: 0.18; filter: blur(6px);
}
.hero-blob-deco.b1 { width: 220px; height: 220px; top: -30px; right: -20px; }
.hero-blob-deco.b2 { width: 160px; height: 160px; bottom: -20px; left: -10px; }
.hero-float-card {
  position: absolute;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}
.hero-float-card.top { top: 6%; left: -8%; }
.hero-float-card.bottom { bottom: 8%; right: -10%; }
.hero-float-card .dot { width: 42px; height: 42px; border-radius: 12px; background: var(--gradient-btn); display: grid; place-items: center; flex-shrink: 0; }
.hero-float-card .dot svg { width: 20px; height: 20px; stroke: #fff; }
.hero-float-card strong { display: block; font-family: var(--font-heading); font-size: 1.15rem; color: var(--color-ink); }
.hero-float-card span { font-size: 0.78rem; color: var(--color-ink-muted); }

/* Page hero (inner pages) */
.page-hero { position: relative; overflow: hidden; background: var(--gradient-dark); color: #fff; padding: 68px 0 78px; }
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(40% 70% at 90% 0%, rgba(47,192,255,0.22), transparent 60%);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero p { color: var(--color-invert-muted); max-width: 640px; font-size: 1.05rem; }
.breadcrumb { font-size: 0.85rem; color: var(--color-invert-muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--color-invert-muted); }
.breadcrumb a:hover { color: #fff; }
.page-hero-split { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 40px; align-items: center; }
.page-hero-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; }
.page-hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Bento services grid
   ========================================================================== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.service-card:hover .service-media img { transform: scale(1.06); }
.service-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,15,43,0) 40%, rgba(23,15,43,0.55) 100%); }
.icon-badge {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--gradient-btn);
  color: #fff;
  position: absolute; left: 18px; bottom: -22px;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}
.icon-badge svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 1.8; }
.service-card-body { padding: 34px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--color-ink-muted); font-size: 0.95rem; margin-bottom: 14px; flex: 1; }
.card-link { font-family: var(--font-heading); font-weight: 700; font-size: 0.9rem; color: var(--color-purple); }
.card-link:hover { color: var(--color-blue-darker); }

/* Standalone icon badge (no media, e.g. why-choose cards) */
.icon-badge.standalone { position: static; margin-bottom: 18px; background: rgba(88,70,140,0.08); }
.icon-badge.standalone svg { stroke: var(--color-purple); }

/* Trust bar */
.trust-bar { padding: 30px 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.trust-bar-inner { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; justify-content: center; }
.trust-bar-inner span.label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-ink-muted); }
.trust-bar-inner img { height: 26px; width: auto; filter: grayscale(1); opacity: 0.6; transition: opacity 0.2s ease, filter 0.2s ease; }
.trust-bar-inner img:hover { filter: grayscale(0); opacity: 1; }

/* About split */
.about-split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; }
.about-visual { position: relative; }
.about-visual img { width: 100%; border-radius: var(--radius-lg); }
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 34px; }
.pillar { padding-left: 18px; border-left: 3px solid var(--color-blue); }
.pillar strong { display: block; font-family: var(--font-heading); color: var(--color-ink); margin-bottom: 6px; }
.pillar p { color: var(--color-ink-muted); font-size: 0.92rem; margin: 0; }

/* Team grid */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.team-card { text-align: center; }
.team-photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3/3.4; margin-bottom: 18px; box-shadow: var(--shadow-sm); position: relative; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(23,15,43,0.5) 100%); }
.team-card h3 { font-size: 1.05rem; margin-bottom: 2px; }
.team-card span { color: var(--color-ink-muted); font-size: 0.85rem; }

/* Why choose us */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-card { text-align: left; padding: 32px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--color-border); }
.why-card p { color: var(--color-ink-muted); font-size: 0.9rem; margin: 0; }

/* Portfolio */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.portfolio-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--color-border); background: #fff; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.portfolio-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.portfolio-thumb { aspect-ratio: 16/10; overflow: hidden; position: relative; background: var(--gradient-brand); }
.portfolio-thumb img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-thumb.is-logo-tile { display: grid; place-items: center; padding: 30px; }
.portfolio-thumb.is-logo-tile img { width: auto; max-width: 78%; height: auto; max-height: 64%; object-fit: contain; background: #fff; border-radius: var(--radius-sm); padding: 14px 20px; }
.portfolio-body { padding: 24px; }
.tag { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-purple); background: rgba(88,70,140,0.09); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.portfolio-body h3 { margin-bottom: 8px; }
.portfolio-body p { color: var(--color-ink-muted); font-size: 0.92rem; margin-bottom: 0; }

/* Stats band (real gradient photo background) */
.stats-band { position: relative; padding: 90px 0; overflow: hidden; color: #fff; }
.stats-band .bg-photo { position: absolute; inset: 0; }
.stats-band .bg-photo img { width: 100%; height: 100%; object-fit: cover; }
.stats-band .bg-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(23,15,43,0.82), rgba(69,54,116,0.75)); }
.stats-band .container { position: relative; z-index: 1; }
.stats-flex { display: flex; align-items: center; gap: 70px; flex-wrap: wrap; }
.stats-flex .big-stat strong { font-family: var(--font-heading); font-size: 4.2rem; color: #fff; display: block; line-height: 1; }
.stats-flex .big-stat span { color: var(--color-invert-muted); font-weight: 600; }
.stats-copy { max-width: 560px; }
.stats-copy p { color: var(--color-invert-muted); }
.stats-copy h2 { color: #fff; }

/* Testimonials */
.testimonial-carousel { position: relative; max-width: 900px; margin: 0 auto; }
.testimonial-track { overflow: hidden; }
.testimonial-slides { display: flex; transition: transform 0.4s ease; }
.testimonial-slide { flex: 0 0 100%; padding: 6px; }
.testimonial-card { position: relative; background: #fff; border-radius: var(--radius-lg); padding: 46px 52px; text-align: center; box-shadow: var(--shadow); border-top: 4px solid transparent; border-image: var(--gradient-brand) 1; }
.testimonial-card .quote-mark { font-family: var(--font-heading); font-size: 3rem; color: var(--color-blue); line-height: 1; margin-bottom: 6px; opacity: 0.5; }
.testimonial-card p.quote { font-size: 1.2rem; color: var(--color-ink); font-family: var(--font-heading); font-weight: 500; margin-bottom: 24px; }
.testimonial-author strong { display: block; color: var(--color-purple); }
.testimonial-author span { color: var(--color-ink-muted); font-size: 0.85rem; }
.carousel-controls { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 28px; }
.carousel-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--color-border); background: #fff; cursor: pointer; display: grid; place-items: center; transition: background 0.15s ease, border-color 0.15s ease; }
.carousel-arrow:hover { background: var(--color-bg-alt); border-color: var(--color-blue); }
.carousel-arrow svg { width: 18px; height: 18px; stroke: var(--color-purple); }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: var(--color-border); cursor: pointer; padding: 0; }
.carousel-dots button.is-active { background: var(--color-blue); width: 26px; border-radius: 6px; }

/* Tech index */
.tech-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.tech-item { text-align: center; padding: 30px 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--color-border); }
.tech-item .icon-badge.standalone { margin: 0 auto 16px; }
.tech-item h3 { font-size: 1.02rem; }
.tech-item p { font-size: 0.85rem; color: var(--color-ink-muted); margin: 0; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.blog-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--color-border); background: #fff; display: flex; flex-direction: column; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.blog-thumb { aspect-ratio: 16/10; overflow: hidden; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.blog-meta { font-size: 0.78rem; color: var(--color-ink-muted); margin-bottom: 10px; }
.blog-body h3 { font-size: 1.1rem; margin-bottom: 10px; }
.blog-body p { color: var(--color-ink-muted); font-size: 0.9rem; flex: 1; }

/* Client logos */
.logo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.logo-chip {
  border: 1px solid var(--color-border); border-radius: var(--radius); padding: 26px 18px;
  display: grid; place-items: center; background: #fff; transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 100px;
}
.logo-chip img { max-height: 42px; width: auto; max-width: 100%; filter: grayscale(1); opacity: 0.65; transition: opacity 0.2s ease, filter 0.2s ease; }
.logo-chip:hover { border-color: var(--color-blue); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.logo-chip:hover img { filter: grayscale(0); opacity: 1; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info-card { position: relative; overflow: hidden; background: var(--gradient-dark); color: #fff; border-radius: var(--radius-lg); padding: 40px; height: 100%; }
.contact-info-card h3 { color: #fff; }
.contact-info-list { margin-top: 26px; display: grid; gap: 22px; }
.contact-info-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-list svg { width: 22px; height: 22px; stroke: var(--color-blue); flex-shrink: 0; margin-top: 2px; }
.contact-info-list strong { display: block; margin-bottom: 2px; }
.contact-info-list span, .contact-info-list a { color: var(--color-invert-muted); font-size: 0.92rem; }
.contact-info-list a:hover { color: #fff; }
.social-row { display: flex; gap: 12px; margin-top: 28px; }
.social-row a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3); display: grid; place-items: center; color: #fff; }
.social-row a:hover { background: rgba(255,255,255,0.12); }
.social-row svg { width: 18px; height: 18px; stroke: #fff; }

.form-card { background: #fff; border-radius: var(--radius-lg); padding: 40px; border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; font-family: var(--font-heading); font-size: 0.88rem; margin-bottom: 7px; color: var(--color-ink); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--color-border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.95rem; color: var(--color-ink); background: #fcfbfe;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--color-blue); box-shadow: 0 0 0 4px rgba(47,192,255,0.15); }
.field textarea { resize: vertical; min-height: 130px; }
.field .error-msg { color: #d64545; font-size: 0.8rem; margin-top: 6px; display: none; }
.field.has-error input, .field.has-error textarea { border-color: #d64545; }
.field.has-error .error-msg { display: block; }
.form-status { margin-top: 16px; font-weight: 600; font-size: 0.92rem; display: none; }
.form-status.is-success { display: block; color: var(--color-blue-darker); }
.form-status.is-error { display: block; color: #d64545; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; margin-top: 40px; border: 1px solid var(--color-border); }
.map-embed iframe { width: 100%; height: 340px; border: 0; display: block; }

/* CTA banner */
.cta-banner { position: relative; overflow: hidden; background: var(--gradient-brand); border-radius: var(--radius-lg); padding: 56px 60px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; color: #fff; }
.cta-banner::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,0.1); top: -100px; right: -60px; }
.cta-banner::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,0.08); bottom: -80px; left: 10%; }
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,0.85); margin: 0; }
.cta-banner .btn-dark { background: #fff; color: var(--color-purple); }
.cta-banner .btn-dark:hover { background: var(--color-invert); color: var(--color-purple); }

/* Footer */
.site-footer { background: var(--color-purple-darker); color: var(--color-invert-muted); padding: 76px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand .logo img { height: 38px; }
.footer-brand p { margin-top: 16px; font-size: 0.92rem; max-width: 300px; }
.footer-col h4 { color: #fff; font-family: var(--font-heading); font-size: 1rem; margin-bottom: 18px; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: var(--color-invert-muted); font-size: 0.92rem; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 14px; align-items: flex-start; font-size: 0.9rem; }
.footer-contact svg { width: 18px; height: 18px; stroke: var(--color-blue); flex-shrink: 0; margin-top: 3px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 26px 0; font-size: 0.85rem; flex-wrap: wrap; gap: 12px; }
.footer-bottom a { color: var(--color-invert-muted); }
.footer-bottom a:hover { color: #fff; }
.footer-legal { display: flex; gap: 20px; }

/* Blog post body */
.post-body { max-width: 720px; margin: 0 auto; }
.post-body h2 { margin-top: 1.6em; }
.post-body p, .post-body li { color: var(--color-ink-muted); font-size: 1.02rem; }
.post-body ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1.2em; }
.post-body ul li { margin-bottom: 0.5em; }
.post-hero-photo { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 40px; aspect-ratio: 21/9; box-shadow: var(--shadow); }
.post-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.post-share { display: flex; gap: 12px; margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--color-border); align-items: center; }

/* Reveal animation */
.reveal { opacity: 0; translate: 0 24px; transition: opacity 0.6s ease, translate 0.6s ease; }
.reveal.is-visible { opacity: 1; translate: 0 0; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--color-blue); color: #0b2233; padding: 12px 20px; z-index: 1000; border-radius: 0 0 8px 0; font-weight: 700; }
.skip-link:focus { left: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .services-grid, .portfolio-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-list { grid-template-columns: repeat(3, 1fr); }
  .logo-strip { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .about-split { grid-template-columns: 1fr; }
  .about-visual { max-width: 420px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-hero-split { grid-template-columns: 1fr; }
  .page-hero-photo { max-width: 480px; }
}

@media (max-width: 860px) {
  .header-wrap { padding: 14px 14px 0; }
  .primary-nav {
    position: fixed; inset: calc(var(--header-h) - 16px) 16px 16px 16px; background: #fff;
    padding: 20px 22px 30px; overflow-y: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }
  .primary-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .primary-nav > ul > li > a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--color-border); border-radius: 0; }
  .has-dropdown .dropdown {
    position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: none;
    width: auto; display: none; padding: 8px 0 4px 14px; border-left: 2px solid var(--color-border); margin: 4px 0 8px;
  }
  .has-dropdown.is-open .dropdown { display: block; }
  .mega-grid { grid-template-columns: 1fr; }
  .mega-footer { flex-direction: column; align-items: stretch; gap: 10px; }
  .mega-footer .btn { justify-content: center; }
  .has-dropdown > a::after { float: right; }
  .nav-toggle { display: flex; }
  .header-actions .phone-link { display: none; }
  .cta-banner { flex-direction: column; text-align: center; }
  .hero-float-card.top { left: 0; }
  .hero-float-card.bottom { right: 0; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .services-grid, .portfolio-grid, .blog-grid, .why-grid, .logo-strip, .team-grid { grid-template-columns: 1fr; }
  .tech-list { grid-template-columns: repeat(2, 1fr); }
  .stats-flex { gap: 30px; }
  .stats-flex .big-stat strong { font-size: 3rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .testimonial-card { padding: 34px 24px; }
  .header-inner { gap: 10px; padding: 0 6px 0 16px; }
  .header-actions .btn { padding: 10px 16px; font-size: 0.82rem; }
  .hero-float-card { display: none; }
}
