/* Design Tokens */
:root {
  --primary: #1e3a8a; /* Professional dark blue */
  --secondary: #dc2626; /* Trustworthy deep red */
  --neutral-50: #f8fafc; /* light */
  --neutral-500: #64748b; /* gray */
  --neutral-800: #1e293b; /* dark */
}

/* Base Typography and Layout */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, sans-serif;
  color: var(--neutral-800);
  line-height: 1.6;
  /* Offset for fixed header */
  padding-top: 72px;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  z-index: 1000;
  overflow: visible; /* allow oversized logo to be visible without changing bar height */
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 0; /* remove extra inline spacing around image */
}

.header-logo {
  height: 66px; /* base size; visual size scaled below */
  width: auto;
  transform: scale(2.5); /* 2.5x visual size without changing layout height */
  transform-origin: left center;
}

.site-nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav a {
  text-decoration: none;
  color: #000000;
  padding: 8px 4px;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--primary);
}

/* Hero */
.hero {
  background: var(--primary);
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero-content {
  padding: 40px 0;
}

.hero h1 {
  font-size: 2.4rem;
  margin: 0 0 16px 0;
}

/* Animated gradient overlay for hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(1200px 600px at 10% 10%, rgba(255,255,255,0.08), transparent 60%),
              radial-gradient(1000px 500px at 90% 20%, rgba(255,255,255,0.06), transparent 60%),
              linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0));
  pointer-events: none;
  animation: heroPulse 12s ease-in-out infinite alternate;
}

@keyframes heroPulse {
  0% { opacity: 0.6; }
  100% { opacity: 0.85; }
}

.hero .subheading {
  font-size: 1.125rem;
  max-width: 800px;
  margin: 0 auto 28px;
}

.hero-actions {
  display: inline-flex;
  gap: 14px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--secondary);
  color: #ffffff;
  border: 2px solid var(--secondary);
}

.btn-primary:hover,
.btn-primary:focus {
  filter: brightness(0.9);
}

.btn-outline {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}

.btn-outline:hover,
.btn-outline:focus {
  background: var(--secondary);
  color: #ffffff;
}

/* Hero badge */
.hero-badge {
  display: inline-block;
  margin-top: 18px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
}

/* Responsive Navigation (preparing for hamburger toggle) */
@media (max-width: 768px) {
  .site-nav ul {
    display: none;
    position: absolute;
    top: 72px;
    right: 0;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    padding: 12px 16px;
    border-radius: 8px;
    flex-direction: column;
    gap: 10px;
    margin: 0 24px;
  }

  /* When nav is open, show it */
  .site-header.nav-open .site-nav ul {
    display: flex;
  }
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  align-items: center;
  justify-content: center;
}

.hamburger-box {
  width: 24px;
  height: 16px;
  position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--neutral-800);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger-inner { top: 7px; }
.hamburger-inner::before { top: -7px; }
.hamburger-inner::after { top: 7px; }

.site-header.nav-open .hamburger-inner { transform: rotate(45deg); }
.site-header.nav-open .hamburger-inner::before { transform: translateY(7px) rotate(90deg); }
.site-header.nav-open .hamburger-inner::after { transform: translateY(-7px) rotate(90deg); opacity: 0; }

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }
}

/* Accessibility helpers */
.site-nav a:focus-visible {
  outline: 2px solid #1a365d;
  outline-offset: 2px;
}

/* Sections base */
.section {
  padding: 64px 0;
}

.section h2 {
  margin: 0 0 16px;
  font-size: 1.8rem;
  color: var(--primary);
}

.section p {
  margin: 0 0 12px;
  font-size: 1rem;
}

/* Shared subheading style */
.section .subheading {
  font-size: 1.05rem;
  color: #333;
  margin-bottom: 18px;
}

/* Services / Projects */
.project-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  margin-top: 12px;
}

.project-card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  color: var(--primary);
}

.project-details {
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-details li {
  margin: 6px 0;
}

.project-details strong {
  color: var(--primary);
}

/* Clients */
.clients-subheading {
  margin: 12px 0 8px;
  font-size: 1.1rem;
}

.client-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.client-list li {
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  padding: 10px 14px;
  text-align: center;
  font-weight: 600;
}

@media (max-width: 992px) {
  .client-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .client-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.team-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.team-card h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  color: var(--primary);
}

.team-card .role {
  margin: 0 0 10px;
  color: #555;
  font-weight: 700;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: start;
}

.contact-info {
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 20px;
}

.contact-main {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.contact-main a {
  color: #1a365d;
  text-decoration: none;
}

.contact-main a:hover {
  text-decoration: underline;
}

.contact-meta {
  margin: 0;
  color: #555;
}

.contact-form {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field {
  position: relative;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
  background: #fff;
}

.form-field label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  padding: 0 4px;
  color: #64748b;
  pointer-events: none;
  transition: all 0.15s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.form-field input:not(:placeholder-shown) + label,
.form-field textarea:not(:placeholder-shown) + label,
.form-field input:focus + label,
.form-field textarea:focus + label {
  top: -10px;
  font-size: 0.85rem;
  color: var(--primary);
}

.map-embed {
  width: 100%;
  height: 220px;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.site-footer {
  background: var(--primary);
  color: #ffffff;
  padding: 20px 0; /* tighten to keep overall bar height similar */
}

.footer-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  height: 70px; /* base size */
  width: auto;
  transform: scale(2.5); /* 2.5x visual size */
  transform-origin: center;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.footer-contact {
  text-align: right;
}

.footer-contact a {
  color: #ffffff;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-contact .divider {
  margin: 0 8px;
  opacity: 0.8;
}

.footer-copy {
  grid-column: 1 / -1;
  text-align: center;
  opacity: 0.9;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-contact {
    text-align: center;
  }
}

/* Mission & Vision two-column layout */
.mv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 8px;
}

.mv-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.mv-card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

@media (max-width: 768px) {
  .mv-grid {
    grid-template-columns: 1fr;
  }
}

/* Confidentiality info box */
.confidentiality .info-box {
  background: #f3f4f6; /* light grey */
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 24px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* Scroll to top button */
.scroll-to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--secondary);
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.scroll-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

/* Ensure sections don't hide under sticky header */
.section, .hero { scroll-margin-top: 84px; }