/* =========================================================
   APPTITUDE — Corporate Sober
   Professional IT services aesthetic
   ========================================================= */

/* ============ CUSTOM PROPERTIES ============ */
:root {
  /* Palette */
  --white:        #FFFFFF;
  --off-white:    #FAF9F7;
  --cream:        #F5F4F1;

  --ink:          #0F172A;
  --charcoal:     #1F2937;
  --graphite:     #374151;
  --slate:        #64748B;
  --light-slate:  #94A3B8;

  --border:       #E5E7EB;
  --border-dark:  #CBD5E1;

  --red:          #E30613;
  --red-dark:     #B00510;
  --red-soft:     #FEF2F2;
  --red-tint:     rgba(227, 6, 19, 0.08);

  /* Typography */
  --f-primary:  'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spatial */
  --max-w:         1280px;
  --gutter:        clamp(20px, 4vw, 40px);
  --nav-h:         72px;
  --topbar-h:      38px;
  --section-pad:   clamp(72px, 10vw, 120px);
}

/* ============ RESET ============ */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--white);
  color: var(--graphite);
  font-family: var(--f-primary);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
}

::selection {
  background: var(--red);
  color: var(--white);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

h1, h2, h3, h4, h5 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(36px, 5.5vw, 64px); letter-spacing: -0.03em; font-weight: 800; }
h2 { font-size: clamp(28px, 3.8vw, 44px); }
h3 { font-size: clamp(20px, 2.2vw, 24px); }
h4 { font-size: 18px; }

p { margin: 0; }

/* ============ UTILITIES ============ */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--red);
}

.section-title {
  max-width: 780px;
  margin-top: 16px;
}

.section-subtitle {
  max-width: 620px;
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--slate);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--f-primary);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.005em;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(227, 6, 19, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-dark);
}

.btn-outline:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 14px 8px;
  border: none;
}

.btn-ghost:hover { color: var(--red); }

.btn-arrow {
  font-size: 16px;
  transition: transform 0.25s ease;
}

.btn:hover .btn-arrow { transform: translateX(4px); }

/* ============ TOPBAR ============ */
.topbar {
  background: var(--ink);
  color: var(--white);
  height: var(--topbar-h);
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar-info {
  display: flex;
  gap: 28px;
  color: rgba(255, 255, 255, 0.75);
}

.topbar-info-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}

.topbar-info-item:hover { color: var(--white); }

.topbar-info-item svg {
  width: 14px;
  height: 14px;
  stroke: var(--red);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topbar-social {
  display: flex;
  gap: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.topbar-social a { transition: color 0.2s ease; }
.topbar-social a:hover { color: var(--red); }

.topbar-social svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* ============ NAVIGATION ============ */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow 0.3s ease;
}

.nav.scrolled {
  box-shadow: 0 2px 20px rgba(15, 23, 42, 0.06);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--graphite);
  transition: color 0.2s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
}

.nav-link.active { color: var(--red); }
.nav-link.active::after { transform: scaleX(1); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--graphite);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.lang-toggle:hover {
  border-color: var(--red);
  color: var(--red);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.nav-burger span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.active span:nth-child(2) { opacity: 0; }
.nav-burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: clamp(72px, 11vw, 120px) 0 clamp(80px, 12vw, 140px);
  background: var(--white);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--red-tint) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  max-width: 720px;
  min-width: 0;
}

.hero-title {
  margin-top: 20px;
}

.hero-title .accent { color: var(--red); }

.hero-desc {
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--slate);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.hero-trust {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.hero-trust-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-trust-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 32px 48px;
  align-items: center;
  width: 100%;
  max-width: 960px;
}

.hero-trust-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  transition: opacity 0.25s ease, transform 0.25s ease;
  opacity: 0.75;
}

.hero-trust-logo:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.hero-trust-logo img {
  max-height: 80px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.hero-trust-logo:hover img {
  filter: grayscale(0%);
}

.hero-graphic {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  justify-self: center;
}

.hero-graphic svg {
  width: 100%;
  height: 100%;
}

/* ============ SECTION ============ */
.section {
  padding: var(--section-pad) 0;
}

.section-alt { background: var(--off-white); }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }

