/* =========================================
   SAYANU Group NV — Design Tokens
   ========================================= */

:root {
  /* Brand */
  --brand-red-600: #c40000;
  /* primary CTA */
  --brand-red-700: #a30000;
  /* hover / active */
  --brand-red-900: #8b0026;
  /* emblem / deep accent */

  --brand-blue-600: #2f5fa7;
  /* links / nav accents */
  --brand-blue-700: #244c86;
  /* hover / active */
  --brand-blue-100: #eef3fb;
  /* soft blue tint */

  /* Neutrals */
  --white: #ffffff;
  --bg: #ffffff;
  --surface: #f4f6f8;
  /* section background */
  --card: #ffffff;
  /* card background */
  --border: #e0e3e7;

  /* Text */
  --text: #1f2933;
  /* primary text */
  --text-muted: #6b7280;
  /* secondary text */

  /* Links */
  --link: var(--brand-blue-600);
  --link-hover: var(--brand-blue-700);

  /* Focus / Rings */
  --focus: rgba(47, 95, 167, 0.35);

  /* Shadows (subtle) */
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.06);

  /* Radius + spacing */
  --radius: 14px;
  --radius-sm: 10px;

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Layout */
  --container-width: 1200px;
  --header-height: 80px;

  /* Buttons */
  --btn-primary-bg: var(--brand-red-600);
  --btn-primary-bg-hover: var(--brand-red-700);
  --btn-primary-text: #ffffff;

  --btn-secondary-bg: var(--brand-blue-600);
  --btn-secondary-bg-hover: var(--brand-blue-700);
  --btn-secondary-text: #ffffff;

  --btn-ghost-border: var(--brand-blue-600);
  --btn-ghost-text: var(--brand-blue-600);
  --btn-ghost-bg-hover: var(--brand-blue-100);

  /* Header / Footer */
  --header-bg: var(--bg);
  --header-border: var(--border);

  --footer-bg: #1f2933;
  --footer-text: #d1d5db;
  --footer-link: #e5e7eb;
  --footer-link-hover: var(--brand-red-600);

  /* Map overlay */
  --map-overlay: rgba(244, 246, 248, 0.3);

  /* Typography */
  --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-heading: 'Segoe UI', system-ui, -apple-system, sans-serif;

  --transition-speed: 0.3s;
}

/* =========================================
   Dark mode tokens
   ========================================= */

html[data-theme="dark"] {
  /* Brand stays recognizable, slightly brighter helps on dark */
  --brand-red-600: #ff2a2a;
  --brand-red-700: #e61f1f;
  --brand-red-900: #a1002c;

  --brand-blue-600: #4b86d6;
  --brand-blue-700: #3a73bf;
  --brand-blue-100: rgba(75, 134, 214, 0.12);

  /* Neutrals */
  --bg: #0b1220;
  /* page background */
  --surface: #0f1a2b;
  /* section background */
  --card: #121f33;
  /* card background */
  --border: rgba(255, 255, 255, 0.10);

  /* Text */
  --text: rgba(255, 255, 255, 0.92);
  --text-muted: rgba(255, 255, 255, 0.68);

  /* Links */
  --link: var(--brand-blue-600);
  --link-hover: #67a0ff;

  /* Focus */
  --focus: rgba(75, 134, 214, 0.35);

  /* Shadows (slightly stronger on dark) */
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 24px rgba(0, 0, 0, 0.30);

  /* Header / Footer */
  --header-bg: rgba(11, 18, 32, 0.95);
  --header-border: rgba(255, 255, 255, 0.10);

  --footer-bg: #070b14;
  --footer-text: rgba(255, 255, 255, 0.70);
  --footer-link: rgba(255, 255, 255, 0.85);
  --footer-link-hover: var(--brand-red-600);

  --map-overlay: rgba(11, 18, 32, 0.35);
}

html[data-theme="dark"] header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text);
  line-height: 1.6;
  background-color: var(--bg);
  transition: background-color 0.3s, color 0.3s;
  padding-top: var(--header-height);
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: var(--link);
  transition: color var(--transition-speed);
}

