/* =============================================
   NAFIAN / Agents Association - Design System
   ============================================= */

/* ---------- CSS Custom Properties ---------- */
:root {
  --deep-green: #135D43;
  --teal: #1AB188;
  --teal-dark: #159B77;
  --navy: #0F1B2D;
  --navy-light: #162540;
  --gold: #C5964B;
  --gold-light: #D4A95E;
  --white: #FFFFFF;
  --off-white: #F5F7FA;
  --light-gray: #E8ECF0;
  --text-dark: #1A1A2E;
  --text-body: #555566;
  --text-light: #8B8BA0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, .08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, .12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: .3s ease;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--deep-green);
  line-height: 1.2;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-style: italic;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-title-light {
  color: var(--white);
}

.section-subtitle {
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto 48px;
  color: var(--text-body);
}

.section-label {
  display: inline-block;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--deep-green);
  color: var(--white);
  border-color: var(--deep-green);
}

.btn-primary:hover {
  background: var(--teal);
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 177, 136, .35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, .1);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* ---------- Sections ---------- */
.section {
  padding: 100px 0;
}

.section-light {
  background: var(--off-white);
}

.section-green {
  background: var(--deep-green);
  color: var(--white);
}

.section-green p {
  color: rgba(255, 255, 255, .85);
}

/* =============================================
   HEADER
   ============================================= */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

#header.scrolled {
  background: rgba(255, 255, 255, .97);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

#header.menu-open {
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

#header.menu-open .hamburger span {
  background: var(--white) !important;
}

#header.menu-open .logo-text {
  color: var(--white) !important;
}

#header.menu-open .nav-link {
  color: var(--white) !important;
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  height: 32px;
  width: auto;
}

.logo-text {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--deep-green);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: .95rem;
  font-weight: 500;
  color: var(--white);
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

#header.scrolled .nav-link {
  color: var(--text-dark);
}

.nav-cta {
  padding: 10px 24px;
  font-size: .9rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
}

#header.scrolled .hamburger span {
  background: var(--text-dark);
}

/* =============================================
   HERO CAROUSEL
   ============================================= */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
}

/* Track holds all slides side-by-side */
.hc-track {
  display: flex;
  height: 100%;
  transition: transform .7s cubic-bezier(.77, 0, .18, 1);
  will-change: transform;
}

/* Individual slide */
.hc-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Ken-Burns zoom on active slide */
.hc-slide.active {
  animation: hcZoom 6s ease forwards;
}

@keyframes hcZoom {
  from {
    background-size: 110%;
  }

  to {
    background-size: 100%;
  }
}

/* Dark gradient overlay */
.hc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(15, 27, 45, .75) 0%,
      rgba(19, 93, 67, .55) 100%);
}

/* Centred content */
.hc-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  padding-top: 80px;
  /* clear fixed header */
}

/* Animated entrance for active slide content */
.hc-slide.active .hc-label,
.hc-slide.active .hc-heading,
.hc-slide.active .hc-sub,
.hc-slide.active .hc-buttons {
  animation: hcFadeUp .8s ease both;
}

.hc-slide.active .hc-label {
  animation-delay: .1s;
}

.hc-slide.active .hc-heading {
  animation-delay: .25s;
}

.hc-slide.active .hc-sub {
  animation-delay: .4s;
}

.hc-slide.active .hc-buttons {
  animation-delay: .55s;
}

@keyframes hcFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hc-label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(26, 177, 136, .15);
  border: 1px solid rgba(26, 177, 136, .4);
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.hc-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  color: var(--white);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .4);
}

.hc-sub {
  font-size: clamp(.95rem, 1.8vw, 1.15rem);
  color: rgba(255, 255, 255, .82);
  max-width: 620px;
  line-height: 1.8;
  margin-bottom: 36px;
}

.hc-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Arrow buttons */
.hc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  border: 1.5px solid rgba(255, 255, 255, .3);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  backdrop-filter: blur(6px);
}

.hc-arrow:hover {
  background: var(--teal);
  border-color: var(--teal);
  transform: translateY(-50%) scale(1.08);
}

.hc-arrow svg {
  width: 22px;
  height: 22px;
}

.hc-prev {
  left: 24px;
}

.hc-next {
  right: 24px;
}

/* Dot indicators */
.hc-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hc-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
  border: none;
  cursor: pointer;
  transition: all .3s ease;
  padding: 0;
}

.hc-dot.active {
  background: var(--white);
  transform: scale(1.3);
}

/* Progress bar at bottom of active dot */
.hc-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: var(--teal);
  width: 0%;
  transition: width 0s linear;
}

.hc-progress.running {
  transition: width 5s linear;
  width: 100%;
}

/* =============================================
   MISSION
   ============================================= */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.mission-paragraph {
  font-size: 1.05rem;
  margin-bottom: 20px;
  line-height: 1.8;
}

.mission-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* =============================================
   SERVICES (WHAT WE DO)
   ============================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  transition: all var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(26, 177, 136, .2);
}

.service-icon {
  width: 52px;
  height: 52px;
  color: var(--teal);
  margin-bottom: 20px;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-title {
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-desc {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--text-body);
}

/* =============================================
   WOMEN WING
   ============================================= */
.women-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.women-text p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.women-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* =============================================
   MALL
   ============================================= */
.mall-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.mall-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.mall-text p {
  font-size: 1.05rem;
  line-height: 1.8;
}

/* =============================================
   STRATEGIC PARTNERSHIPS
   ============================================= */
.partnerships-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.partnerships-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.partnerships-text p {
  margin-bottom: 16px;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* =============================================
   MEMBERSHIP
   ============================================= */
.membership-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.membership-desc {
  font-size: 1.1rem;
  margin-bottom: 32px;
  line-height: 1.8;
}

.membership-login {
  margin-top: 20px;
  font-size: .95rem;
  color: var(--text-light);
}

.membership-login a {
  color: var(--deep-green);
  font-weight: 600;
  text-decoration: underline;
}

.membership-login a:hover {
  color: var(--teal);
}

/* =============================================
   CONTACT
   ============================================= */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.contact-card {
  background: var(--off-white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.contact-card-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  color: var(--teal);
}

.contact-card-icon svg {
  width: 100%;
  height: 100%;
}

.contact-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.contact-card p {
  font-size: .95rem;
  color: var(--text-body);
}

.contact-form-wrapper {
  max-width: 700px;
  margin: 0 auto;
  background: var(--off-white);
  border-radius: var(--radius-md);
  padding: 40px;
  border: 1px solid var(--light-gray);
}

.form-title {
  font-size: 1.4rem;
  font-style: italic;
  margin-bottom: 24px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  padding: 14px 18px;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--deep-green);
  color: rgba(255, 255, 255, .85);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-col p {
  font-size: .9rem;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, .7);
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: .9rem;
  color: rgba(255, 255, 255, .7);
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--teal);
}

.footer-bottom {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, .15);
  text-align: center;
}

.footer-bottom p {
  font-size: .85rem;
  color: rgba(255, 255, 255, .55);
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mission-grid,
  .women-grid,
  .mall-grid,
  .partnerships-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .mission-image {
    order: -1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(19, 93, 67, .97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links .nav-link {
    color: var(--white);
    font-size: 1.4rem;
  }

  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
    z-index: 1001;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hc-arrow {
    width: 40px;
    height: 40px;
  }

  .hc-prev {
    left: 12px;
  }

  .hc-next {
    right: 12px;
  }

  .section {
    padding: 60px 0;
  }

  .contact-form-wrapper {
    padding: 24px;
  }
}