:root {
  --primary: #071B3A;
  --secondary: #1455A0;
  --accent: #F4C542;
  --highlight: #D62828;
  --background: #F8FAFC;
  --foreground: #111827;
  --muted: #64748B;
  --white: #FFFFFF;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(7, 27, 58, 0.08);
  --shadow-hover: 0 16px 40px rgba(7, 27, 58, 0.14);
  --container: 1200px;
  --section-y: clamp(3.25rem, 6vw, 6.5rem);
  --font-heading: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --nav-offset: 76px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  --gutter: clamp(1rem, 3vw, 1.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  line-height: 1.7;
  color: var(--foreground);
  background: var(--background);
  overflow-x: hidden;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
  min-width: 0;
}

img,
video,
iframe,
svg {
  max-width: 100%;
}

table {
  max-width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  line-height: 1.2;
  font-weight: 700;
  margin-top: 0;
}

h1 { font-size: clamp(2.25rem, 5vw, 4.25rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }

p { color: var(--muted); }

.container-sims {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
}

.section-muted {
  background: #eef3f8;
}

.section-dark {
  background: linear-gradient(135deg, var(--primary), #0c3268);
  color: var(--white);
}

.section-dark h2,
.section-dark h3,
.section-dark p {
  color: var(--white);
}

.section-dark p {
  opacity: 0.9;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.section-heading.center {
  text-align: center;
  margin-inline: auto;
}

.section-heading p {
  font-size: 1.1rem;
  margin-top: 0.75rem;
}

/* Buttons */
.btn-sims {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none !important;
}

.btn-sims:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary-sims {
  background: var(--accent);
  color: var(--primary) !important;
  box-shadow: 0 8px 20px rgba(244, 197, 66, 0.35);
}

.btn-primary-sims:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  color: var(--primary) !important;
}

.btn-secondary-sims {
  background: transparent;
  color: var(--primary) !important;
  border: 2px solid rgba(7, 27, 58, 0.15);
}

.btn-secondary-sims:hover {
  border-color: var(--secondary);
  color: var(--secondary) !important;
  transform: translateY(-2px);
}

.btn-light-sims {
  background: var(--white);
  color: var(--primary) !important;
}

.btn-outline-light-sims {
  background: transparent;
  color: var(--white) !important;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-light-sims:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white) !important;
}

.btn-group-sims {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn-group-sims.justify-content-center {
  justify-content: center;
}

/* Navbar */
.sims-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(7, 27, 58, 0.06);
}

.sims-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-offset);
  gap: 0.75rem;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--primary) !important;
  text-decoration: none !important;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--accent);
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
}

.brand-text {
  min-width: 0;
}

.brand-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(0.92rem, 2.5vw, 1rem);
  line-height: 1.2;
  white-space: nowrap;
}

.brand-text span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 42vw;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--foreground) !important;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.92rem;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(20, 85, 160, 0.08);
  color: var(--secondary) !important;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  min-width: 280px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-hover);
  padding: 0.5rem;
  display: none;
  list-style: none;
  margin: 0;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--primary);
  display: block;
  transition: transform 0.2s ease;
}

