/* ===== CERTERO Estudio — Main Website Styles ===== */

/* --- Variables --- */
:root {
  --accent: #c4382f;
  --bg: #11171c;
  --paper: #151d24;
  --text: #fff;
  --muted: rgba(255,255,255,.74);
  --border: rgba(255,255,255,.10);
  --shadow: 0 14px 50px rgba(0,0,0,.38);
  --radius: 22px;
  --pill: 999px;
  --max: 1160px;
}

/* --- Reset --- */
* { box-sizing: border-box }
html { scroll-behavior: smooth }
html, body { height: 100% }
body {
  margin: 0;
  font-family: Montserrat, system-ui, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* --- Animated Gradient Mesh Background --- */
.gradient-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.gradient-mesh .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .55;
  will-change: transform;
}
.gradient-mesh .blob-1 {
  width: 700px; height: 700px;
  background: rgba(196,56,47,.14);
  top: -10%; left: -5%;
  animation: drift1 24s ease-in-out infinite alternate;
}
.gradient-mesh .blob-2 {
  width: 600px; height: 600px;
  background: rgba(196,56,47,.10);
  bottom: -15%; right: -8%;
  animation: drift2 28s ease-in-out infinite alternate;
}
.gradient-mesh .blob-3 {
  width: 500px; height: 500px;
  background: rgba(160,190,240,.08);
  top: 30%; right: 20%;
  animation: drift3 22s ease-in-out infinite alternate;
}
@keyframes drift1 {
  0%   { transform: translate(0, 0) scale(1) }
  50%  { transform: translate(80px, 60px) scale(1.08) }
  100% { transform: translate(-40px, 120px) scale(.95) }
}
@keyframes drift2 {
  0%   { transform: translate(0, 0) scale(1) }
  50%  { transform: translate(-70px, -50px) scale(1.1) }
  100% { transform: translate(60px, -100px) scale(.92) }
}
@keyframes drift3 {
  0%   { transform: translate(0, 0) scale(1) }
  50%  { transform: translate(50px, -70px) scale(1.05) }
  100% { transform: translate(-60px, 40px) scale(1.12) }
}

/* --- Links / Utility --- */
a { color: inherit; text-decoration: none }
.container { max-width: var(--max); margin: 0 auto; padding: 0 18px }
.sr-only { position: absolute; left: -9999px }

/* --- Topbar --- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(17,23,28,.78);
  border-bottom: 1px solid var(--border);
}
.topbar-inner { display: flex; align-items: center; gap: 14px; padding: 12px 0 }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0 }
.brand img { height: 26px; width: auto }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: var(--pill);
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.04);
  font-weight: 700; font-size: 12.5px;
}
.topbar-nav { display: none; gap: 10px; align-items: center; margin: 0 auto }
.topbar-nav a { opacity: .9; font-weight: 700; font-size: 13px; padding: 8px 10px; border-radius: 12px; white-space: nowrap }
.topbar-nav a:hover { background: rgba(255,255,255,.06) }
@media(min-width:981px) { .topbar-nav { display: flex } }
.topbar-cta { flex-shrink: 0 }
@media(max-width:980px) { .topbar-cta { display: none } }

/* --- Hamburger --- */
.hamburger {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
@media(max-width:980px) { .hamburger { display: flex } }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg) }
.hamburger.open span:nth-child(2) { opacity: 0 }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg) }