.section-head {
  margin-bottom: 64px;
  max-width: 760px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head.center .eyebrow { justify-content: center; }

/* ============ SERVICES ============ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 40px 32px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover {
  border-color: transparent;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  transform: translateY(-4px);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: var(--red-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: var(--red);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--red);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s ease;
}

.service-card:hover .service-icon svg { stroke: var(--white); }

.service-title {
  margin-bottom: 14px;
}

.service-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--slate);
  margin-bottom: 24px;
  flex: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.2s ease;
  align-self: flex-start;
}

.service-link::after {
  content: '→';
  transition: transform 0.2s ease;
}

.service-card:hover .service-link { color: var(--red); }
.service-card:hover .service-link::after { transform: translateX(4px); }

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}

.about-content .section-head {
  margin-bottom: 32px;
}

.about-lead {
  color: var(--slate);
  font-size: 16px;
  line-height: 1.7;
}

.about-bullets {
  list-style: none;
  padding: 0;
  margin: 32px 0 40px;
  display: grid;
  gap: 16px;
}

.about-bullets li {
  display: flex;
  gap: 14px;
  font-size: 15px;
  color: var(--graphite);
  line-height: 1.6;
}

.about-bullets li::before {
  content: '✓';
  color: var(--red);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--red-tint);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.about-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--cream) 0%, var(--off-white) 100%);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.about-visual-card {
  position: absolute;
  background: var(--white);
  border-radius: 8px;
  padding: 18px 20px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-visual-card.tl { top: 36px; left: 28px; }
.about-visual-card.br { bottom: 36px; right: 28px; }

.about-visual-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: var(--red-tint);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-visual-card-icon svg {
  width: 20px; height: 20px;
  stroke: var(--red);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-visual-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.about-visual-card-text strong {
  font-size: 14px;
  color: var(--ink);
  font-weight: 700;
}

.about-visual-card-text span {
  font-size: 11px;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.about-visual-center {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  padding: 24px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  box-shadow: 0 20px 48px rgba(227, 6, 19, 0.25);
}

/* ============ STATS BAND ============ */
.stats {
  padding: 80px 0;
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  background: var(--red);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 32px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 20px;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.stat-num {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 800;
  line-height: 1;
  color: var(--white);
  letter-spacing: -0.03em;
}

.stat-num .plus { color: var(--red); margin-left: 2px; }

.stat-label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

/* ============ PROCESS ============ */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 16px;
}

.process-step {
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  position: relative;
  transition: all 0.3s ease;
}

.process-step:hover {
  border-color: var(--red-tint);
  background: var(--red-soft);
}

.process-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  display: block;
}

.process-step h3 { margin-bottom: 10px; }

.process-step p {
  font-size: 15px;
  color: var(--slate);
  line-height: 1.65;
}

/* ============ PORTFOLIO ============ */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.portfolio-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.portfolio-card:hover {
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
  transform: translateY(-4px);
}

.portfolio-img {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(45deg, transparent 48%, rgba(227, 6, 19, 0.15) 50%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(227, 6, 19, 0.15) 50%, transparent 52%);
  background-size: 60px 60px;
}

.portfolio-img svg {
  width: 64px;
  height: 64px;
  stroke: rgba(255, 255, 255, 0.6);
  fill: none;
  stroke-width: 1;
  position: relative;
  z-index: 1;
}

.portfolio-img-logo {
  position: relative;
  z-index: 1;
  max-width: 62%;
  max-height: 80%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.portfolio-card:hover .portfolio-img-logo {
  transform: scale(1.04);
}

.portfolio-info {
  padding: 28px;
}

.portfolio-category {
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  display: block;
}

.portfolio-title {
  margin-bottom: 12px;
}

.portfolio-desc {
  font-size: 15px;
  color: var(--slate);
  line-height: 1.65;
  margin-bottom: 20px;
}

.portfolio-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portfolio-stack span {
  padding: 4px 10px;
  background: var(--off-white);
  font-size: 12px;
  font-weight: 500;
  color: var(--graphite);
  border-radius: 4px;
  border: 1px solid var(--border);
}

.portfolio-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
  transition: gap 0.2s ease;
}

