/* Laxmi Lasya Infra - Design System & Global Styles */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@300;400;600&display=swap');

:root {
  /* Color Palette */
  --color-primary: #0a192f;
  /* Darker, richer navy */
  --color-primary-light: #112240;
  --color-primary-dark: #020c1b;

  --color-accent: hsl(45, 90%, 50%);
  /* Construction Gold */
  --color-accent-hover: hsl(45, 90%, 45%);

  --color-neutral-bg: hsl(210, 15%, 96%);
  /* Concrete Grey */
  --color-white: #ffffff;

  --color-text-main: hsl(210, 25%, 15%);
  /* Dark Gunmetal */
  --color-text-muted: hsl(210, 15%, 40%);
  --color-text-light: hsl(210, 10%, 90%);

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;

  /* Borders & Shadows */
  --border-radius-sm: 4px;
  --border-radius-md: 12px;
  /* More rounded 'modal' look */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease-in-out;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

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

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

ul {
  list-style: none;
}

/* Utility Classes */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--spacing-lg) 0;
}

.bg-neutral {
  background-color: var(--color-neutral-bg);
}

.bg-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

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

.text-accent {
  color: var(--color-accent);
}

.text-primary {
  color: var(--color-primary);
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

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

.gap-4 {
  gap: 1rem;
}

.gap-8 {
  gap: 2rem;
}

.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: 1fr;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

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

/* Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition-fast);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-primary-dark);
}

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

.btn-outline {
  border-color: var(--color-white);
  color: var(--color-white);
}

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

.btn-whatsapp {
  background-color: #25D366;
  color: white;
}

.btn-whatsapp:hover {
  background-color: #128C7E;
}

.card {
  background: white;
  border-radius: var(--border-radius-md);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  border-bottom: 3px solid transparent;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--color-accent);
}

/* Header / Navbar Default (Desktop) */
.header {
  background-color: white;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.5rem 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.logo-emblem {
  height: 64px;
  width: 64px;
  background: #ffffff;
  border-radius: 12px;
  border: 2px solid #D4AF37;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.logo-emblem img {
  height: 50px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.brand-text-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-title {
  color: #0A192D;
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: 0.75px;
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  font-family: var(--font-heading);
}

.brand-subtitle {
  color: #D4AF37;
  font-weight: 800;
  font-size: 0.825rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-top: 3px;
  font-family: var(--font-heading);
}

/* Nav Menu Default (Desktop) */
.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-weight: 600;
  color: var(--color-primary);
  padding: 0.5rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link:hover {
  color: var(--color-accent);
}

/* Desktop-hidden elements */
.mobile-nav-toggle,
.mobile-nav-overlay,
.mobile-menu-header,
.mobile-nav-icon {
  display: none !important;
}

/* Service Icon Box */
.service-icon-box {
  width: 80px;
  height: 80px;
  background: var(--color-neutral-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
  font-size: 2rem;
  transition: var(--transition-fast);
}

.card:hover .service-icon-box {
  background: var(--color-accent);
  color: white;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  color: white;
  background-color: var(--color-primary);
  background-image: linear-gradient(135deg, rgba(2, 12, 27, 0.9) 0%, rgba(10, 25, 47, 0.7) 100%), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=2070&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  opacity: 0;
  animation: fadeInDown 1s ease-out forwards;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: 1px;
  line-height: 1.8;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.3s forwards;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer */
.footer {
  background-color: var(--color-primary-dark);
  color: var(--color-text-light);
  padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer h4 {
  color: white;
}

/* WhatsApp Floating Widget */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  cursor: pointer;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
}

.whatsapp-icon-btn {
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.whatsapp-chat-box {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 350px;
  max-width: 90vw;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 999;
  animation: slideUp 0.3s ease-out;
  border: 1px solid #e0e0e0;
}

.whatsapp-chat-box.active {
  display: flex;
}

.chat-header {
  background: #075E54;
  color: white;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.chat-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid white;
}

.chat-info h4 {
  color: white;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.chat-info span {
  font-size: 0.8rem;
  opacity: 0.8;
}

.chat-body {
  padding: 20px;
  background-color: #E5DDD5;
  background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
  height: 300px;
  overflow-y: auto;
}

.message-received {
  background: white;
  padding: 10px 15px;
  border-radius: 0 10px 10px 10px;
  max-width: 85%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
  font-size: 0.9rem;
  color: #333;
}

.message-received::before {
  content: '';
  position: absolute;
  top: 0;
  left: -8px;
  width: 0;
  height: 0;
  border-top: 10px solid white;
  border-left: 10px solid transparent;
}

.message-time {
  display: block;
  text-align: right;
  font-size: 0.7rem;
  color: #999;
  margin-top: 4px;
}

.chat-footer {
  padding: 10px;
  background: #f0f0f0;
  display: flex;
  gap: 10px;
  align-items: center;
}

.chat-footer input {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 20px;
  outline: none;
}

.chat-footer button {
  background: #25D366;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   RESPONSIVE BREAKPOINTS (TABLET & MOBILE)
   ========================================================= */

/* Tablet Responsive Breakpoint (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .header {
    padding: 0.5rem 0;
  }
  .header .container {
    gap: 1rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .logo-emblem {
    height: 52px;
    width: 52px;
  }
  .logo-emblem img {
    height: 40px;
  }
  .brand-title {
    font-size: 1.2rem;
  }
  .brand-subtitle {
    font-size: 0.75rem;
  }
  .nav-list {
    gap: 1.2rem;
  }
  .nav-link {
    font-size: 0.9rem;
  }
}

/* Mobile Responsive Breakpoint (up to 768px) */
@media (max-width: 768px) {
  body.mobile-nav-open {
    overflow: hidden !important;
  }

  .header {
    padding: 0.5rem 0;
  }

  .header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding: 0 1rem;
  }

  /* Logo & Brand text on Mobile */
  .logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    max-width: calc(100% - 55px);
  }

  .logo-emblem {
    height: 48px;
    width: 48px;
    min-width: 48px;
    background: #ffffff;
    border-radius: 10px;
    border: 1.5px solid #D4AF37;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .logo-emblem img {
    height: 36px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
  }

  .brand-text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
  }

  .brand-title {
    color: #0A192D;
    font-weight: 900;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
    line-height: 1.15;
    white-space: nowrap;
    font-family: var(--font-heading);
  }

  .brand-subtitle {
    color: #D4AF37;
    font-weight: 800;
    font-size: 0.65rem;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    margin-top: 2px;
    white-space: nowrap;
    font-family: var(--font-heading);
  }

  /* Extra Small Devices (320px - 360px) */
  @media (max-width: 360px) {
    .logo-emblem {
      height: 42px;
      width: 42px;
      min-width: 42px;
    }
    .logo-emblem img {
      height: 30px;
    }
    .brand-title {
      font-size: 0.9rem;
      letter-spacing: 0.1px;
    }
    .brand-subtitle {
      font-size: 0.58rem;
      letter-spacing: 1px;
    }
  }

  /* Hamburger Menu Toggle Button */
  .mobile-nav-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #ffffff;
    border: 1.5px solid rgba(10, 25, 45, 0.15);
    border-radius: 8px;
    color: var(--color-primary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    z-index: 1000;
  }

  .mobile-nav-toggle:hover,
  .mobile-nav-toggle:active {
    background: #f8fafc;
    border-color: var(--color-accent);
    color: var(--color-accent);
  }

  /* Off-Canvas Navigation Drawer */
  nav.nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    z-index: 1002;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }

  nav.nav-menu.active {
    transform: translateX(0);
  }

  /* Overlay Backdrop */
  .mobile-nav-overlay {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(10, 25, 45, 0.6);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Mobile Drawer Header */
  .mobile-menu-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.25rem;
    background: var(--color-primary);
    color: #ffffff;
    border-bottom: 2px solid var(--color-accent);
  }

  .mobile-menu-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.35rem;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-menu-close:hover {
    color: var(--color-accent);
  }

  /* Nav List Inside Off-Canvas Drawer */
  .nav-list {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 0;
    margin: 0;
    list-style: none;
    flex: 1;
    gap: 0;
  }

  .nav-list li {
    border-bottom: 1px solid #f1f5f9;
    width: 100%;
  }

  .nav-list li a.nav-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1.35rem;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s ease, color 0.2s ease;
    width: 100%;
  }

  .mobile-nav-icon {
    display: inline-block !important;
    width: 22px;
    text-align: center;
    color: var(--color-accent);
    font-size: 1.05rem;
  }

  .nav-list li a.nav-link:hover,
  .nav-list li a.nav-link.text-primary {
    background: #f8fafc;
    color: var(--color-primary);
    border-left: 4px solid var(--color-accent);
    padding-left: 1.1rem;
  }

  /* Contact Button inside Mobile Menu */
  .mobile-contact-wrapper {
    display: block !important;
    padding: 1.25rem;
    margin-top: auto;
    border-bottom: none !important;
    background: #fafafa;
    border-top: 1px solid #eef2f6;
    width: 100%;
  }

  .btn-contact-mobile {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.6rem !important;
    width: 100% !important;
    text-align: center !important;
    padding: 0.85rem 1rem !important;
    background-color: var(--color-accent) !important;
    color: var(--color-primary-dark) !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.5px !important;
    border-radius: var(--border-radius-sm) !important;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25) !important;
    border: none !important;
  }

  .btn-contact-mobile .mobile-nav-icon {
    color: var(--color-primary-dark) !important;
  }

  /* Hero Section Mobile Responsiveness */
  .hero {
    min-height: auto;
    padding: 3.5rem 0 3rem;
    background-attachment: scroll;
  }

  .hero h1 {
    font-size: 2.1rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    word-break: break-word;
  }

  @media (max-width: 375px) {
    .hero h1 {
      font-size: 1.8rem;
    }
  }

  .hero p {
    font-size: 0.925rem;
    line-height: 1.6;
    padding: 0.75rem 0.5rem;
    max-width: 100%;
    margin-bottom: 1.5rem;
  }

  .hero .flex.gap-4.justify-center {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 290px;
    margin: 1.75rem auto 0;
    align-items: stretch;
  }

  .hero .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
  }

  /* Spacing & Section Padding on Mobile */
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  /* Floating WhatsApp Widget Mobile Adjustments */
  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    z-index: 990;
  }

  .whatsapp-icon-btn {
    width: 52px;
    height: 52px;
    font-size: 26px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  }

  .whatsapp-chat-box {
    bottom: 76px;
    right: 16px;
    width: calc(100vw - 32px);
    max-width: 340px;
    max-height: 70vh;
    z-index: 990;
  }
}