:root {
  --red: #e1141c;
  --red-dark: #b30f16;
  --dark: #2b2d33;
  --darker: #1c1d21;
  --text: #3d4049;
  --muted: #6b6f7a;
  --line: #e6e7ea;
  --bg-alt: #f5f5f7;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(28, 29, 33, .08);
  --font-head: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.65; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--dark); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.hp { position: absolute; left: -9999px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 6px; font-family: var(--font-head); font-weight: 700; font-size: .95rem; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; text-decoration: none; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: var(--darker); }
.btn-light { background: #fff; color: var(--dark); }
.btn-light:hover { background: #f0f0f0; }
.btn-outline-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--dark); }

/* Topbar & header */
.topbar { background: var(--darker); color: #c9cbd1; font-size: .82rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 6px; color: #c9cbd1; }
.topbar a:hover { color: #fff; }
.topbar-right { display: flex; gap: 22px; }
.site-header { background: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; }
.brand img { width: 240px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a:not(.btn) { color: var(--dark); font-family: var(--font-head); font-weight: 600; font-size: .93rem; padding: 10px 14px; position: relative; }
.main-nav a:not(.btn)::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .2s; }
.main-nav a:not(.btn):hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--red); }
.main-nav .btn { margin-left: 10px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--dark); margin: 6px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero { position: relative; background: var(--darker); color: #e7e8eb; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background:
  radial-gradient(ellipse at 85% 20%, rgba(225,20,28,.35), transparent 55%),
  radial-gradient(ellipse at 0% 100%, rgba(225,20,28,.18), transparent 50%),
  linear-gradient(135deg, #1c1d21 0%, #2b2d33 100%); }
.hero-bg::after { content: ''; position: absolute; inset: 0; opacity: .07;
  background-image: repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 80px), repeating-linear-gradient(0deg, #fff 0 1px, transparent 1px 80px); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.3fr .8fr; gap: 50px; align-items: center; padding-top: 90px; padding-bottom: 90px; }
.hero h1 { color: #fff; }
.hero-text > p { font-size: 1.12rem; color: #c9cbd1; max-width: 600px; }
.eyebrow { display: inline-block; font-family: var(--font-head); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.hero .eyebrow { color: #ff5a60; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 34px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 24px; list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.hero-badges li { display: flex; align-items: center; gap: 8px; }
.hero-badges .ico { color: var(--red); }
.hero-card { background: #fff; color: var(--text); border-radius: var(--radius); padding: 30px; box-shadow: 0 20px 50px rgba(0,0,0,.35); border-top: 4px solid var(--red); }
.hero-card h3 { font-size: 1.35rem; margin-bottom: 4px; }
.hero-card > p { color: var(--muted); font-size: .92rem; }

/* Forms */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--dark); }
.form input, .form select, .form textarea { width: 100%; padding: 12px 14px; border: 1px solid #d3d5da; border-radius: 6px; font: inherit; font-weight: 400; color: var(--text); background: #fff; transition: border-color .2s, box-shadow .2s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(225,20,28,.12); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.alert { padding: 14px 16px; border-radius: 6px; margin-bottom: 16px; font-size: .93rem; }
.alert-success { background: #e8f6ee; color: #17663a; border: 1px solid #bfe5cd; }
.alert-error { background: #fdecec; color: #a3141a; border: 1px solid #f5c2c4; }

/* Stats */
.stats { background: var(--red); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; padding-top: 34px; padding-bottom: 34px; }
.stats-grid div { padding: 6px 10px; border-right: 1px solid rgba(255,255,255,.25); }
.stats-grid div:last-child { border-right: 0; }
.stats strong { display: block; font-family: var(--font-head); font-size: 2.3rem; font-weight: 800; line-height: 1.1; }
.stats span { font-size: .9rem; opacity: .9; }

/* Sections */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.section-head p { color: var(--muted); }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; color: var(--text); transition: transform .25s, box-shadow .25s, border-color .25s; position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card p { color: var(--muted); font-size: .95rem; }
.service-icon { display: inline-flex; align-items: center; justify-content: center; width: 66px; height: 66px; border-radius: 12px; background: rgba(225,20,28,.08); color: var(--red); margin-bottom: 18px; flex-shrink: 0; }
.more { font-family: var(--font-head); font-weight: 700; font-size: .88rem; color: var(--red); }

.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-visual { position: relative; background: #fff; border-radius: var(--radius); padding: 70px 40px; box-shadow: var(--shadow); }
.about-visual::before { content: ''; position: absolute; inset: 18px -18px -18px 18px; border: 3px solid var(--red); border-radius: var(--radius); z-index: -1; }
.about-badge { position: absolute; right: -10px; bottom: -24px; background: var(--dark); color: #fff; padding: 16px 22px; border-radius: 8px; font-size: .85rem; line-height: 1.3; }
.about-badge strong { font-family: var(--font-head); font-size: 1.8rem; color: var(--red); display: block; }
.section:not(.section-alt) .about-visual { background: var(--bg-alt); }

.check-list { list-style: none; padding: 0; margin: 0 0 1.6em; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.check-list li::before { content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.steps li { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--bg-alt); }
.steps span { font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; color: var(--red); opacity: .9; line-height: 1; display: block; margin-bottom: 12px; }
.steps p { color: var(--muted); font-size: .94rem; margin: 0; }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.project-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.05); transition: box-shadow .25s, transform .25s; }
.project-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.project-img { position: relative; aspect-ratio: 4 / 3; background: var(--dark); }
.project-img img { width: 100%; height: 100%; object-fit: cover; }
.project-ph { display: flex; align-items: center; justify-content: center; height: 100%; color: rgba(255,255,255,.35); background: linear-gradient(135deg, #2b2d33, #43464f); }
.tag { position: absolute; left: 14px; top: 14px; background: var(--red); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 4px; font-family: var(--font-head); }
.project-body { padding: 22px; }
.project-body .meta { color: var(--red); font-size: .85rem; font-weight: 600; margin-bottom: 8px; }
.project-body p:last-child { color: var(--muted); font-size: .93rem; margin: 0; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 36px; }
.filters a { padding: 8px 18px; border-radius: 30px; border: 1px solid var(--line); color: var(--dark); font-weight: 600; font-size: .9rem; }
.filters a.active, .filters a:hover { background: var(--red); border-color: var(--red); color: #fff; }

.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value { padding: 28px 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.value p { color: var(--muted); font-size: .94rem; margin: 0; }

/* Page hero */
.page-hero { background: linear-gradient(135deg, rgba(28,29,33,.97), rgba(43,45,51,.92)), radial-gradient(circle at 80% 30%, var(--red), transparent 60%); background-color: var(--darker); color: #c9cbd1; padding: 60px 0; border-bottom: 4px solid var(--red); }
.page-hero h1 { color: #fff; margin-bottom: 6px; }
.crumb { margin: 0; font-size: .9rem; }
.crumb a { color: #fff; }

.prose { font-size: 1.02rem; }
.prose .lead { font-size: 1.15rem; color: var(--dark); font-weight: 500; }
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 50px; align-items: start; }
.detail-img { border-radius: var(--radius); margin-bottom: 26px; width: 100%; }
.sidebar { display: grid; gap: 24px; position: sticky; top: 110px; }
.side-box { background: var(--bg-alt); border-radius: var(--radius); padding: 26px; }
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 6px; color: var(--dark); font-weight: 600; font-size: .94rem; }
.side-list a .ico { color: var(--red); }
.side-list a:hover, .side-list a.active { background: #fff; color: var(--red); }
.side-cta { background: var(--dark); color: #c9cbd1; display: grid; gap: 10px; }
.side-cta h4 { color: #fff; margin: 0; }
.side-cta p { margin: 0 0 6px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.contact-cards { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 16px; }
.contact-cards li { display: flex; gap: 16px; align-items: center; }
.contact-cards .service-icon { width: 54px; height: 54px; margin: 0; }
.contact-cards small { display: block; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-cards a, .contact-cards span { color: var(--dark); font-weight: 600; }
.form-card { background: #fff; border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); border-top: 4px solid var(--red); scroll-margin-top: 110px; }
.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; }

/* CTA + footer */
.cta-band { background: var(--red); color: #fff; padding: 46px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: 1.7rem; margin-bottom: 4px; }
.cta-band p { margin: 0; opacity: .92; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-light { color: var(--red); }
.site-footer { background: var(--darker); color: #a5a8b1; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr .8fr 1.2fr; gap: 40px; padding-top: 70px; padding-bottom: 50px; }
.footer-logo { width: 220px; margin-bottom: 18px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.site-footer h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; background: var(--red); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #a5a8b1; }
.site-footer a:hover { color: #fff; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list .ico { color: var(--red); flex-shrink: 0; margin-top: 3px; }
.social { display: flex; gap: 8px; }
.social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .85rem; }
.social a:hover { background: var(--red); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; font-size: .85rem; }
.wa-float { position: fixed; right: 20px; bottom: 20px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); z-index: 60; transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1080px) {
  .service-grid, .project-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { max-width: 520px; }
  .detail-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 10px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: 0 10px 20px rgba(0,0,0,.08); display: none; }
  .main-nav.open { display: flex; }
  .main-nav a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .main-nav a:not(.btn)::after { display: none; }
  .main-nav .btn { margin: 14px 0 0; }
  .about-split, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .topbar-inner > span:first-child { display: none; }
  .topbar-inner { justify-content: center; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .service-grid, .project-grid, .value-grid, .steps, .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px 0; }
  .stats-grid div:nth-child(2) { border-right: 0; }
  .form-row { grid-template-columns: 1fr; }
  .brand img { width: 190px; }
  .header-inner { min-height: 70px; }
  .topbar-right { gap: 14px; font-size: .78rem; }
  .topbar-right a:first-child { display: none; }
  .form-card, .hero-card { padding: 24px; }
  .hero-inner { padding-top: 60px; padding-bottom: 60px; }
}
