/* ============================================
   Protec · Modern UI
   ============================================ */

:root {
  /* Brand */
  --brand: #1c1c1c;
  --brand-soft: #2a2a2a;
  --accent: #FFD24C;
  --accent-hover: #FFC415;
  --accent-soft: #FFF4C7;
  --actec: #1f5a39;
  --actec-bright: #2f7d4f;

  /* Surfaces */
  --bg: #FAF9F6;
  --bg-elev: #FFFFFF;
  --bg-soft: #F1EFE9;
  --bg-dark: #0E0E0E;
  --bg-darker: #050505;

  /* Text */
  --text: #131313;
  --text-soft: #4a4a4a;
  --text-mute: #8A8A82;
  --text-inverse: #FFFFFF;

  /* Border */
  --border: #E7E4DD;
  --border-strong: #C9C5BB;

  /* Radii */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;
  --r-pill: 999px;

  /* Shadows (soft, modern) */
  --shadow-xs: 0 1px 2px rgba(15,15,15,0.04);
  --shadow-sm: 0 2px 8px rgba(15,15,15,0.06), 0 1px 2px rgba(15,15,15,0.04);
  --shadow-md: 0 12px 32px rgba(15,15,15,0.08), 0 4px 8px rgba(15,15,15,0.04);
  --shadow-lg: 0 24px 64px rgba(15,15,15,0.10), 0 8px 16px rgba(15,15,15,0.05);

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces', 'Times New Roman', Georgia, serif;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container: 1240px;
  --container-narrow: 880px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--brand); }

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

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

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-variation-settings: "SOFT" 30, "WONK" 0;
}

h1 {
  font-size: clamp(2.6rem, 6.5vw, 5.5rem);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
  font-weight: 600;
}

h4 {
  font-size: 1.05rem;
  font-weight: 600;
  font-family: var(--font-sans);
  letter-spacing: -0.005em;
}

p { color: var(--text-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-mute);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--text-mute);
}

.section-intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 72px;
}

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

.section-intro .eyebrow::before { display: none; }

.section-intro p {
  font-size: 1.1rem;
  color: var(--text-soft);
  margin-top: 12px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "→";
  display: none;
  transition: transform 0.3s var(--ease);
}

.btn.has-arrow::after {
  display: inline;
}

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

.btn-primary {
  background: var(--brand);
  color: var(--text-inverse);
}

.btn-primary:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--accent);
  color: var(--brand);
}

.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255,210,76,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-strong);
}

.btn-outline:hover {
  background: var(--text);
  color: var(--text-inverse);
  border-color: var(--text);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  color: var(--text-inverse);
  border: 1.5px solid rgba(255,255,255,0.4);
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--text-inverse);
}

.btn-whatsapp {
  background: #25D366;
  color: white;
}

.btn-whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37,211,102,0.4);
}

.btn-lg {
  padding: 18px 32px;
  font-size: 1rem;
}

/* ============================================
   Top Bar
   ============================================ */
.topbar {
  background: var(--bg-dark);
  color: var(--text-inverse);
  font-size: 0.82rem;
  padding: 10px 0;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar a {
  opacity: 0.7;
  transition: opacity 0.2s;
}

.topbar a:hover { opacity: 1; }

.topbar-contact {
  display: flex;
  gap: 24px;
}

/* ============================================
   Header (Glass)
   ============================================ */
.header {
  position: sticky;
  top: 0;
  background: rgba(250, 249, 246, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(15,15,15,0.06);
  z-index: 100;
  transition: all 0.3s var(--ease);
}

.header.scrolled {
  background: rgba(250, 249, 246, 0.92);
  box-shadow: var(--shadow-xs);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 24px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 38px;
  height: 38px;
  background: var(--brand);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
  font-size: 1.1rem;
}

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

.nav a {
  font-weight: 500;
  font-size: 0.93rem;
  color: var(--text-soft);
  transition: color 0.2s;
  position: relative;
}

.nav a:hover { color: var(--text); }

.nav a.active {
  color: var(--text);
}

.nav a.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  padding: 4px;
  color: var(--text);
}

/* ============================================
   Language Switcher
   ============================================ */
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border-radius: var(--r-pill);
  padding: 3px;
  gap: 0;
}

.lang-switch button {
  background: none;
  border: none;
  padding: 5px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  border-radius: var(--r-pill);
  color: rgba(255,255,255,0.6);
  font-family: inherit;
  transition: all 0.2s var(--ease);
}

.lang-switch button:hover { color: white; }

.lang-switch button.active {
  background: var(--accent);
  color: var(--brand);
}

/* ============================================
   Hero (Modern)
   ============================================ */