/* --- Mobile overlay nav --- */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 49;
  background: rgba(17,23,28,.96);
  backdrop-filter: blur(16px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.mobile-nav.open { display: flex }
.mobile-nav a {
  font-size: 22px; font-weight: 800;
  padding: 12px 20px; border-radius: 16px;
}
.mobile-nav a:hover { background: rgba(255,255,255,.06) }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; padding: 12px 18px; border-radius: var(--pill);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06); color: var(--text);
  font-weight: 900; cursor: pointer; font-family: inherit; font-size: inherit;
  transition: transform .12s ease, background .12s ease;
}
.btn:hover { background: rgba(255,255,255,.10) }
.btn:active { transform: scale(.98) }
.btn.primary { background: var(--accent); border-color: rgba(196,56,47,.25) }
.btn.primary:hover { background: #a82e28 }

/* --- Video Hero --- */
.video-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.video-hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,23,28,.60) 0%, rgba(17,23,28,.95) 100%);
}
.video-hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px 18px 80px;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--pill);
  border: 1px solid rgba(196,56,47,.35);
  background: rgba(196,56,47,.10);
  font-weight: 800;
  font-size: 13px;
  color: #ff8a84;
  margin-bottom: 20px;
}
.h1 {
  font-size: 52px;
  line-height: 1.05;
  margin: 0 0 18px;
  font-weight: 900;
  letter-spacing: -.8px;
  max-width: 820px;
}
.h1 .gradient-text {
  background: linear-gradient(135deg, #ff6b5b 0%, #c4382f 50%, #ff8a84 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@media(max-width:720px) { .h1 { font-size: 36px } }
@media(max-width:480px) { .h1 { font-size: 30px } }
.lead { font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 680px; margin: 0 0 24px }
.actions { display: flex; gap: 12px; flex-wrap: wrap }
.hero-stats {
  display: flex; gap: 32px; margin-top: 48px; flex-wrap: wrap;
}
.hero-stat .v { font-weight: 900; font-size: 22px }
.hero-stat .l { color: var(--muted); font-size: 13px; margin-top: 2px }

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2.4s ease-in-out infinite;
  opacity: .6;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0) }
  50% { transform: translateX(-50%) translateY(12px) }
}

/* --- Sections --- */
section { padding: 72px 0 }
.kicker { letter-spacing: 2px; text-transform: uppercase; font-size: 12px; color: rgba(255,255,255,.70); font-weight: 800 }
.title { margin: 10px 0 8px; font-size: 30px; font-weight: 900 }
.desc { margin: 0; color: var(--muted); max-width: 900px; line-height: 1.6 }
.section-header { margin-bottom: 32px }

/* --- Cards --- */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative; overflow: hidden; padding: 20px;
  backdrop-filter: blur(6px);
}
.card::before {
  content: ""; position: absolute; inset: -120px;
  background:
    radial-gradient(circle at 20% 20%, rgba(196,56,47,.10) 0, transparent 42%),
    radial-gradient(circle at 80% 28%, rgba(255,255,255,.10) 0, transparent 55%),
    radial-gradient(circle at 50% 92%, rgba(196,56,47,.08) 0, transparent 60%);
  filter: blur(10px);
}
.card > * { position: relative }
.h3 { font-size: 22px; margin: 0 0 8px; font-weight: 900 }
.muted { color: var(--muted) }