a:hover {
  color: var(--link-hover);
}

ul {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--text);
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

/* Utility Classes */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

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

.text-primary {
  color: var(--brand-red-600);
}

.text-secondary {
  color: var(--brand-blue-600);
}

.text-muted {
  color: var(--text-muted);
}

.text-left {
  text-align: left;
}

.fw-500 {
  font-weight: 500;
}

.fw-600 {
  font-weight: 600;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.align-center {
  align-items: center;
}

.mb-xxs {
  margin-bottom: 0.25rem;
}

.mb-xs {
  margin-bottom: 0.5rem;
}

.mb-sm {
  margin-bottom: 1rem;
}

.mb-md {
  margin-bottom: 1.5rem;
}

.mb-lg {
  margin-bottom: 2rem;
}

.mb-xl {
  margin-bottom: 3rem;
}

.mt-sm {
  margin-top: 1rem;
}

.mt-md {
  margin-top: 1.5rem;
}

.mt-lg {
  margin-top: 2rem;
}

.max-w-600 {
  max-width: 600px;
}

.max-w-700 {
  max-width: 700px;
}

.max-w-800 {
  max-width: 800px;
}

.max-w-900 {
  max-width: 900px;
}

.icon-mr-5 {
  margin-right: 5px;
}

.icon-mr-8 {
  margin-right: 8px;
}

.icon-mr-10 {
  margin-right: 10px;
}

.icon-ml-5 {
  margin-left: 5px;
}

.icon-xl {
  font-size: 4rem;
}

.icon-sm {
  font-size: 0.8em;
}

.list-disc {
  list-style: disc;
  margin-left: 2rem;
  margin-top: 1rem;
}

.inline-link {
  display: inline;
  color: inherit;
}

.link-strong {
  color: var(--brand-blue-600);
  font-weight: 600;
}

.footer-credit-link {
  display: inline;
  color: inherit;
  text-decoration: none;
}

.footer-credit-link:hover {
  color: var(--footer-link-hover);
}

.footer-contact-link {
  display: inline;
  color: inherit;
  text-decoration: none;
}

.footer-contact-link:hover {
  color: var(--footer-link-hover);
}

.footer-brand-link {
  display: inline;
  color: inherit;
  text-decoration: none;
}

.footer-brand-link:hover {
  color: var(--footer-link-hover);
}

.section-lead {
  margin: 0 auto var(--spacing-lg);
  color: var(--text-muted);
}

.section-lead.compact {
  margin: 1rem auto 2rem;
}

.divider {
  margin: 1rem 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.divider-light {
  margin: 0.5rem 0 1rem;
  border-color: var(--border);
}

.icon-check {
  font-size: 0.8em;
  color: var(--brand-blue-600);
  margin-right: 5px;
}

.hero-btns .btn i,
.btn i {
  vertical-align: middle;
}

.section {
  padding: var(--spacing-lg) 0;
  background-color: var(--bg);
}

.bg-light {
  background-color: var(--surface);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-align: center;
}

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

.btn-primary:hover {
  background-color: var(--btn-primary-bg-hover);
  color: var(--btn-primary-text);
  /* Ensure text stays readable */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(196, 0, 0, 0.2);
}

.btn-secondary {
  background-color: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
}

.btn-secondary:hover {
  background-color: var(--btn-secondary-bg-hover);
  color: var(--btn-secondary-text);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(47, 95, 167, 0.2);
}

.btn-outline,
.btn-ghost {
  border: 1px solid var(--btn-ghost-border);
  color: var(--btn-ghost-text);
  background: transparent;
}

.btn-outline:hover,
.btn-ghost:hover {
  background-color: var(--btn-ghost-bg-hover);
  transform: translateY(-2px);
}

/* Header & Nav */
header {
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: var(--header-height);
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.brand-logo {
  height: 1.75rem;
  width: auto;
}

html[data-theme="dark"] .brand-logo {
  filter: brightness(1.4) saturate(1.2);
}

.brand span {
  color: var(--brand-red-600);
}

/* Desktop Nav */
.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  color: var(--text);
  /* Generally text colored in header */
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand-red-600);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--brand-red-600);
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.2rem;
  padding: 0.5rem;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  color: var(--brand-blue-600);
}

