:root {
  --background: #fbfbfa;
  --foreground: #1c2530;
  --card: #ffffff;
  --primary: #d62a1f;
  --primary-hover: #b91f16;
  --primary-foreground: #ffffff;
  --secondary: #f4f3f0;
  --secondary-foreground: #26303a;
  --muted: #f4f3f0;
  --muted-foreground: #5b6472;
  --highlight: #f59e0b;
  --ink: #111318;
  --border: #e6e5e1;
  --input: #e6e5e1;
  --ring: #d62a1f;
  --shadow-sm: 0 1px 2px rgba(17,19,24,.05);
  --shadow-md: 0 8px 24px rgba(17,19,24,.10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; }
body {
  margin: 0; color: var(--foreground); font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  background: var(--background); overflow-x: hidden; -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility; line-height: 1.6;
}
h1,h2,h3,h4 { font-family: "Sora", ui-sans-serif, system-ui, sans-serif; margin: 0; line-height: 1.15; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
.container { max-width: 1152px; margin: 0 auto; padding: 0 24px; }
section { scroll-margin-top: 88px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: "Manrope", sans-serif; font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 10px; border: 1px solid transparent;
  transition: background .18s, color .18s, border-color .18s, transform .12s; text-align: center;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #f0f0f2; }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.10); }
.btn-block { width: 100%; }
@media (min-width: 640px){ .btn-block-sm-auto { width: auto; } }

/* ---------- Animated brand (logo + name) ---------- */
.brand, .footer-brand { position: relative; }
.brand-logo { animation: logoFloat 4.5s ease-in-out infinite; }
.footer-brand .brand-logo { animation: logoFloat 5.5s ease-in-out infinite; }
@keyframes logoFloat {
  0%, 100% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 0 rgba(214,42,31,0)); }
  50% { transform: translateY(-3px) scale(1.05); filter: drop-shadow(0 0 16px rgba(214,42,31,.45)); }
}
.brand-name, .footer-brand .brand-name {
  background: linear-gradient(90deg, #d62a1f 0%, #f59e0b 25%, #d62a1f 50%, #b91f16 75%, #d62a1f 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: textShimmer 6s linear infinite;
}
@keyframes textShimmer { to { background-position: 200% center; } }
/* shine sweep across the logo */
.brand-wrap { position: relative; display: inline-block; }
.brand-wrap::after {
  content: ""; position: absolute; top: 0; left: -120%; height: 100%; width: 60%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg); animation: shine 4.5s ease-in-out infinite; pointer-events: none;
}
@keyframes shine { 0%, 55% { left: -120%; } 85%, 100% { left: 130%; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251,251,250,.85); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(230,229,225,.7); }
.header-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; max-width: 1152px; margin: 0 auto; padding: 0 24px; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.brand img, .footer-brand img { width: auto; }
.brand img { height: 36px; }
@media (min-width: 640px){ .brand-name { font-size: 15px; } }
.brand-name { font-family: "Sora", sans-serif; font-weight: 700; font-size: 13px; white-space: nowrap; }
.nav-desktop { display: none; align-items: center; gap: 28px; }
@media (min-width: 768px){ .nav-desktop { display: flex; } }
.nav-desktop a { font-size: 14px; font-weight: 500; color: var(--muted-foreground); }
.nav-desktop a:hover { color: var(--foreground); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .btn { display: none; }
@media (min-width: 640px){ .header-actions .btn { display: inline-flex; } }
.menu-toggle { display: flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 8px; background: transparent; }
@media (min-width: 768px){ .menu-toggle { display: none; } }
.menu-toggle svg { width: 20px; height: 20px; }
.mobile-nav { display: none; border-top: 1px solid rgba(230,229,225,.7); background: var(--background); padding: 16px 16px 24px; }
.mobile-nav.open { display: block; }
.mobile-nav a.mnav-link { display: block; padding: 11px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.mobile-nav a.mnav-link:hover { background: var(--muted); }
.mobile-nav .btn { width: 100%; margin-top: 8px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .4; }
.hero-bg .shade { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15,17,22,.95), rgba(17,19,24,.8) 55%, rgba(13,15,20,.95)); }
.hero-bg .glow-red { position: absolute; top: -128px; right: -96px; width: 34rem; height: 34rem; border-radius: 50%; background: rgba(214,42,31,.30); filter: blur(80px); animation: glowPulse 6s ease-in-out infinite; }
.hero-bg .glow-amber { position: absolute; bottom: -160px; left: 25%; width: 30rem; height: 30rem; border-radius: 50%; background: rgba(245,158,11,.15); filter: blur(80px); }
.hero-bg .grid-lines { position: absolute; inset: 0; opacity: .06; background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px); background-size: 44px 44px; }
@keyframes glowPulse { 0%,100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
.hero-content { position: relative; max-width: 1152px; margin: 0 auto; padding: 80px 24px; }
@media (min-width: 640px){ .hero-content { padding: 112px 24px; } }
@media (min-width: 1024px){ .hero-content { padding: 128px 24px; } }
.hero-inner { max-width: 42rem; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.20); background: rgba(255,255,255,.05); font-size: 12px; font-weight: 600; letter-spacing: .03em; color: rgba(255,255,255,.9); }
.pill svg { width: 16px; height: 16px; color: var(--highlight); }
.hero h1 { margin-top: 24px; font-size: 36px; font-weight: 700; letter-spacing: -.01em; }
@media (min-width: 640px){ .hero h1 { font-size: 48px; } }
@media (min-width: 1024px){ .hero h1 { font-size: 60px; } }
.hero h1 .accent, .hero h1 {
  background: linear-gradient(90deg, #ff8a7a 0%, #e62e1f 30%, #f59e0b 55%, #e62e1f 80%, #ff8a7a 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: textShimmer 6s linear infinite;
}
.hero p.lead { margin-top: 24px; max-width: 36rem; font-size: 18px; line-height: 1.65; color: rgba(255,255,255,.75); }
.hero-cta { margin-top: 36px; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 640px){ .hero-cta { flex-direction: row; } }
.hero-stats { margin-top: 48px; max-width: 32rem; display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; border-top: 1px solid rgba(255,255,255,.10); padding-top: 32px; }
.stat dt { font-size: 12px; font-weight: 500; color: rgba(255,255,255,.55); }
.stat dd { margin: 4px 0 0; font-family: "Sora", sans-serif; font-size: 20px; font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
@media (min-width: 640px){ .section { padding: 112px 0; } }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--primary); }
.section h2 { margin-top: 12px; font-size: 30px; font-weight: 700; letter-spacing: -.01em; }
@media (min-width: 640px){ .section h2 { font-size: 36px; } }
.section .lede { margin-top: 16px; font-size: 16px; line-height: 1.7; color: var(--muted-foreground); }