/* --- Service Grid (3x2) --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media(max-width:980px) { .services-grid { grid-template-columns: repeat(2, 1fr) } }
@media(max-width:560px) { .services-grid { grid-template-columns: 1fr } }

.service-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.10));
  display: flex; flex-direction: column;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
  cursor: default; position: relative; overflow: hidden;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.20);
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
}
.service-illustration {
  width: 100%; height: 160px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.18);
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}
.service-illustration svg {
  width: 100%; height: 100%;
}
.service-body {
  padding: 16px 18px 18px;
  display: flex; flex-direction: column; gap: 8px; flex: 1;
}
.service-body h4 { margin: 0; font-size: 15px; font-weight: 900 }
.service-body p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 13.4px }
.service-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 8px }
.service-chips .chip { font-size: 11px; padding: 4px 10px }

/* --- Products (side-by-side split) --- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px }
@media(max-width:980px) { .split { grid-template-columns: 1fr } }

.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.10));
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .22s ease;
}
.product-card:hover { border-color: rgba(255,255,255,.18) }
.product-illustration {
  width: 100%; height: 220px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.18);
  overflow: hidden;
}
.product-illustration svg { width: 100%; height: 100% }
.product-body {
  padding: 20px 22px 24px;
  display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.product-body h3 { margin: 0; font-size: 20px; font-weight: 900 }
.product-body p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 14px }
.product-chips { display: flex; gap: 6px; flex-wrap: wrap }
.product-chips .chip { font-size: 11px; padding: 4px 10px }

/* --- Process Timeline --- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  margin-top: 24px;
}
@media(max-width:980px) { .process-grid { grid-template-columns: repeat(2, 1fr); gap: 24px } }
@media(max-width:560px) { .process-grid { grid-template-columns: 1fr } }

.process-step {
  text-align: center;
  position: relative;
  padding: 0 16px;
}
.step-number {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent);
  display: grid; place-items: center;
  font-weight: 900; font-size: 20px;
  margin: 0 auto 14px;
  position: relative;
  z-index: 2;
}
.process-step h4 { margin: 0 0 6px; font-size: 16px; font-weight: 800 }
.process-step p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5 }

/* Connection line between steps */
.process-line {
  display: block;
  position: absolute;
  top: 26px;
  left: 12.5%;
  width: 75%;
  height: 2px;
  z-index: 1;
}
@media(max-width:980px) { .process-line { display: none } }

/* --- Clients --- */
.client-logos {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 24px 0;
}
.client-logos img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .45;
  transition: opacity .3s ease, filter .3s ease;
}
.client-logos img:hover {
  opacity: .9;
  filter: brightness(0) invert(1);
}

.cases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}
@media(max-width:720px) { .cases-grid { grid-template-columns: 1fr } }

.case-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.08));
}
.case-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.case-card .case-body {
  padding: 18px 20px;
}
.case-card h4 { margin: 0 0 6px; font-size: 16px; font-weight: 800 }
.case-card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5 }

/* --- About (Nosotros) --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
@media(max-width:980px) { .about-grid { grid-template-columns: 1fr } }
.about-text h3 { font-size: 22px; font-weight: 900; margin: 0 0 12px }
.about-text p { color: var(--muted); line-height: 1.6; margin: 0 0 16px }
.bullets { display: flex; flex-direction: column; gap: 10px }
.bullet { display: flex; gap: 10px; align-items: flex-start }
.dot { width: 10px; height: 10px; border-radius: 999px; background: var(--accent); margin-top: 7px; flex-shrink: 0 }
.about-illustration {
  display: flex; align-items: center; justify-content: center;
  min-height: 300px;
}
.about-illustration svg { width: 100%; max-width: 420px; height: auto }

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 35fr 65fr;
  gap: 32px;
  align-items: start;
}
@media(max-width:860px) { .contact-grid { grid-template-columns: 1fr; max-width: 640px; margin-left: auto; margin-right: auto } }
.form-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px }
@media(max-width:560px) { .form-fields { grid-template-columns: 1fr } }
.form-fields .full { grid-column: 1 / -1 }
input, textarea {
  width: 100%; border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18); color: var(--text);
  padding: 12px; font-family: inherit; outline: none;
  font-size: 14px;
}
input:focus, textarea:focus { border-color: rgba(196,56,47,.45) }
textarea { min-height: 120px; resize: vertical }
label { display: block; font-size: 12px; color: rgba(255,255,255,.70); font-weight: 800; margin: 8px 0 6px }
.phone-group { display: flex; gap: 6px; align-items: stretch }
.phone-group > input[type="tel"] { flex: 1; min-width: 0 }
.phone-dial { position: relative; flex-shrink: 0; width: 130px }
.phone-dial-btn {
  width: 100%; height: 100%; display: flex; align-items: center; gap: 8px; cursor: pointer;
  border-radius: 16px; border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.45); color: var(--text);
  padding: 10px 10px; font-family: inherit; font-size: 14px;
}
.phone-dial-btn:hover { border-color: rgba(255,255,255,.28) }
.phone-dial-btn img { width: 24px; height: 18px; border-radius: 2px; object-fit: cover; flex-shrink: 0 }
.phone-dial-btn .arrow { margin-left: auto; font-size: 10px; opacity: .5 }
.phone-dial-list {
  display: none; position: absolute; top: calc(100% + 4px); left: 0; z-index: 9999;
  width: 260px; max-height: 280px; overflow-y: auto;
  background: #1a1a2e; border: 1px solid rgba(255,255,255,.18); border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.6); padding: 0;
}
.phone-dial-list.open { display: block }
.phone-dial-list label { margin: 0 }
.phone-dial-search {
  width: 100% !important; border: none !important; border-bottom: 1px solid rgba(255,255,255,.10) !important;
  border-radius: 12px 12px 0 0 !important; background: #1a1a2e !important; color: #fff;
  padding: 10px 12px !important; font-size: 13px; outline: none; font-family: inherit;
  position: sticky; top: 0; box-sizing: border-box; margin: 0;
}
.phone-dial-search::placeholder { color: rgba(255,255,255,.35) }
.phone-dial-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; margin: 2px 4px;
  cursor: pointer; border-radius: 8px; font-size: 13px; color: rgba(255,255,255,.85);
}
.phone-dial-item:hover { background: rgba(255,255,255,.08) }
.phone-dial-item.active { background: rgba(99,102,241,.25) }
.phone-dial-item img { width: 24px; height: 18px; border-radius: 2px; object-fit: cover; flex-shrink: 0 }
.phone-dial-item .dial { color: rgba(255,255,255,.5); margin-left: auto; font-size: 12px; white-space: nowrap }
.honey { position: absolute; left: -9999px; opacity: 0 }

/* --- Toast --- */
.toast {
  position: fixed; right: 16px; bottom: 16px;
  padding: 12px 14px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(18,26,32,.92);
  box-shadow: var(--shadow); max-width: 420px;
  display: none; z-index: 100;
  backdrop-filter: blur(10px);
}
.toast.show { display: block }
.toast b { display: block; margin-bottom: 4px }

