/* =========================================================
   Aetherays — Design Tokens
   Palette drawn from the logo mark (ascending green/navy triangles).
   Display type: Space Grotesk — angular, technical, confident.
   Body: Inter. Data/labels: JetBrains Mono for a systems feel.
   Signature element: the "ascending triangle" — echoes the logo's
   upward arrow and the company name (Aether + rays = rising light).
   ========================================================= */

:root {
  --navy-900: #0B1C3D;
  --navy-800: #14315C;
  --navy-700: #1D3E6E;
  --green-500: #1F9D6B;
  --green-400: #2CBE84;
  --amber-500: #F2A93B;
  --ink: #101828;
  --muted: #5B6472;
  --bg: #F7F9FB;
  --bg-alt: #EEF2F6;
  --white: #FFFFFF;
  --border: #E2E7EE;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 28, 61, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 28, 61, 0.08);
  --shadow-lg: 0 20px 50px rgba(11, 28, 61, 0.14);
}

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

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--navy-900);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green-500);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.eyebrow::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 8px solid var(--green-500);
}

a { text-decoration: none; color: var(--navy-800); }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--navy-900); color: #fff;
  padding: 0.75rem 1.25rem; z-index: 2000; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible {
  outline: 2px solid var(--green-500);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */
.btn-cta {
  background: var(--green-500);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  border: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  box-shadow: var(--shadow-sm);
}
.btn-cta:hover, .btn-cta:focus {
  background: var(--green-400);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline-cta {
  border: 1.5px solid var(--navy-800);
  color: var(--navy-800);
  font-family: var(--font-display);
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  background: transparent;
  transition: all 0.18s ease;
}
.btn-outline-cta:hover { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: rgba(247, 249, 251, 0.92);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}
.navbar { padding: 0.85rem 0; }
.nav-link {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--navy-800) !important;
  padding: 0.5rem 0.9rem !important;
  position: relative;
}
.nav-link.active { color: var(--green-500) !important; }
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0.9rem; right: 0.9rem; bottom: 0;
  height: 2px; background: var(--green-500);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 6rem;
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: #fff;
}
.hero-triangles {
  position: absolute;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  width: 620px;
  max-width: 55vw;
  opacity: 0.9;
  pointer-events: none;
}
.hero .eyebrow { color: var(--green-400); }
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  line-height: 1.08;
  margin: 1rem 0 1.25rem;
  max-width: 15ch;
}
.hero h1 .accent { color: var(--green-400); }
.hero p.lead {
  color: rgba(255,255,255,0.78);
  max-width: 46ch;
  font-size: 1.15rem;
}
.hero-cta { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.hero .btn-outline-cta { border-color: rgba(255,255,255,0.4); color: #fff; }
.hero .btn-outline-cta:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

/* ---------- Stats bar ---------- */
.stats-bar {
  background: var(--navy-900);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.stat-item { text-align: center; padding: 1.75rem 1rem; color: #fff; }
.stat-number {
  font-family: var(--font-mono);
  font-size: 2.1rem;
  font-weight: 500;
  color: var(--green-400);
  display: block;
}
.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0.6rem 0 1rem; }
.section-lead { color: var(--muted); max-width: 60ch; font-size: 1.05rem; }
.section-head { margin-bottom: 3rem; }

/* ---------- Service cards ---------- */
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--green-500), var(--navy-800));
  border-radius: 12px;
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%, 0 85%, 85% 85%, 15% 85%, 0 100%);
  clip-path: none;
}
.service-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.service-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.9rem; }
.service-tech { font-family: var(--font-mono); font-size: 0.72rem; color: var(--navy-700); background: var(--bg-alt); padding: 0.3rem 0.6rem; border-radius: 6px; display: inline-block; margin: 0.15rem 0.25rem 0 0; }