/* ---------- Services ---------- */
.services-grid { margin-top: 48px; display: grid; gap: 20px; }
@media (min-width: 768px){ .services-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px){ .services-grid { grid-template-columns: repeat(3,1fr); } }
.service-card { display: flex; flex-direction: column; padding: 24px; border-radius: 16px; border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow-sm); transition: box-shadow .2s; }
.service-card:hover { box-shadow: var(--shadow-md); }
.service-top { display: flex; align-items: flex-start; gap: 16px; }
.service-icon { display: flex; width: 48px; height: 48px; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 12px; background: rgba(214,42,31,.10); color: var(--primary); }
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 18px; font-weight: 600; }
.service-tagline { margin-top: 2px; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--highlight); }
.service-desc { margin-top: 16px; font-size: 14px; line-height: 1.65; color: var(--muted-foreground); }
.service-foot { margin-top: auto; padding-top: 16px; }
.details-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--primary); background: none; border: none; padding: 0; }
.details-toggle:hover { color: var(--primary-hover); }
.details-toggle svg { width: 16px; height: 16px; transition: transform .2s; }
.details-toggle.open svg { transform: rotate(180deg); }
.service-details { display: none; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); list-style: none; margin-bottom: 0; }
.service-details.open { display: block; }
.service-details li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: rgba(28,37,48,.85); padding: 4px 0; }
.service-details li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--primary); }

/* ---------- Capabilities ---------- */
.cap-head { display: grid; gap: 24px; align-items: end; }
@media (min-width: 640px){ .cap-head { display: flex; justify-content: space-between; } }
.cap-head .lede { max-width: 24rem; margin-top: 0; }
.cap-grid { margin-top: 48px; display: grid; gap: 20px; }
@media (min-width: 640px){ .cap-grid { grid-template-columns: repeat(3,1fr); } }
.cap-card { overflow: hidden; border-radius: 16px; border: 1px solid var(--border); background: var(--card); }
.cap-card .media { aspect-ratio: 4/3; overflow: hidden; }
.cap-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cap-card:hover img { transform: scale(1.05); }
.cap-label { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; }
.cap-label span { font-size: 14px; font-weight: 600; }
.cap-label svg { width: 16px; height: 16px; color: var(--primary); transition: transform .2s; }
.cap-card:hover .cap-label svg { transform: translateX(4px); }

/* ---------- Why Us ---------- */
.bg-secondary { background: var(--secondary); }
.why-grid-wrap { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px){ .why-grid-wrap { grid-template-columns: 1fr 1fr; } }
.why-cards { display: grid; gap: 16px; }
@media (min-width: 640px){ .why-cards { grid-template-columns: repeat(2,1fr); } }
.why-card { padding: 24px; border-radius: 16px; border: 1px solid var(--border); background: var(--card); }
.why-card svg { width: 24px; height: 24px; color: var(--primary); }
.why-card h3 { margin-top: 16px; font-size: 16px; font-weight: 600; }
.why-card p { margin-top: 8px; font-size: 14px; line-height: 1.65; color: var(--muted-foreground); }

