/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
  --primary-color: #1e3a5f;
  --secondary-color: #f8f9fa;
  --accent-color: #0ea5e9;
  --text-dark: #333333;
  --text-muted: #6c757d;
  --bg-light: #f8f9fa;
  --border-color: #e9ecef;
  --font-main: 'Inter', sans-serif;
  --golden-color: #f59e0b;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #fff;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--accent-color);
  transition: all 0.3s ease;
}

a:hover {
  text-decoration: underline;
}

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

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.text-primary { color: var(--accent-color) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-white { color: #fff !important; }
.text-center { text-align: center !important; }
.font-weight-bold { font-weight: 700 !important; }
.text-uppercase { text-transform: uppercase !important; }

.bg-light { background-color: var(--bg-light) !important; }
.bg-white { background-color: #fff !important; }
.bg-gold { background-color: var(--golden-color) !important; }

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

/* Margin and Padding Utilities */
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-5 { padding-left: 3rem !important; padding-right: 3rem !important; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mr-2 { margin-right: 0.5rem !important; }
.mr-3 { margin-right: 1rem !important; }
.ml-3 { margin-left: 1rem !important; }
.ml-auto { margin-left: auto !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }

.border { border: 1px solid var(--border-color) !important; }
.border-bottom { border-bottom: 1px solid var(--border-color) !important; }
.border-top-0 { border-top: 0 !important; }
.rounded { border-radius: 0.5rem !important; }
.rounded-circle { border-radius: 50% !important; }
.rounded-top { border-radius: 0.5rem 0.5rem 0 0 !important; }
.rounded-bottom { border-radius: 0 0 0.5rem 0.5rem !important; }
.shadow-sm { box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important; }
.rounded-pill { border-radius: 50rem !important; }

.d-flex { display: flex !important; }
.d-block { display: block !important; }
.align-items-center { align-items: center !important; }
.justify-content-between { justify-content: space-between !important; }
.flex-column { flex-direction: column !important; }

.position-absolute { position: absolute !important; }
.top-0 { top: 0 !important; }
.right-0 { right: 0 !important; }
.w-100 { width: 100% !important; }

/* Grid specific fixes */
.row { display: flex; flex-wrap: wrap; margin-right: -15px; margin-left: -15px; }
.col-md-3, .col-md-5, .col-md-7, .col-lg-5, .col-lg-6, .col-lg-8 { padding-right: 15px; padding-left: 15px; width: 100%; }

@media (min-width: 768px) {
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
    .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .flex-md-row-reverse { flex-direction: row-reverse !important; }
}
@media (min-width: 992px) {
    .col-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
    .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .offset-lg-1 { margin-left: 8.333333%; }
    .mx-auto { margin-left: auto !important; margin-right: auto !important; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.3rem;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  color: #fff;
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

.btn-primary:hover {
  background-color: #0284c7;
  border-color: #0284c7;
  color: #fff;
  text-decoration: none;
}

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

.btn-outline-primary:hover {
  color: #fff;
  background-color: var(--accent-color);
  text-decoration: none;
}

.btn-outline-light {
  color: #fff;
  border-color: #fff;
  background-color: transparent;
}

.btn-outline-light:hover {
  color: var(--primary-color);
  background-color: #fff;
  text-decoration: none;
}

.btn-light {
  color: var(--primary-color);
  background-color: #fff;
  border-color: #fff;
}

.btn-light:hover {
  background-color: #f1f5f9;
  text-decoration: none;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
}

/* ==========================================================================
   Header & Nav
   ========================================================================== */
.usp-marquee {
  background-color: var(--primary-color);
  color: #fff;
  font-size: 0.85rem;
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: inline-block;
  animation: marquee 30s linear infinite;
}

.marquee-content span {
  display: inline-block;
}

.marquee-content .dot {
  margin: 0 20px;
  opacity: 0.5;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.main-header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-color);
  font-size: 1.3rem;
  text-decoration: none;
}

.brand-logo:hover {
  text-decoration: none;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

.main-nav a {
  color: var(--text-dark);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.main-nav a:hover {
  color: var(--accent-color);
  text-decoration: none;
}

.burger-menu {
  display: none;
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  background-size: cover;
  background-position: center;
  padding: 100px 0;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.9;
}

/* ==========================================================================
   Cards & Grids
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.feature-card {
  background: #fff;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-img-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background-color: var(--bg-light);
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-popular {
  background-color: var(--golden-color);
  color: #000;
  padding: 5px 10px;
  font-size: 0.8rem;
  z-index: 10;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.why-card {
  transition: all 0.3s ease;
}

.why-card:hover { border-bottom: 4px solid var(--accent-color); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border-left: 4px solid var(--accent-color);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
  background-color: var(--primary-color);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 20px;
}

.main-footer h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

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

.footer-logo {
  color: #fff;
  margin-bottom: 15px;
}

.main-footer ul {
  list-style: none;
}

.main-footer ul li {
  margin-bottom: 10px;
}

.main-footer a {
  color: rgba(255,255,255,0.8);
}

.main-footer a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
}

/* ==========================================================================
   Forms & Contact
   ========================================================================== */
.form-control {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  color: #495057;
  background-color: #fff;
  border-color: var(--accent-color);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.25);
}

textarea.form-control { resize: vertical; }

.alert {
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
}

.alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

/* ==========================================================================
   Cookie Banner
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  padding: 15px 20px;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.5s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-content p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* ==========================================================================
   Placeholder Animations
   ========================================================================== */
.placeholder-img {
  background-color: #e2e8f0;
  opacity: 0.8;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Display
   ========================================================================== */
@media (max-width: 991px) {
  .hero-title { font-size: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
}

@media (max-width: 768px) {
  .burger-menu { display: block; }
  .hidden-mobile { display: none !important; }
  
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  }
  
  .main-nav.active { display: block; }
  .main-nav ul { flex-direction: column; gap: 15px; }
  
  .hero-title { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .cookie-content { flex-direction: column; text-align: center; }
  
  .stats-grid .stat-card { margin-bottom: 20px; }
}
