/* ═══════════════════════════════════════════════════
   The Cambridge Agency — Design System & Styles
   ═══════════════════════════════════════════════════ */

/* ── Custom Properties ──────────────────────────── */
:root {
  --navy:       #0B192C;
  --navy-mid:   #0E2240;
  --navy-light: #112D55;
  --cyan:       #00F0FF;
  --cyan-dim:   rgba(0, 240, 255, 0.15);
  --cyan-glow:  rgba(0, 240, 255, 0.35);
  --white:      #FFFFFF;
  --white-70:   rgba(255, 255, 255, 0.7);
  --white-50:   rgba(255, 255, 255, 0.5);
  --white-20:   rgba(255, 255, 255, 0.2);
  --white-10:   rgba(255, 255, 255, 0.1);
  --white-05:   rgba(255, 255, 255, 0.05);
  --glass-bg:   rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --radius:     12px;
  --radius-lg:  20px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

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

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ── Hexagonal Background Pattern ────────────────── */
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='52' viewBox='0 0 60 52'%3E%3Cpolygon points='30,2 56,15 56,37 30,50 4,37 4,15' fill='none' stroke='rgba(0,240,255,0.08)' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: 60px 52px;
  pointer-events: none;
}

.hero-circuit {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-circuit svg {
  width: 100%;
  height: 100%;
}

/* ── Typography ──────────────────────────────────── */
.section-tag {
  font-size: clamp(0.7rem, 1vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--white-70);
  max-width: 640px;
  margin-bottom: 56px;
  line-height: 1.7;
}

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: 60px;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-sm {
  font-size: 0.85rem;
  padding: 10px 24px;
}

.btn-lg {
  font-size: 1rem;
  padding: 16px 36px;
}

.btn-block {
  width: 100%;
  padding: 16px 24px;
  font-size: 0.95rem;
}

.btn-cyan {
  background: var(--cyan);
  color: var(--navy);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.2);
}

.btn-cyan:hover {
  background: #33f3ff;
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.5), 0 0 15px rgba(0, 240, 255, 0.8) inset;
  transform: translateY(-2px);
}

/* Button Shine Effect */
.btn-shine::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-20deg);
  transition: none;
  z-index: 1;
}

.btn-shine:hover::before {
  animation: shine 0.8s ease-out;
}

@keyframes shine {
  100% { left: 200%; }
}

.btn span {
  position: relative;
  z-index: 2;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--white-50);
}

.btn-outline:hover {
  border-color: var(--white);
  background: var(--white-10);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* ── Glass Card ──────────────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all var(--transition);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 
              0 0 40px rgba(0, 240, 255, 0.08),
              inset 0 0 30px rgba(255, 255, 255, 0.05);
}

/* ══════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all var(--transition);
}

.site-header.scrolled {
  background: rgba(11, 25, 44, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--white-05);
  padding: 10px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  z-index: 101;
  transition: transform var(--transition), filter var(--transition);
}

.logo:hover {
  transform: scale(1.02);
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.4));
}

.logo-img {
  height: 180px;
  width: auto;
  object-fit: contain;
  margin: -60px 0 -60px -24px; /* Offset whitespace in the logo image */
}

.nav-list {
  display: flex;
  gap: 36px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white-70);
  transition: color var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--cyan);
  transition: width var(--transition);
}