.nav-cta {
  margin-left: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.nav-login {
  padding: 0.7rem 1.15rem !important;
  border-width: 1.5px;
  white-space: nowrap;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(244, 197, 66, 0.18), transparent 35%),
    radial-gradient(circle at left bottom, rgba(20, 85, 160, 0.12), transparent 40%),
    var(--background);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero-copy {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.hero-visual {
  position: relative;
}

.hero-image-wrap {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  aspect-ratio: 4 / 5;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-image-wrap:hover img {
  transform: scale(1.04);
}

.float-card {
  position: absolute;
  background: var(--white);
  border-radius: 16px;
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow);
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
  animation: floatY 5s ease-in-out infinite;
}

.float-card.one { top: 8%; left: -8%; }
.float-card.two { top: 42%; right: -6%; animation-delay: 0.8s; }
.float-card.three { bottom: 10%; left: 8%; animation-delay: 1.4s; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Cards */
.card-sims {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-sims:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.card-sims img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.card-sims:hover img {
  transform: scale(1.05);
}

.card-body-sims {
  padding: 1.5rem;
}

.badge-sims {
  display: inline-block;
  background: rgba(20, 85, 160, 0.1);
  color: var(--secondary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.benefit-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.25rem;
}

.benefit-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.benefit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.icon-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}

.icon-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.icon-bubble {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(20, 85, 160, 0.1);
  color: var(--secondary);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.value-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.value-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.value-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

/* Timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 4%;
  right: 4%;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
}

.timeline-step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

.timeline-step .num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin: 0 auto 0.75rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

/* Split / preview panels */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.media-panel {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 320px;
}

.media-panel img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.problem-solution {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.ps-box {
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.ps-box.problem { background: #fff5f5; }
.ps-box.solution { background: #f0f7ff; }

.ps-box h3 { margin-bottom: 1rem; }
.ps-box ul { padding-left: 1.1rem; margin: 0; color: var(--muted); }

/* Gallery */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-chip {
  border: 1px solid rgba(7, 27, 58, 0.12);
  background: var(--white);
  color: var(--foreground);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.filter-chip.active,
.filter-chip:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 220px;
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item .caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(7, 27, 58, 0.8));
  color: var(--white);
  font-size: 0.9rem;
}

/* Testimonials */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  height: 100%;
}

.testimonial-card blockquote {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  color: var(--foreground);
  font-style: italic;
}

.testimonial-meta strong {
  display: block;
  color: var(--primary);
}

.testimonial-meta span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* CTA bands */
.cta-band {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  padding: clamp(2.5rem, 5vw, 4rem);
  background:
    linear-gradient(120deg, rgba(7, 27, 58, 0.92), rgba(20, 85, 160, 0.85)),
    url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1600&q=80") center/cover;
  color: var(--white);
}

.cta-band h2,
.cta-band p {
  color: var(--white);
}

.cta-band p {
  max-width: 40rem;
  opacity: 0.92;
}

/* Forms */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.form-label {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.form-control,
.form-select {
  border-radius: 12px !important;
  border: 1px solid rgba(7, 27, 58, 0.12) !important;
  padding: 0.75rem 0.9rem !important;
  min-height: 48px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary) !important;
  box-shadow: 0 0 0 3px rgba(20, 85, 160, 0.15) !important;
}

.field-validation-error,
.text-danger {
  font-size: 0.85rem;
}

.alert-success-sims {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: 14px;
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  height: 100%;
}

.contact-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

/* Accordion */
.accordion-sims .accordion-item {
  border: none;
  background: var(--white);
  border-radius: 16px !important;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.accordion-sims .accordion-button {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary);
  box-shadow: none !important;
  background: var(--white);
}

.accordion-sims .accordion-button:not(.collapsed) {
  background: rgba(20, 85, 160, 0.06);
  color: var(--secondary);
}

/* Footer */
.footer-sims {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.85);
  padding-top: 4rem;
  padding-bottom: 2.5rem;
}

.footer-sims h3,
.footer-sims h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.footer-sims a {
  color: rgba(255, 255, 255, 0.8) !important;
}

.footer-sims a:hover {
  color: var(--accent) !important;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.55rem;
}

/* PGM2 developer footer — matches provided screenshot */
.pgm2-footer {
  background: #121820;
  border-top: 3px solid #20B2AA;
  color: #A0AEC0;
  padding: 1.1rem 0;
}

.pgm2-footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.25rem;
  align-items: center;
}

.pgm2-title {
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.35;
  margin-bottom: 0.2rem;
}

.pgm2-sub {
  color: #A0AEC0;
  font-size: 0.82rem;
  line-height: 1.4;
}

.pgm2-link {
  color: #20B2AA !important;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none !important;
}

.pgm2-link:hover {
  color: #4fd4cc !important;
  text-decoration: underline !important;
}

.pgm2-center {
  text-align: center;
}

.pgm2-right {
  text-align: right;
}

.social-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.social-row a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
}

/* WhatsApp / back to top */
.whatsapp-fab,
.back-to-top {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  z-index: 1100;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-hover);
  border: none;
  cursor: pointer;
  touch-action: manipulation;
}

.whatsapp-fab {
  bottom: calc(5.5rem + var(--safe-bottom));
  background: #25D366;
  color: white !important;
  font-size: 1.5rem;
}

.back-to-top {
  bottom: calc(1.5rem + var(--safe-bottom));
  background: var(--primary);
  color: var(--white);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.page-hero {
  padding-block: clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(circle at right top, rgba(244, 197, 66, 0.15), transparent 40%),
    linear-gradient(180deg, #eef4fb, var(--background));
}

.page-hero p {
  max-width: 40rem;
  font-size: 1.1rem;
}

.topic-grid details {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1rem 1.15rem;
  margin-bottom: 0.75rem;
}

.topic-grid summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--primary);
  font-family: var(--font-heading);
}

.topic-grid details p {
  margin: 0.75rem 0 0;
}

.placeholder-note {
  display: inline-block;
  background: rgba(244, 197, 66, 0.2);
  color: var(--primary);
  border-radius: 8px;
  padding: 0.15rem 0.45rem;
  font-size: 0.85rem;
  word-break: break-word;
}

.btn-sims {
  min-height: 48px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* ========== Responsive breakpoints ========== */

/* Large desktops */
@media (min-width: 1440px) {
  :root {
    --container: 1280px;
  }
}

@media (min-width: 1920px) {
  :root {
    --container: 1360px;
  }
}

/* Laptop / small desktop — keep 2-col where useful */
@media (max-width: 1200px) {
  .nav-links a {
    padding: 0.5rem 0.55rem;
    font-size: 0.86rem;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Tablet landscape & compact laptop — hamburger to avoid nav overflow */
@media (max-width: 1100px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: min(100vw, calc(100% + var(--gutter) * 2));
    max-width: 100vw;
    background: var(--white);
    border-bottom: 1px solid rgba(7, 27, 58, 0.08);
    padding: 1rem var(--gutter) 1.15rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    box-shadow: var(--shadow);
    max-height: calc(100dvh - var(--nav-offset) - 0.5rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-panel.open {
    display: flex;
  }

  body.nav-open {
    overflow: hidden;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .nav-links a {
    padding: 0.75rem 0.9rem;
    font-size: 1rem;
  }

  .nav-dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    min-width: 0;
    padding-left: 0.5rem;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }

  .nav-cta {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }

  .nav-actions {
    width: 100%;
    flex-direction: column;
  }

  .nav-login,
  .nav-actions .nav-cta {
    width: 100%;
  }

  .hero-grid,
  .split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .timeline {
    grid-template-columns: repeat(3, 1fr);
  }

  .timeline::before {
    display: none;
  }

  .pgm2-footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .pgm2-right {
    grid-column: 1 / -1;
    text-align: left;
  }
}

/* Tablet portrait */
@media (max-width: 900px) {
  .grid-3,
  .grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .problem-solution {
    grid-template-columns: 1fr;
  }

  .value-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .cta-band {
    border-radius: 20px;
    padding: 2rem 1.35rem;
  }

  .section {
    padding-block: clamp(2.75rem, 7vw, 4.5rem);
  }
}

/* Phones & small tablets */
@media (max-width: 768px) {
  .grid-3,
  .grid-6,
  .grid-4,
  .grid-2,
  .value-strip,
  .gallery-grid,
  .timeline,
  .footer-grid,
  .pgm2-footer-inner,
  .contact-card + .contact-card {
    grid-template-columns: 1fr;
  }

  /* Contact cards use bootstrap cols — ensure form stacks */
  .form-card {
    padding: 1.15rem;
  }

  .float-card {
    display: none;
  }

  .hero-image-wrap {
    aspect-ratio: 16 / 11;
    border-radius: 20px;
  }

  .hero-grid {
    padding-block: 2.25rem 2.75rem;
  }

  .btn-group-sims {
    width: 100%;
  }

  .btn-group-sims .btn-sims {
    width: 100%;
  }

  .media-panel,
  .media-panel img {
    min-height: 240px;
    border-radius: 20px;
  }

  .page-hero p {
    font-size: 1rem;
  }

  .brand-text span {
    display: none;
  }

  .whatsapp-fab,
  .back-to-top {
    width: 48px;
    height: 48px;
  }

  .pgm2-center,
  .pgm2-right {
    text-align: left;
  }

  .pgm2-footer {
    padding: 1rem 0 calc(1rem + var(--safe-bottom));
  }

  .pgm2-title,
  .pgm2-sub,
  .pgm2-link {
    font-size: 0.8rem;
  }

  .gallery-item,
  .gallery-item img {
    min-height: 180px;
  }

  .card-sims img {
    height: 200px;
  }

  .accordion-sims .accordion-button {
    font-size: 0.98rem;
    padding: 0.95rem 1rem;
  }
}

/* Small phones */
@media (max-width: 425px) {
  :root {
    --gutter: 0.85rem;
  }

  h1 {
    font-size: clamp(1.85rem, 8vw, 2.35rem);
  }

  h2 {
    font-size: clamp(1.45rem, 6.5vw, 1.85rem);
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 0.75rem;
  }

  .value-strip,
  .timeline {
    gap: 0.75rem;
  }

  .filter-chip {
    font-size: 0.82rem;
    padding: 0.4rem 0.75rem;
  }

  .testimonial-card,
  .icon-card,
  .card-body-sims {
    padding: 1.15rem;
  }
}

/* Extra-small phones */
@media (max-width: 360px) {
  .sims-nav-inner {
    min-height: 68px;
  }

  .btn-sims {
    padding: 0.75rem 1.15rem;
    font-size: 0.9rem;
  }

  .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }
}

/* Landscape phones — avoid oversized hero */
@media (max-height: 480px) and (orientation: landscape) {
  .hero-grid {
    padding-block: 1.5rem;
  }

  .hero-image-wrap {
    aspect-ratio: 21 / 9;
    max-height: 220px;
  }

  .nav-panel {
    max-height: calc(100dvh - 64px);
  }
}

/* Print / system print mode */
@media print {
  .sims-nav,
  .whatsapp-fab,
  .back-to-top,
  .nav-toggle {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .card-sims,
  .icon-card,
  .cta-band {
    box-shadow: none;
    break-inside: avoid;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
