@import url("header.css");
@import url("mobile-nav.css");
@import url("footer.css");
@import url("page-hero.css");
@import url("home.css");
@import url("about.css");
@import url("service.css");
@import url("contact.css");
@import url("quote.css");

:root {
  /* 1. Base Colors (Edit these to update the entire site theme) */
  --radius: 0.75rem;
  --bg-white: #ffffff;
  --text-white: #ffffff;
  --background: var(--bg-white);
  
  --primary: #041f3f;
  --secondary: #008954;
  --accent: #fa6e1d;

  /* 2. Derived Shades (Automatically calculated in-browser from base colors) */
  
  /* Derived from --primary */
  --foreground: color-mix(in srgb, var(--primary) 60%, #000000);             /* Very dark navy text (#031222 equivalent) */
  --primary-foreground: color-mix(in srgb, var(--primary) 4%, var(--text-white));     /* Light blue tint (#f8fafd equivalent) */
  --primary-glow: color-mix(in srgb, var(--primary) 80%, var(--bg-white));           /* Lighter glow navy (#173c70 equivalent) */
  --background-dark: color-mix(in srgb, var(--primary) 25%, #000000);        /* Deep navy dark bg (#030d1e equivalent) */
  --border-dark: color-mix(in srgb, var(--primary) 30%, #1e293b);            /* Dark navy border (#1c2f46 equivalent) */
  
  /* Derived from --secondary */
  --secondary-soft: color-mix(in srgb, var(--secondary) 15%, var(--bg-white));       /* Soft green bg (#d9f7e5 equivalent) */
  --secondary-dark: color-mix(in srgb, var(--secondary) 80%, #000000);       /* Rich dark green (#00683d equivalent) */

  /* Derived from --foreground */
  --muted-foreground: color-mix(in srgb, var(--foreground) 65%, var(--text-white));    /* Slate grey text (#5c646f equivalent) */
  
  /* Structure Mappings */
  --card: var(--background);
  --card-foreground: var(--foreground);
  --popover: var(--background);
  --popover-foreground: var(--foreground);
  
  --secondary-foreground: var(--primary-foreground);
  --accent-foreground: var(--primary-foreground);
  
  --muted: color-mix(in srgb, var(--primary) 4%, var(--bg-white));                  /* Soft grey bg (#f3f5f8 equivalent) */
  
  --destructive: #e62c2c;
  --destructive-foreground: var(--primary-foreground);
  
  --border: color-mix(in srgb, var(--primary) 6%, var(--bg-white));                  /* Light grey-blue border (#e0e5eb equivalent) */
  --input: var(--border);
  --ring: var(--primary);

  /* Original Gradients */
  --gradient-hero: linear-gradient(135deg, color-mix(in srgb, var(--primary) 15%, #000000) 0%, color-mix(in srgb, var(--primary) 60%, #000000) 55%, color-mix(in srgb, var(--primary) 50%, var(--secondary)) 100%);
  --gradient-hero-overlay: linear-gradient(to right, var(--primary) 25%, color-mix(in srgb, var(--primary) 85%, transparent) 60%, color-mix(in srgb, var(--primary) 40%, transparent) 100%);
  --gradient-emerald: linear-gradient(135deg, color-mix(in srgb, var(--secondary) 90%, #000000), color-mix(in srgb, var(--secondary) 80%, var(--text-white)));
  --gradient-soft: linear-gradient(180deg, color-mix(in srgb, var(--primary) 2%, var(--bg-white)), color-mix(in srgb, var(--primary) 6%, var(--bg-white)));
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-glow));
  --gradient-accent-glow: linear-gradient(135deg, var(--primary), var(--primary-glow));

  /* Glows and Smooth Transitions */
  --shadow-glow: 0 0 50px rgba(0, 137, 84, 0.2);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Glassmorphism Settings */
  --glass-bg: color-mix(in srgb, var(--bg-white) 75%, transparent);
  --glass-bg-dark: rgba(10, 15, 29, 0.8);
  --glass-border: color-mix(in srgb, var(--bg-white) 40%, transparent);
  --glass-border-dark: color-mix(in srgb, var(--bg-white) 8%, transparent);
  --glass-blur: 16px;

  /* 2. Typography Rules */
  --font-family-headings: 'Plus Jakarta Sans', sans-serif;
  --font-family-body: 'Inter', sans-serif;
  
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

  /* Responsive Font Sizing via fluid clamp() formulas */
  --font-size-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --font-size-sm: clamp(0.875rem, 0.8rem + 0.3vw, 1rem);
  --font-size-base: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  --font-size-lg: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  --font-size-xl: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);
  --font-size-2xl: clamp(1.5rem, 1.35rem + 0.6vw, 2rem);
  --font-size-3xl: clamp(2rem, 1.75rem + 1vw, 2.75rem);
  --font-size-4xl: clamp(2.5rem, 2.1rem + 1.6vw, 3.75rem);
  
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* 3. Spacing System */
  --space-xxs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 5rem;
  --section-padding: clamp(3rem, 2rem + 6vw, 6.5rem) 0;

  /* 4. Rounded Radii & Drop Shadows */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-circle: 50%;
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(8, 30, 68, 0.08);
  --shadow-lg: 0 12px 32px rgba(8, 30, 68, 0.12);
  --shadow-xl: 0 24px 48px rgba(8, 30, 68, 0.18);
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.06);
  --shadow-accent-glow: 0 8px 24px color-mix(in srgb, var(--primary) 25%, transparent);

  /* 5. Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base HTML Overrides */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font-family-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--foreground);
  background-color: var(--background);
  overflow-x: clip;
}

body.overflow-hidden {
  overflow: hidden;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: none;
}

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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  border: none;
  background: none;
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-headings);
  font-weight: var(--weight-bold);
  line-height: var(--line-height-tight);
  color: var(--primary);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }

p {
  color: var(--muted-foreground);
  line-height: var(--line-height-relaxed);
}

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

.section-tag {
  font-size: var(--font-size-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--secondary);
  display: inline-block;
  margin-bottom: var(--space-xs);
}

.section-title {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: var(--font-size-lg);
  max-width: 650px;
  margin: 0 auto var(--space-xl) auto;
}

/* Structural Layout Containers */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Premium Button System */
/* Premium Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  border-radius: 9999px; /* Force pill shape matching Tailwind rounded-full exactly */
  font-size: var(--font-size-sm);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: transform var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
  line-height: 1;
}

