/* =========================================
   Kerala Automations - Industrial Luxury Theme
   Navy #0A1628 + Gold #D4A017
========================================= */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Source+Serif+4:ital,wght@0,300..900;1,300..900&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --primary: #0A1628;
  --primary-light: #152238;
  --accent: #D4A017;
  --accent-light: #EBBF47;
  --accent-dark: #B08210;
  --bg-main: #F5F5F0;
  --bg-alt: #EAEAE4;
  --bg-white: #FFFFFF;
  --text-main: #1A212E;
  --text-muted: #6A7282;
  --text-light: #A0ABC0;
  --border: rgba(0,0,0,0.08);
  --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 40px -10px rgba(0,0,0,0.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 100%; }

body {
  font-family: 'Source Serif 4', 'Georgia', serif;
  color: var(--text-main);
  background: var(--bg-main);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Bebas Neue', sans-serif;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

a { text-decoration: none; color: var(--accent); transition: var(--transition); }
a:hover { color: var(--accent-dark); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
p { margin-bottom: 1.5rem; font-size: 1.1rem; }

/* Layout */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.text-center { text-align: center; }
.section-padding { padding: 5rem 0; }
.bg-dark { background: var(--primary); color: var(--bg-main); }
.bg-gray { background: var(--bg-alt); }

.section-label {
  color: var(--accent);
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.15em;
  font-size: 1.15rem;
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(2.5rem, 4vw + 1rem, 4rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 3rem;
  color: var(--text-muted);
}

/* Grid Texture Overlay */
.texture-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 30px 30px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 1rem 2.2rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary { background: var(--accent); color: var(--primary); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-light); color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: var(--primary); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; }

/* Navigation */
.navbar {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  padding: 0;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}

.navbar .container {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1rem; padding-bottom: 1rem;
}

.navbar.scrolled { box-shadow: var(--shadow-lg); }

.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  color: #fff;
  display: flex; align-items: center; gap: 0.4rem;
  letter-spacing: 0.03em;
}
.logo span { color: var(--accent); }
.logo:hover { color: #fff; }

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

.nav-links li a {
  color: rgba(255,255,255,0.75);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  position: relative;
  padding: 0.25rem 0;
}

.nav-links li a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--accent);
  transition: var(--transition);
}

.nav-links li a:hover { color: #fff; }
.nav-links li a:hover::after { width: 100%; }

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

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--primary); min-width: 240px;
  border-top: 2px solid var(--accent);
  box-shadow: var(--shadow-lg); padding: 0.5rem 0;
  z-index: 100;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li a { display: block; padding: 0.7rem 1.5rem; font-size: 1rem; }
.dropdown-menu li a::after { display: none; }
.dropdown-menu li a:hover { background: rgba(255,255,255,0.05); color: var(--accent); }

/* Hero */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  background: var(--primary);
  color: #fff; padding-top: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #1a2d4a 100%);
  z-index: 0;
}

.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero-content { position: relative; z-index: 1; max-width: 750px; }

.hero-label {
  font-family: 'Bebas Neue', sans-serif;
  color: var(--accent);
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  display: block;
  animation: fadeUp 0.8s ease both;
}

.hero-title {
  font-size: clamp(3.5rem, 6vw + 1rem, 6rem);
  color: #fff;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s ease both 0.15s;
}

.hero-title .highlight { color: var(--accent); }

.hero-subtitle {
  font-size: 1.25rem; color: rgba(255,255,255,0.7);
  max-width: 580px; margin-bottom: 2.5rem;
  font-family: 'Source Serif 4', serif;
  animation: fadeUp 0.8s ease both 0.3s;
}

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; animation: fadeUp 0.8s ease both 0.45s; }

/* Service Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem; margin-top: 2rem;
}

.service-card {
  background: var(--bg-white);
  border-radius: 4px;
  padding: 2.5rem 2rem;
  border: 1px solid var(--border);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  font-size: 2.5rem; color: var(--accent);
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.8rem; margin-bottom: 1rem;
}

.service-card p { color: var(--text-muted); font-size: 1rem; margin-bottom: 1.5rem; }

.service-link {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  color: var(--primary);
  display: inline-flex; align-items: center; gap: 0.5rem;
}

.service-link i { color: var(--accent); transition: transform 0.3s ease; }
.service-card:hover .service-link i { transform: translateX(4px); }

/* Trust / Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem; text-align: center;
}

.stat-item i { font-size: 2.5rem; color: var(--accent); margin-bottom: 1rem; }
.stat-item h3 { color: #fff; font-size: 2rem; margin-bottom: 0.3rem; }
.stat-item h4 { color: #fff; font-size: 1.4rem; margin-bottom: 0.5rem; }
.stat-item p { color: var(--text-light); font-size: 0.95rem; margin: 0; }

/* Locations Grid */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.location-card {
  display: block; text-align: center; padding: 2rem;
  border: 1px solid var(--border); border-radius: 4px;
  color: var(--primary); transition: var(--transition);
  background: var(--bg-white);
}

.location-card:hover {
  border-color: var(--accent); box-shadow: var(--shadow-md);
  transform: translateY(-4px); color: var(--primary);
}

.location-card h3 { margin-bottom: 0.3rem; }
.location-card p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

/* Testimonials */
.testimonial-card {
  background: var(--bg-white); padding: 2.5rem; border-radius: 4px;
  box-shadow: var(--shadow-sm); border-left: 4px solid var(--accent);
}

.testimonial-card .quote-icon { font-size: 2rem; color: var(--accent); opacity: 0.4; margin-bottom: 1rem; }
.testimonial-card p { font-style: italic; margin-bottom: 1.5rem; }
.testimonial-card h4 { margin-bottom: 0; }
.testimonial-card .meta { font-size: 0.9rem; color: var(--text-muted); margin: 0; font-style: normal; }