.hero {
  position: relative;
  padding: 120px 0 160px;
  background: var(--brand);
  color: var(--text-inverse);
  overflow: hidden;
  isolation: isolate;
}

/* Mesh gradient backdrop */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 75% 15%, rgba(255,210,76,0.18), transparent 60%),
    radial-gradient(ellipse 700px 500px at 15% 90%, rgba(47,125,79,0.16), transparent 60%),
    radial-gradient(ellipse 500px 400px at 90% 80%, rgba(255,210,76,0.08), transparent 60%);
  z-index: -1;
}

/* Subtle grain */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.04;
  z-index: -1;
  pointer-events: none;
}

.hero-content {
  max-width: 880px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-pill);
  font-size: 0.85rem;
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
}

.hero-badge-dot {
  width: 26px;
  height: 26px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 700;
}

.hero h1 {
  color: var(--text-inverse);
  margin-bottom: 28px;
  max-width: 14ch;
}

.hero h1 em {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: var(--accent);
}

.hero p.hero-lead {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
  max-width: 56ch;
  margin-bottom: 44px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-meta {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 720px;
}

.hero-meta-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero-meta-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-top: 6px;
}

/* ============================================
   Hero overlap cards
   ============================================ */
.hero-cards {
  margin-top: -80px;
  position: relative;
  z-index: 5;
  padding: 0 !important;
}

.hero-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.hero-card {
  background: var(--bg-elev);
  border-radius: var(--r-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--border);
  transition: all 0.4s var(--ease);
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.hero-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.hero-card-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-soft);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.hero-card h3 { margin: 0; }

.hero-card p {
  color: var(--text-mute);
  font-size: 0.95rem;
  margin: 0;
}

.hero-card-link {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s var(--ease);
}

.hero-card:hover .hero-card-link {
  gap: 10px;
}

/* ============================================
   Sections
   ============================================ */
section {
  padding: 120px 0;
}

.section-soft { background: var(--bg-soft); }

.section-dark {
  background: var(--bg-dark);
  color: var(--text-inverse);
}

.section-dark .eyebrow { color: rgba(255,255,255,0.6); }
.section-dark .eyebrow::before { background: rgba(255,255,255,0.4); }
.section-dark p { color: rgba(255,255,255,0.7); }
.section-dark h2 { color: var(--text-inverse); }

/* ============================================
   Pain + Solution (modernized)
   ============================================ */
.pain-solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.problem-card, .solution-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  transition: all 0.4s var(--ease);
}

.problem-card:hover, .solution-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.problem-card-body, .solution-card-body {
  padding: 36px;
}

.card-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.label-problem {
  background: #fdecec;
  color: #c81e1e;
}

.label-solution {
  background: #e5f3eb;
  color: var(--actec);
}

.checklist {
  list-style: none;
  margin-top: 20px;
}

.checklist li {
  padding-left: 32px;
  position: relative;
  margin-bottom: 14px;
  color: var(--text-soft);
  line-height: 1.5;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 20px;
  height: 20px;
  background: var(--actec);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.7 5.3a1 1 0 010 1.4l-8 8a1 1 0 01-1.4 0l-4-4a1 1 0 011.4-1.4L8 12.6l7.3-7.3a1 1 0 011.4 0z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.7 5.3a1 1 0 010 1.4l-8 8a1 1 0 01-1.4 0l-4-4a1 1 0 011.4-1.4L8 12.6l7.3-7.3a1 1 0 011.4 0z'/%3E%3C/svg%3E");
}

.crosslist li::before {
  background: #c81e1e;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath d='M6.3 6.3a1 1 0 011.4 0L10 8.6l2.3-2.3a1 1 0 011.4 1.4L11.4 10l2.3 2.3a1 1 0 01-1.4 1.4L10 11.4l-2.3 2.3a1 1 0 01-1.4-1.4L8.6 10 6.3 7.7a1 1 0 010-1.4z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath d='M6.3 6.3a1 1 0 011.4 0L10 8.6l2.3-2.3a1 1 0 011.4 1.4L11.4 10l2.3 2.3a1 1 0 01-1.4 1.4L10 11.4l-2.3 2.3a1 1 0 01-1.4-1.4L8.6 10 6.3 7.7a1 1 0 010-1.4z'/%3E%3C/svg%3E");
}

.card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

/* ============================================
   Bento Grid: Machine Types
   ============================================ */
.bento-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  min-height: 580px;
}

.bento-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: all 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  color: var(--text);
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand);
}

.bento-card.bento-large {
  grid-row: span 2;
  background: var(--brand);
  color: var(--text-inverse);
  border-color: var(--brand);
}

.bento-card.bento-large:hover {
  border-color: var(--accent);
}

.bento-card.bento-large h3 {
  font-size: 2.4rem;
  font-family: var(--font-display);
  font-weight: 500;
}

