/* Dinesha Engineering Services — Pure HTML/CSS Design System */

:root {
  /* Brand Color Tokens */
  --maroon-deep: #4A071E;
  --maroon-dark: #6B0B2E;
  --maroon-primary: #8B1538;
  --maroon-light: #A8244B;

  --orange-dark: #D9480F;
  --orange-primary: #F26522;
  --orange-gold: #F7941E;
  --gold-accent: #FFB703;

  --dark-bg: #0B0F17;
  --steel-900: #111827;
  --steel-800: #1F2937;
  --steel-700: #374151;
  --steel-600: #4B5563;
  --steel-300: #D1D5DB;
  --steel-100: #F3F4F6;
  --steel-50: #F9FAFB;
  --white: #FFFFFF;

  --gradient-maroon: linear-gradient(135deg, #6B0B2E 0%, #8B1538 50%, #A8244B 100%);
  --gradient-orange-gold: linear-gradient(135deg, #F26522 0%, #F7941E 50%, #FFB703 100%);

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --shadow-sm: 0 2px 6px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 40px rgba(139, 21, 56, 0.15);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--white);
  color: var(--steel-800);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Text & Badges */
.text-gradient {
  background: var(--gradient-orange-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-maroon {
  background: rgba(139, 21, 56, 0.08);
  color: var(--maroon-primary);
  border: 1px solid rgba(139, 21, 56, 0.2);
}

.badge-orange {
  background: rgba(242, 101, 34, 0.1);
  color: var(--orange-dark);
  border: 1px solid rgba(242, 101, 34, 0.3);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-orange-gold);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(242, 101, 34, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 101, 34, 0.5);
}

.btn-maroon {
  background: var(--gradient-maroon);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(107, 11, 46, 0.3);
}

.btn-maroon:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(107, 11, 46, 0.45);
}

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

.btn-outline:hover {
  background: var(--orange-primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-white {
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.btn-outline-white:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.w-full { width: 100%; }

/* Header & Navbar */
.navbar-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.top-bar {
  background: var(--maroon-dark);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-bar-item a:hover {
  color: var(--orange-gold);
  text-decoration: underline;
}

.top-bar-divider { opacity: 0.3; }
.text-gold { color: var(--orange-gold); }

.cert-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #ffffff;
  background: rgba(247, 148, 30, 0.15);
  border: 1px solid rgba(247, 148, 30, 0.4);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.location-pill {
  color: var(--orange-gold);
  font-weight: 600;
  font-size: 0.78rem;
  background: rgba(255,255,255,0.08);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.main-navbar {
  padding: 0.65rem 0;
  background: var(--white);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo-img {
  height: 52px;
  width: auto;
}

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

.nav-link {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--steel-800);
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--maroon-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-orange-gold);
  border-radius: 2px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--maroon-dark);
  cursor: pointer;
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border-bottom: 3px solid var(--maroon-primary);
  padding: 1.5rem;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-nav-item {
  display: block;
  padding: 0.85rem 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--steel-800);
  background: var(--steel-50);
  margin-bottom: 0.5rem;
  border-radius: var(--radius-sm);
}

.mobile-nav-item.active {
  background: var(--gradient-maroon);
  color: var(--white);
}

/* Page Header Banner */
.page-header-banner {
  background: var(--gradient-maroon);
  color: #ffffff;
  padding: 3.5rem 0 3rem 0;
}

.header-breadcrumbs {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.75rem;
}

.header-breadcrumbs a { color: rgba(255, 255, 255, 0.7); }
.header-breadcrumbs .current { color: var(--orange-gold); font-weight: 600; }

.page-header-title {
  font-size: 2.6rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.page-header-lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 750px;
}

/* Section Header */
.section-header {
  margin-bottom: 3rem;
}

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

.section-title {
  font-size: 2.2rem;
  color: var(--maroon-dark);
  margin-top: 0.5rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--steel-600);
  max-width: 650px;
  margin: 0.5rem auto 0 auto;
}

/* Footer */
.footer-section {
  background: var(--dark-bg);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 1.5rem 0;
  border-top: 4px solid var(--maroon-primary);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1fr 1.1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-logo {
  height: 54px;
  background: #ffffff;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.2rem;
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.2rem;
}

.footer-heading {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 1.3rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 3px;
  background: var(--gradient-orange-gold);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s ease;
}

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

.reg-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.6rem;
}

.reg-label { display: block; font-size: 0.78rem; color: rgba(255, 255, 255, 0.55); }
.reg-val { color: var(--orange-gold); font-size: 0.88rem; font-weight: 700; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Modals */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(11, 15, 23, 0.75);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.is-active {
  display: flex;
}

.modal-content {
  background: #ffffff;
  width: 100%;
  max-width: 600px;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--steel-100);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1500;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.8rem;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* Form inputs */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--steel-800);
}

.form-group input, .form-group select, .form-group textarea {
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--steel-300);
  font-family: var(--font-body);
  font-size: 0.92rem;
  background: var(--steel-50);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--orange-primary);
  background: #ffffff;
}

/* Media Queries */
@media (max-width: 992px) {
  .top-bar-right, .desktop-nav { display: none; }
  .mobile-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .footer-grid, .form-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