/* Theme toggle inside desktop nav — visual separator from nav links */
.nav-links .theme-toggle {
  margin-left: 0.5rem;
  border-left: 1px solid var(--border);
  padding-left: 1.5rem;
}

/* Theme toggle row inside mobile nav */
.mobile-theme-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 0;
  margin-top: 0.25rem;
  border: none;
  border-top: 1px solid var(--border);
  background: none;
  font-size: 1.25rem;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  transition: color 0.3s;
}

.mobile-theme-btn span {
  font-weight: 500;
}

.mobile-theme-btn:hover {
  color: var(--brand-blue-600);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
  background: none;
  border: none;
}

/* Hero Section */
.hero {
  background-color: var(--surface);
  color: var(--text);
  padding: var(--spacing-xl) 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  color: var(--text);
  margin-bottom: var(--spacing-sm);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
  color: var(--text-muted);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

/* Cards */
.card {
  background: var(--card);
  padding: var(--spacing-md);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  color: var(--text);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.card h3 {
  margin-bottom: var(--spacing-xs);
  color: var(--text);
}

.card p,
.card li {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.card ul {
  margin-left: 1.2rem;
  list-style: none;
  margin-bottom: 1rem;
}

.card hr {
  border-color: var(--border);
}

/* Feature Blocks */
.consultation-img {
  border-radius: 8px;
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.btn-block {
  width: 100%;
}

.partners-grid {
  text-align: center;
  color: var(--text-muted);
  font-weight: 600;
}

.partner-pill {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.cta-band {
  background-color: var(--brand-red-900);
  color: #ffffff;
  text-align: center;
}

.cta-band h2 {
  color: #ffffff;
}

.cta-band .cta-text {
  color: rgba(255, 255, 255, 0.88);
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.metric-value {
  font-size: 3rem;
  color: var(--brand-red-600);
  margin-bottom: 0.5rem;
}

.icon-brand-red {
  color: var(--brand-red-600);
}

.text-brand-blue-600 {
  color: var(--brand-blue-600);
}

.text-brand-blue-700 {
  color: var(--brand-blue-700);
}

.step-icon {
  width: 60px;
  height: 60px;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-weight: bold;
  font-size: 1.5rem;
}

.bg-brand-blue-600 {
  background: var(--brand-blue-600);
}

.bg-brand-red-600 {
  background: var(--brand-red-600);
}

.bg-brand-blue-700 {
  background: var(--brand-blue-700);
}

.section-border-top {
  border-top: 1px solid var(--border);
  text-align: center;
}

.industry-card {
  padding: 3rem 2rem;
  text-align: center;
}

.industry-icon {
  font-size: 2.5rem;
  color: var(--brand-blue-600);
  margin-bottom: 1rem;
}

/* Industry icons: solid SVG silhouettes used as masks so they take the
   brand colour (and the dark-mode colour) from currentColor */
.industry-svg {
  display: inline-block;
  width: 3.75rem;
  height: 3.75rem;
  background-color: currentColor;
  -webkit-mask: var(--industry-icon) center / contain no-repeat;
  mask: var(--industry-icon) center / contain no-repeat;
}

.industry-svg--energy { --industry-icon: url('../img/icons/industry-energy.svg'); }
.industry-svg--medical { --industry-icon: url('../img/icons/industry-medical.svg'); }
.industry-svg--retail { --industry-icon: url('../img/icons/industry-retail.svg'); }
.industry-svg--construction { --industry-icon: url('../img/icons/industry-construction.svg'); }
.industry-svg--mining { --industry-icon: url('../img/icons/industry-mining.svg'); }
.industry-svg--logistics { --industry-icon: url('../img/icons/industry-logistics.svg'); }
.industry-svg--international { --industry-icon: url('../img/icons/industry-international.svg'); }

.contact-details-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
  align-items: start;
}

.contact-info-card {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: 8px;
}

.contact-logo-full {
  display: block;
  max-width: 220px;
  margin-top: var(--spacing-md);
}

.contact-form-card {
  background: var(--card);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
}

.map-placeholder {
  height: 300px;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-direction: column;
  text-align: center;
}

.map-embed {
  position: relative;
  line-height: 0;
}

.map-embed::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--map-overlay);
  pointer-events: none;
  transition: background 0.3s;
}

.map-embed iframe {
  display: block;
  width: 100%;
}

.client-list {
  font-weight: 600;
  color: var(--text);
}

.client-pill {
  background: var(--card);
  padding: 1.5rem;
  border-radius: 8px;
}

.partner-card {
  padding: 2rem 1.5rem;
}

.partner-icon {
  width: 64px;
  height: 64px;
  background: var(--brand-blue-50, #eef3fb);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.partner-icon i {
  font-size: 1.6rem;
  color: var(--brand-blue-600);
}

.partner-name {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.partner-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-blue-600);
  background: var(--brand-blue-50, #eef3fb);
  border: 1px solid var(--brand-blue-600);
  border-radius: 999px;
  padding: 0.2rem 0.85rem;
}

.team-card {
  padding: 2.5rem;
}

.avatar-placeholder {
  width: 150px;
  height: 150px;
  background-color: var(--text-muted);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.avatar-placeholder i {
  font-size: 4rem;
  color: #ffffff;
}

.avatar-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-avatar--gloria {
  transform: scale(1.50) translateY(-14px);
  transform-origin: center;
}

.team-avatar--jeroen {
  transform: scale(1.68) translateY(-8px);
  transform-origin: center;
}

.role-title {
  color: var(--brand-blue-600);
  font-weight: 600;
  margin-bottom: 1rem;
}

.team-divider {
  width: 50px;
  margin: 0 auto 1.5rem;
  border-top: 2px solid var(--text);
}

.social-link {
  margin: 0 5px;
}

.social-link.linkedin {
  color: #0077b5;
}

.social-link.email {
  color: var(--text-muted);
}

.social-link.phone {
  color: var(--brand-blue-600);
}

.social-link.whatsapp {
  color: #25D366;
}

/* Form Elements */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text);
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--card);
  color: var(--text);
  font-family: inherit;
}

select.form-control {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-blue-600);
  box-shadow: 0 0 0 3px var(--focus);
}

.error-message {
  color: var(--brand-red-600);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.input-error {
  border-color: var(--brand-red-600);
}

.success-message {
  background-color: rgba(46, 204, 113, 0.15);
  /* Soft green */
  color: #27ae60;
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  display: none;
  border: 1px solid rgba(46, 204, 113, 0.3);
}

/* Footer */
footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: var(--spacing-lg) 0 var(--spacing-md);
}

footer h3 {
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

footer a {
  color: var(--footer-link);
  display: block;
  margin-bottom: 0.5rem;
}

footer a:hover {
  color: var(--footer-link-hover);
}

.footer-social-icons {
  display: flex;
  gap: 0.75rem;
}

.footer-social-icons .footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.2rem;
  margin-bottom: 0;
  transition: background-color 0.2s, color 0.2s;
}

.footer-social-icons .footer-social-link:hover {
  background: rgba(255, 255, 255, 0.15);
}

.footer-social-link:hover .fa-linkedin {
  color: #0077b5;
}

.footer-social-link:hover .fa-facebook {
  color: #1877f2;
}

.footer-social-link:hover .fa-whatsapp {
  color: #25D366;
}

.footer-logo-full {
  display: block;
  max-width: 200px;
  margin-top: 1.25rem;
  opacity: 0.9;
}

.footer-bottom {
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-legal a {
  display: inline;
  margin-bottom: 0;
  font-size: 0.9rem;
  opacity: 0.85;
}

.footer-legal a:hover {
  opacity: 1;
}

.footer-legal-sep {
  opacity: 0.5;
}

/* Mobile Nav Overlay */
.mobile-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background: var(--header-bg);
  /* Match header */
  border-bottom: 1px solid var(--border);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-1);
  transform: translateY(-150%);
  transition: transform 0.3s ease-in-out;
  z-index: 900;
}

