/* ==========================================================================
   CSS VARIABLES & DESIGN SYSTEM
   ========================================================================== */
:root {
  /* Colors */
  --color-primary: #2C4C3B;      /* Deep forest green */
  --color-primary-dark: #1A2E20; /* Darker green for hover */
  --color-accent: #B8934B;       /* Elegant gold/bronze */
  --color-accent-light: #D4AF37; /* Lighter gold */
  --color-bg-light: #FDFCF0;     /* Warm ivory / off-white */
  --color-bg-dark: #1A1A1A;      /* Dark section bg */
  --color-text-main: #2A2A2A;    /* Charcoal for text */
  --color-text-muted: #6B7280;   /* Muted text */
  --color-white: #FFFFFF;
  --color-border: #E5E7EB;

  /* Typography */
  --font-family: 'Zain', sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.7;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;

  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Shadows */
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family);
  color: var(--color-text-main);
  background-color: var(--color-bg-light);
  line-height: var(--line-height-base);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

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

section {
  padding: var(--space-xl) 0;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

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

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  font-family: var(--font-family);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

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

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

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

.btn--accent:hover {
  background-color: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

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

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

.btn--whatsapp {
  background-color: var(--color-white);
  color: #25D366;
  border: 1px solid var(--color-white);
}

.btn--whatsapp:hover {
  background-color: #25D366;
  color: var(--color-white);
  border-color: #25D366;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: all var(--transition-fast);
}

.header.scrolled {
  background-color: var(--color-white);
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
}

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

.header__logo img {
  height: 40px;
}

/* Navigation Links */
.nav__list {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav__link {
  font-weight: 600;
  color: var(--color-white);
  font-size: 1.15rem; /* slightly larger for Zain */
  position: relative;
}

.header.scrolled .nav__link {
  color: var(--color-text-main);
}

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

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition-fast);
}

.nav__link:hover::after {
  width: 100%;
}

.mobile-only-cta {
  display: none;
}

.desktop-only {
  display: block;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 28px;
  height: 2px;
  background-color: var(--color-white);
  transition: all var(--transition-fast);
  position: relative;
}

.header.scrolled .hamburger,
.header.scrolled .hamburger::before,
.header.scrolled .hamburger::after {
  background-color: var(--color-primary);
}

.hamburger::before {
  content: '';
  top: -8px;
}
.hamburger::after {
  content: '';
  bottom: -8px;
}

/* Open state for hamburger */
.mobile-toggle.is-active .hamburger {
  background-color: transparent;
}
.mobile-toggle.is-active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
  background-color: var(--color-primary);
}
.mobile-toggle.is-active .hamburger::after {
  bottom: 0;
  transform: rotate(-45deg);
  background-color: var(--color-primary);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: url('../assets/images/hero-bg.webp') center/cover no-repeat;
  color: var(--color-white);
  padding: 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
  z-index: 1;
}

.hero__container {
  position: relative;
  z-index: 2;
  text-align: right;
  max-width: 800px;
}