/* CTA Banner */
.cta-banner { background: var(--primary); padding: 5rem 0; text-align: center; }
.cta-banner h2 { color: #fff; margin-bottom: 1rem; }
.cta-banner p { color: var(--text-light); font-size: 1.2rem; max-width: 600px; margin: 0 auto 2rem; }

/* FAQ Accordion */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; text-align: left; background: none; border: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem; color: var(--primary);
  cursor: pointer; padding: 1.5rem 0;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-question::after { content: '+'; font-size: 1.8rem; color: var(--accent); transition: var(--transition); }
.faq-item.active .faq-question::after { content: '−'; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-answer p { padding: 0 0 1.5rem; color: var(--text-muted); margin: 0; }
.faq-item.active .faq-answer { max-height: 500px; }

/* Page Header (sub pages) */
.page-header {
  padding: 10rem 0 4rem;
  background: var(--primary);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.page-header * { position: relative; z-index: 1; }
.page-title { font-size: clamp(3rem, 5vw, 5rem); color: #fff; margin-bottom: 1rem; }
.page-subtitle { color: var(--accent); font-family: 'Bebas Neue',sans-serif; font-size: 1.4rem; letter-spacing: 0.08em; }

.breadcrumb {
  display: flex; justify-content: center; gap: 0.5rem;
  font-size: 0.95rem; letter-spacing: 0.05em; color: var(--text-light);
  margin-top: 1rem;
}
.breadcrumb a { color: var(--accent); }

/* Content Wrapper (sub pages) */
.content-wrapper { padding: 4rem 0; }
.content-wrapper h2 { margin: 2.5rem 0 1.2rem; font-size: 2.5rem; }
.content-wrapper h3 { font-size: 1.8rem; margin: 2rem 0 1rem; }
.content-wrapper p { font-size: 1.1rem; color: #444; }
.content-wrapper ul { margin: 1rem 0 1.5rem 1.5rem; list-style: none; }
.content-wrapper ul li { margin-bottom: 0.6rem; font-size: 1.05rem; color: #444; padding-left: 1.5rem; position: relative; }
.content-wrapper ul li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }

/* Feature Box */
.feature-box {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: 4px; padding: 2rem;
  border-top: 4px solid var(--accent);
}

.feature-box-dark {
  background: var(--primary); color: #fff; border: none;
  border-radius: 4px; padding: 2.5rem;
}
.feature-box-dark h3 { color: #fff; }
.feature-box-dark p, .feature-box-dark li { color: var(--text-light); }

/* Process Steps */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; text-align: center; }
.process-step .step-num {
  width: 55px; height: 55px;
  background: var(--primary); color: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem;
  margin: 0 auto 1rem;
}
.process-step h4 { margin-bottom: 0.5rem; }
.process-step p { font-size: 0.95rem; color: var(--text-muted); margin: 0; }

/* Contact Page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }

.office-card {
  background: var(--bg-white); padding: 2rem;
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow-sm); border-radius: 0 4px 4px 0;
}
.office-card h3 { margin-bottom: 0.5rem; }
.office-card p { margin-bottom: 0.4rem; color: var(--text-muted); font-size: 0.95rem; }
.office-card i { color: var(--accent); margin-right: 8px; width: 18px; text-align: center; }

.contact-form {
  background: var(--bg-white); padding: 2.5rem;
  border-radius: 4px; box-shadow: var(--shadow-md);
}

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; font-size: 0.95rem; }
.form-control {
  width: 100%; padding: 0.9rem 1rem;
  font-family: 'Source Serif 4', serif; font-size: 1rem;
  border: 1px solid var(--border); border-radius: 4px;
  background: var(--bg-main); transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(212,160,23,0.15); }

/* Comparison Table */
.comparison-table { width: 100%; border-collapse: collapse; background: var(--bg-white); box-shadow: var(--shadow-sm); }
.comparison-table thead tr { background: var(--primary); color: #fff; text-align: left; }
.comparison-table th, .comparison-table td { padding: 1rem 1.2rem; }
.comparison-table tbody tr { border-bottom: 1px solid var(--border); }
.comparison-table tbody tr:hover { background: var(--bg-alt); }

/* Footer */
footer {
  background: var(--primary); color: var(--text-light);
  padding: 5rem 0 2rem;
  border-top: 4px solid var(--accent);
}

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

.footer-col h4 {
  color: #fff; font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.footer-links li { margin-bottom: 0.7rem; }
.footer-links a { color: var(--text-light); font-size: 0.95rem; }
.footer-links a:hover { color: var(--accent); padding-left: 4px; }

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

/* WhatsApp Float */
.whatsapp-float {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 60px; height: 60px;
  background: #25D366; color: #fff;
  border-radius: 50%;
  display: flex; justify-content: center; align-items: center;
  font-size: 30px;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition: transform 0.3s ease;
  animation: pulse 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(37,211,102,0); }
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none; position: fixed; top: 0; right: -100%;
    width: 80%; max-width: 300px; height: 100vh;
    background: var(--primary); flex-direction: column;
    padding: 100px 2rem 2rem;
    transition: var(--transition);
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
  }
  .nav-links.active { display: flex; right: 0; }
  .mobile-menu-btn { display: block; z-index: 1001; }
  .hero-title { font-size: 3rem; }
  .hero-btns { flex-direction: column; }
  .contact-grid { grid-template-columns: 1fr; }
  .whatsapp-float { width: 50px; height: 50px; font-size: 24px; bottom: 1.5rem; right: 1.5rem; }
  .dropdown-menu { position: static; box-shadow: none; border: none; background: rgba(0,0,0,0.2); }
}
