:root {
  --background-color: #f6f9ff;
  --surface-color: #ffffff;
  --surface-muted: #eef2ff;
  --default-color: #2b3041;
  --heading-color: #151b2f;
  --accent-color: #f64f23;
  --accent-color-strong: #d61c4e;
  --nav-color: #1f263d;
  --nav-hover-color: var(--accent-color);
  --nav-dropdown-background-color: var(--surface-color);
  --nav-dropdown-color: var(--default-color);
  --nav-dropdown-hover-color: var(--accent-color);
  --nav-mobile-background-color: rgba(255, 255, 255, 0.95);
  --badge-color: #2563eb;
  --contrast-color: #ffffff;
  --outline-color: #b9c5ff;
  --shadow-elevated: 0 26px 48px rgba(16, 41, 86, 0.14);
  --shadow-soft: 0 10px 30px rgba(20, 33, 61, 0.08);
  --transition-base: 200ms ease-in-out;
  --radius-lg: 32px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --section-spacing: clamp(64px, 8vw, 108px);
  --header-height: 84px;
  color-scheme: light;
}

body[data-theme="dark"] {
  --background-color: #0b1220;
  --surface-color: #111a2e;
  --surface-muted: #162139;
  --default-color: #d7def2;
  --heading-color: #f5f7ff;
  --accent-color: #ff784f;
  --accent-color-strong: #ff4c73;
  --nav-color: #e2e8f8;
  --nav-hover-color: var(--accent-color);
  --nav-dropdown-background-color: #111a2e;
  --nav-dropdown-color: #e2e8f0;
  --nav-dropdown-hover-color: var(--accent-color);
  --nav-mobile-background-color: rgba(8, 15, 31, 0.98);
  --badge-color: #60a5fa;
  --contrast-color: #0b1220;
  --outline-color: rgba(104, 117, 245, 0.35);
  --shadow-elevated: 0 24px 44px rgba(3, 10, 24, 0.66);
  --shadow-soft: 0 12px 30px rgba(9, 16, 32, 0.6);
  color-scheme: dark;
}

body[data-theme="dark"] .text-secondary {
  color: rgba(208, 218, 248, 0.86) !important;
}

body[data-theme="dark"] .text-muted {
  color: rgba(190, 202, 236, 0.78) !important;
}

body[data-theme="dark"] .bg-light {
  background-color: rgba(17, 26, 46, 0.88) !important;
  color: var(--default-color) !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
}

body {
  background: radial-gradient(
      circle at top left,
      rgba(62, 124, 253, 0.18),
      transparent 54%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(246, 79, 35, 0.15),
      transparent 45%
    ),
    var(--background-color);
  color: var(--default-color);
  transition: background 320ms ease, color 180ms ease;
}

.header {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(33, 52, 90, 0.06);
  box-shadow: var(--shadow-soft);
  padding-block: 14px;
  /* Keep header fixed at top so it remains visible above hero */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6000;
}

/* Ensure page content doesn't sit under the fixed header; JS will update the variable dynamically */
.main {
  padding-top: calc(var(--header-height) + 12px) !important;
}

body[data-theme="dark"] .header {
  background: rgba(10, 17, 33, 0.82);
  border-bottom-color: rgba(255, 255, 255, 0.04);
}

.header .logo img {
  max-height: 54px;
}

.navmenu > ul {
  gap: 2px;
}

.navmenu > ul > li > a {
  position: relative;
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: 0.02em;
}

.navmenu > ul > li > a::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 11px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(246, 79, 35, 0),
    rgba(246, 79, 35, 0.76),
    rgba(246, 79, 35, 0)
  );
  opacity: 0;
  transform-origin: center;
  transform: scaleX(0.4);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.navmenu > ul > li:hover > a::after,
.navmenu > ul > li > a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.navmenu .dropdown ul {
  border-radius: var(--radius-md);
  border: 1px solid rgba(28, 49, 92, 0.08);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

body[data-theme="dark"] .navmenu .dropdown ul {
  border-color: rgba(255, 255, 255, 0.09);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 24px;
}

.nav-actions .btn-ghost {
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(28, 49, 92, 0.08);
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--nav-color);
  font-weight: 600;
  transition: background var(--transition-base), color var(--transition-base),
    border-color var(--transition-base);
}

.nav-actions .btn-ghost:hover {
  border-color: rgba(246, 79, 35, 0.28);
  background: rgba(246, 79, 35, 0.12);
  color: var(--accent-color);
}

.theme-toggle {
  border-radius: 999px;
  border: 1px solid rgba(28, 49, 92, 0.1);
  background: rgba(255, 255, 255, 0.5);
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--nav-color);
  transition: border-color var(--transition-base),
    background var(--transition-base), color var(--transition-base);
}

