/* ============================================================
   Madar Technical Systems Est. — Main Stylesheet
   ============================================================ */

/* ── Custom Properties ── */
:root {
  --navy: #061220;
  --navy-mid: #0c1f35;
  --corp-blue: #2e5f8a;
  --accent: #4a8ec4;
  --accent-soft: #6ba3cf;
  --bright-blue: #4a8ec4;
  --cyan: #8bb8d9;
  --purple: #7457E8;
  --charcoal: #2c3a4d;
  --bg-light: #f6f8fb;
  --white: #FFFFFF;
  --surface-dark: #000000;
  --surface-elevated: #0a1420;
  --gradient-brand: linear-gradient(135deg, #0c1f35 0%, #1a3d5c 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(12,31,53,.04), rgba(74,142,196,.05));
  --shadow-sm: 0 1px 3px rgba(0,0,0,.12);
  --shadow-md: 0 4px 20px rgba(0,0,0,.18);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.22);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 80px;
  --header-h-scrolled: 64px;
  --container: 1200px;
  --font-ar: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif;
  --font-en: 'Inter', 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-ar);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--white);
  overflow-x: hidden;
}

[dir="ltr"] body { font-family: var(--font-en); }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--corp-blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--bright-blue); }
ul { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }

:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ── Skip Link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  z-index: 10000;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--white);
  color: var(--navy);
  box-shadow: none;
}
.btn-primary:hover {
  color: var(--navy);
  background: #eef2f6;
  transform: none;
  box-shadow: none;
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.35);
}
.btn-outline:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.55);
  color: var(--white);
}
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 0.9rem 2rem; font-size: 1rem; }

/* ── Section Utilities ── */
.section { padding: 5rem 0; }
.section-header { text-align: center; max-width: 720px; margin-inline: auto; margin-bottom: 3.5rem; }
.section-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--corp-blue);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--charcoal);
  opacity: 0.85;
  line-height: 1.7;
}

/* ── Reveal Animation ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--surface-dark);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: height var(--transition), box-shadow var(--transition);
}
.site-header.is-scrolled {
  height: var(--header-h-scrolled);
  box-shadow: 0 2px 16px rgba(0,0,0,.4);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.site-logo picture {
  display: inline-flex;
  align-items: center;
}
.site-logo img {
  display: block;
  width: clamp(170px, 14vw, 210px);
  height: 64px;
  object-fit: contain;
  object-position: center;
  opacity: 1;
}
.is-scrolled .site-logo img {
  height: 52px;
  width: clamp(160px, 13vw, 190px);
}

.main-nav { display: none; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover,
.nav-link.is-active {
  color: var(--white);
  background: rgba(255,255,255,.06);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.lang-btn {
  padding: 0.45rem 0.8rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}
.lang-btn:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.35);
  color: var(--white);
}
.header-call {
  display: none;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  text-decoration: none;
  line-height: 1.2;
  transition: background var(--transition), color var(--transition);
}
.header-call:hover {
  background: #e8edf2;
  color: var(--navy);
}
.header-call svg {
  flex-shrink: 0;
  opacity: 0.85;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
}
.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
  position: relative;
}
.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }
[aria-expanded="true"] .hamburger { background: transparent; }
[aria-expanded="true"] .hamburger::before { top: 0; transform: rotate(45deg); }
[aria-expanded="true"] .hamburger::after { top: 0; transform: rotate(-45deg); }

/* Mobile nav panel */
@media (max-width: 1023px) {
  .main-nav {
    display: block;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--surface-dark);
    padding: 1.5rem;
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
    z-index: 999;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  [dir="ltr"] .main-nav { transform: translateX(-100%); }
  .main-nav.is-open { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0.25rem; }
  .nav-link { padding: 0.85rem 1rem; font-size: 1rem; }
  body.menu-open { overflow: hidden; }
}