.bento-card.bento-large p {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  max-width: 38ch;
}

.bento-card-num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-mute);
  letter-spacing: 0.1em;
  font-weight: 500;
}

.bento-card.bento-large .bento-card-num {
  color: var(--accent);
}

.bento-card h3 {
  margin: 0;
  font-size: 1.5rem;
}

.bento-card p {
  color: var(--text-mute);
  font-size: 0.95rem;
}

.bento-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap 0.2s var(--ease);
}

.bento-card:hover .bento-card-cta { gap: 14px; }

.bento-icon-bg {
  position: absolute;
  bottom: -30px;
  right: -30px;
  font-size: 12rem;
  opacity: 0.06;
  line-height: 1;
}

/* ============================================
   Trust / Marquee
   ============================================ */
.trust {
  text-align: center;
  padding: 80px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-eyebrow {
  font-size: 0.85rem;
  color: var(--text-mute);
  letter-spacing: 0.06em;
  margin-bottom: 32px;
}

.marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 64px;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.marquee-logo {
  height: 48px;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text-mute);
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0.55;
  transition: opacity 0.25s var(--ease), filter 0.25s var(--ease);
  flex-shrink: 0;
}

img.marquee-logo {
  object-fit: contain;
  filter: brightness(0);
}

.marquee-logo:hover {
  opacity: 1;
  filter: none;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

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

.about-img {
  height: 540px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #888, #555);
  overflow: hidden;
}

.about-content h2 { margin-bottom: 20px; }

.about-content p {
  font-size: 1.05rem;
  margin-bottom: 16px;
  color: var(--text-soft);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-mute);
  margin-top: 8px;
}

/* ============================================
   Actec (Subbrand) Block
   ============================================ */
.actec-block {
  background: var(--actec);
  color: white;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.actec-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 90% 10%, rgba(255,255,255,0.08), transparent 60%),
    radial-gradient(ellipse 500px 400px at 10% 90%, rgba(0,0,0,0.15), transparent 60%);
  z-index: -1;
}

.actec-block .eyebrow { color: rgba(255,255,255,0.7); }
.actec-block .eyebrow::before { background: rgba(255,255,255,0.4); }
.actec-block h2 { color: white; }
.actec-intro p { color: rgba(255,255,255,0.82); }

.actec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.actec-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-lg);
  padding: 36px;
  transition: all 0.4s var(--ease);
}

.actec-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}

.actec-card-icon {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.12);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.actec-card h3 { color: white; margin-bottom: 10px; }
.actec-card p { color: rgba(255,255,255,0.78); font-size: 0.97rem; }

.actec-cta-wrap {
  text-align: center;
  margin-top: 56px;
}

/* ============================================
   Service / Features (split layout)
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.feature-block {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 44px;
}

.feature-block h3 {
  margin-bottom: 20px;
  font-size: 1.6rem;
  font-family: var(--font-display);
  font-weight: 500;
}

/* ============================================
   Team
   ============================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 56px;
}

.team-member { text-align: center; }

.team-member-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--r-lg);
  margin-bottom: 16px;
  background: linear-gradient(135deg, #aaa, #777);
  overflow: hidden;
  transition: transform 0.4s var(--ease);
}

.team-member:hover .team-member-photo {
  transform: translateY(-4px);
}

.team-member h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.team-member-role {
  font-size: 0.88rem;
  color: var(--text-mute);
}

/* ============================================
   Testimonials (modern editorial style)
   ============================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.testimonial {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.4s var(--ease);
  position: relative;
}

.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial::before {
  content: """;
  position: absolute;
  top: 16px;
  right: 28px;
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.6;
}

.testimonial-stars {
  color: var(--accent-hover);
  letter-spacing: 2px;
  font-size: 0.9rem;
}

.testimonial-text {
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.55;
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  flex-grow: 1;
}

.testimonial-author {
  font-weight: 600;
  font-size: 0.93rem;
}

.testimonial-author-role {
  color: var(--text-mute);
  font-size: 0.83rem;
  margin-top: 2px;
}

/* ============================================
   CTA Banner (modern)
   ============================================ */
.cta-banner {
  background: var(--brand);
  color: var(--text-inverse);
  border-radius: var(--r-xl);
  padding: 72px 56px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 100% 0%, rgba(255,210,76,0.2), transparent 60%),
    radial-gradient(ellipse 500px 400px at 0% 100%, rgba(47,125,79,0.18), transparent 60%);
  z-index: -1;
}

.cta-banner-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: center;
  gap: 48px;
}

.cta-banner h2 {
  color: white;
  margin-bottom: 12px;
  max-width: 20ch;
}

