/* ==========================================================================
   DESIGN SYSTEM & CUSTOM PROPERTIES
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Roboto:wght@400;500;700&display=swap');

:root {
  /* Color Palette */
  --color-primary: #0a1b3a;       /* Deep Navy Blue */
  --color-primary-light: #162a56; /* Navy Blue Light */
  --color-secondary: #4a5568;     /* Steel Gray */
  --color-accent: #00a8e8;        /* Ice Blue */
  --color-accent-hover: #008cc0;  /* Darker Ice Blue */
  --color-bg-light: #f7fafc;      /* Soft Light Gray */
  --color-bg-white: #ffffff;
  --color-text-dark: #1a202c;     /* Dark Charcoal */
  --color-text-muted: #718096;    /* Muted Slate */
  --color-success: #38a169;       /* WhatsApp Green / Success */
  --color-error: #e53e3e;

  /* Typography */
  --font-headers: 'Montserrat', sans-serif;
  --font-body: 'Roboto', sans-serif;

  /* Transitions */
  --transition-fast: all 0.2s ease-in-out;
  --transition-normal: all 0.3s ease;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);

  /* Max Widths */
  --container-max-width: 1200px;
}

/* ==========================================================================
   BASE STYLES & RESET
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background-color: var(--color-bg-light);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headers);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   LAYOUT CONTAINERS
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-dark {
  background-color: var(--color-primary);
  color: var(--color-bg-white);
}

.section-dark h2 {
  color: var(--color-bg-white);
}

.text-center {
  text-align: center;
}

/* ==========================================================================
   UI COMPONENTS & BUTTONS
   ========================================================================== */
.btn {
  display: inline-block;
  font-family: var(--font-headers);
  font-weight: 600;
  padding: 0.8rem 1.8rem;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: var(--transition-normal);
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-bg-white);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--color-bg-white);
  color: var(--color-bg-white);
}

.btn-secondary:hover {
  background-color: var(--color-bg-white);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-bg-white);
  transform: translateY(-2px);
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background-color: var(--color-success);
  color: var(--color-bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 999;
  transition: var(--transition-normal);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.top-bar {
  background-color: var(--color-primary-light);
  color: var(--color-bg-white);
  padding: 0.5rem 0;
  font-size: 0.85rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar-info {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-bar-item svg {
  width: 14px;
  height: 14px;
  fill: var(--color-accent);
}

.main-header {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: var(--transition-normal);
}

.main-header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.main-header.scrolled .container {
  height: 65px; /* Reduce height on scroll */
}

/* Animations base */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  transition: var(--transition-normal);
}

.logo-link img {
  height: 48px;
  width: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  font-family: var(--font-headers);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-link {
  color: var(--color-primary);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: var(--transition-fast);
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--color-accent);
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle-bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-primary);
  margin: 5px 0;
  transition: var(--transition-fast);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
  background-color: var(--color-primary);
  color: var(--color-bg-light);
  padding: 4rem 0 2rem;
  margin-top: auto;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  color: var(--color-bg-white);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
  font-size: 1.2rem;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--color-accent);
}

.footer-logo img {
  height: 45px;
  margin-bottom: 1rem;
}