/* ---------- Why choose us ---------- */
.feature-row { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.75rem; }
.feature-marker {
  width: 0; height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 15px solid var(--green-500);
  flex-shrink: 0;
  margin-top: 0.35rem;
}
.feature-row h4 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.feature-row p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* ---------- Timeline (About) ---------- */
.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before {
  content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--green-500), var(--navy-800));
}
.timeline-item { position: relative; padding-bottom: 2.25rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker {
  position: absolute; left: -2.5rem; top: 2px;
  width: 0; height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 14px solid var(--green-500);
}
.timeline-year { font-family: var(--font-mono); color: var(--green-500); font-size: 0.85rem; font-weight: 500; }
.timeline-item h4 { font-size: 1.05rem; margin: 0.2rem 0 0.35rem; }
.timeline-item p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* ---------- Founder profile ---------- */
.founder-photo-wrap { position: relative; max-width: 340px; }
.founder-photo-wrap img {
  width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.founder-photo-wrap::after {
  content: '';
  position: absolute; width: 100%; height: 100%;
  top: 18px; left: 18px; z-index: -1;
  border: 2px solid var(--green-500);
  border-radius: var(--radius);
}

/* ---------- Values ---------- */
.value-card { text-align: center; padding: 2rem 1rem; }
.value-glyph {
  width: 46px; height: 46px; margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt); border-radius: 10px; color: var(--green-500); font-size: 1.3rem;
}

/* ---------- Portfolio ---------- */
.portfolio-filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.5rem; }
.filter-btn {
  font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0.5rem 1.1rem; border-radius: 999px; border: 1px solid var(--border);
  background: #fff; color: var(--navy-800); cursor: pointer; transition: all 0.15s ease;
}
.filter-btn:hover, .filter-btn.active { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.portfolio-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease; height: 100%;
}
.portfolio-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.portfolio-thumb {
  aspect-ratio: 16/10; background: linear-gradient(135deg, var(--navy-800), var(--green-500));
  display: flex; align-items: center; justify-content: center; color: #fff;
  font-family: var(--font-display); font-size: 1.1rem; overflow: hidden;
}
.portfolio-thumb img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-card-body { padding: 1.5rem; }
.portfolio-category { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; color: var(--green-500); letter-spacing: 0.08em; }
.portfolio-empty { text-align: center; padding: 4rem 1rem; color: var(--muted); }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: #fff; border-radius: var(--radius); padding: 2rem; border: 1px solid var(--border); height: 100%;
}
.testimonial-quote { font-size: 1.05rem; color: var(--ink); margin-bottom: 1.25rem; }
.testimonial-author { font-family: var(--font-display); font-weight: 600; color: var(--navy-900); }
.testimonial-role { color: var(--muted); font-size: 0.85rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: #fff; border-radius: 20px; padding: 3.5rem 2.5rem; text-align: center;
  position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.75); max-width: 50ch; margin: 0.75rem auto 1.75rem; }

/* ---------- Contact ---------- */
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; height: 100%; }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.contact-info-icon {
  width: 42px; height: 42px; border-radius: 10px; background: var(--bg-alt); color: var(--green-500);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem;
}
.contact-info-item h6 { margin-bottom: 0.15rem; font-family: var(--font-display); }
.contact-info-item p { color: var(--muted); margin: 0; font-size: 0.92rem; }

.form-control, .form-select {
  border-radius: 8px; border: 1px solid var(--border); padding: 0.7rem 0.9rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(31, 157, 107, 0.15);
}
.form-label { font-family: var(--font-display); font-size: 0.9rem; font-weight: 500; color: var(--navy-900); }

.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); height: 320px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.75); padding: 4.5rem 0 0; }
.footer-tagline { color: rgba(255,255,255,0.6); font-size: 0.92rem; max-width: 30ch; }
.footer-heading { font-family: var(--font-display); color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 0.92rem; }
.footer-links a:hover { color: var(--green-400); }
.social-links { display: flex; gap: 0.6rem; margin-top: 0.5rem; }
.social-links a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.8rem; text-transform: uppercase;
  font-family: var(--font-mono);
}
.social-links a:hover { background: var(--green-500); border-color: var(--green-500); }
.footer-bottom { margin-top: 0; padding: 1.5rem 0; text-align: center; font-size: 0.85rem; }
.footer-partner { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 2.5rem; padding-top: 1.5rem; text-align: center; }
.footer-partner p { font-size: 0.82rem; color: rgba(255,255,255,0.55); margin: 0; }
.footer-partner a { color: var(--green-400); }

/* ---------- Cookie consent ---------- */
.cookie-consent {
  position: fixed; bottom: 1.25rem; left: 1.25rem; right: 1.25rem; z-index: 1500;
  background: var(--navy-900); color: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 1.25rem 1.5rem; max-width: 640px; margin: 0 auto;
}
.cookie-consent-inner { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; justify-content: space-between; }
.cookie-consent p { margin: 0; font-size: 0.88rem; color: rgba(255,255,255,0.85); flex: 1 1 260px; }

/* ---------- Admin ---------- */
.admin-body { background: var(--bg-alt); }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: 240px; background: var(--navy-900); color: #fff; padding: 1.5rem 1rem; flex-shrink: 0; }
.admin-sidebar .brand { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin-bottom: 2rem; display: block; color: #fff; }
.admin-sidebar a { display: block; color: rgba(255,255,255,0.75); padding: 0.65rem 0.9rem; border-radius: 8px; font-size: 0.92rem; margin-bottom: 0.25rem; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,0.08); color: #fff; }
.admin-main { flex: 1; padding: 2rem; }
.admin-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: 1.5rem; }
.admin-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--navy-900); }
.admin-login-card { background: #fff; border-radius: 16px; padding: 2.5rem; width: 100%; max-width: 400px; box-shadow: var(--shadow-lg); }
.stat-tile { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.stat-tile .num { font-family: var(--font-mono); font-size: 1.8rem; color: var(--navy-900); }
.stat-tile .lbl { color: var(--muted); font-size: 0.85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .hero-triangles { display: none; }
  .hero { padding: 3.5rem 0 4rem; text-align: left; }
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; display: flex; align-items: center; gap: 1rem; padding: 1rem; }
  .admin-sidebar .brand { margin-bottom: 0; }
  .admin-sidebar nav { display: flex; gap: 0.25rem; overflow-x: auto; }
}