.nav-link:hover {
  color: var(--white);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  flex-shrink: 0;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ══════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--navy);
  background-image: 
    linear-gradient(to bottom, rgba(11, 25, 44, 0.6) 0%, rgba(11, 25, 44, 0.8) 70%, #091629 100%),
    url('cambridge-aerial-view.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, rgba(0, 240, 255, 0) 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  animation: pulseGlow 8s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero-tag {
  font-size: clamp(0.7rem, 1vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 24px;
}

.hero-headline {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--white-70);
  max-width: 600px;
  line-height: 1.75;
  margin-bottom: 40px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════
   SERVICES / THE ARSENAL
   ══════════════════════════════════════════════════ */
.services {
  position: relative;
  padding: 120px 0;
  background: linear-gradient(180deg, #091629 0%, var(--navy) 30%, var(--navy-mid) 100%);
}

.pillar {
  margin-bottom: 72px;
}

.pillar:last-child {
  margin-bottom: 0;
}

.pillar-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.pillar-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  border: 1px solid var(--cyan-dim);
  color: var(--cyan);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.pillar-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.pillar-desc {
  font-size: 0.85rem;
  color: var(--white-50);
  margin-top: 2px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.service-card {
  padding: 32px 28px;
}

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--cyan);
  margin-bottom: 20px;
  transition: transform var(--transition);
}

.service-card:hover .service-icon {
  transform: translateY(-4px) scale(1.1);
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.4));
}

.service-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.service-detail {
  font-size: 0.9rem;
  color: var(--white-70);
  line-height: 1.65;
}

/* ══════════════════════════════════════════════════
   PACKAGES
   ══════════════════════════════════════════════════ */
.packages {
  position: relative;
  padding: 120px 0;
  background: linear-gradient(180deg, var(--navy-mid) 0%, var(--navy) 100%);
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
  max-width: 880px;
}

.package-card {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
}

.package-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-70);
  border: 1px solid var(--white-20);
  border-radius: 40px;
  padding: 6px 16px;
  margin-bottom: 24px;
  width: fit-content;
}

.badge-cyan {
  color: var(--cyan);
  border-color: rgba(0, 240, 255, 0.3);
  background: rgba(0, 240, 255, 0.06);
}

.package-name {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.package-tagline {
  font-size: 0.95rem;
  color: var(--white-70);
  margin-bottom: 28px;
  line-height: 1.6;
}

.package-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
  flex-grow: 1;
}

.package-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--white-70);
}

.check-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--cyan);
}

.package-featured {
  border-color: rgba(0, 240, 255, 0.2);
  background: rgba(0, 240, 255, 0.04);
  position: relative;
}

.package-featured::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.3), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ══════════════════════════════════════════════════
   TRUST / CTA SECTION
   ══════════════════════════════════════════════════ */
.trust {
  position: relative;
  padding: 120px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-mid) 50%, var(--navy) 100%);
}

.trust-content {
  max-width: 700px;
}

.trust-headline {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.trust-sub {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: var(--white-70);
  margin-bottom: 40px;
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════ */
.site-footer {
  background: linear-gradient(180deg, var(--navy) 0%, #060F1D 100%);
  border-top: 1px solid var(--white-05);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr;
  gap: 48px;
  padding: 64px 24px 48px;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--white-50);
  margin-top: 16px;
  max-width: 300px;
  line-height: 1.65;
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-50);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links li,
.footer-links a {
  font-size: 0.9rem;
  color: var(--white-70);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--cyan);
}

.footer-bottom {
  border-top: 1px solid var(--white-05);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 0.8rem;
  color: var(--white-50);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: var(--white-50);
  transition: color var(--transition);
}

.footer-legal a:hover {
  color: var(--cyan);
}

/* ══════════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════════ */
.anim-fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.anim-d1 { transition-delay: 0.1s; }
.anim-d2 { transition-delay: 0.2s; }
.anim-d3 { transition-delay: 0.3s; }

/* Subtle glow pulse on featured card */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 30px rgba(0, 240, 255, 0.05); }
  50% { box-shadow: 0 0 50px rgba(0, 240, 255, 0.12); }
}

.package-featured {
  animation: glowPulse 4s ease-in-out infinite;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .main-nav, .nav-cta {
    display: none;
  }

  .main-nav.open {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(11, 25, 44, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    align-items: center;
    justify-content: center;
  }

  .main-nav.open .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .main-nav.open .nav-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .hero-headline {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
  }

  .services, .packages, .trust {
    padding: 80px 0;
  }

  .packages-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 48px 24px 36px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .pillar-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .package-card {
    padding: 28px 20px;
  }
}