.hero__title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero__subtitle {
  font-size: 1.5rem; /* bumped slightly for Zain */
  font-weight: 400;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.hero__actions {
  display: flex;
  gap: 1rem;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.about__content h2 {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.about__text {
  font-size: 1.2rem; /* bumped slightly for Zain */
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat-item {
  border-right: 3px solid var(--color-accent);
  padding-right: 1rem;
}

.stat-title {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.2rem;
}

.about__image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.about__image:hover img {
  transform: scale(1.03);
}

/* ==========================================================================
   SERVICES (REAL ESTATE & TOURISM)
   ========================================================================== */
.services-section {
  background-color: var(--color-white);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Tourism services explicit 2 columns on desktop */
#tourism .services__grid {
  grid-template-columns: repeat(2, 1fr);
}

.service-card {
  background: var(--color-bg-light);
  border-radius: 8px;
  text-align: center;
  transition: all var(--transition-fast);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-fast);
  z-index: 2;
}

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

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

.service-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--transition-fast);
}

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

.service-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.service-desc {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-content .btn {
  width: 100%;
  margin-top: auto;
}

/* ==========================================================================
   LEGAL SECTION
   ========================================================================== */
.legal {
  background-color: var(--color-bg-dark);
  color: var(--color-white);
  text-align: center;
}

.legal .section-title {
  color: var(--color-accent);
}

.legal .section-subtitle {
  color: #a0a0a0;
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
}

.legal-icon {
  margin: 0 auto 2rem;
  color: var(--color-accent);
}

/* ==========================================================================
   WHY CHOOSE US
   ========================================================================== */
.why-us {
  background-color: var(--color-bg-light);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-block {
  padding: 2rem;
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.feature-block:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.feature-title::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

.feature-desc {
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

/* ==========================================================================
   LIFESTYLE SECTION
   ========================================================================== */
.lifestyle {
  position: relative;
  padding: var(--space-xl) 0;
  background: url('../assets/images/lifestyle-img.webp') center/cover fixed no-repeat;
  color: var(--color-white);
  text-align: center;
}

.lifestyle::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.lifestyle__container {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.lifestyle__title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.lifestyle__text {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.cta-section {
  background-color: var(--color-primary);
  color: var(--color-white);
  text-align: center;
}

.cta__title {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.cta__text {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.cta__buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: var(--color-bg-dark);
  color: #A0A0A0;
  padding: var(--space-lg) 0 2rem;
}

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

.footer__logo img {
  height: 40px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer__desc {
  line-height: 1.6;
  font-size: 1.1rem;
}

.footer__title {
  color: var(--color-white);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.footer__links li {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.footer__links a {
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--color-accent);
}

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

/* ==========================================================================
   FLOATING WHATSAPP
   ========================================================================== */
.floating-whatsapp {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 1000;
  transition: transform var(--transition-fast);
  animation: pulse 2s infinite;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  animation: none;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   ANIMATIONS (Scroll Reveal)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .floating-whatsapp {
    animation: none;
  }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media screen and (max-width: 1024px) {
  .hero__title {
    font-size: 3rem;
  }
  
  .about__grid {
    grid-template-columns: 1fr;
  }
  
  .about__image {
    order: -1;
  }
}

@media screen and (max-width: 768px) {
  /* Smaller mobile fonts generally */
  .section-title { font-size: 1.6rem; }
  .section-subtitle { font-size: 1rem; }
  .about__content h2 { font-size: 1.8rem; }
  .about__text { font-size: 1rem; }
  .stat-title { font-size: 1.1rem; }
  .service-title { font-size: 1.0rem; }
  .service-desc { font-size: 0.9rem; }
  .legal .section-subtitle { font-size: 1rem; }
  .feature-title { font-size: 1.1rem; }
  .feature-desc { font-size: 0.95rem; }
  .lifestyle__title { font-size: 2rem; }
  .lifestyle__text { font-size: 1rem; }
  .cta__title { font-size: 1.6rem; }
  .cta__text { font-size: 1rem; }

  .header {
    background-color: var(--color-white);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
  }
  
  .header__logo img {
    filter: none;
  }

  .mobile-only-cta {
    display: block;
    margin-top: 2rem;
    width: 100%;
  }

  .mobile-only-cta .btn {
    width: 100%;
  }

  .desktop-only {
    display: none;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .nav {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--color-white);
    transition: right var(--transition-fast);
    display: flex;
    flex-direction: column;
    padding: 2rem;
    box-shadow: -5px 0 15px rgba(0,0,0,0.05);
  }
  
  .nav.is-active {
    right: 0;
  }
  
  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  
  .nav__link {
    color: var(--color-text-main);
    font-size: 1.25rem;
  }
  
  .hamburger,
  .hamburger::before,
  .hamburger::after {
    background-color: var(--color-primary);
  }

  /* Hero Section Mobile */
  .hero {
    height: 50vh;
    min-height: 400px;
  }

  .hero__title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .hero__subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero__actions {
    flex-direction: row;
    justify-content: center;
    gap: 0.5rem;
  }

  .hero__actions .btn {
    padding: 0.5rem;
    font-size: 0.95rem;
    flex: 1;
    white-space: nowrap;
  }
  
  /* Services 2 Columns Mobile */
  .services__grid, #tourism .services__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .service-content {
    padding: 1rem;
  }

  .service-content .btn {
    font-size: 0.65rem;
    padding: 0.5rem;
  }

  .service-image img {
    height: 120px;
  }

  .cta__buttons {
    flex-direction: column;
  }
}

@media screen and (max-width: 430px) {
  .hero__actions .btn {
    font-size: 0.85rem;
    padding: 0.5rem 0.25rem;
  }
}