/* --- Footer --- */
.footer { border-top: 1px solid var(--border); padding: 30px 0 46px; color: rgba(255,255,255,.70) }
.footer-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; justify-content: space-between }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap }
.small { font-size: 12.5px }

/* --- Divider --- */
.divider { height: 1px; background: var(--border); margin: 14px 0 }

/* --- Scroll Entrance Animations --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grid children */
.animate-on-scroll[data-delay="1"] { transition-delay: .1s }
.animate-on-scroll[data-delay="2"] { transition-delay: .2s }
.animate-on-scroll[data-delay="3"] { transition-delay: .3s }
.animate-on-scroll[data-delay="4"] { transition-delay: .4s }
.animate-on-scroll[data-delay="5"] { transition-delay: .5s }

/* --- Pillrow --- */
.pillrow { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px }

/* --- Stats --- */
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 18px }
@media(max-width:720px) { .stats { grid-template-columns: 1fr } }
.stat { border: 1px solid var(--border); border-radius: 18px; padding: 14px; background: rgba(0,0,0,.12) }
.stat .v { font-weight: 900; font-size: 20px }
.stat .l { color: var(--muted); margin-top: 6px }

/* --- Whatsapp link --- */
.wa-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: #25d366; font-weight: 700; font-size: 14px;
  margin-top: 12px;
}
.wa-link:hover { text-decoration: underline }

/* --- Contact info block --- */
.contact-info { padding-top: 12px }
.contact-info h3 { font-size: 22px; font-weight: 900; margin: 0 0 12px }
.contact-info p { color: var(--muted); line-height: 1.6; margin: 0 0 16px }

/* ===== SUB-PAGE STYLES ===== */