.theme-toggle i {
  font-size: 1rem;
}

body[data-theme="dark"] .theme-toggle {
  background: rgba(11, 18, 32, 0.6);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--default-color);
}

.theme-toggle:hover {
  border-color: rgba(246, 79, 35, 0.4);
  color: var(--accent-color);
}

.language-switcher {
  position: relative;
}

.language-switcher select {
  border-radius: 999px;
  border: 1px solid rgba(28, 49, 92, 0.12);
  background: rgba(255, 255, 255, 0.65);
  padding: 8px 30px 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--nav-color);
  appearance: none;
  cursor: pointer;
  transition: border-color var(--transition-base),
    background var(--transition-base), color var(--transition-base);
}

.language-switcher::after {
  content: "\f282";
  font-family: "bootstrap-icons";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--nav-color);
  pointer-events: none;
}

body[data-theme="dark"] .language-switcher select {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(11, 18, 32, 0.6);
  color: var(--default-color);
}

.btn-getstarted {
  border-radius: 999px;
  padding: 12px 28px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: linear-gradient(
    135deg,
    var(--accent-color) 20%,
    var(--accent-color-strong)
  );
  box-shadow: 0 18px 32px rgba(246, 79, 35, 0.25);
}

.btn-getstarted:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(246, 79, 35, 0.3);
}

body[data-theme="dark"] .btn-getstarted {
  box-shadow: 0 18px 30px rgba(255, 120, 79, 0.25);
}

.main {
  padding-top: 90px;
}

section,
.section {
  padding-block: var(--section-spacing);
}

.section-title {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(40px, 6vw, 70px);
}

.section-title h2 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(39, 52, 102, 0.65);
  margin-bottom: 12px;
}

.section-title p {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--heading-color);
  line-height: 1.18;
}

.hero {
  padding-block: clamp(80px, 10vw, 140px);
}

.hero .hero-shell {
  border-radius: var(--radius-lg);
  background: linear-gradient(
      135deg,
      rgba(246, 79, 35, 0.16),
      rgba(62, 124, 253, 0.12)
    ),
    var(--surface-color);
  border: 1px solid rgba(33, 52, 90, 0.08);
  box-shadow: var(--shadow-elevated);
  padding: clamp(32px, 6vw, 64px);
  position: relative;
  overflow: hidden;
  z-index: 1; /* keep hero under the header */
}

.hero .hero-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      140% 90% at 100% 0%,
      rgba(246, 79, 35, 0.18),
      transparent 55%
    ),
    radial-gradient(
      110% 90% at 0% 100%,
      rgba(62, 124, 253, 0.18),
      transparent 65%
    );
  opacity: 0.6;
  pointer-events: none;
}

.hero .hero-content,
.hero .hero-visual {
  position: relative;
  z-index: 1;
}

.hero .headline {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(20, 48, 112, 0.08);
  color: var(--badge-color);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  line-height: 1.05;
  color: var(--heading-color);
  margin-bottom: 18px;
}

.hero p.lead {
  font-size: clamp(1.05rem, 2.1vw, 1.25rem);
  color: rgba(39, 52, 102, 0.75);
  margin-bottom: 28px;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.btn-primary-modern {
  border-radius: 999px;
  padding: 14px 28px;
  font-weight: 700;
  background: radial-gradient(
      120% 120% at 0% 0%,
      rgba(255, 255, 255, 0.3),
      transparent
    ),
    linear-gradient(
      135deg,
      var(--accent-color) 0%,
      var(--accent-color-strong) 110%
    );
  border: none;
  color: var(--contrast-color);
  box-shadow: 0 20px 35px rgba(246, 79, 35, 0.2);
  transition: transform var(--transition-base),
    box-shadow var(--transition-base);
}

.btn-primary-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 42px rgba(246, 79, 35, 0.28);
}

.btn-outline-modern {
  border-radius: 999px;
  padding: 14px 28px;
  font-weight: 700;
  border: 1px solid rgba(33, 52, 90, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--heading-color);
  background: rgba(255, 255, 255, 0.48);
  transition: border-color var(--transition-base),
    transform var(--transition-base);
}

.btn-outline-modern i {
  font-size: 1.1rem;
}

.btn-outline-modern:hover {
  border-color: rgba(246, 79, 35, 0.4);
  transform: translateY(-3px);
  color: var(--accent-color);
}

.hero .metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.metric-card {
  border-radius: var(--radius-md);
  padding: 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(33, 52, 90, 0.08);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-base),
    box-shadow var(--transition-base);
}

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