.portfolio-cta:hover {
  gap: 10px;
}

.portfolio-client {
  display: block;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.portfolio-client strong {
  color: var(--ink);
  font-weight: 700;
}

/* ============ TESTIMONIAL ============ */
.testimonial {
  padding: var(--section-pad) 0;
  background: var(--off-white);
  text-align: center;
}

.testimonial-quote-mark {
  font-size: 72px;
  line-height: 1;
  color: var(--red);
  font-weight: 800;
  font-family: Georgia, serif;
  margin-bottom: 8px;
}

.testimonial-text {
  max-width: 820px;
  margin: 0 auto 40px;
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.5;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.testimonial-author {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.testimonial-author-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.testimonial-author-role {
  font-size: 13px;
  color: var(--slate);
}

/* ============ CTA BAND ============ */
.cta-band {
  padding: 80px 0;
  background: var(--ink);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(227, 6, 19, 0.18) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-band-inner {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  color: var(--white);
  max-width: 720px;
  margin: 0 auto 20px;
}

.cta-band p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* ============ CONTACT ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--off-white);
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all 0.25s ease;
}

.contact-card:hover {
  background: var(--white);
  border-color: var(--red-tint);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: var(--red-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--red);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-card-body h4 {
  margin-bottom: 4px;
}

.contact-card-body p {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.6;
}

.contact-card-body a {
  color: var(--graphite);
  font-weight: 500;
  transition: color 0.2s ease;
}

.contact-card-body a:hover { color: var(--red); }

/* Form */
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.form-group label .req { color: var(--red); }

.form-group input,
.form-group textarea {
  font-family: var(--f-primary);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--border-dark);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: all 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--light-slate);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-tint);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--f-primary);
}

.form-group.has-error input,
.form-group.has-error textarea {
  border-color: var(--red);
}

.form-group .err {
  display: none;
  font-size: 12px;
  color: var(--red);
  font-weight: 500;
}

.form-group.has-error .err { display: block; }

.honeypot { display: none !important; }

.form-status {
  display: none;
  padding: 14px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
}

.form-status.success {
  display: block;
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
}

.form-status.error {
  display: block;
  background: var(--red-soft);
  color: var(--red-dark);
  border: 1px solid #FECACA;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--red);
  color: var(--white);
  font-family: var(--f-primary);
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  align-self: flex-start;
}

.form-submit:hover:not(:disabled) {
  background: var(--red-dark);
  box-shadow: 0 10px 24px rgba(227, 6, 19, 0.25);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.65);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand img {
  height: 36px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.footer-social svg {
  width: 14px; height: 14px;
  fill: currentColor;
}

.footer-col h4 {
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-col a:hover::before {
  content: '›';
  color: var(--red);
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom a:hover { color: var(--white); }

/* ============ WHATSAPP FLOAT ============ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 60;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0;
  animation: ws-ring 2s ease-out infinite;
}

@keyframes ws-ring {
  0%   { transform: scale(1);    opacity: 0.6; }
  100% { transform: scale(1.3);  opacity: 0; }
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: var(--white);
}

/* ============ REVEAL ============ */
/* Only apply hidden state when JS is active — ensures content stays
   visible for users with JavaScript disabled or blocked. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ MEDIA QUERIES ============ */
@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: 1.25fr 1fr;
    gap: 80px;
  }
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
  }
}

@media (max-width: 900px) {
  .topbar-info .hide-md { display: none; }
  .nav-menu { display: none; }
  .nav-burger { display: flex; }
  .nav-actions .btn { display: none; }

  .nav-menu.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  }

  .nav-menu.open .nav-link {
    padding: 12px var(--gutter);
  }

  .nav-menu.open .nav-link::after { display: none; }
}

@media (max-width: 640px) {
  .topbar { display: none; }
  .hero-graphic { display: none; }
  .hero-trust { flex-direction: column; align-items: flex-start; gap: 20px; }
  .whatsapp-float { width: 52px; height: 52px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}