.mobile-nav.active {
  transform: translateY(0);
}

.mobile-nav a {
  display: block;
  padding: 0.75rem 0;
  font-size: 1.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a.active {
  color: var(--brand-red-600);
}

/* Floating Action Buttons */
#whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #25D366;
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
  z-index: 100;
  border: none;
  font-size: 1.35rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

#whatsapp-btn:hover {
  background-color: #1ebe5d;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

/* Back to Top */
#back-to-top {
  position: fixed;
  bottom: calc(2rem + 45px + 0.75rem);
  right: 2rem;
  background-color: var(--brand-red-600);
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.2s, background-color 0.2s;
  z-index: 100;
  border: none;
  font-size: 1.25rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

#back-to-top:hover {
  background-color: var(--brand-red-700);
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .contact-details-row {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .hero {
    padding: 3rem 0;
  }

  .container {
    padding: 0 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
  }

  footer .grid-4 > div:first-child {
    display: flex;
    flex-direction: column;
  }

  footer .grid-4 > div:first-child .footer-logo-full {
    order: -1;
    margin-top: 0;
    margin-bottom: 1.25rem;
  }
}

/* =========================================
   Entrance Animations
   ========================================= */

/* Base: hidden state for all animated elements */
[data-animate] {
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Specific starting positions */
[data-animate="fade-up"] {
  transform: translateY(30px);
}

[data-animate="fade-in"] {
  transform: none;
}

[data-animate="slide-in-left"] {
  transform: translateX(-40px);
}

[data-animate="slide-in-right"] {
  transform: translateX(40px);
}

/* Revealed state — added by IntersectionObserver */
[data-animate].is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Stagger delays for grid children */
[data-animate-stagger] > [data-animate]:nth-child(1) { transition-delay: 0s; }
[data-animate-stagger] > [data-animate]:nth-child(2) { transition-delay: 0.1s; }
[data-animate-stagger] > [data-animate]:nth-child(3) { transition-delay: 0.2s; }
[data-animate-stagger] > [data-animate]:nth-child(4) { transition-delay: 0.3s; }
[data-animate-stagger] > [data-animate]:nth-child(5) { transition-delay: 0.4s; }
[data-animate-stagger] > [data-animate]:nth-child(6) { transition-delay: 0.5s; }
[data-animate-stagger] > [data-animate]:nth-child(7) { transition-delay: 0.6s; }
[data-animate-stagger] > [data-animate]:nth-child(8) { transition-delay: 0.7s; }

/* Hero — animate on load, slightly slower for impact */
.hero [data-animate] {
  transition-duration: 0.8s;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* =========================================
   Page Header with Background Image
   ========================================= */

.page-header {
  position: relative;
  padding: var(--spacing-xl) 0;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 18, 32, 0.75), rgba(47, 95, 167, 0.6));
  z-index: 1;
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-header h1 {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-header .section-lead {
  color: rgba(255, 255, 255, 0.88);
}

/* Home Hero with Background Image */
.hero.has-bg-image {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(460px, 64vh, 640px);
  border-bottom: 0; /* the 1px border sat outside the tint overlay as an untinted line */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero.has-bg-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 18, 32, 0.55), rgba(47, 95, 167, 0.45));
  z-index: 1;
}

.hero.has-bg-image .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero.has-bg-image h1,
.hero.has-bg-image p {
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.hero.has-bg-image p {
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
  .page-header {
    padding: 3rem 0;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background-color: var(--brand-red-600);
  /* Red thumb */
  border-radius: 6px;
  border: 3px solid var(--bg);
}
