/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&family=Playfair+Display:ital,wght@0,600;1,600&display=swap');

:root {
  /* Logo derived colors */
  --nav-bg: rgba(255, 255, 255, 0.95);
  --color-navy: #002855;
  --color-blue: #00509E;
  --color-red: #D32F2F;
  --color-gold: #FFC107;
  --color-light: #F8F9FA;
  --color-text: #333333;
  --color-text-muted: #666666;

  /* Typography */
  --font-primary: 'Outfit', sans-serif;
  --font-secondary: 'Playfair Display', serif;

  /* Spacing & Layout */
  --section-padding: 6rem 2rem;
  --container-width: 1200px;

  /* Utilities */
  --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --radius: 8px;
  --shadow: 0 10px 30px rgba(0, 40, 85, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  background-color: var(--color-light);
  line-height: 1.6;
  overflow-x: hidden;
}

body.loading {
  overflow: hidden;
}

/* Full-page brand watermark */
.page-watermark {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.page-watermark::before,
.page-watermark::after {
  content: '';
  position: absolute;
  inset: 0;
}

.page-watermark::before {
  background-image:
    linear-gradient(145deg, rgba(0, 40, 85, 0.06) 0%, rgba(0, 40, 85, 0.02) 48%, rgba(255, 255, 255, 0.02) 100%),
    url('https://images.unsplash.com/photo-1578575437130-527eed3abbec?auto=format&fit=crop&q=80');
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat;
  opacity: 0.09;
  mix-blend-mode: multiply;
}

.page-watermark::after {
  background-image: url('logo.jpeg');
  background-repeat: no-repeat;
  background-size: min(74vw, 820px);
  background-position: center 45%;
  opacity: 0.055;
  filter: grayscale(100%) contrast(1.15);
}

/* Opening logo animation */
.opening-splash {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #f8f9fa 0%, #e8edf3 55%, #dfe8f1 100%);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.opening-splash-inner {
  text-align: center;
  animation: splashRise 1.25s cubic-bezier(0.18, 0.85, 0.3, 1) forwards;
}

.opening-logo {
  width: min(58vw, 350px);
  height: auto;
  filter: drop-shadow(0 16px 30px rgba(0, 40, 85, 0.2));
}

.opening-text {
  margin-top: 1rem;
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-blue);
  font-weight: 600;
  opacity: 0;
  animation: splashTextIn 0.8s ease 0.35s forwards;
}

body.loaded .opening-splash {
  opacity: 0;
  visibility: hidden;
}

@keyframes splashRise {
  0% {
    opacity: 0;
    transform: translateY(34px) scale(0.88);
    filter: blur(6px);
  }
  45% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(-8px) scale(1.02);
    filter: blur(0);
  }
}

@keyframes splashTextIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-primary);
  color: var(--color-navy);
  line-height: 1.2;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.subtitle {
  color: var(--color-blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.5rem;
}

/* Container */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navbar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: var(--transition);
  padding: 1.5rem 0;
}

header.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.95);
  padding: 6px 16px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 40, 85, 0.12), 0 0 0 1.5px rgba(255, 193, 7, 0.3);
  transition: var(--transition);
}

.logo-container:hover {
  box-shadow: 0 6px 25px rgba(0, 40, 85, 0.18), 0 0 0 2px rgba(255, 193, 7, 0.5);
  transform: translateY(-1px);
}

.logo-img {
  height: 190px;
  width: auto;
  transition: var(--transition);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

header.scrolled .logo-container {
  padding: 4px 12px;
  box-shadow: 0 2px 12px rgba(0, 40, 85, 0.1), 0 0 0 1px rgba(255, 193, 7, 0.25);
}

header.scrolled .logo-img {
  height: 65px;
}

.logo-text {
  font-weight: 700;
  color: var(--color-navy);
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.logo-text span {
  color: var(--color-blue);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

/* Hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  background: none;
  border: none;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--color-navy);
  border-radius: 3px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

nav a {
  text-decoration: none;
  color: var(--color-navy);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: var(--transition);
  text-shadow: 0 0 8px rgba(255,255,255,0.6);
}

header.scrolled nav a {
  text-shadow: none;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-red);
  transition: var(--transition);
}

nav a:hover::after {
  width: 100%;
}

.btn-primary {
  display: inline-block;
  background: var(--color-navy);
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  border: 2px solid var(--color-navy);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--color-blue);
  z-index: -1;
  transition: var(--transition);
}

.btn-primary:hover::before {
  width: 100%;
}

.btn-primary:hover {
  border-color: var(--color-blue);
  box-shadow: 0 10px 20px rgba(0, 80, 158, 0.2);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg-accent {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(0, 80, 158, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero-bg-accent-2 {
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(211, 47, 47, 0.03) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero h1 span {
  color: var(--color-blue);
  font-family: var(--font-secondary);
  font-style: italic;
  font-weight: 600;
}

.hero p {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  max-width: 550px;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--color-navy);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  border: 2px solid rgba(0, 40, 85, 0.2);
}

.btn-secondary:hover {
  border-color: var(--color-navy);
  background: rgba(0, 40, 85, 0.05);
}

.hero-image {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  height: 70vh;
  z-index: 1;
  border-radius: 20px;
  overflow: hidden;
  pointer-events: none;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}

.hero-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, var(--color-light) 0%, transparent 50%);
}

/* Services Section */
.services {
  padding: var(--section-padding);
  background: #ffffff;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.service-card {
  background: var(--color-light);
  padding: 3rem 2rem;
  border-radius: var(--radius);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-blue), var(--color-navy));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
  background: #ffffff;
}

.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(0, 80, 158, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--color-blue);
  font-size: 1.5rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--color-blue);
  color: #fff;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Value Props Section */
