/* =================================================================
   TerraSpace Design System & Core Stylesheet
   Modern Corporate Minimalist Theme (Custom Color: #49553A)
   ================================================================= */

:root {
  --color-primary: #49553a;
  --color-accent: #ff9800;
  --color-text: #222222;
  --color-text-muted: #666666;
  --color-background: #ffffff;
  --color-surface: #f7f8fb;
  --color-border: #e2e8f0;

  --font-base: "Poppins", sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --shadow-sm:
    0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md:
    0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  --transition: all 0.3s ease-in-out;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background-color: var(--color-background);
  line-height: 1.6;
  font-size: 16px;
}

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 96px 0;
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #3b442f;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

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

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

.btn-white {
  background-color: #ffffff;
  color: var(--color-primary);
}

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

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* Header logo */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-image {
  display: block;
  width: 280px;
  height: 52px;
  object-fit: cover;
  object-position: center;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-weight: 500;
  color: var(--color-text);
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.header-action {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Professional Header Profile Dropdown */
.profile-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.profile-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #ffffff;
  min-width: 180px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  display: none;
  flex-direction: column;
  z-index: 1100;
  margin-top: 8px;
  overflow: hidden;
}

.profile-dropdown-menu.show {
  display: flex;
}

.profile-dropdown-menu a {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--color-text);
  transition: var(--transition);
  border-bottom: 1px solid var(--color-border);
}

.profile-dropdown-menu a:last-child {
  border-bottom: none;
}

.profile-dropdown-menu a:hover {
  background-color: var(--color-surface);
  color: var(--color-primary);
  padding-left: 20px;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--color-text);
  transition: var(--transition);
}

.password-field-wrapper {
  position: relative;
}

.password-input-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  min-width: 44px;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0 8px;
  line-height: 1;
}

.password-toggle:hover {
  color: var(--color-primary);
}

.review-stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--color-primary);
  font-size: 16px;
  margin-bottom: 20px;
}

.review-stars span {
  line-height: 1;
}

/* Hero Section & Slider */
.hero {
  padding-top: 160px;
  padding-bottom: 96px;
  background: linear-gradient(135deg, var(--color-surface) 0%, #ffffff 100%);
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  background-color: rgba(73, 85, 58, 0.1);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.hero-content h1 {
  font-size: 48px;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--color-text);
}

.hero-content p {
  font-size: 18px;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.hero-image-wrapper {
  position: relative;
  background: #e2e8f0;
  height: 450px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  transform: translateX(0);
}

.hero-slide.prev {
  transform: translateX(-100%);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-xl);
}

.hero-card-badge {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: #ffffff;
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--color-accent);
  z-index: 10;
}

.stat-num {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: var(--color-primary);
}

.stat-text {
  font-size: 14px;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Statistics Section */
.stats-section {
  background-color: var(--color-primary);
  color: #ffffff;
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item h3 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-accent);
}

.stat-item p {
  font-size: 16px;
  opacity: 0.9;
}

/* Services Overview */
.sub-heading {
  display: block;
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section-header {
  max-width: 700px;
  margin: 0 auto 64px auto;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--color-text-muted);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--color-surface);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  transition: var(--transition);
  border: 1px solid var(--color-border);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  background: #ffffff;
  border-color: transparent;
}

.service-icon {
  font-size: 36px;
  margin-bottom: 24px;
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  font-weight: 600;
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 15px;
  margin-bottom: 20px;
}

.text-link {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
}

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

/* Page Banners */
.page-banner {
  padding: 160px 0 80px 0;
  background: linear-gradient(135deg, var(--color-surface) 0%, #ffffff 100%);
  text-align: center;
}

.page-banner h1 {
  font-size: 42px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
}

.breadcrumb {
  font-size: 14px;
  color: var(--color-text-muted);
}

.breadcrumb a {
  color: var(--color-primary);
}

/* Why Choose Us */
.why-choose {
  background: linear-gradient(180deg, #ffffff 0%, var(--color-surface) 100%);
}

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

.why-card {
  background: #ffffff;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.why-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.why-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--color-text);
}

.why-card p {
  color: var(--color-text-muted);
  font-size: 15px;
}

/* CTA Banner */
.cta-banner {
  background-color: var(--color-primary);
  padding: 80px 0;
  color: #ffffff;
}

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

.cta-text h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-text p {
  opacity: 0.9;
  font-size: 18px;
}

/* Global Footer */
.footer {
  background-color: #101827;
  color: #9ca3af;
  padding-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid #1f2937;
}

.footer-col h3,
.footer-col h4 {
  color: #ffffff;
  margin-bottom: 20px;
}

.footer-logo-wrap {
  width: 260px;
  height: 40px;
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
}

.footer-logo {
  display: block;
  width: 430px;
  height: auto;
  max-width: none;
  position: absolute;
  top: -96px;
  left: -90px;
}

.footer-col p {
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.7;
}

.gst-tag {
  color: var(--color-accent);
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  font-size: 14px;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-bottom {
  padding: 24px 0;
  font-size: 14px;
}

.legal-links {
  display: flex;
  gap: 24px;
}

.legal-links a:hover {
  color: #ffffff;
}

/* Auth Prompt Modal Styles */
.auth-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.auth-modal {
  background: #ffffff;
  padding: 40px;
  border-radius: var(--radius-lg);
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.auth-modal h3 {
  margin-bottom: 12px;
  font-size: 24px;
}

.auth-modal p {
  color: var(--color-text-muted);
  font-size: 15px;
  margin-bottom: 24px;
}

.auth-modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* Scroll-Triggered Floating WhatsApp Widget */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #ffffff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s ease-in-out;
}

.whatsapp-float.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.whatsapp-float:hover {
  background-color: #20ba5a;
  transform: scale(1.1) translateY(0);
  color: #ffffff;
}
