﻿/* --- GLOBALS & VARIABLES --- */
:root {
  /* Branding Colors */
  --color-primary: #0A2540;   /* Deep Blue -> trust, professionalism */
  --color-secondary: #3A86FF; /* Bright Blue -> action, modern feel */
  --color-accent: #FF7A00;    /* Orange -> call-to-action buttons */
  
  /* Backgrounds & Typography */
  --color-bg-white: #FFFFFF;
  --color-bg-light: #F5F7FA;
  --color-text-main: #333333;
  --color-text-light: #666666;
  --color-text-white: #FFFFFF;

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --max-width: 1200px;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  --box-shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* --- RESET --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-bg-light);
  line-height: 1.6;
}

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

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

a:hover {
  color: var(--color-primary);
}

ul {
  list-style: none;
}

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

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }

p {
  margin-bottom: 1rem;
}

/* --- LAYOUT UTILITIES --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 5%;
}

.section {
  padding: 5rem 0;
  background-color: var(--color-bg-white);
}

.section-bg-light {
  background-color: var(--color-bg-light);
}

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

.section-bg-primary h2, 
.section-bg-primary h3, 
.section-bg-primary p {
  color: var(--color-text-white);
}

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

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* flex layout */
.flex {
  display: flex;
}
.flex-column {
  flex-direction: column;
}
.align-center {
  align-items: center;
}
.justify-between {
  justify-content: space-between;
}
.justify-center {
  justify-content: center;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  text-align: center;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

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

.btn-primary:hover {
  background-color: #e66a00;
  color: var(--color-text-white);
  box-shadow: 0 0 15px rgba(255, 122, 0, 0.6);
}

.btn-primary:active {
  transform: scale(0.96);
}

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

.btn-secondary:hover {
  background-color: var(--color-accent);
  color: var(--color-text-white);
  box-shadow: 0 0 15px rgba(255, 122, 0, 0.4);
}

.btn-secondary:active {
  transform: scale(0.96);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* --- HEADER / NAVIGATION --- */
header {
  background-color: var(--color-bg-white);
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--color-text-main);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--color-secondary);
}

.nav-item-dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--color-bg-white);
  box-shadow: var(--box-shadow);
  border-radius: var(--border-radius);
  min-width: 250px;
  z-index: 1000;
}

.nav-item-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  display: block;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #eee;
}

.dropdown-menu li a:last-child {
  border-bottom: none;
}

.dropdown-menu li a:hover {
  background-color: var(--color-bg-light);
  color: var(--color-secondary);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--color-primary);
}

/* --- HERO SECTION --- */
.hero {
  padding: 6rem 0;
  background: linear-gradient(135deg, rgba(10,37,64,0.95) 0%, rgba(58,134,255,0.85) 100%), url('https://images.unsplash.com/photo-1552664730-d307ca884978?q=80&w=2070&auto=format&fit=crop') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  color: var(--color-text-white);
  text-align: center;
}

.hero h1 {
  color: var(--color-text-white);
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* --- SERVICES OVERVIEW --- */
.service-card {
  background-color: var(--color-bg-white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-align: center;
  border-top: 4px solid var(--color-secondary);
}

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

.service-icon {
  font-size: 3rem;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

.service-card h3 {
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.service-card p {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

/* --- HOW IT WORKS / TIMELINE --- */
.step-card {
  text-align: center;
  padding: 2rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: var(--color-secondary);
  color: white;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}

/* --- TESTIMONIALS / SOCIAL PROOF --- */
.testimonial-card {
  background-color: var(--color-bg-white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  position: relative;
}

.testimonial-stars {
  color: #FFD700;
  margin-bottom: 1rem;
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--color-primary);
}

/* --- FORMS --- */
.contact-form {
  background-color: var(--color-bg-white);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

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

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

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(58,134,255,0.2);
}

/* --- FAQ ACCORDION --- */
.faq-item {
  margin-bottom: 1rem;
  border: 1px solid #eee;
  border-radius: var(--border-radius);
}

.faq-question {
  padding: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  background-color: var(--color-bg-white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: var(--border-radius);
}

.faq-question:hover {
  color: var(--color-secondary);
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  display: none;
  background-color: var(--color-bg-white);
  border-bottom-left-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
}
.faq-answer.active {
  display: block;
}

/* --- FOOTER --- */
footer {
  background-color: var(--color-primary);
  color: var(--color-text-white);
  padding: 4rem 0 2rem;
}

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

.footer-col h4 {
  color: var(--color-text-white);
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: #ccc;
  display: block;
  margin-bottom: 0.5rem;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #ccc;
  font-size: 0.9rem;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero-btns { flex-direction: column; }
  
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-bg-white);
    padding: 1rem 0;
    box-shadow: var(--box-shadow);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links a {
    padding: 0.5rem 1rem;
    width: 100%;
    text-align: center;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    text-align: center;
  }
  
  .mobile-menu-btn {
    display: block;
  }

  /* Fixed mobile CTA bottom bar */
  .mobile-cta-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-bg-white);
    padding: 1rem;
    box-shadow: 0 -4px 6px rgba(0,0,0,0.1);
    z-index: 999;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
  }

  .mobile-cta-sticky .btn {
    flex: 1;
    font-size: 0.9rem;
    padding: 0.75rem 0.5rem;
  }

  body {
    padding-bottom: 80px; /* space for sticky cta */
  }
}

@media (min-width: 769px) {
  .mobile-cta-sticky {
    display: none;
  }
}

/* Page Headers */
.page-header {
  background-color: var(--color-primary);
  color: var(--color-text-white);
  padding: 4rem 0;
  text-align: center;
}
.page-header h1 {
  color: var(--color-text-white);
  margin-bottom: 1rem;
}

/* --- 2026 MODERN UPGRADES --- */

/* Bento Grid */
.bento-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(200px, auto);
}

.bento-item {
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--color-bg-white);
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.bento-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.bento-large {
  grid-column: span 12;
}

@media (min-width: 768px) {
  .bento-large { grid-column: span 8; }
  .bento-medium { grid-column: span 4; }
  .bento-half { grid-column: span 6; }
}

/* Glassmorphism */
.glass-panel {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

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

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

.animate-on-scroll {
  opacity: 0;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Stagger delays for multiple animated elements */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }

/* WhatsApp Widget */
.whatsapp-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-widget:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 14px rgba(0,0,0,0.4);
  color: white;
}

.whatsapp-widget svg {
  width: 35px;
  height: 35px;
  fill: currentColor;
}
