/* =====================================================
   AE-GROUP — Main Stylesheet
   Design: Cold-tech, precision, service-first
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ── CSS VARIABLES ── */
:root {
  --navy:       #0D1B2A;
  --navy-mid:   #132337;
  --blue-dark:  #1A3A5C;
  --blue:       #1E6EA6;
  --blue-light: #3A9BD5;
  --steel:      #5B8DB8;
  --ice:        #B8D4EA;
  --white:      #F4F8FC;
  --grey-light: #E2EBF3;
  --grey:       #8FA8C0;
  --accent:     #3ABDE8;
  --accent-glow:#3ABDE840;

  --font-display: 'Montserrat', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --radius: 4px;
  --radius-lg: 12px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --shadow: 0 8px 32px rgba(13,27,42,0.18);
  --shadow-sm: 0 2px 12px rgba(13,27,42,0.10);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-light); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { font-size: 1rem; font-weight: 300; color: var(--ice); }

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 300;
  color: var(--ice);
  max-width: 680px;
}

/* ── LAYOUT ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
}

section { padding: clamp(4rem, 8vw, 7rem) 0; }

/* ── UTILITY ── */
.tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.tag::before { content: '— '; }

.divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--blue));
  border-radius: 2px;
  margin: 1.5rem 0;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(58,189,232,0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(58,189,232,0.4);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent-glow);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(13,27,42,0.97);
  backdrop-filter: blur(16px);
  padding: 0.6rem 0;
  box-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-logo img { width: 250px; height: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ice);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(58,189,232,0.45);
  border-radius: var(--radius);
  background: rgba(58,189,232,0.06);
  flex-shrink: 0;
  transition: border-color var(--transition), background var(--transition);
}
.hamburger:hover {
  border-color: var(--accent);
  background: rgba(58,189,232,0.12);
}
.hamburger span {
  width: 18px; height: 1.5px;
  background: var(--accent);
  transition: all var(--transition);
  border-radius: 2px;
  display: block;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--navy);
  padding-top: 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(30,110,166,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(58,189,232,0.08) 0%, transparent 60%);
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-video.loaded { opacity: 0.22; }

@media (prefers-reduced-motion: reduce) {
  .hero-video-wrap { display: none; }
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(58,155,213,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58,155,213,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 60% 50%, black, transparent);
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 760px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(58,189,232,0.1);
  border: 1px solid rgba(58,189,232,0.3);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero h1 { margin-bottom: 1.5rem; }
.hero h1 span { color: var(--accent); }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; }

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(184,212,234,0.12);
}
.stat-item {}
.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.3rem;
}

/* ── SECTION HEADER ── */
.section-header { margin-bottom: 3.5rem; }
.section-header.centered { text-align: center; }
.section-header.centered .divider { margin: 1.5rem auto; }
.section-header.centered .lead { margin: 0 auto; }

/* ── SERVICES GRID ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5px;
  background: rgba(184,212,234,0.08);
  border: 1px solid rgba(184,212,234,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.service-card {
  background: var(--navy-mid);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: background var(--transition);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover { background: rgba(30,110,166,0.15); }
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 52px; height: 52px;
  background: rgba(58,189,232,0.08);
  border: 1px solid rgba(58,189,232,0.2);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent);
  transition: all var(--transition);
}
.service-icon svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
.service-card:hover .service-icon {
  background: rgba(58,189,232,0.2);
  border-color: var(--accent);
}
.service-card h3 { margin-bottom: 0.75rem; font-size: 1.15rem; }
.service-card p { font-size: 0.9rem; line-height: 1.7; }

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.25rem;
}
.service-tag {
  font-size: 0.72rem;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--steel);
  background: rgba(91,141,184,0.1);
  border: 1px solid rgba(91,141,184,0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

/* ── APPROACH SECTION ── */
.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.approach-visual {
  position: relative;
}
.approach-diagram {
  width: 100%;
  aspect-ratio: 1;
  max-width: 400px;
  margin: 0 auto;
  position: relative;
}

.step-list { display: flex; flex-direction: column; gap: 1.5rem; }
.step-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: rgba(58,189,232,0.1);
  border: 1px solid rgba(58,189,232,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
}
.step-item h4 { margin-bottom: 0.25rem; }
.step-item p { font-size: 0.88rem; }

/* ── CTA BAND ── */
.cta-band {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--navy-mid) 100%);
  border-top: 1px solid rgba(184,212,234,0.1);
  border-bottom: 1px solid rgba(184,212,234,0.1);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(58,189,232,0.08), transparent);
}
.cta-band-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 3.5rem 0;
}