.metric-card strong {
  display: block;
  font-size: 2.1rem;
  color: var(--heading-color);
  margin-bottom: 4px;
}

.metric-card span {
  font-size: 0.95rem;
  color: rgba(39, 52, 102, 0.7);
}

body[data-theme="dark"] .hero .hero-shell,
body[data-theme="dark"] .metric-card {
  background: rgba(14, 22, 40, 0.8);
  border-color: rgba(255, 255, 255, 0.04);
}

.hero .hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero .hero-visual .blob {
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(246, 79, 35, 0.35),
    transparent 70%
  );
  filter: blur(60px);
  opacity: 0.8;
  z-index: 0;
}

.hero .hero-visual img {
  border-radius: 30px;
  width: min(100%, 480px);
  box-shadow: 0 28px 40px rgba(16, 30, 56, 0.24);
  border: 3px solid rgba(255, 255, 255, 0.65);
}

.badge-stack {
  position: absolute;
  bottom: 14%;
  right: -6%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 3;
}

.floating-badge {
  border-radius: 20px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(33, 52, 90, 0.08);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(28, 40, 78, 0.8);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transform: translate3d(0, 0, 0);
  animation: floatY 6s ease-in-out infinite;
}

.floating-badge:nth-child(2) {
  animation-delay: 1.1s;
}

.floating-badge i {
  font-size: 1rem;
  color: var(--accent-color);
}

body[data-theme="dark"] .floating-badge {
  background: rgba(16, 24, 40, 0.85);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(226, 232, 255, 0.88);
}

@keyframes floatY {
  0%,
  100% {
    transform: translate3d(0, 4px, 0);
  }
  50% {
    transform: translate3d(0, -6px, 0);
  }
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(24px, 4vw, 32px);
}

.pillar-card {
  position: relative;
  border-radius: var(--radius-md);
  padding: clamp(24px, 4vw, 32px);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(33, 52, 90, 0.08);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform var(--transition-base),
    box-shadow var(--transition-base);
  cursor: pointer;
}

.pillar-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    140% 70% at 0% 0%,
    rgba(246, 79, 35, 0.1),
    transparent 60%
  );
  opacity: 0;
  transition: opacity var(--transition-base);
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elevated);
}

.pillar-card:hover::before {
  opacity: 1;
}

.pillar-card .icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: rgba(246, 79, 35, 0.12);
  display: grid;
  place-items: center;
  color: var(--accent-color);
  font-size: 1.6rem;
}

.pillar-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--heading-color);
}

.pillar-card p {
  margin: 0;
  color: rgba(39, 52, 102, 0.72);
  line-height: 1.6;
}

.pillar-card a {
  margin-top: auto;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-color);
}

/* Ensure anchors inside the card remain interactive while the card is clickable */
.pillar-card a {
  pointer-events: auto;
}