/* ---------- About ---------- */
.about-panel { border-radius: 24px; border: 1px solid var(--border); padding: 32px; background: linear-gradient(135deg, #1b1e26, var(--ink)); color: #fff; }
@media (min-width: 640px){ .about-panel { padding: 48px; } }
.about-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px){ .about-grid { grid-template-columns: 1fr 1fr; } }
.about-panel .pill { color: rgba(255,255,255,.9); }
.about-panel .pill svg { color: var(--highlight); }
.about-panel h2 { margin-top: 24px; font-size: 30px; }
@media (min-width: 640px){ .about-panel h2 { font-size: 36px; } }
.about-panel p { margin-top: 16px; max-width: 36rem; font-size: 16px; line-height: 1.7; color: rgba(255,255,255,.75); }
.about-meta { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 32px; border-top: 1px solid rgba(255,255,255,.10); padding-top: 20px; font-size: 14px; color: rgba(255,255,255,.7); }
.about-meta strong { color: rgba(255,255,255,.9); font-weight: 600; }
.about-cta { margin-top: 32px; }
.about-cards { display: grid; gap: 16px; }
@media (min-width: 640px){ .about-cards { grid-template-columns: repeat(2,1fr); } }
.about-card { padding: 24px; border-radius: 16px; border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.05); }
.about-card svg { width: 24px; height: 24px; color: var(--highlight); }
.about-card h3 { margin-top: 16px; font-size: 16px; font-weight: 600; }
.about-card p { margin-top: 8px; font-size: 14px; line-height: 1.65; color: rgba(255,255,255,.7); }

/* ---------- Clients ---------- */
.clients-grid { margin-top: 48px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; }
@media (min-width: 640px){ .clients-grid { gap: 20px; } }
.client-tile { display: flex; width: 160px; height: 96px; align-items: center; justify-content: center; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); transition: box-shadow .2s; }
@media (min-width: 640px){ .client-tile { width: 192px; height: 112px; } }
.client-tile:hover { box-shadow: var(--shadow-sm); }
.client-tile img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 1024px){ .contact-grid { grid-template-columns: 2fr 3fr; } }
.contact-info { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.info-row { display: flex; align-items: flex-start; gap: 16px; }
.info-icon { display: flex; width: 44px; height: 44px; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 12px; background: rgba(214,42,31,.10); color: var(--primary); }
.info-icon svg { width: 20px; height: 20px; }
.info-row .k { font-size: 14px; font-weight: 500; color: var(--muted-foreground); }
.info-row .v { font-size: 16px; font-weight: 600; }
.info-row a.v:hover { color: var(--primary); }

.form-card { padding: 24px; border-radius: 24px; border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow-sm); }
@media (min-width: 640px){ .form-card { padding: 32px; } }
.form-grid { display: grid; gap: 20px; }
@media (min-width: 640px){ .form-grid { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.span-2 { grid-column: span 1; }
@media (min-width: 640px){ .span-2 { grid-column: span 2; } }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--input); border-radius: 8px; background: var(--background); font-family: inherit; font-size: 15px; color: var(--foreground); padding: 10px 14px; outline: none; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ring); box-shadow: 0 0 0 3px rgba(214,42,31,.25); }
.field textarea { resize: vertical; }
.form-error { margin-top: 12px; font-size: 14px; font-weight: 500; color: var(--primary); display: none; }
.form-note { margin-top: 16px; font-size: 12px; line-height: 1.6; color: var(--muted-foreground); }
.success-card { display: none; align-items: center; justify-content: center; min-height: 26rem; padding: 32px; text-align: center; flex-direction: column; }
.success-card .ok { display: flex; width: 64px; height: 64px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(214,42,31,.10); color: var(--primary); }
.success-card .ok svg { width: 32px; height: 32px; }
.success-card h3 { margin-top: 24px; font-size: 24px; font-weight: 700; }
.success-card p { margin-top: 12px; max-width: 28rem; font-size: 14px; line-height: 1.65; color: var(--muted-foreground); }
.success-card p strong { color: var(--foreground); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; }
.footer-inner { max-width: 1152px; margin: 0 auto; padding: 56px 24px; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 640px){ .footer-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px){ .footer-grid { grid-template-columns: repeat(4,1fr); } }
.footer-brand-col { grid-column: span 1; }
@media (min-width: 1024px){ .footer-brand-col { grid-column: span 2; } }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.footer-brand img { height: 40px; }
.footer-brand .brand-name { font-size: 14px; }
.footer-blurb { margin-top: 20px; max-width: 24rem; font-size: 14px; line-height: 1.65; color: rgba(255,255,255,.65); }
.site-footer h4 { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.9); }
.footer-links { margin-top: 16px; list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: rgba(255,255,255,.65); }
.footer-links a:hover { color: #fff; }
.footer-links li { display: flex; align-items: flex-start; gap: 10px; }
.footer-links svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--highlight); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.10); margin-top: 48px; padding-top: 24px; display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: rgba(255,255,255,.45); }
@media (min-width: 640px){ .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .brand-logo, .brand-name, .footer-brand .brand-name, .brand-wrap::after,
  .hero h1, .hero-bg .glow-red, .cap-card img, .cap-label svg, .details-toggle svg { animation: none !important; }
  .brand-name, .footer-brand .brand-name, .hero h1 { -webkit-text-fill-color: initial; background: none; }
  .brand-name, .footer-brand .brand-name { color: var(--primary); }
  .hero h1 { color: #ff8a7a; }
}
