/* ================= DESIGN SYSTEM & TOKENS ================= */
:root {
  --primary-blue: #004aad;       /* Logo blue */
  --primary-blue-deep: #002d6b;  /* Deep slate blue */
  --primary-blue-light: #2172e5; /* Electric blue */
  --accent-orange: #ff751f;      /* Logo orange */
  --accent-orange-soft: #ff914d; /* Soft orange */
  --bg-light: #f8fafc;
  --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
  --white: #ffffff;
  --text-dark: #0f172a;          /* Slate 900 */
  --text-muted: #475569;         /* Slate 600 */
  --border-color: #cbd5e1;       /* Slate 300 */
  --border-light: rgba(255, 255, 255, 0.6);
  --focus-ring: rgba(255, 117, 31, 0.25);
  --success: #10b981;            /* Emerald 500 */
  --card-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
  --card-shadow-hover: 0 20px 40px -15px rgba(15, 23, 42, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-family: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-width: 1200px;
}

/* ================= GLOBAL STYLES ================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--text-dark);
  background: var(--bg-gradient);
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* Blueprint Architecture Pattern overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: 
    radial-gradient(circle at 10% 20%, rgba(255, 117, 31, 0.04), transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(0, 74, 173, 0.06), transparent 50%),
    linear-gradient(rgba(226, 232, 240, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 232, 240, 0.1) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
}

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

ul {
  list-style: none;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-orange-soft);
}

/* ================= REUSABLE UTILITIES ================= */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary-blue-deep);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--accent-orange);
  border-radius: 2px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent-orange);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(255, 117, 31, 0.25);
}

.btn-primary:hover {
  background: #e05e0f;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 117, 31, 0.35);
}

.btn-secondary {
  background: var(--primary-blue);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(0, 74, 173, 0.2);
}

.btn-secondary:hover {
  background: var(--primary-blue-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 74, 173, 0.3);
}

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

.btn-outline:hover {
  background: var(--primary-blue);
  color: var(--white);
}

/* Reusable Cards */
.card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border-light);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-4px);
}

/* ================= HEADER / NAVIGATION ================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.header-scrolled {
  /* Retain glassmorphism properties with slight height reductions */
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 110px;
  transition: var(--transition);
}

.header-scrolled .nav-container {
  height: 78px;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 80px;
  width: auto;
  transition: var(--transition);
}

.header-scrolled .logo img {
  height: 58px;
}

.logo-text {
  display: none; /* Hidden because the new logo image already contains the company name */
}

.logo-text span {
  font-size: 0.75rem;
  color: var(--accent-orange);
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
}

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

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

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

.nav-cta {
  display: flex;
  align-items: center;
}

/* Mobile Menu Button */
.hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger svg {
  stroke: var(--primary-blue-deep);
}

/* ================= FOOTER ================= */
footer {
  background: var(--primary-blue-deep);
  color: var(--white);
  padding: 60px 0 20px;
  margin-top: auto;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-orange), var(--primary-blue-light));
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo-shell {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo-shell img {
  height: 76px;
  filter: brightness(0) invert(1);
}

.footer-logo-text {
  display: none; /* Hidden because the logo image itself already contains the text */
}

.footer-about p {
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent-orange);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 0.9rem;
}

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

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: #cbd5e1;
  font-size: 0.9rem;
}

.footer-contact svg {
  flex-shrink: 0;
  stroke: var(--accent-orange-soft);
  margin-top: 3px;
}

.footer-contact a:hover {
  color: var(--accent-orange-soft);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.credit strong {
  color: var(--white);
}

/* ================= COMPONENT SPECIFICS ================= */

/* Scroll Reveal animation triggers */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Quick Connect Shared Box */
.quick-connect-card {
  padding: 40px;
  background: var(--white);
}

.connect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.connect-link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 10px;
  background: var(--bg-light);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
  transition: var(--transition);
}

.connect-link-card:hover {
  background: var(--white);
  border-color: var(--accent-orange-soft);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.connect-link-card .icon-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--white);
  color: var(--primary-blue);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.connect-link-card.whatsapp .icon-wrapper {
  color: #25d366;
}

.connect-link-card.call .icon-wrapper {
  color: var(--primary-blue);
}

.connect-link-card.email .icon-wrapper {
  color: var(--accent-orange);
}

.connect-link-card.location .icon-wrapper {
  color: #ef4444;
}

.connect-info strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.connect-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.connect-arrow {
  margin-left: auto;
  color: var(--border-color);
  transition: var(--transition);
}

.connect-link-card:hover .connect-arrow {
  color: var(--accent-orange);
  transform: translateX(4px);
}

/* Modal Window styles */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.open {
  opacity: 1;
  pointer-events: all;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
}

.modal-container {
  position: relative;
  background: var(--white);
  width: 100%;
  max-width: 700px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  z-index: 2001;
}

.modal.open .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  color: var(--text-dark);
  transition: var(--transition);
  z-index: 10;
}

.modal-close:hover {
  background: var(--accent-orange);
  color: var(--white);
}

.modal-body {
  padding: 32px;
  max-height: 85vh;
  overflow-y: auto;
}

/* ================= RESPONSIVE MEDIA QUERIES ================= */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
  .section-header h2 {
    font-size: 1.85rem;
  }

  /* Sticky navbar tweaks */
  .nav-cta {
    display: none; /* Hide in tablet/mobile navigation */
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 40px;
    gap: 24px;
    box-shadow: -10px 0 30px rgba(15, 23, 42, 0.1);
    transition: var(--transition);
    z-index: 999;
  }

  .nav-menu.open {
    right: 0;
  }

  .hamburger {
    display: block;
  }

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

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .connect-grid {
    grid-template-columns: 1fr;
  }
}

/* Floating WhatsApp Button styling */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
  z-index: 9999;
  transition: all 0.3s ease;
  animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
  background-color: #20ba59;
  color: #fff;
}

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

@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}
