/* ========================================
   NIRA WELLNESS - PREMIUM DESIGN SYSTEM
   Inspired by Aramco Theme with Feminine Grace
   ======================================== */

/* === GOOGLE FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Lato:wght@300;400;700&display=swap');

/* === CSS CUSTOM PROPERTIES === */
:root {
  /* Brand Colors - Nira Palette */
  --color-primary: #C9A961;
  /* Nira Gold */
  --color-secondary: #A8B5A0;
  /* Soft Olive */
  --color-tertiary: #D4C4B0;
  /* Muted Taupe */

  /* Neutrals */
  --color-bg-light: #FDFCFA;
  /* Off-white */
  --color-bg-cream: #F7F4EF;
  /* Light cream */
  --color-text-dark: #2C2C2C;
  /* Charcoal */
  --color-text-medium: #5A5A5A;
  /* Medium gray */
  --color-text-light: #8B8B8B;
  /* Light gray */

  /* Accent & Utility */
  --color-white: #FFFFFF;
  --color-overlay: rgba(0, 0, 0, 0.5);
  --color-overlay-light: rgba(0, 0, 0, 0.3);

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;

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

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s ease;
  --transition-slow: 0.6s ease;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
}

/* === GLOBAL RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background-color: var(--color-bg-light);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-dark);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-medium);
  font-size: 1.05rem;
}

.lead-text {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--color-text-medium);
}

.small-text {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* === LAYOUT UTILITIES === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

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

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

.grid {
  display: grid;
  gap: var(--spacing-md);
}

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

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.flex {
  display: flex;
}

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

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

/* === HEADER & NAVIGATION === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: var(--transition-medium);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.2rem var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: auto;
  max-height: 60px;
  max-width: 250px;
  width: auto;
  transition: var(--transition-medium);
}

.logo:hover {
  transform: scale(1.02);
}

.nav {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}

.nav-link {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-dark);
  padding: 0.5rem 1rem;
  position: relative;
  transition: var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition-medium);
}

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

.nav-link:hover::after {
  width: 80%;
}

/* Dropdown Navigation */
.nav-item {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--color-white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm);
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-medium);
  margin-top: 0.5rem;
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--color-text-dark);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  font-size: 0.95rem;
}

.dropdown-link:hover {
  background-color: var(--color-bg-cream);
  color: var(--color-primary);
  padding-left: 1.5rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background-color: var(--color-text-dark);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: all var(--transition-medium);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(201, 169, 97, 0.3);
}

.btn-primary:hover {
  background-color: #B8945A;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 169, 97, 0.4);
}

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

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

.btn-light {
  background-color: var(--color-white);
  color: var(--color-text-dark);
  box-shadow: var(--shadow-sm);
}

.btn-light:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* === HERO SECTION === */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
  /* Remove margin as header is transparent/overlay usually or fixed */
}

/* Compensate for fixed header if needed, but for full screen hero usually we want it top 0 */
/* If header is sticky/fixed, main body usually has padding, but hero is special. 
   Currently header is fixed. So hero starts at top. 
   The previous margin-top: 90px pushed it down. 
   If we want an immersive hero, we might want it behind the header? 
   The header has a white background. It's better to keep the margin OR make header transparent initially.
   Let's keep margin for now but make the hero contents richer. */
/* Actually, user said "dull". A full-screen bleed (behind header) is more premium. 
   But header background is solid white. 
   Let's stick to the layout but improve the hero visual itself. */

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  /* Parallax friction */
  /* transform: scale(1.1); */
  /* Optional zoom */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* More sophisticated gradient: Darker at bottom/corners for text pop */
  background: linear-gradient(to bottom,
      rgba(168, 181, 160, 0.2) 0%,
      rgba(107, 94, 82, 0.4) 50%,
      rgba(74, 66, 56, 0.7) 100%);
  z-index: -1;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 var(--spacing-md);
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
}

.hero p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.4rem;
  line-height: 1.6;
  margin-bottom: var(--spacing-lg);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
}

/* Scroll indicator styling */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 2rem;
  animation: bounce 2s infinite;
  opacity: 0.8;
  cursor: pointer;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-10px);
  }

  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

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

  .hero p {
    font-size: 1.1rem;
  }
}