/* --- Sub-page topbar nav variant --- */
.sub-topbar-nav { display: none; gap: 10px; align-items: center; margin: 0 auto }
.sub-topbar-nav a { opacity: .9; font-weight: 700; font-size: 13px; padding: 8px 10px; border-radius: 12px; white-space: nowrap }
.sub-topbar-nav a:hover { background: rgba(255,255,255,.06) }
@media(min-width:981px) { .sub-topbar-nav { display: flex } }

.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 13px; opacity: .8;
  padding: 8px 14px; border-radius: var(--pill);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  transition: background .15s ease;
  white-space: nowrap;
}
.back-link:hover { background: rgba(255,255,255,.08); opacity: 1 }
@media(max-width:980px) { .back-link { display: none } }

/* --- Page hero (generic sub-page) --- */
.page-hero {
  padding: 100px 0 56px;
  border-bottom: 1px solid var(--border);
}
.page-hero .kicker { margin-bottom: 12px }
.page-hero h1 {
  font-size: 42px; font-weight: 900; margin: 0 0 12px; letter-spacing: -.5px;
}
.page-hero .subtitle {
  color: var(--muted); font-size: 17px; line-height: 1.55; max-width: 640px; margin: 0;
}
@media(max-width:720px) { .page-hero h1 { font-size: 30px } .page-hero { padding: 80px 0 40px } }

/* --- Portfolio grid --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}
@media(max-width:980px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr) } }
@media(max-width:560px) { .portfolio-grid { grid-template-columns: 1fr } }

.portfolio-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.18);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.portfolio-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,.20);
  box-shadow: 0 18px 50px rgba(0,0,0,.30);
}
a.portfolio-card { cursor: pointer }
.portfolio-card img {
  width: 100%; height: 240px; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.portfolio-card:hover img { transform: scale(1.04) }
.portfolio-card .card-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 18px;
  background: linear-gradient(0deg, rgba(0,0,0,.82) 0%, transparent 100%);
}
.portfolio-card .card-overlay h3 {
  margin: 0 0 6px; font-size: 16px; font-weight: 900;
}
.portfolio-card .card-overlay .service-chips { margin-top: 4px }
.portfolio-card .card-placeholder {
  width: 100%; height: 240px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.03);
}
.portfolio-card .card-placeholder svg { width: 64px; height: 64px; opacity: .25 }

/* --- Client detail hero (2-col) --- */
.client-hero {
  padding: 100px 0 56px;
  border-bottom: 1px solid var(--border);
}
.client-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media(max-width:980px) { .client-hero-grid { grid-template-columns: 1fr } }
.client-hero-text .kicker { margin-bottom: 12px }
.client-hero-text h1 {
  font-size: 42px; font-weight: 900; margin: 0 0 12px; letter-spacing: -.5px;
}
.client-hero-text .subtitle {
  color: var(--muted); font-size: 17px; line-height: 1.55; margin: 0 0 18px;
}
@media(max-width:720px) { .client-hero-text h1 { font-size: 30px } .client-hero { padding: 80px 0 40px } }
.client-hero-image img {
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow);
}