/* Mobile-specific tweaks to improve layout and avoid overflow */
@media (max-width: 767px) {
  .pillars-grid {
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .pillar-card {
    padding: 16px;
  }

  /* Hide decorative badges on small screens to avoid overlap */
  .badge-stack {
    display: none;
  }

  /* Make hero visual scale nicely on narrow viewports */
  .hero .hero-visual img {
    width: 100%;
    max-width: 360px;
    height: auto;
  }
}

body[data-theme="dark"] .pillar-card,
body[data-theme="dark"] .pillar-card::before {
  background: rgba(15, 24, 41, 0.92);
  border-color: rgba(255, 255, 255, 0.04);
}

.commitments-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.commitment-card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(33, 52, 90, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: border-color var(--transition-base),
    transform var(--transition-base);
}

.commitment-card::before {
  content: attr(data-number);
  position: absolute;
  top: -18px;
  right: -10px;
  font-size: 5rem;
  font-weight: 800;
  color: rgba(246, 79, 35, 0.08);
}

.commitment-card h4 {
  font-size: 1.18rem;
  margin-bottom: 10px;
}

.commitment-card p {
  margin: 0;
  color: rgba(39, 52, 102, 0.72);
}

.commitment-card:hover {
  border-color: rgba(246, 79, 35, 0.4);
  transform: translateY(-4px);
}

body[data-theme="dark"] .commitment-card {
  background: rgba(15, 24, 41, 0.92);
  border-color: rgba(255, 255, 255, 0.05);
}

/* Fix: ensure the large watermark number adapts in dark theme */
body[data-theme="dark"] .commitment-card::before {
  color: rgba(255, 120, 79, 0.12);
}

/* Make commitment headings and paragraphs readable in dark mode */
body[data-theme="dark"] .commitment-card h4 {
  color: var(--heading-color);
}

body[data-theme="dark"] .commitment-card p {
  color: var(--default-color);
}

.story-block {
  position: relative;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(33, 52, 90, 0.08);
  box-shadow: var(--shadow-soft);
  padding: clamp(28px, 4vw, 36px);
  overflow: hidden;
  transition: transform var(--transition-base),
    box-shadow var(--transition-base);
}

.story-block::before {
  content: attr(data-number);
  position: absolute;
  top: -18px;
  right: -10px;
  font-size: clamp(4.5rem, 9vw, 6rem);
  font-weight: 800;
  color: rgba(246, 79, 35, 0.08);
  pointer-events: none;
}

.story-block h3 {
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.story-block p {
  color: rgba(39, 52, 102, 0.72);
  margin-bottom: 14px;
}

.story-block:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

body[data-theme="dark"] .story-block {
  background: rgba(15, 24, 41, 0.88);
  border-color: rgba(255, 255, 255, 0.05);
}

body[data-theme="dark"] .story-block::before {
  color: rgba(255, 120, 79, 0.14);
}

.story-list {
  padding-left: 0;
  list-style: none;
  margin: 0 0 18px 0;
}

.story-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  color: rgba(39, 52, 102, 0.72);
}

.story-list li::before {
  content: "\f26b";
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.1rem;
  color: var(--accent-color);
}

.clients {
  background: transparent;
}

.clients .clients-shell {
  border-radius: var(--radius-lg);
  padding: clamp(38px, 5vw, 54px);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(33, 52, 90, 0.08);
  box-shadow: var(--shadow-soft);
}

.clients .client-logo img {
  filter: grayscale(1);
  opacity: 0.48;
  transition: filter var(--transition-base), opacity var(--transition-base),
    transform var(--transition-base);
}

.clients .client-logo img:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.06);
}

body[data-theme="dark"] .clients .clients-shell {
  background: rgba(16, 24, 40, 0.78);
  border-color: rgba(255, 255, 255, 0.04);
}

.footer {
  background: rgba(10, 16, 32, 0.92);
  color: #d6dbff;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  inset: -20% -20% auto;
  height: 60%;
  background: radial-gradient(
    circle at 20% 30%,
    rgba(246, 79, 35, 0.32),
    rgba(246, 79, 35, 0) 60%
  );
  opacity: 0.6;
  pointer-events: none;
}

.footer .footer-top {
  position: relative;
  z-index: 1;
}

.footer .sitename {
  font-size: 1.4rem;
  font-weight: 800;
}

.footer a {
  color: rgba(220, 226, 255, 0.86);
}

.footer a:hover {
  color: var(--accent-color);
}

.footer .newsletter-form {
  background: rgba(11, 18, 32, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer .social-links a {
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.75);
}

.footer .social-links a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.footer .newsletter-form input[type="email"] {
  background: transparent;
  color: inherit;
}

.footer .newsletter-form input[type="submit"] {
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--accent-color-strong)
  );
}

.scroll-top {
  border-radius: 999px;
  width: 48px;
  height: 48px;
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--accent-color-strong)
  );
  box-shadow: 0 14px 24px rgba(246, 79, 35, 0.28);
}

.scroll-top:hover {
  transform: translateY(-3px);
}

.page-title {
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(33, 52, 90, 0.06);
  backdrop-filter: blur(18px);
}

body[data-theme="dark"] .page-title {
  background: rgba(11, 18, 32, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.04);
}

.page-title h1 {
  font-weight: 700;
  color: var(--heading-color);
}

.page-title .breadcrumbs ol li,
.page-title .breadcrumbs ol li a {
  color: rgba(39, 52, 102, 0.65);
}

body[data-theme="dark"] .page-title .breadcrumbs ol li,
body[data-theme="dark"] .page-title .breadcrumbs ol li a {
  color: rgba(214, 220, 255, 0.68);
}

.quote-page .quote-shell {
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(33, 52, 90, 0.08);
  box-shadow: var(--shadow-elevated);
}

.quote-form {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.quote-form .full-width {
  grid-column: 1 / -1;
}

.quote-form label {
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
  color: var(--heading-color);
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(33, 52, 90, 0.12);
  background: rgba(255, 255, 255, 0.9);
  padding: 14px 18px;
  font-size: 1rem;
  transition: border-color var(--transition-base),
    box-shadow var(--transition-base);
  color: var(--default-color);
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  border-color: rgba(246, 79, 35, 0.45);
  box-shadow: 0 0 0 3px rgba(246, 79, 35, 0.12);
  outline: none;
}

.quote-form textarea {
  min-height: 160px;
  resize: vertical;
}

.quote-form .form-footer {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}

.quote-form .form-footer button {
  border: none;
  border-radius: 999px;
  padding: 14px 32px;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--accent-color-strong)
  );
  color: var(--contrast-color);
  box-shadow: 0 18px 32px rgba(246, 79, 35, 0.24);
  transition: transform var(--transition-base),
    box-shadow var(--transition-base);
}