@media (min-width: 1024px) {
  .main-nav { display: block; }
  .menu-toggle { display: none; }
  .header-call { display: inline-flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
  background:
    linear-gradient(
      125deg,
      rgba(0, 0, 0, 0.92) 0%,
      rgba(6, 18, 32, 0.88) 50%,
      rgba(10, 28, 48, 0.82) 100%
    ),
    url("../images/hero-network.webp") center / cover no-repeat;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2rem;
  width: 100%;
  padding-block: 4rem 3rem;
  position: relative;
  z-index: 2;
}
.hero-content {
  color: var(--white);
  max-width: 680px;
}
.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  margin-bottom: 1.5rem;
}
.hero .btn-primary {
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
}
.hero .btn-primary:hover {
  background: #e8edf2;
  color: var(--navy);
}
.hero .btn-outline {
  border-color: rgba(255,255,255,.3);
  color: rgba(255,255,255,.9);
}
.hero .btn-outline:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.45);
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  opacity: 0.9;
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 560px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
}
.hero-brand img {
  display: block;
  width: min(90vw, 360px);
  max-width: 580px;
  height: auto;
  object-fit: contain;
  margin-inline: auto;
}

@media (min-width: 769px) {
  .hero-inner {
    grid-template-columns: 1fr min(46%, 620px);
    gap: 3rem;
    padding-block: 5rem;
  }
  [dir="ltr"] .hero-inner {
    grid-template-columns: min(46%, 620px) 1fr;
  }
  [dir="ltr"] .hero-content { order: 2; }
  [dir="ltr"] .hero-brand { order: 1; }
  .hero-brand {
    width: min(46%, 620px);
  }
  .hero-brand img {
    width: 100%;
    max-width: 580px;
  }
}

@media (min-width: 769px) and (max-width: 1023px) {
  .hero-brand img {
    max-width: 440px;
  }
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-content {
    width: 100%;
  }
  .hero-brand {
    width: 100%;
    margin-top: 28px;
  }
  .hero-brand img {
    width: min(90vw, 360px);
    margin-inline: auto;
  }
  .site-logo img {
    width: 160px;
    height: 52px;
  }
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip {
  background: var(--white);
  border-bottom: 1px solid rgba(7,31,77,.06);
  padding: 2rem 0;
}
.trust-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}
.trust-item svg {
  flex-shrink: 0;
  color: var(--corp-blue);
}

@media (min-width: 768px) {
  .trust-list { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-section { background: var(--bg-light); }
.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
.about-text p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.8;
}
.about-features {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.about-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--navy);
}
.about-features li::before {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 0.55rem;
  background: var(--gradient-brand);
  border-radius: 50%;
}
.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.about-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
  .about-image img { height: 400px; }
}

/* ============================================================
   SERVICES
   ============================================================ */
.service-category { margin-bottom: 3rem; }
.service-category:last-child { margin-bottom: 0; }
.category-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(46,95,138,.15);
  position: relative;
}
.category-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  inset-inline-start: 0;
  width: 48px;
  height: 2px;
  background: var(--corp-blue);
}
.service-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
.service-card {
  background: var(--white);
  border: 1px solid rgba(7,31,77,.08);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all var(--transition);
}
.service-card:hover {
  border-color: rgba(46,95,138,.2);
  box-shadow: var(--shadow-sm);
}
.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--gradient-subtle);
  border-radius: var(--radius-sm);
  color: var(--corp-blue);
  margin-bottom: 1rem;
}
.service-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--charcoal);
  opacity: 0.85;
  line-height: 1.65;
}

@media (min-width: 600px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   SOLUTIONS
   ============================================================ */
.solutions-section { background: var(--bg-light); }
.solutions-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
.solution-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.solution-card:hover {
  box-shadow: var(--shadow-md);
}
.solution-image {
  height: 200px;
  overflow: hidden;
}
.solution-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.solution-card:hover .solution-image img { transform: scale(1.05); }
.solution-body { padding: 1.75rem; flex: 1; }
.solution-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.solution-body > p {
  font-size: 0.95rem;
  color: var(--charcoal);
  opacity: 0.85;
  margin-bottom: 1.25rem;
  line-height: 1.65;
}
.solution-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.solution-items li {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  background: rgba(46,95,138,.08);
  color: var(--corp-blue);
  border-radius: 100px;
}

@media (min-width: 768px) {
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   METHODOLOGY
   ============================================================ */
.method-timeline {
  display: grid;
  gap: 0;
  max-width: 800px;
  margin-inline: auto;
  position: relative;
}
.method-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: 28px;
  width: 2px;
  background: rgba(46,95,138,.2);
}
.method-step {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  position: relative;
}
.step-num {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-mid);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.1);
  position: relative;
  z-index: 1;
}
.step-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.step-content p {
  font-size: 0.95rem;
  color: var(--charcoal);
  opacity: 0.85;
  line-height: 1.65;
}