.values {
  padding: var(--section-padding);
  background: var(--color-navy);
  color: #fff;
  position: relative;
}

.values h2,
.values h3 {
  color: #fff;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.values-content .subtitle {
  color: var(--color-gold);
}

.values-content p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.value-list {
  list-style: none;
}

.value-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.value-icon {
  color: var(--color-red);
  font-size: 1.2rem;
  margin-top: 5px;
}

.value-text h4 {
  color: #fff;
  margin-bottom: 0.3rem;
  font-size: 1.2rem;
}

.value-text p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.values-image {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.values-image img {
  width: 100%;
  height: auto;
  display: block;
}

.values-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 40, 85, 0.8), transparent);
}

/* Global Connection (Map Section) */
.global {
  padding: var(--section-padding);
  background: #ffffff;
  text-align: center;
}

.map-container {
  margin-top: 4rem;
  position: relative;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.map-container img {
  width: 100%;
  opacity: 0.7;
  filter: grayscale(100%) opacity(0.5);
  transition: var(--transition);
}

.map-container:hover img {
  filter: grayscale(0%) opacity(1);
}

/* Contact CTA */
.cta {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, var(--color-light) 0%, #e2e8f0 100%);
  text-align: center;
}

.cta-box {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: 4rem;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.cta-box h2 {
  margin-bottom: 1rem;
}

.cta-box p {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* Footer */
footer {
  background: var(--color-navy);
  color: #fff;
  padding: 4rem 2rem 2rem;
}

.footer-grid {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo-img {
  margin-bottom: 1.5rem;
  background: #fff;
  padding: 10px 18px;
  border-radius: 12px;
  height: auto;
  max-width: 180px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15), 0 0 0 1.5px rgba(255, 193, 7, 0.3);
  filter: none;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-title {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--color-red);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--color-gold);
  padding-left: 5px;
}

.footer-bottom {
  max-width: var(--container-width);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3.5rem;
  }

  .hero-image {
    width: 40%;
  }
}

@media (max-width: 768px) {
  .page-watermark {
    z-index: 1;
  }

  .page-watermark::before {
    opacity: 0.07;
  }

  .page-watermark::after {
    background-size: min(92vw, 520px);
    opacity: 0.05;
    background-position: center 52%;
  }

  .opening-logo {
    width: min(72vw, 280px);
  }

  .opening-text {
    font-size: 0.78rem;
    letter-spacing: 1.1px;
    padding: 0 1rem;
  }

  .hamburger {
    display: flex;
  }

  .nav-container {
    padding: 0 1rem;
  }

  nav ul {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: #fff;
    padding: 100px 2rem 2rem;
    gap: 1.5rem;
    box-shadow: -5px 0 30px rgba(0,0,0,0.15);
    z-index: 1000;
  }

  nav ul.open {
    display: flex;
  }

  nav ul a {
    text-shadow: none;
    font-size: 1.1rem;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 120px;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    position: relative;
    width: 100%;
    top: 0;
    transform: none;
    right: 0;
    height: 50vh;
    margin-top: 3rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .page-watermark::before {
    opacity: 0.06;
  }

  .page-watermark::after {
    background-size: min(95vw, 420px);
    opacity: 0.045;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    padding: 2rem 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .opening-splash,
  .opening-splash-inner,
  .opening-text {
    animation: none;
    transition: none;
  }

  .reveal,
  .reveal.active {
    transition: none;
    transform: none;
    opacity: 1;
  }
}