/* --- Project info card --- */
.project-info {
  display: flex; gap: 20px; flex-wrap: wrap;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
  margin: 32px 0;
}
.project-info-item { display: flex; flex-direction: column; gap: 4px }
.project-info-item .label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,.5); font-weight: 700 }
.project-info-item .value { font-weight: 700; font-size: 14px }
.project-info-item .value a { color: #ff8a84; text-decoration: underline }

/* --- Feature cards grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}
@media(max-width:980px) { .features-grid { grid-template-columns: repeat(2, 1fr) } }
@media(max-width:560px) { .features-grid { grid-template-columns: 1fr } }

.feature-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.08));
}
.feature-card h4 { margin: 0 0 6px; font-size: 15px; font-weight: 800 }
.feature-card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5 }

/* --- Gallery grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 24px;
}
@media(max-width:560px) { .gallery-grid { grid-template-columns: 1fr } }
.gallery-grid.cols-3 { grid-template-columns: repeat(3, 1fr) }
@media(max-width:720px) { .gallery-grid.cols-3 { grid-template-columns: repeat(2, 1fr) } }
@media(max-width:560px) { .gallery-grid.cols-3 { grid-template-columns: 1fr } }

.gallery-grid img {
  width: 100%; border-radius: var(--radius);
  object-fit: cover; display: block;
  border: 1px solid var(--border);
}

/* --- Success card --- */
.success-card {
  border-left: 4px solid var(--accent);
  padding: 24px 28px;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(196,56,47,.06);
  margin: 36px 0;
  font-size: 15px; line-height: 1.6; color: var(--muted);
}

/* --- Service detail hero (2-col) --- */
.service-hero {
  padding: 100px 0 56px;
  border-bottom: 1px solid var(--border);
}
.service-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media(max-width:980px) { .service-hero-grid { grid-template-columns: 1fr } }
.service-hero-text .kicker { margin-bottom: 12px }
.service-hero-text h1 {
  font-size: 42px; font-weight: 900; margin: 0 0 12px; letter-spacing: -.5px;
}
.service-hero-text .intro {
  color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0 0 18px;
}
@media(max-width:720px) { .service-hero-text h1 { font-size: 30px } .service-hero { padding: 80px 0 40px } }
.service-hero-svg {
  display: flex; align-items: center; justify-content: center;
}
.service-hero-svg svg {
  width: 100%; max-width: 400px; height: auto;
}

/* --- Steps grid (service pages) --- */
.steps-section { padding: 56px 0 }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
@media(max-width:980px) { .steps-grid { grid-template-columns: repeat(2, 1fr) } }
@media(max-width:560px) { .steps-grid { grid-template-columns: 1fr } }

.step-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.08));
  display: flex; flex-direction: column; gap: 10px;
}
.step-badge {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); display: grid; place-items: center;
  font-weight: 900; font-size: 16px; flex-shrink: 0;
}
.step-card h4 { margin: 0; font-size: 15px; font-weight: 800 }
.step-card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5 }
.step-card ul {
  margin: 0; padding-left: 18px;
  color: var(--muted); font-size: 13px; line-height: 1.6;
}
.step-card .step-icon { width: 32px; height: 32px; opacity: .6 }

/* --- Client logo strip (service pages) --- */
.client-logo-strip {
  display: flex; gap: 32px; align-items: center; justify-content: center;
  flex-wrap: wrap; padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.client-logo-strip img {
  height: 36px; width: auto;
  filter: grayscale(100%) brightness(.7) invert(1);
  opacity: .4;
  transition: opacity .3s ease, filter .3s ease;
}
.client-logo-strip img:hover {
  opacity: .9; filter: grayscale(0%) brightness(1) invert(0);
}

/* --- CTA section (shared sub-page) --- */
.cta-section {
  text-align: center;
  padding: 56px 0;
}
.cta-section h2 {
  font-size: 28px; font-weight: 900; margin: 0 0 10px;
}
.cta-section p {
  color: var(--muted); font-size: 15px; margin: 0 0 24px; max-width: 500px; margin-left: auto; margin-right: auto;
}
.cta-section .actions { justify-content: center }

/* --- DevOps product link card --- */
.product-link-card {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px;
  border: 1px solid rgba(196,56,47,.25);
  border-radius: var(--radius);
  background: rgba(196,56,47,.06);
  margin: 24px 0;
  transition: border-color .2s ease, background .2s ease;
}
.product-link-card:hover { border-color: rgba(196,56,47,.45); background: rgba(196,56,47,.10) }
.product-link-card .plc-text h4 { margin: 0 0 4px; font-size: 15px; font-weight: 800 }
.product-link-card .plc-text p { margin: 0; color: var(--muted); font-size: 13px }

/* --- Section title for sub-pages --- */
.section-title {
  font-size: 26px; font-weight: 900; margin: 0 0 8px;
}
.section-subtitle {
  color: var(--muted); font-size: 15px; margin: 0; line-height: 1.6;
}