.cta-banner p {
  color: rgba(255,255,255,0.78);
  font-size: 1.1rem;
}

.cta-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ============================================
   Offices
   ============================================ */
.offices-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.office-info h2 { margin-bottom: 32px; }

.office-card {
  padding: 24px 28px;
  background: var(--bg-elev);
  border-radius: var(--r-md);
  margin-bottom: 14px;
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}

.office-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.office-card h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.office-card p {
  color: var(--text-mute);
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.office-map {
  height: 560px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #d0e8d6, #a8d8b5);
  overflow: hidden;
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  max-width: 780px;
  margin: 56px auto 0;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child { border-bottom: none; }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 28px 32px;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: inherit;
  transition: background 0.2s;
}

.faq-question:hover {
  background: var(--bg-soft);
}

.faq-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 500;
  flex-shrink: 0;
  transition: all 0.3s var(--ease);
  color: var(--text);
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
  background: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.3s ease;
  color: var(--text-soft);
  padding-left: 32px;
  padding-right: 80px;
}

.faq-item.open .faq-answer {
  max-height: 600px;
  padding-bottom: 28px;
}

/* ============================================
   Footer
   ============================================ */
.subbrand-strip {
  background: var(--bg-darker);
  color: white;
  padding: 36px 0;
}

.subbrand-strip .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.subbrand-strip h3 {
  color: white;
  margin-bottom: 4px;
  font-family: var(--font-display);
}

.subbrand-strip p {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
}

.footer {
  background: var(--bg-dark);
  color: var(--text-inverse);
  padding: 88px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand .logo {
  color: white;
}

.footer-brand .logo-mark {
  background: var(--accent);
  color: var(--brand);
}

.footer-brand p {
  color: rgba(255,255,255,0.55);
  margin-top: 20px;
  font-size: 0.92rem;
  max-width: 360px;
  line-height: 1.55;
}

.footer h4 {
  font-size: 0.85rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255,255,255,0.78);
  font-size: 0.93rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 16px;
}

/* ============================================
   WhatsApp Float (modernized with pulse)
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  z-index: 90;
  transition: all 0.3s var(--ease);
}

.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  z-index: -1;
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}

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

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: white;
}

/* ============================================
   Image Placeholder
   ============================================ */
.img-placeholder {
  background:
    linear-gradient(135deg, #efece5 0%, #e5e1d8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #888479;
  font-size: 0.85rem;
  text-align: center;
  padding: 24px;
  position: relative;
}

.img-placeholder::before {
  content: "✦";
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 1.4rem;
  color: var(--text-mute);
  opacity: 0.4;
}

.img-placeholder small {
  display: block;
  margin-top: 8px;
  opacity: 0.6;
  font-style: italic;
  font-size: 0.78rem;
}

/* Bento large card variants */
.bento-card.bento-large .img-placeholder,
.hero-card .img-placeholder {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.5);
}

/* ============================================
   Reveal on Scroll
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .whatsapp-float::before { animation: none; }
}

/* ============================================
   Legal pages
   ============================================ */
.legal-page {
  padding: 80px 0;
}

.legal-page h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 16px;
}

.legal-meta {
  color: var(--text-mute);
  margin-bottom: 40px;
  font-size: 0.9rem;
}

.legal-page h2 {
  font-size: 1.5rem;
  margin-top: 48px;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-weight: 500;
}

.legal-page h3 {
  font-size: 1.15rem;
  margin-top: 28px;
  margin-bottom: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
}

.legal-page p, .legal-page li {
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.65;
}

.legal-page ul, .legal-page ol {
  padding-left: 28px;
  margin-bottom: 16px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    min-height: 0;
  }
  .bento-card.bento-large {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 960px) {
  .hero-cards-grid,
  .actec-grid,
  .testimonials-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pain-solution-grid,
  .about-grid,
  .features-grid,
  .offices-grid,
  .subbrand-strip .container,
  .cta-banner-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-banner {
    padding: 48px 32px;
  }

  section {
    padding: 80px 0;
  }

  .hero { padding: 80px 0 120px; }
  .hero-meta { margin-top: 56px; }
}

@media (max-width: 640px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-elev);
    flex-direction: column;
    padding: 24px;
    box-shadow: var(--shadow-md);
    gap: 16px;
    align-items: stretch;
  }

  .nav.open { display: flex; }
  .menu-toggle { display: block; }

  .hero-cards-grid,
  .actec-grid,
  .testimonials-grid,
  .team-grid,
  .footer-grid,
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-card.bento-large { grid-column: span 1; }

  .topbar-contact { display: none; }
  .topbar .container { justify-content: flex-end; }

  .hero { padding: 64px 0 100px; }
  .hero-meta { grid-template-columns: 1fr; gap: 16px; }
  .about-stats { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
}
