/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
  --primary: #0B2E59;
  --accent: #C9A227;
  --accent-hover: #b08d1f;
  --bg-light: #F8F9FA;
  --bg-white: #FFFFFF;
  --text-dark: #1A1A1A;
  --text-gray: #4A5568;
  --text-light: #F8F9FA;
  --shadow-sm: 0 2px 4px rgba(11, 46, 89, 0.05);
  --shadow-md: 0 8px 24px rgba(11, 46, 89, 0.08);
  --shadow-lg: 0 16px 48px rgba(11, 46, 89, 0.12);
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

[data-theme="dark"] {
  --bg-light: #0F172A;
  --bg-white: #1E293B;
  --text-dark: #F1F5F9;
  --text-gray: #CBD5E1;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s, color 0.3s;
}

/* =========================================
   2. TYPOGRAPHY & UTILITIES
   ========================================= */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; color: var(--primary); }
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3 { color: var(--bg-white); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }
p { color: var(--text-gray); margin-bottom: 1rem; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }

/* =========================================
   3. COMPONENTS
   ========================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.875rem 1.75rem; border-radius: 50px; font-weight: 600; font-size: 1rem;
  cursor: pointer; border: 2px solid transparent; transition: var(--transition);
}
.btn-primary { background: var(--accent); color: var(--primary); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: var(--primary); }
.btn-white { background: var(--bg-white); color: var(--primary); }
.btn-white:hover { background: var(--bg-light); transform: translateY(-2px); }

.card {
  background: var(--bg-white); border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow-sm); transition: var(--transition); border: 1px solid rgba(11, 46, 89, 0.05);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--accent); }

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
[data-theme="dark"] .glass { background: rgba(30, 41, 59, 0.7); border-color: rgba(255, 255, 255, 0.1); }

/* =========================================
   4. HEADER & NAVIGATION
   ========================================= */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  transition: var(--transition); padding: 1rem 0;
}
.header.scrolled { background: var(--bg-white); box-shadow: var(--shadow-md); padding: 0.75rem 0; }
[data-theme="dark"] .header.scrolled { background: var(--bg-white); } /* Keep light header for contrast or adjust */
.nav-container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 0.5rem; }
.logo span { color: var(--accent); }
.nav-menu { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-link { font-weight: 500; color: var(--text-dark); position: relative; }
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--accent); transition: var(--transition);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--primary); }
.theme-toggle { background: none; border: none; cursor: pointer; font-size: 1.25rem; color: var(--primary); }

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero {
  padding: 10rem 0 6rem; background: linear-gradient(135deg, var(--primary) 0%, #1a4a8a 100%);
  color: var(--text-light); position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.15) 0%, transparent 70%); border-radius: 50%;
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero h1 { color: var(--text-light); margin-bottom: 1.5rem; }
.hero p { color: rgba(255, 255, 255, 0.85); font-size: 1.125rem; margin-bottom: 2rem; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-contact {
  margin-top: 2rem; display: flex; align-items: center; gap: 0.75rem;
  font-size: 1.25rem; font-weight: 600; color: var(--accent);
}

/* =========================================
   6. STATS COUNTER
   ========================================= */
.stats { padding: 3rem 0; background: var(--bg-white); margin-top: -3rem; position: relative; z-index: 10; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-item h3 { font-size: 2.5rem; color: var(--accent); margin-bottom: 0.5rem; }
.stat-item p { font-weight: 600; color: var(--primary); margin: 0; }

/* =========================================
   7. SERVICES & INDUSTRIES GRID
   ========================================= */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.service-icon {
  width: 60px; height: 60px; background: rgba(201, 162, 39, 0.1); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; color: var(--accent);
}
.service-icon svg { width: 32px; height: 32px; }

/* =========================================
   8. FORMS
   ========================================= */
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--text-dark); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 0.875rem 1rem; border: 1px solid #E2E8F0; border-radius: 8px;
  font-family: inherit; font-size: 1rem; background: var(--bg-white); color: var(--text-dark);
  transition: var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
}
.form-error { color: #E53E3E; font-size: 0.875rem; margin-top: 0.25rem; display: none; }
.form-input.invalid { border-color: #E53E3E; }
.form-input.invalid + .form-error { display: block; }

/* =========================================
   9. FOOTER
   ========================================= */
.footer { background: var(--primary); color: var(--text-light); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; margin-bottom: 3rem; }
.footer h4 { color: var(--accent); margin-bottom: 1.5rem; font-size: 1.125rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: rgba(255, 255, 255, 0.7); }
.footer-links a:hover { color: var(--accent); padding-left: 5px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 1.5rem 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.credit-link { color: rgba(255, 255, 255, 0.7); font-weight: 500; transition: var(--transition); }
.credit-link:hover { color: var(--accent); }

/* =========================================
   10. FLOATING ELEMENTS
   ========================================= */
.float-btn {
  position: fixed; bottom: 2rem; width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: white;
  box-shadow: var(--shadow-lg); z-index: 999; transition: var(--transition); border: none; cursor: pointer;
}
.float-btn:hover { transform: scale(1.1); }
.float-whatsapp { right: 2rem; background: #25D366; }
.float-call { right: 6rem; background: var(--accent); color: var(--primary); }
.float-top { right: 2rem; bottom: 6rem; background: var(--primary); opacity: 0; pointer-events: none; }
.float-top.visible { opacity: 1; pointer-events: all; }

/* Scroll Progress */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--accent); z-index: 1001; width: 0%; }/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
  --primary: #0B2E59;
  --accent: #C9A227;
  --accent-hover: #b08d1f;
  --bg-light: #F8F9FA;
  --bg-white: #FFFFFF;
  --text-dark: #1A1A1A;
  --text-gray: #4A5568;
  --text-light: #F8F9FA;
  --shadow-sm: 0 2px 4px rgba(11, 46, 89, 0.05);
  --shadow-md: 0 8px 24px rgba(11, 46, 89, 0.08);
  --shadow-lg: 0 16px 48px rgba(11, 46, 89, 0.12);
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

[data-theme="dark"] {
  --bg-light: #0F172A;
  --bg-white: #1E293B;
  --text-dark: #F1F5F9;
  --text-gray: #CBD5E1;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s, color 0.3s;
}

/* =========================================
   2. TYPOGRAPHY & UTILITIES
   ========================================= */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; color: var(--primary); }
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3 { color: var(--bg-white); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }
p { color: var(--text-gray); margin-bottom: 1rem; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }

/* =========================================
   3. COMPONENTS
   ========================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.875rem 1.75rem; border-radius: 50px; font-weight: 600; font-size: 1rem;
  cursor: pointer; border: 2px solid transparent; transition: var(--transition);
}
.btn-primary { background: var(--accent); color: var(--primary); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: var(--primary); }
.btn-white { background: var(--bg-white); color: var(--primary); }
.btn-white:hover { background: var(--bg-light); transform: translateY(-2px); }

.card {
  background: var(--bg-white); border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow-sm); transition: var(--transition); border: 1px solid rgba(11, 46, 89, 0.05);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--accent); }

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
[data-theme="dark"] .glass { background: rgba(30, 41, 59, 0.7); border-color: rgba(255, 255, 255, 0.1); }

/* =========================================
   4. HEADER & NAVIGATION
   ========================================= */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  transition: var(--transition); padding: 1rem 0;
}
.header.scrolled { background: var(--bg-white); box-shadow: var(--shadow-md); padding: 0.75rem 0; }
[data-theme="dark"] .header.scrolled { background: var(--bg-white); } /* Keep light header for contrast or adjust */
.nav-container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 0.5rem; }
.logo span { color: var(--accent); }
.nav-menu { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-link { font-weight: 500; color: var(--text-dark); position: relative; }
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--accent); transition: var(--transition);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--primary); }
.theme-toggle { background: none; border: none; cursor: pointer; font-size: 1.25rem; color: var(--primary); }

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero {
  padding: 10rem 0 6rem; background: linear-gradient(135deg, var(--primary) 0%, #1a4a8a 100%);
  color: var(--text-light); position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.15) 0%, transparent 70%); border-radius: 50%;
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero h1 { color: var(--text-light); margin-bottom: 1.5rem; }
.hero p { color: rgba(255, 255, 255, 0.85); font-size: 1.125rem; margin-bottom: 2rem; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-contact {
  margin-top: 2rem; display: flex; align-items: center; gap: 0.75rem;
  font-size: 1.25rem; font-weight: 600; color: var(--accent);
}

/* =========================================
   6. STATS COUNTER
   ========================================= */
.stats { padding: 3rem 0; background: var(--bg-white); margin-top: -3rem; position: relative; z-index: 10; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-item h3 { font-size: 2.5rem; color: var(--accent); margin-bottom: 0.5rem; }
.stat-item p { font-weight: 600; color: var(--primary); margin: 0; }

/* =========================================
   7. SERVICES & INDUSTRIES GRID
   ========================================= */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.service-icon {
  width: 60px; height: 60px; background: rgba(201, 162, 39, 0.1); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; color: var(--accent);
}
.service-icon svg { width: 32px; height: 32px; }

/* =========================================
   8. FORMS
   ========================================= */
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--text-dark); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 0.875rem 1rem; border: 1px solid #E2E8F0; border-radius: 8px;
  font-family: inherit; font-size: 1rem; background: var(--bg-white); color: var(--text-dark);
  transition: var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
}
.form-error { color: #E53E3E; font-size: 0.875rem; margin-top: 0.25rem; display: none; }
.form-input.invalid { border-color: #E53E3E; }
.form-input.invalid + .form-error { display: block; }

/* =========================================
   9. FOOTER
   ========================================= */
.footer { background: var(--primary); color: var(--text-light); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; margin-bottom: 3rem; }
.footer h4 { color: var(--accent); margin-bottom: 1.5rem; font-size: 1.125rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: rgba(255, 255, 255, 0.7); }
.footer-links a:hover { color: var(--accent); padding-left: 5px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 1.5rem 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.credit-link { color: rgba(255, 255, 255, 0.7); font-weight: 500; transition: var(--transition); }
.credit-link:hover { color: var(--accent); }

/* =========================================
   10. FLOATING ELEMENTS
   ========================================= */
.float-btn {
  position: fixed; bottom: 2rem; width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: white;
  box-shadow: var(--shadow-lg); z-index: 999; transition: var(--transition); border: none; cursor: pointer;
}
.float-btn:hover { transform: scale(1.1); }
.float-whatsapp { right: 2rem; background: #25D366; }
.float-call { right: 6rem; background: var(--accent); color: var(--primary); }
.float-top { right: 2rem; bottom: 6rem; background: var(--primary); opacity: 0; pointer-events: none; }
.float-top.visible { opacity: 1; pointer-events: all; }

/* Scroll Progress */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--accent); z-index: 1001; width: 0%; }