/* ═══════════════════════════════════════════════════════════
   Taif - طَيف | Landing Page Styles
   Colors: Primary Teal #3D9A8B, Golden #D4A54B, Cream #FDFCF9
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

:root {
  --primary: #3D9A8B;
  --primary-dark: #2D8275;
  --primary-light: #5BB5A6;
  --golden: #D4A54B;
  --golden-light: #E8C97D;
  --cream: #FDFCF9;
  --warm: #F8F7F4;
  --text-primary: #2D2D2D;
  --text-secondary: #666666;
  --text-muted: #999999;
  --white: #FFFFFF;
  --border: #E8E5E0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Tajawal', sans-serif;
  direction: rtl;
  text-align: right;
  background-color: var(--cream);
  color: var(--text-primary);
  line-height: 1.8;
  overflow-x: hidden;
}

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

/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253, 252, 249, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(61, 154, 139, 0.08);
  padding: 12px 0;
  transition: all 0.3s ease;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(61, 154, 139, 0.15);
}

.nav-logo span {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s;
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--golden);
  border-radius: 1px;
  transition: width 0.3s ease;
}

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

/* ═══════════════════════════════════════════
   CONTAINER
   ═══════════════════════════════════════════ */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

/* Wrapper pattern background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/wrapper-pattern.png');
  background-repeat: repeat;
  background-size: 200px;
  opacity: 0.04;
  z-index: 0;
}

/* Teal gradient overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(61, 154, 139, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(212, 165, 75, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, transparent 0%, rgba(61, 154, 139, 0.03) 100%);
  z-index: 0;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 64px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 8px;
  text-shadow: 0 2px 20px rgba(61, 154, 139, 0.1);
}

.hero-slogan {
  font-size: 24px;
  font-weight: 700;
  color: var(--golden);
  margin-bottom: 28px;
  letter-spacing: 5px;
}

.hero-story {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 2.2;
  margin-bottom: 36px;
  max-width: 500px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 16px 40px;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 8px 30px rgba(61, 154, 139, 0.3);
  position: relative;
  overflow: hidden;
}

.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(61, 154, 139, 0.4);
}

.hero-cta:hover::before {
  opacity: 1;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Decorative rings around logo */
.hero-visual::before {
  content: '';
  position: absolute;
  width: 360px;
  height: 360px;
  border: 2px solid rgba(61, 154, 139, 0.12);
  border-radius: 50%;
  animation: spin 25s linear infinite;
}

.hero-visual::after {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(212, 165, 75, 0.1);
  border-radius: 50%;
  animation: spin 35s linear infinite reverse;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-logo {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 
    0 20px 60px rgba(61, 154, 139, 0.25),
    0 0 0 6px rgba(61, 154, 139, 0.08),
    0 0 80px rgba(61, 154, 139, 0.1);
  position: relative;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

/* ═══════════════════════════════════════════
   GALLERY
   ═══════════════════════════════════════════ */

.gallery {
  padding: 100px 0;
  background: var(--white);
  position: relative;
}

.gallery::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/wrapper-pattern.png');
  background-repeat: repeat;
  background-size: 200px;
  opacity: 0.025;
}

.section-header {
  text-align: center;
  position: relative;
  z-index: 1;
  margin-bottom: 56px;
}

.section-title {
  text-align: center;
  font-size: 40px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 0;
}

.section-line {
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--golden));
  border-radius: 2px;
  margin: 16px auto 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  position: relative;
  z-index: 1;
}

.gallery-item {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.4s ease;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* Subtle overlay on hover */
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(61, 154, 139, 0.2) 100%);
  opacity: 0;
  transition: opacity 0.4s;
  border-radius: 20px;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* ═══════════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════════ */

.features {
  padding: 100px 0;
  background: var(--cream);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/wrapper-pattern.png');
  background-repeat: repeat;
  background-size: 200px;
  opacity: 0.03;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.feature-card {
  background: var(--white);
  border-radius: 24px;
  padding: 40px 28px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--golden));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  border-color: rgba(61, 154, 139, 0.15);
}

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

.feature-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 32px;
  transition: transform 0.3s;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-icon.teal {
  background: linear-gradient(135deg, rgba(61, 154, 139, 0.12), rgba(61, 154, 139, 0.06));
}

.feature-icon.gold {
  background: linear-gradient(135deg, rgba(212, 165, 75, 0.12), rgba(212, 165, 75, 0.06));
}

.feature-icon.blue {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.12), rgba(52, 152, 219, 0.06));
}

.feature-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 2;
}

/* ═══════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════ */

.contact {
  padding: 100px 0;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: white;
  position: relative;
  overflow: hidden;
}

/* Floating particles effect */
.contact::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 154, 139, 0.1) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  animation: float 8s ease-in-out infinite;
}

.contact::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 165, 75, 0.08) 0%, transparent 70%);
  bottom: -50px;
  right: -50px;
  animation: float 10s ease-in-out infinite reverse;
}

.contact .section-title {
  color: white;
}

.contact .section-subtitle {
  color: rgba(255, 255, 255, 0.5);
}

