/* ===== Tokens ===== */
:root {
  --navy-950: #0b1028;
  --navy-900: #11133f;
  --navy-800: #171a45;
  --navy-700: #232757;
  --ivory-50: #ffffff;
  --ivory-100: #f4f4f6;
  --red-400: #d7192f;
  --red-300: #e64a5c;
  --red-600: #c9152b;
  --text-on-dark: #f4f4f6;
  --text-on-dark-muted: #aeb1c4;
  --text-on-light: #161b22;
  --text-on-light-muted: #5a5f6b;
  --border-dark: rgba(215, 25, 47, 0.22);
  --border-light: rgba(17, 19, 63, 0.12);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Reset ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@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-body);
  background: var(--ivory-50);
  color: var(--text-on-light);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--red-400);
  color: var(--navy-950);
  padding: var(--space-2) var(--space-3);
  z-index: 200;
  font-weight: 600;
}
.skip-link:focus { left: var(--space-3); top: var(--space-3); }

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* ===== Typography ===== */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); color: var(--navy-900); }
h3 { font-size: 1.3rem; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-600);
  margin-bottom: var(--space-2);
}

.section-heading { max-width: 640px; margin-bottom: var(--space-6); }
.section-heading-light h2 { color: var(--ivory-50); }
.section-heading-light .eyebrow { color: var(--red-300); }

.section { padding: var(--space-8) 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out), background 200ms var(--ease-out), color 200ms var(--ease-out);
  min-height: 48px;
}
.btn:active { transform: scale(0.97); }

.btn-red {
  background: linear-gradient(135deg, var(--red-400), var(--red-600));
  color: var(--ivory-50);
  box-shadow: 0 8px 24px -8px rgba(201, 21, 43, 0.55);
}
.btn-red:hover { box-shadow: 0 12px 28px -8px rgba(201, 21, 43, 0.65); transform: translateY(-1px); }

.btn-outline {
  border: 1px solid var(--border-dark);
  color: var(--text-on-dark);
}
.section:not(.projects) .btn-outline,
.contact .btn-outline {
  border: 1px solid var(--border-light);
  color: var(--text-on-light);
}
.btn-outline:hover { border-color: var(--red-400); color: var(--red-600); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 24px -12px rgba(11, 16, 40, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: 88px;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--navy-900);
  flex-shrink: 0;
}
.brand-logo {
  height: 58px;
  width: auto;
  object-fit: contain;
  display: block;
}
.brand-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--navy-900);
}
.brand-text em { color: var(--red-600); font-style: normal; }

.main-nav ul { display: flex; gap: var(--space-5); }
.main-nav a {
  color: var(--text-on-light-muted);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 180ms var(--ease-out);
  padding: var(--space-1) 0;
}
.main-nav a:hover { color: var(--red-600); }

.header-actions { display: flex; align-items: center; gap: var(--space-3); }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 0.85rem;
  color: var(--text-on-light-muted);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 3px;
  background: var(--ivory-100);
}
.lang-btn {
  color: var(--text-on-light-muted);
  padding: 6px 10px;
  border-radius: 4px;
  font-weight: 600;
  min-height: 32px;
  min-width: 36px;
  transition: color 180ms var(--ease-out), background 180ms var(--ease-out);
}
.lang-btn.is-active { color: var(--ivory-50); background: var(--navy-900); }
.lang-divider { display: none; }

.header-cta { padding: 11px 22px; min-height: 44px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy-900);
  transition: transform 220ms var(--ease-out), opacity 220ms var(--ease-out);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  background: radial-gradient(120% 100% at 50% 0%, var(--navy-800) 0%, var(--navy-950) 65%);
  color: var(--text-on-dark);
  overflow: hidden;
  padding-top: var(--space-8);
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(circle, rgba(215, 25, 47, 0.18) 0%, rgba(215, 25, 47, 0) 70%);
  pointer-events: none;
}

.hero-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244, 244, 246, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 244, 246, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 880px;
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.hero-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ivory-50);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-5);
  margin-bottom: var(--space-5);
  box-shadow: 0 16px 40px -16px rgba(11, 16, 40, 0.5);
}
.hero-logo-badge img {
  height: 50px;
  width: auto;
}

.hero h1 { color: var(--ivory-50); margin-bottom: var(--space-4); }