.quote-form .form-footer button:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 42px rgba(246, 79, 35, 0.32);
}

body[data-theme="dark"] .quote-page .quote-shell {
  background: rgba(15, 24, 41, 0.85);
  border-color: rgba(255, 255, 255, 0.04);
}

body[data-theme="dark"] .quote-form input,
body[data-theme="dark"] .quote-form select,
body[data-theme="dark"] .quote-form textarea {
  background: rgba(11, 18, 32, 0.8);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--default-color);
}

body[data-theme="dark"] .quote-form input:focus,
body[data-theme="dark"] .quote-form select:focus,
body[data-theme="dark"] .quote-form textarea:focus {
  border-color: rgba(255, 120, 79, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 120, 79, 0.15);
}

.translator-floating-toast {
  position: fixed;
  bottom: 24px;
  left: 30px;
  border-radius: 20px;
  padding: 16px 22px;
  background: rgba(16, 33, 62, 0.92);
  color: #f7f9ff;
  font-size: 0.9rem;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 220ms ease, transform 220ms ease;
  z-index: 1099;
}

.translator-floating-toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1199px) {
  .nav-actions {
    display: none;
  }
}

@media (max-width: 992px) {
  .header {
    padding-block: 18px; /* larger touch area on tablet/mobile */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1050;
    min-height: var(--header-height);
  }

  /* Keep navmenu positioned normally by default on small screens.
     The mobile overlay is handled by the `.mobile-nav-active .navmenu` rule
     in the main stylesheet. Setting fixed here caused the menu to be
     permanently fixed and overlapped content. */
  #navmenu {
    position: relative;
    top: auto;
    right: auto;
    height: auto;
    z-index: 1040;
  }

  /* Ensure the mobile toggle is above other content and easy to tap */
  .mobile-nav-toggle {
    z-index: 1060;
    padding: 8px 10px;
    touch-action: manipulation;
  }

  /* Limit mobile menu height so it never escapes the viewport */
  .navmenu ul {
    max-height: calc(100vh - 88px);
  }

  /* Stronger mobile overlay rules to ensure visibility across pages */
  .mobile-nav-active .navmenu {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(8, 15, 31, 0.9) !important;
    display: block !important;
    padding-top: var(--header-height) !important; /* avoid header */
    overflow: hidden !important;
  }

  .mobile-nav-active .navmenu > ul {
    display: block !important;
    position: fixed !important;
    /* reduce side margins further so the white menu panel is noticeably wider */
    inset: var(--header-height) 4px 12px 4px !important;
    padding: 26px 0 !important; /* moderate increase in vertical space */
    margin: 0 !important;
    border-radius: 10px !important;
    background: var(--nav-mobile-background-color) !important;
    overflow-y: auto !important;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55) !important;
    min-height: calc(50vh); /* make the menu panel larger on screen */
    max-height: calc(100vh - var(--header-height) - 16px) !important;
  }

  /* Make menu items taller and easier to tap */
  .navmenu a,
  .navmenu a:focus {
    padding: 18px 26px; /* slightly bigger touch targets */
    font-size: 17px;
  }

  /* Ensure toggle and header are above overlay */
  #header,
  .mobile-nav-toggle {
    z-index: 3000 !important;
  }

  .hero .hero-shell {
    padding: clamp(26px, 6vw, 42px);
  }

  .hero .hero-visual {
    margin-top: 32px;
  }

  .hero .hero-visual .blob {
    width: 320px;
    height: 320px;
  }

  .hero .hero-visual img {
    width: min(100%, 360px);
  }

  .pillars-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .commitments-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .main {
    padding-top: 60px;
  }
}

@media (max-width: 767px) {
  .section-title {
    text-align: left;
  }

  .hero {
    padding-top: 40px;
  }

  .hero .headline {
    font-size: 0.68rem;
    margin-bottom: 12px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 8vw, 2.8rem);
  }

  .cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-outline-modern,
  .btn-primary-modern {
    justify-content: center;
  }

  .metric-card {
    text-align: center;
  }

  .clients .clients-shell {
    padding-inline: 24px;
  }

  .translator-floating-toast {
    left: 16px;
    right: 16px;
    bottom: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