/* ── CONTACT FORM ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}
.contact-info-list { display: flex; flex-direction: column; gap: 2rem; margin-top: 2rem; }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info-icon {
  width: 40px; height: 40px;
  background: rgba(58,189,232,0.1);
  border: 1px solid rgba(58,189,232,0.2);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent);
}
.contact-info-icon svg { width: 20px; height: 20px; }
.contact-info-item h4 { font-size: 0.85rem; color: var(--grey); margin-bottom: 0.2rem; }
.contact-info-item p { font-size: 0.95rem; color: var(--ice); }

.form-card {
  background: var(--navy-mid);
  border: 1px solid rgba(184,212,234,0.1);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.form-group { margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.5rem;
}
input, select, textarea {
  width: 100%;
  background: rgba(13,27,42,0.6);
  border: 1px solid rgba(184,212,234,0.15);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--white);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
input::placeholder, textarea::placeholder { color: var(--grey); }
select option { background: var(--navy-mid); }
textarea { resize: vertical; min-height: 120px; }

.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.privacy-check input[type="checkbox"] {
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}
.privacy-check label {
  font-size: 0.82rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--grey);
  font-weight: 300;
  font-family: var(--font-body);
}

/* ── MAP PLACEHOLDER ── */
.map-container {
  margin-top: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(184,212,234,0.1);
}
.map-container iframe {
  width: 100%;
  height: 260px;
  border: none;
  display: block;
  filter: grayscale(0.7) invert(0.85) hue-rotate(190deg);
  opacity: 0.85;
}

/* ── FOOTER ── */
footer {
  background: rgba(10,20,32,0.98);
  border-top: 1px solid rgba(184,212,234,0.08);
  padding: 3rem 0 2rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(184,212,234,0.08);
}
.footer-brand img { height: 38px; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.85rem; color: var(--grey); max-width: 300px; }

.footer-links-col h5 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 1rem;
}
.footer-links-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links-col ul a {
  font-size: 0.88rem;
  color: var(--grey);
  transition: color var(--transition);
}
.footer-links-col ul a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-legal { font-size: 0.8rem; color: var(--grey); }
.footer-legal a { color: var(--grey); }
.footer-legal a:hover { color: var(--accent); }
.footer-copy { font-size: 0.8rem; color: rgba(143,168,192,0.5); }

/* ── PAGE HEADER (inner pages) ── */
.page-header {
  padding: 10rem 0 5rem;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 30%, rgba(30,110,166,0.14), transparent);
}
.page-header-content { position: relative; z-index: 1; }
.page-header h1 { margin-bottom: 1rem; }

/* ── LEGAL / POLICY PAGES ── */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}
.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--white);
}
.legal-content h3 {
  font-size: 1.1rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--ice);
}
.legal-content p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: var(--grey);
}
.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.legal-content ul li {
  font-size: 0.95rem;
  color: var(--grey);
  margin-bottom: 0.4rem;
}
.legal-content a { color: var(--accent); }
.legal-divider {
  border: none;
  border-top: 1px solid rgba(184,212,234,0.1);
  margin: 2.5rem 0;
}
.legal-meta {
  font-size: 0.82rem;
  color: var(--steel);
  font-style: italic;
}

/* ── MISSION PAGE ── */
.mission-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}
.mission-block.reverse { direction: rtl; }
.mission-block.reverse > * { direction: ltr; }

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.value-card {
  background: var(--navy-mid);
  border: 1px solid rgba(184,212,234,0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--transition), border-color var(--transition);
}
.value-card:hover { transform: translateY(-4px); border-color: rgba(58,189,232,0.3); }
.value-card-icon { margin-bottom: 1rem; color: var(--accent); }
.value-card-icon svg { width: 32px; height: 32px; }
.value-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.value-card p { font-size: 0.88rem; }

/* ── TOAST NOTIFICATION ── */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  transform: translateY(200%);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
  z-index: 9999;
}
.toast.show { transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .approach-grid, .contact-grid, .mission-block { grid-template-columns: 1fr; gap: 3rem; }
  .mission-block.reverse { direction: ltr; }
  .hero-stats { gap: 2rem; }
  .footer-top { flex-direction: column; }
}

@media (max-width: 700px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 100vh;
    height: 100dvh;
    background: rgba(13,27,42,0.99);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 9999;
    overflow: hidden;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.2rem; }
  .hamburger { display: flex; z-index: 10000; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 1.5rem; }
  .cta-band-inner { flex-direction: column; text-align: center; }
}

/* ── MEDIA CARDS & IMAGE SECTIONS ── */
.photo-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 360px;
}
.photo-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,27,42,0.95) 15%, rgba(13,27,42,0.45) 60%, rgba(13,27,42,0.15) 100%);
  z-index: 1;
}
.photo-card-body {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
}

.img-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  height: 260px;
  margin: 3.5rem 0;
  border: 1px solid rgba(184,212,234,0.08);
}
.img-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.28) saturate(0.6);
  display: block;
}
.img-banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  gap: 1rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(26,58,92,0.25), rgba(58,189,232,0.04));
}

/* ── ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
