/*
  LAXMI ENTERPRISES Website Styles
  - Modern, professional, responsive design
  - Beautiful animations and interactions
  - Perfect typography and accessible colors
*/

:root {
  --brand: #2563eb;
  --brand-light: #3b82f6;
  --brand-dark: #1e40af;
  --brand-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --ink: #0f172a;
  --ink-light: #334155;
  --muted: #64748b;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0f172a;
  --border: #e2e8f0;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

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

html {
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

p { margin: 0 0 1rem; }

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

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

a:hover {
  color: var(--brand-dark);
}

/* Container */
.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* Header & Navigation */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

header.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: transform 0.2s ease;
}

.brand:hover {
  transform: translateY(-1px);
}

.brand .logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-gradient);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 1.5rem;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand:hover .logo {
  transform: scale(1.05) rotate(-5deg);
  box-shadow: var(--shadow-xl);
}

.brand .subtitle {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  color: var(--ink-light);
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 10px;
  transition: all 0.2s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--brand-gradient);
  transform: scaleX(0);
  transition: transform 0.2s ease;
  border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-links a.active,
.nav-links a:hover {
  background: var(--bg-alt);
  color: var(--brand);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
  transition: transform 0.2s ease;
}

.nav-toggle:hover {
  transform: scale(1.1);
}

@media (max-width: 840px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 20px 4%;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.3s ease;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 16px;
  }

  .nav-toggle {
    display: block;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
  color: #fff;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero .media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero .media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.85) 0%,
    rgba(124, 58, 237, 0.75) 50%,
    rgba(15, 23, 42, 0.9) 100%
  );
  backdrop-filter: blur(2px);
}

.hero img.cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.2) contrast(1.1);
  animation: zoomIn 20s ease infinite alternate;
}

@keyframes zoomIn {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}

.hero .content {
  position: relative;
  z-index: 1;
  padding: 120px 0;
  animation: fadeInUp 0.8s ease;
}

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

.hero h1 {
  margin: 0 0 20px;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero p.subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.95);
  max-width: 800px;
  line-height: 1.7;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.hero .cta {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.2));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.5);
}

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

.btn-ghost {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* Sections */
section {
  padding: 80px 0;
  position: relative;
}

section.alt {
  background: linear-gradient(180deg, var(--bg-alt) 0%, #ffffff 100%);
}

section h2 {
  margin: 0 0 12px;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

section p.lead {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 900px;
  line-height: 1.8;
}

/* Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

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

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--brand-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--brand-light);
}

.card:hover::before {
  transform: scaleX(1);
}

.card img {
  border-radius: 12px;
  margin-bottom: 16px;
  transition: transform 0.3s ease;
}

.card:hover img {
  transform: scale(1.05);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--ink);
}

.card p {
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.7;
}

/* Chip/Tag Row */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip {
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  color: #3730a3;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid #c7d2fe;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}

/* Forms */
.form {
  display: grid;
  gap: 18px;
}

.row {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 720px) {
  .row {
    grid-template-columns: 1fr;
  }
}

label {
  font-weight: 700;
  color: var(--ink);
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  transition: all 0.2s ease;
  font-size: 1rem;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.6;
}

.form small,
.form .help {
  color: var(--muted);
  font-size: 0.9rem;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.checkbox input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox label {
  margin-bottom: 0;
  font-weight: 600;
  cursor: pointer;
}

/* Notices */
.notice {
  padding: 16px 18px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: #f9fafb;
  font-weight: 500;
}

.notice.success {
  border-color: #86efac;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  color: #166534;
}

.notice.error {
  border-color: #fca5a5;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  color: #991b1b;
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-alt) 100%);
  margin-top: 60px;
}

.footer-inner {
  display: grid;
  gap: 32px;
  grid-template-columns: 2fr 1fr 1fr;
  padding: 48px 0 32px;
}

.footer-inner h4 {
  margin: 0 0 16px;
  font-size: 1rem;
  color: var(--ink);
}

.footer-inner p {
  margin: 0 0 8px;
}

.footer-inner a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-inner a:hover {
  color: var(--brand);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

@media (max-width: 840px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Utilities */
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 20px; }
.mt-4 { margin-top: 28px; }
.mt-6 { margin-top: 40px; }
.mb-2 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 28px; }
.mb-6 { margin-bottom: 40px; }

/* Floating WhatsApp Button */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1100;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #25D366 0%, #20ba5a 100%);
  color: #fff;
  padding: 16px 24px;
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
  font-weight: 800;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: pulse 2s ease infinite;
}

.wa-float:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.5);
  animation: none;
}

.wa-float::before {
  content: '💬';
  font-size: 1.2rem;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@media (max-width: 640px) {
  .wa-float {
    padding: 14px 20px;
    font-size: 0.9rem;
    right: 16px;
    bottom: 16px;
  }
}

/* Loading and Fade-in Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.6s ease;
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