/* Button size variations matching Tailwind exactly */
.btn-sm {
  padding: 0.625rem 1.25rem; /* px-5 py-2.5 */
}

.btn-md {
  padding: 0.75rem 1.25rem; /* px-5 py-3 */
}

.btn-lg {
  padding: 0.875rem 1.5rem; /* px-6 py-3.5 */
}

/* Fallback to md padding if no size class is specified */
.btn:not(.btn-sm):not(.btn-lg) {
  padding: 0.75rem 1.25rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 4px 12px rgba(8, 30, 68, 0.08); /* shadow-elegant */
}

.btn-primary:hover {
  background-color: var(--primary-glow);
  box-shadow: 0 12px 32px rgba(8, 30, 68, 0.16); /* shadow-elevated */
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 4px 12px rgba(8, 30, 68, 0.08);
}

.btn-secondary:hover {
  background-color: var(--primary-glow);
  box-shadow: 0 12px 32px rgba(8, 30, 68, 0.16);
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: translateY(0);
}

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

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

.btn-ghost-light {
  border: 1px solid color-mix(in srgb, var(--text-white) 30%, transparent);
  color: var(--primary-foreground);
  background: color-mix(in srgb, var(--bg-white) 5%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-ghost-light:hover {
  background: color-mix(in srgb, var(--bg-white) 12%, transparent);
  border-color: color-mix(in srgb, var(--text-white) 50%, transparent);
  transform: translateY(-1px);
}

.btn-ghost-light:active {
  transform: translateY(0);
}

/* Off-white Button inside dark contexts */
.btn-primary-light {
  background-color: var(--primary-foreground);
  color: var(--primary);
  box-shadow: 0 12px 32px rgba(8, 30, 68, 0.12); /* shadow-elevated */
  border: 1px solid transparent;
}

.btn-primary-light:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 36px rgba(8, 30, 68, 0.16);
  background-color: color-mix(in srgb, var(--bg-white) 95%, transparent);
}

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

/* Premium Emerald Green Button with Outer Glow */
.btn-emerald {
  background: var(--gradient-emerald);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow);
  border: none;
}

.btn-emerald:hover {
  transform: scale(1.02);
  box-shadow: 0 0 60px oklch(55% 0.14 160 / 0.3);
}

.btn-emerald:active {
  transform: scale(0.98);
}

/* Glassmorphism helpers */
.card-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
}

.card-glass-dark {
  background: var(--glass-bg-dark);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border-dark);
  box-shadow: var(--shadow-glass);
}

/* Contextual Styling Framework */
.dark-context {
  color: var(--primary-foreground);
}

.dark-context h1, .dark-context h2, .dark-context h3, .dark-context h4 {
  color: var(--primary-foreground);
}

.dark-context p {
  color: rgba(248, 250, 252, 0.75);
}

/* Scroll Animations (Handled natively by AOS) */

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  color: var(--text-white);
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.whatsapp-float:hover {
  transform: scale(1.08) rotate(8deg);
  background-color: #20ba5a;
  color: var(--text-white);
}

.whatsapp-float i {
  font-size: 28px;
}

/* Fail-safe clickability for AOS animated elements */
[data-aos] {
  pointer-events: auto !important;
}