.hero-sub {
  color: var(--text-on-dark-muted);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto var(--space-6);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.trust-strip {
  position: relative;
  border-top: 1px solid var(--border-dark);
  background: rgba(13, 19, 32, 0.6);
}
.trust-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6);
  padding: var(--space-4) var(--space-4);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-on-dark-muted);
  font-size: 0.88rem;
  font-weight: 500;
}
.trust-item svg { color: var(--red-400); flex-shrink: 0; }

/* ===== About ===== */
.about { background: var(--ivory-50); text-align: center; }
.about-inner { max-width: 760px; }
.about .section-heading { margin-left: auto; margin-right: auto; }
.about-text { font-size: 1.15rem; color: var(--text-on-light-muted); }

/* ===== Cards / Grid ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.sectors { background: var(--ivory-100); }

.card {
  background: var(--ivory-50);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  position: relative;
  overflow: hidden;
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), border-color 220ms var(--ease-out);
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 3px;
  background: var(--red-600);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -24px rgba(11, 16, 40, 0.25);
  border-color: var(--red-400);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(215, 25, 47, 0.08);
  color: var(--red-600);
  margin-bottom: var(--space-3);
}

.card h3 { margin-bottom: var(--space-2); font-size: 1.2rem; }
.card p { color: var(--text-on-light-muted); font-size: 0.95rem; }

/* Projects (dark section) */
.projects {
  background: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
}

.projects-grid { grid-template-columns: repeat(2, 1fr); }

.card-dark {
  background: var(--navy-800);
  border: 1px solid var(--border-dark);
  position: relative;
  overflow: hidden;
}
.card-dark:hover {
  border-color: var(--red-400);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.6);
}
.card-dark h3 { color: var(--ivory-50); margin-bottom: var(--space-2); }
.card-dark p { color: var(--text-on-dark-muted); }

.card-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--red-400), transparent);
}

/* ===== Why Us ===== */
.why-us { background: var(--ivory-50); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}
.why-item {
  border-top: 2px solid var(--border-light);
  padding-top: var(--space-3);
  position: relative;
}
.why-item::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--red-400);
}
.why-number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--red-600);
  margin-bottom: var(--space-2);
}
.why-item h3 { margin-bottom: var(--space-2); font-size: 1.1rem; }
.why-item p { color: var(--text-on-light-muted); font-size: 0.92rem; }

/* ===== Contact ===== */
.contact {
  background: var(--navy-950);
  color: var(--text-on-dark);
}
.contact .eyebrow { color: var(--red-300); }
.contact h2 { color: var(--ivory-50); }
.contact-inner { max-width: 1180px; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.contact-card {
  background: var(--navy-800);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}
.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(215, 25, 47, 0.14);
  color: var(--red-400);
  margin-bottom: var(--space-3);
}
.contact-card h3 { color: var(--ivory-50); font-size: 1.05rem; margin-bottom: var(--space-2); }
.contact-card p { color: var(--text-on-dark-muted); font-size: 0.92rem; line-height: 1.6; }
.contact-card a:hover { color: var(--red-300); }

.contact-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.contact .btn-outline { border: 1px solid var(--border-dark); color: var(--text-on-dark); }
.contact .btn-outline:hover { border-color: var(--red-400); color: var(--red-300); }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-950);
  border-top: 3px solid var(--red-600);
  padding: var(--space-6) 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.footer-logo {
  height: 44px;
  width: auto;
  background: var(--ivory-50);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
}
.footer-brand-text p {
  color: var(--text-on-dark-muted);
  font-size: 0.75rem;
  max-width: 480px;
  line-height: 1.6;
  letter-spacing: 0.01em;
}
.footer-copy { color: var(--text-on-dark-muted); font-size: 0.85rem; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .header-inner { height: 76px; }
  .brand-logo { height: 44px; }
  .main-nav {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--ivory-50);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 240ms var(--ease-out), opacity 240ms var(--ease-out), visibility 240ms;
    padding: var(--space-5) var(--space-4);
    border-top: 1px solid var(--border-light);
  }
  .main-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: var(--space-4); }
  .main-nav a { font-size: 1.1rem; display: block; color: var(--text-on-light); }
  .header-cta { display: none; }
  .menu-toggle { display: flex; }
}

@media (max-width: 640px) {
  .section { padding: var(--space-7) 0; }
  .card-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .trust-strip-inner { gap: var(--space-4); }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