/* === CARDS === */
.card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-medium);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-sm);
}

.card-title {
  font-size: 1.5rem;
  color: var(--color-text-dark);
  margin-bottom: var(--spacing-xs);
}

.card-text {
  color: var(--color-text-medium);
  flex-grow: 1;
  margin-bottom: var(--spacing-sm);
}

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

.card-link:hover {
  gap: 0.8rem;
  color: #B8945A;
}

/* === SERVICE CARDS === */
.service-card {
  background: linear-gradient(135deg, var(--color-white), var(--color-bg-cream));
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  text-align: center;
  transition: all var(--transition-medium);
  border: 1px solid rgba(201, 169, 97, 0.1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-sm);
  background-color: rgba(201, 169, 97, 0.1);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--color-primary);
  transition: var(--transition-medium);
}

.service-card:hover .service-icon {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: scale(1.1);
}

/* === BREADCRUMB === */
.breadcrumb {
  padding: 2rem 0 1rem;
  margin-top: 90px;
  background-color: var(--color-bg-cream);
}

.breadcrumb-list {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.9rem;
}

.breadcrumb-item {
  color: var(--color-text-light);
}

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

.breadcrumb-separator {
  color: var(--color-text-light);
}

/* === PAGE HEADER === */
.page-header {
  background: linear-gradient(135deg, var(--color-tertiary), var(--color-secondary));
  padding: 5rem 0 3rem;
  text-align: center;
  margin-top: 90px;
}

.page-header h1 {
  color: var(--color-white);
  margin-bottom: var(--spacing-sm);
}

.page-header p {
  color: var(--color-white);
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

/* === FOOTER === */
.footer {
  background-color: var(--color-text-dark);
  color: var(--color-bg-light);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-logo {
  height: auto;
  max-height: 70px;
  max-width: 200px;
  margin-bottom: var(--spacing-sm);
  filter: brightness(0) invert(1);
}

.footer-title {
  color: var(--color-primary);
  font-size: 1.2rem;
  margin-bottom: var(--spacing-sm);
}

.footer-link {
  display: block;
  color: var(--color-bg-light);
  padding: 0.3rem 0;
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-primary);
  padding-left: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-md);
  text-align: center;
  color: var(--color-text-light);
}

/* === CONTACT FORM === */
.contact-form {
  background-color: var(--color-white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-text-dark);
  font-weight: 600;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 2px solid var(--color-bg-cream);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
}

/* === ANIMATIONS === */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.fade-in-up {
  animation: fadeInUp 0.8s ease;
}

.slide-in-left {
  animation: slideInLeft 0.8s ease;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  :root {
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 90px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 90px);
    background-color: var(--color-white);
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-md);
    transition: var(--transition-medium);
    overflow-y: auto;
  }

  .nav-link {
    text-align: center;
    width: 100%;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
  }

  /* Add dropdown indicator */
  /* Add dropdown indicator styles for the span added via HTML */
  .nav-item .nav-link span {
    display: inline-block;
    transition: transform 0.3s ease;
  }

  /* Rotate arrow when active */
  .nav-item.active .nav-link span {
    transform: rotate(180deg);
  }

  /* Remove the CSS pseudo-element arrow to avoid duplicates */
  .nav-item .nav-link::after {
    content: none;
  }

  .nav .btn {
    margin: 1rem 0 0 0 !important;
    width: 80%;
  }

  .nav.active {
    left: 0;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    margin: 0.5rem 0 0 0;
    padding: 0;
    background-color: var(--color-bg-cream);
    border-radius: var(--radius-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
  }

  .nav-item.active .dropdown {
    max-height: 700px;
    padding: 0.5rem 0;
  }

  .hero {
    height: 80vh;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* === UTILITY CLASSES === */
.text-center {
  text-align: center;
}

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

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

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

.mb-sm {
  margin-bottom: var(--spacing-sm);
}

.mb-md {
  margin-bottom: var(--spacing-md);
}

.mb-lg {
  margin-bottom: var(--spacing-lg);
}

.mt-sm {
  margin-top: var(--spacing-sm);
}

.mt-md {
  margin-top: var(--spacing-md);
}

.mt-lg {
  margin-top: var(--spacing-lg);
}