/* ============================================================
   WHY MADAR
   ============================================================ */
.why-section { background: var(--bg-light); }
.why-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
.why-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid rgba(7,31,77,.06);
  transition: all var(--transition);
}
.why-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: rgba(46,95,138,.15);
}
.why-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--gradient-subtle);
  border-radius: var(--radius-sm);
  color: var(--corp-blue);
  margin-bottom: 1rem;
}
.why-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.why-card p {
  font-size: 0.9rem;
  color: var(--charcoal);
  opacity: 0.85;
  line-height: 1.65;
}

@media (min-width: 600px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .why-card:last-child {
    grid-column: span 1;
  }
}

/* ============================================================
   TECHNOLOGY AREAS
   ============================================================ */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.tech-chip {
  padding: 0.65rem 1.25rem;
  background: var(--white);
  border: 1px solid rgba(46,95,138,.15);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  transition: all var(--transition);
}
.tech-chip:hover {
  background: var(--navy-mid);
  color: var(--white);
  border-color: transparent;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section { background: var(--bg-light); }
.contact-grid {
  display: grid;
  gap: 2rem;
}
.contact-cards {
  display: grid;
  gap: 1rem;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(7,31,77,.08);
  color: inherit;
  transition: all var(--transition);
}
.contact-card:hover {
  border-color: rgba(46,95,138,.2);
  box-shadow: var(--shadow-sm);
  color: inherit;
  transform: translateX(-4px);
}
[dir="ltr"] .contact-card:hover { transform: translateX(4px); }
.contact-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--gradient-subtle);
  border-radius: var(--radius-sm);
  color: var(--corp-blue);
}
.contact-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--corp-blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}
.contact-value {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
}
.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--white);
}
.contact-map iframe {
  width: 100%;
  height: 320px;
  display: block;
}
.map-link {
  display: block;
  text-align: center;
  padding: 0.85rem;
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--white);
  border-top: 1px solid rgba(7,31,77,.06);
}

@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .contact-map iframe { height: 400px; }
}

/* ============================================================
   BANK DETAILS
   ============================================================ */
.bank-card {
  max-width: 640px;
  margin-inline: auto;
  background: var(--white);
  border: 1px solid rgba(7,31,77,.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.bank-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(7,31,77,.06);
}
.bank-row:last-child { border-bottom: none; padding-bottom: 0; }
.bank-row:first-child { padding-top: 0; }
.bank-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--corp-blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.bank-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
}
.bank-alt {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--charcoal);
  opacity: 0.7;
  margin-top: 0.15rem;
}
.bank-value-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.mono { font-family: 'Courier New', Courier, monospace; letter-spacing: 0.03em; }
.copy-btn {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--corp-blue);
  background: rgba(46,95,138,.08);
  border: 1px solid rgba(46,95,138,.2);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.copy-btn:hover {
  background: rgba(46,95,138,.15);
}
.copy-btn.is-copied {
  background: #10B981;
  color: var(--white);
  border-color: #10B981;
}

@media (min-width: 600px) {
  .bank-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--surface-dark);
  color: rgba(255,255,255,.72);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-logo-wrap {
  display: block;
  margin-bottom: 1rem;
}
.footer-logo {
  display: block;
  width: clamp(200px, 22vw, 250px);
  height: auto;
  object-fit: contain;
  object-position: start center;
}
.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.footer-tagline {
  font-style: normal;
  color: rgba(255,255,255,.55);
  font-size: 0.9rem;
}
.footer-grid h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-grid ul { display: grid; gap: 0.5rem; }
.footer-grid a {
  color: rgba(255,255,255,.75);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-grid a:hover { color: var(--white); }
.footer-legal li {
  font-size: 0.9rem;
  line-height: 1.6;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 2rem;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  opacity: 0.75;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-top {
  position: fixed;
  bottom: 2rem;
  inset-inline-end: 2rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-elevated);
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition), background var(--transition);
  z-index: 900;
}
.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-top:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
}

/* ============================================================
   RESPONSIVE FINE-TUNING
   ============================================================ */
@media (max-width: 359px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .trust-list { grid-template-columns: 1fr; }
}

@media (min-width: 1440px) {
  .container { max-width: 1280px; }
}