.footer-about {
  line-height: 1.8;
  color: var(--color-text-muted);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a:hover {
  color: var(--color-accent);
  padding-left: 5px;
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  fill: var(--color-accent);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   PAGE-SPECIFIC SECTIONS
   ========================================================================== */

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(rgba(10, 27, 58, 0.85), rgba(10, 27, 58, 0.85)), url('../assets/images/hero-bg.webp') no-repeat center center / cover;
  color: var(--color-bg-white);
  padding: 8rem 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-tag {
  color: var(--color-accent);
  font-family: var(--font-headers);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.hero h1 {
  color: var(--color-bg-white);
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.15;
  background: linear-gradient(to right, #ffffff, #88c0d0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease-out forwards;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: rgba(255,255,255,0.9);
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.3s forwards;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.6s forwards;
}

/* Section Titles */
.section-title-wrap {
  margin-bottom: 4rem;
  text-align: center;
}

.section-tag {
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--color-accent);
}

/* Stats / Grid Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.stat-card {
  background-color: var(--color-bg-white);
  padding: 2.5rem 2rem;
  text-align: center;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border-top: 4px solid var(--color-accent);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stat-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  display: block;
}

.stat-label {
  font-family: var(--font-headers);
  font-weight: 600;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Services / Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.feature-card {
  background-color: var(--color-bg-white);
  padding: 3rem 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0,0,0,0.05);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.feature-card:hover .feature-icon-wrap svg {
  transform: scale(1.15) rotate(5deg);
}

.feature-icon-wrap {
  width: 60px;
  height: 60px;
  background-color: rgba(0, 168, 232, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon-wrap svg {
  width: 32px;
  height: 32px;
  fill: var(--color-accent);
  transition: all 0.3s ease;
}

.feature-card h3 {
  margin-bottom: 1rem;
  font-size: 1.35rem;
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Contact Info & Map layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

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

.contact-card-wrap {
  background-color: var(--color-bg-white);
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-card-wrap h3 {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-headers);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 8px;
  font-family: var(--font-body);
  transition: var(--transition-normal);
}

.form-control:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.2);
}
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0,168,232,0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.map-container {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
  min-height: 350px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Client Logo Grid */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
}

.client-card {
  background-color: var(--color-bg-white);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  min-height: 120px;
  text-align: center;
  transition: var(--transition-normal);
}

.client-card:hover {
  box-shadow: var(--shadow-md);
  transform: scale(1.02);
}

.client-name {
  font-family: var(--font-headers);
  font-weight: 600;
  color: var(--color-primary);
  font-size: 1.1rem;
}

/* Page Header component */
.page-header {
  background: linear-gradient(rgba(10, 27, 58, 0.9), rgba(10, 27, 58, 0.9)), url('../assets/images/page-header-bg.webp') no-repeat center center / cover;
  color: var(--color-bg-white);
  padding: 5rem 0;
  text-align: center;
}

.page-header h1 {
  color: var(--color-bg-white);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

.breadcrumb a {
  color: var(--color-accent);
}

.breadcrumb li::after {
  content: '/';
  margin-left: 0.5rem;
}

.breadcrumb li:last-child::after {
  display: none;
}

.breadcrumb li:last-child {
  color: var(--color-bg-white);
}

/* ==========================================================================
   SECTIONS: ABIN & URGENCY BANNER
   ========================================================================== */
.abin-title {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
}

.abin-text {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #cbd5e0;
}

.abin-text-last {
  margin-bottom: 2rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #cbd5e0;
}

.abin-graphic-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.abin-graphic-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  border: 2px dashed rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.abin-graphic-glow {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
  opacity: 0.15;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.abin-graphic-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.abin-graphic-icon {
  width: 80px;
  height: 80px;
  fill: var(--color-accent);
  margin-bottom: 1.5rem;
}

.abin-graphic-title {
  color: var(--color-bg-white);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.abin-graphic-subtitle {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Urgency Banner */
.urgency-banner {
  background-color: #cbd5e0;
  padding: 4rem 0;
}

.urgency-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.urgency-text {
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: var(--color-secondary);
}

.btn-whatsapp {
  background-color: var(--color-success);
  border-color: var(--color-success);
  color: var(--color-bg-white);
}

.btn-whatsapp:hover {
  background-color: #2f855a;
  border-color: #2f855a;
  color: var(--color-bg-white);
}

.text-accent {
  color: var(--color-accent) !important;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (MOBILE-FIRST)
   ========================================================================== */
@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }
  .hero h1 { font-size: 2.25rem; }
  .section { padding: 3.5rem 0; }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--color-bg-white);
    flex-direction: column;
    gap: 1.5rem;
    padding: 3rem 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    transition: var(--transition-normal);
    z-index: 99;
  }
  
  .nav-menu.open {
    left: 0;
  }
  
  .nav-toggle {
    display: block;
  }

  .nav-toggle.open .nav-toggle-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle.open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}