.contact .section-line {
  background: linear-gradient(90deg, var(--primary-light), var(--golden));
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.15);
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.contact-icon.teal { background: rgba(61, 154, 139, 0.2); }
.contact-icon.gold { background: rgba(212, 165, 75, 0.2); }
.contact-icon.green { background: rgba(46, 204, 113, 0.2); }
.contact-icon.pink { background: rgba(232, 67, 147, 0.2); }

.contact-info h4 {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
  margin-bottom: 4px;
}

.contact-info p {
  font-size: 16px;
  font-weight: 600;
  direction: ltr;
  text-align: right;
}

.location-text {
  text-align: center;
  margin-top: 40px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 15px;
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */

.footer {
  background: #0a1628;
  padding: 40px 0 24px;
  color: rgba(255, 255, 255, 0.5);
}

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

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

.footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-brand {
  font-size: 14px;
}

.footer-brand span {
  color: var(--primary-light);
  font-weight: 700;
}

/* ═══════════════════════════════════════════
   LEGAL PAGES
   ═══════════════════════════════════════════ */

.legal-page {
  padding: 120px 0 80px;
  min-height: 100vh;
  position: relative;
}

.legal-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/wrapper-pattern.png');
  background-repeat: repeat;
  background-size: 200px;
  opacity: 0.03;
}

.legal-page .container {
  position: relative;
  z-index: 1;
}

.legal-page h1 {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.legal-page .last-updated {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.legal-content {
  max-width: 800px;
  background: var(--white);
  border-radius: 24px;
  padding: 44px;
  border: 1px solid var(--border);
  line-height: 2.2;
  font-size: 15px;
  color: var(--text-secondary);
  white-space: pre-line;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.legal-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}

.legal-tab {
  padding: 10px 28px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-secondary);
  transition: all 0.3s;
  font-family: 'Tajawal', sans-serif;
}

.legal-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.legal-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(61, 154, 139, 0.3);
}

/* ═══════════════════════════════════════════
   HAMBURGER MENU BUTTON
   ═══════════════════════════════════════════ */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: rgba(61, 154, 139, 0.08);
  border: 1px solid rgba(61, 154, 139, 0.15);
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  z-index: 200;
  transition: all 0.3s ease;
}

.nav-toggle:hover {
  background: rgba(61, 154, 139, 0.15);
}

.nav-toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animate to X when open */
.nav-toggle.active .nav-toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .nav-toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ═══════════════════════════════════════════
   RESPONSIVE — TABLET (max-width: 900px)
   ═══════════════════════════════════════════ */

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-title { font-size: 52px; }
  .hero-slogan { font-size: 22px; letter-spacing: 3px; }
  .hero-story { margin: 0 auto 32px; }
  .hero-logo { width: 220px; height: 220px; }
  .hero-visual { order: -1; }
  .hero-visual::before { width: 280px; height: 280px; }
  .hero-visual::after { width: 250px; height: 250px; }

  .features-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — MOBILE (max-width: 768px)
   ═══════════════════════════════════════════ */

@media (max-width: 768px) {
  /* Show hamburger button */
  .nav-toggle {
    display: flex;
  }

  /* Mobile nav menu — slides down */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(253, 252, 249, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px 24px;
    gap: 0;
    border-bottom: 1px solid rgba(61, 154, 139, 0.1);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  }

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

  .nav-links li {
    border-bottom: 1px solid rgba(61, 154, 139, 0.06);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: 14px 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
  }

  .nav-links a:hover {
    color: var(--primary);
    background: rgba(61, 154, 139, 0.04);
    border-radius: 10px;
  }

  .nav-links a::after {
    display: none;
  }

  /* Hero */
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  .hero { padding-top: 70px; }
  .hero-title { font-size: 44px; }
  .hero-slogan { font-size: 18px; letter-spacing: 2px; }
  .hero-story { 
    margin: 0 auto 28px;
    font-size: 15px;
    line-height: 2;
  }
  .hero-logo { width: 180px; height: 180px; }
  .hero-visual { order: -1; }
  .hero-visual::before { width: 240px; height: 240px; }
  .hero-visual::after { width: 210px; height: 210px; }
  .hero-cta {
    padding: 14px 32px;
    font-size: 15px;
  }

  /* Grids */
  .features-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* Sections */
  .gallery { padding: 60px 0; }
  .features { padding: 60px 0; }
  .contact { padding: 60px 0; }
  .section-header { margin-bottom: 36px; }
  .section-title { font-size: 30px; }
  .section-subtitle { font-size: 14px; }

  /* Feature cards */
  .feature-card { padding: 28px 20px; }
  .feature-card h3 { font-size: 18px; }

  /* Contact items */
  .contact-item { padding: 16px 18px; }

  /* Footer */
  .footer .container {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .footer-brand { font-size: 13px; }

  /* Legal */
  .legal-content { padding: 24px 18px; font-size: 14px; }
  .legal-tabs { flex-wrap: wrap; }
  .legal-page h1 { font-size: 28px; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (max-width: 400px)
   ═══════════════════════════════════════════ */

@media (max-width: 400px) {
  .hero-title { font-size: 36px; }
  .hero-slogan { font-size: 16px; }
  .hero-logo { width: 150px; height: 150px; }
  .hero-visual::before { width: 200px; height: 200px; }
  .hero-visual::after { width: 180px; height: 180px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
  .section-title { font-size: 26px; }
}
