/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  font-family: 'Lora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #FFFFFF;
  color: #080814;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

/* Ensure RTL layout doesn't cause horizontal overflow */
body[dir="rtl"] {
  overflow-x: hidden;
  width: 100vw;
  max-width: 100vw;
  position: relative;
}

/* RTL Support for Arabic */
body[dir="rtl"] {
  font-family: 'Amiri', 'Lora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  direction: rtl;
  text-align: right;
}

/* Ensure RTL sections don't overflow */
body[dir="rtl"] .section {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

body[dir="rtl"] .container {
  direction: rtl;
  text-align: right;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

/* Fix RTL hero content positioning */
body[dir="rtl"] .hero {
  width: 100vw;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

body[dir="rtl"] .hero-content {
  width: 100%;
  max-width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
  position: relative;
  left: 0;
  right: 0;
  margin: 0 auto;
}

/* Fix RTL floating elements */
body[dir="rtl"] .floating-elements {
  width: 100vw;
  max-width: 100vw;
  overflow: hidden;
  position: absolute;
  left: 0;
  right: 0;
}

body[dir="rtl"] .page-bg {
  width: 100vw;
  max-width: 100vw;
  overflow: hidden;
  position: fixed;
  left: 0;
  right: 0;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  overflow-x: hidden;
}

/* Skip Link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  background: #ffffff;
  color: #080814;
  padding: 8px 16px;
  border-radius: 8px;
  z-index: 999;
  text-decoration: none;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #CAA337;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(116, 71, 37, 0.25);
  transition: transform 0.3s ease;
}

/* Hide-on-scroll state */
.site-header.header-hidden { transform: translateY(-100%); }

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

.header-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  height: 60px;
  width: auto;
}

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

.nav a {
  color: #744725;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: #5c341c;
}

/* Language Toggle */
.language-toggle {
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(116, 71, 37, 0.35);
  color: #744725;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.language-toggle:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(116, 71, 37, 0.5);
  transform: translateY(-1px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 4px;
  z-index: 1001;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background-color: #744725;
  transition: all 0.3s ease;
  border-radius: 1px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

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

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.nav-cta {
  background: #c5a253;
  color: #080814;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: #d4b162;
  transform: translateY(-2px);
}

/* Sections */
.section {
  padding: 120px 0;
  position: relative;
}

/* Soft separators to blend sections */
.section::after { display: none; }

.section-alt {
  background: transparent;
}

.section-anchor {
  scroll-margin-top: 100px;
}

/* Typography */
.h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(30px, 4.6vw, 44px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 80px;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: #744725;
}

.h3 {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0;
  color: #744725;
}

.body-lg {
  font-family: 'Lora', serif;
  font-size: 18px;
  line-height: 1.7;
  color: #333333;
}

.overline {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #CAA337;
  margin-bottom: 16px;
}

/* Hide small overline text in hero per request */
.hero .overline { display: none; }

/* Arabic Typography */
body[dir="rtl"] .h2 {
  font-family: 'Cairo', sans-serif;
}

body[dir="rtl"] .h3 {
  font-family: 'Noto Kufi Arabic', sans-serif;
}

body[dir="rtl"] .body-lg {
  font-family: 'Amiri', serif;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: #FFFFFF;
  width: 100%;
  max-width: 100vw;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(44px, 7.2vw, 88px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
  color: #744725;
}

.hero-sub {
  font-family: 'Lora', serif;
  font-size: clamp(18px, 3vw, 24px);
  color: #333333;
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.5;
}

/* Arabic Hero Typography */
body[dir="rtl"] .hero-title {
  font-family: 'Cairo', sans-serif;
}

body[dir="rtl"] .hero-sub {
  font-family: 'Amiri', serif;
  line-height: 1.9;
  letter-spacing: 0.01em;
}

.hero-actions {
  margin-top: 48px;
}

.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.btn-primary {
  background: #CAA337;
  color: #744725;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.btn-primary:hover {
  background: #A0B282;
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(202, 163, 55, 0.3);
}

/* Hero Graphics */
.hero-graphics {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  width: 100vw;
  max-width: 100vw;
}

/* Coffee cup world */
.cup-rim {
  position: absolute;
  inset: -20% -20% 60% -20%;
  border-radius: 50%;
  box-shadow: none;
}

.cup-liquid {
  position: absolute;
  inset: 10% 10% 50% 10%;
  border-radius: 50%;
  background: transparent;
  filter: none;
}

.cup-foam {
  position: absolute;
  top: 18%;
  left: 50%;
  width: 60%;
  height: 30%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: transparent;
  opacity: 0;
}

.cup-logo {
  position: absolute;
  top: 24%;
  left: 50%;
  transform: translate(-50%, -10%) scale(1);
  width: 280px;
  opacity: 0.12;
  filter: drop-shadow(0 4px 8px rgba(202, 163, 55, 0.2));
  mix-blend-mode: multiply;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 50%, rgba(0,0,0,0.3) 80%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 50%, rgba(0,0,0,0.3) 80%, rgba(0,0,0,0) 100%);
  animation: logoFloat 8s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { 
    transform: translate(-50%, -10%) scale(1) rotate(0deg); 
    opacity: 0.12;
  }
  50% { 
    transform: translate(-50%, -8%) scale(1.02) rotate(1deg); 
    opacity: 0.15;
  }
}

@keyframes logoDrift {
  0% { transform: translate(-50%, -10%) scale(1); }
  100% { transform: translate(-48%, -6%) scale(1.04); }
}

@keyframes logoBob {
  0% { transform: translate(-50%, -10%) scale(1); }
  50% { transform: translate(-50%, -8%) scale(1.02); }
  100% { transform: translate(-50%, -10%) scale(1); }
}

.steam {
  position: absolute;
  bottom: 45%;
  left: 50%;
  width: 140px;
  height: 140px;
  transform: translateX(-50%);
  background: none;
  filter: none;
  animation: none;
}
.steam-1 { animation-duration: 10s; left: 48%; }
.steam-2 { animation-duration: 13s; left: 52%; }
.steam-3 { animation-duration: 16s; left: 50%; }

@keyframes steamRise {
  0% { transform: translate(-50%, 40px) scale(0.8); opacity: 0; }
  20% { opacity: 0.6; }
  60% { opacity: 0.3; }
  100% { transform: translate(-50%, -240px) scale(1.2); opacity: 0; }
}

/* Section spacing tuned for continuous flow */
.section { padding: 96px 0; }
.hero { padding-top: 140px; }

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1200;
}
.scroll-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #CAA337, #A0B282);
}

.abstract-lines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: none;
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}

.element {
  position: absolute;
  border-radius: 50%;
  background: #CAA337;
  opacity: 0.45;
  animation: float 6s ease-in-out infinite;
}

.element-1 {
  width: 200px;
  height: 200px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.element-2 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.element-3 {
  width: 100px;
  height: 100px;
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

/* About Section */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-text p {
  margin-bottom: 24px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* QNV Alignment Section */
.alignment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  margin-top: 80px;
}

/* Cohesive card visuals across sections */
.alignment-card,
.pillar-card,
.team-card,
.contact-form,
.contact-details {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.alignment-card {
  background: #FFFFFF;
  border: 1px solid rgba(202, 163, 55, 0.4);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  transition: all 0.3s ease;
}

.alignment-card:hover {
  transform: translateY(-4px);
  border-color: rgba(202, 163, 55, 0.8);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.alignment-card h3 {
  color: #744725;
  margin-bottom: 24px;
}

.alignment-card p {
  color: #333333;
  line-height: 1.7;
}

/* Pillars Section */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 80px;
}

.pillar-card {
  background: #FFFFFF;
  border: 1px solid rgba(202, 163, 55, 0.3);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(197, 162, 83, 0.05) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pillar-card:hover::before {
  opacity: 1;
}

.pillar-card:hover {
  transform: translateY(-8px);
  border-color: rgba(202, 163, 55, 0.6);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.pillar-icon {
  margin-bottom: 32px;
}

.icon-graphic {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #CAA337, #A0B282);
  position: relative;
  overflow: hidden;
}

.icon-graphic::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.founders-graphic::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 20%;
  right: 20%;
  bottom: 20%;
  background: 
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
  border-radius: 50%;
}

.community-graphic::after {
  content: '';
  position: absolute;
  top: 15%;
  left: 15%;
  right: 15%;
  bottom: 15%;
  background: 
    linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
  border-radius: 50%;
}

.inspiration-graphic::after {
  content: '';
  position: absolute;
  top: 25%;
  left: 25%;
  right: 25%;
  bottom: 25%;
  background: 
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  border-radius: 50%;
}

.pillar-title {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #744725;
}

.pillar-description {
  font-family: 'Lora', serif;
  color: #333333;
  line-height: 1.6;
}

/* Arabic Pillar Typography */
body[dir="rtl"] .pillar-title {
  font-family: 'Noto Kufi Arabic', sans-serif;
}

body[dir="rtl"] .pillar-description {
  font-family: 'Amiri', serif;
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 80px;
}

.team-card {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(202, 163, 55, 0.3);
  border-radius: 20px;
  padding: 40px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-card:hover {
  transform: translateY(-4px);
  border-color: rgba(202, 163, 55, 0.6);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.team-photo {
  margin-bottom: 24px;
}

.team-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(202, 163, 55, 0.3);
  transition: all 0.3s ease;
}

.team-image.top-crop {
  object-position: center 15%;
}

.team-card:hover .team-image {
  border-color: rgba(202, 163, 55, 0.6);
  transform: scale(1.05);
}

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

.team-name {
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.team-title {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: #CAA337;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.team-note {
  font-family: 'Lora', serif;
  font-size: 14px;
  color: #C0B79B;
  font-style: italic;
}

/* Arabic Team Typography */
body[dir="rtl"] .team-name {
  font-family: 'Cairo', sans-serif;
}

body[dir="rtl"] .team-title {
  font-family: 'Noto Kufi Arabic', sans-serif;
}

body[dir="rtl"] .team-note {
  font-family: 'Amiri', serif;
}

/* Testimonials Section */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  margin-top: 80px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(197, 162, 83, 0.3);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
}

.testimonial-text {
  font-size: 18px;
  line-height: 1.6;
  color: #ffffff;
  margin-bottom: 32px;
  font-style: italic;
}

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

.author-name {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #c5a253;
  margin-bottom: 16px;
}

.company-logo {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

/* Why Section */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 80px;
}

.why-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(197, 162, 83, 0.2);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
}

.why-item:hover {
  border-color: rgba(197, 162, 83, 0.4);
  transform: translateY(-2px);
}

.check-icon {
  width: 24px;
  height: 24px;
  background: #c5a253;
  color: #0a0a1a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  flex-shrink: 0;
}

.why-item span:last-child {
  color: #ffffff;
  font-weight: 500;
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 {
  text-align: left;
  margin-bottom: 24px;
}

.contact-subtitle {
  font-size: 18px;
  color: #4a4a4a;
  line-height: 1.6;
  margin-bottom: 32px;
}

.contact-details {
  background: #FFFFFF;
  border: 1px solid rgba(197, 162, 83, 0.3);
  border-radius: 16px;
  padding: 24px;
  text-align: left;
}

.contact-details p {
  margin-bottom: 16px;
  color: #333333;
}

.contact-details p:last-child {
  margin-bottom: 0;
}

.contact-details strong {
  color: #CAA337;
}

.contact-form {
  background: #FFFFFF;
  border: 1px solid rgba(197, 162, 83, 0.3);
  border-radius: 20px;
  padding: 40px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(197, 162, 83, 0.2);
  border-radius: 12px;
  color: #ffffff;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #c5a253;
  box-shadow: 0 0 0 3px rgba(197, 162, 83, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-status {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
}

.contact-form {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(197, 162, 83, 0.2);
  border-radius: 20px;
  padding: 40px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(197, 162, 83, 0.2);
  color: #ffffff;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #c5a253;
  box-shadow: 0 0 0 3px rgba(197, 162, 83, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Footer */
.site-footer {
  background: #FFFFFF;
  border-top: 1px solid rgba(202, 163, 55, 0.3);
  padding: 80px 0 40px;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #CAA337, transparent);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 60px;
  align-items: start;
}

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

.footer-logo {
  margin-bottom: 16px;
}

.footer-logo img {
  height: 48px;
  width: auto;
}

.footer-tagline {
  color: #744725;
  font-size: 16px;
  font-family: 'Lora', serif;
}

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

.footer-links p {
  color: #333333;
  margin-bottom: 16px;
  font-family: 'Lora', serif;
}

.social-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.social-links a {
  color: #CAA337;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(202, 163, 55, 0.05);
  border: 1px solid rgba(202, 163, 55, 0.1);
  min-width: 100px;
  justify-content: center;
  font-family: 'Inter', sans-serif;
}

.social-links a:hover {
  color: #A0B282;
  background: rgba(202, 163, 55, 0.1);
  border-color: rgba(202, 163, 55, 0.3);
  transform: translateY(-2px);
}

.social-links svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

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

.footer-legal p {
  color: #333333;
  margin-bottom: 8px;
  font-size: 14px;
  font-family: 'Lora', serif;
}

.copyright {
  color: #666666;
  font-size: 12px;
  font-family: 'Lora', serif;
}

.design-credit a {
  color: #CAA337;
  text-decoration: none;
}

.design-credit a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  
  .section {
    padding: 80px 0;
  }
  
  .hero-title {
    font-size: clamp(36px, 10vw, 64px);
  }
  
  .h2 {
    font-size: clamp(28px, 8vw, 40px);
    margin-bottom: 60px;
  }
  
  .mission-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .alignment-grid {
    grid-template-columns: 1fr;
  }
  
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .header-controls {
    gap: 12px;
  }
  
  .language-toggle {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: #CAA337;
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(116, 71, 37, 0.25);
  }
  
  .nav.nav-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav a {
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
    text-align: center;
  }
  
  .nav a:last-child {
    border-bottom: none;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(32px, 12vw, 48px);
  }
  
  .pillar-card,
  .team-card,
  .alignment-card,
  .contact-form {
    padding: 24px;
  }
  
  /* Tame hero dots on small screens for cleaner layout */
  .floating-elements .element {
    opacity: 0.35;
    filter: blur(0.2px);
  }
  .floating-elements .element-1 { width: 120px; height: 120px; top: 12%; left: 6%; }
  .floating-elements .element-2 { width: 100px; height: 100px; top: 62%; right: 8%; }
  .floating-elements .element-3 { width: 70px; height: 70px; bottom: 18%; left: 14%; }
  
  /* Fix RTL overflow on mobile */
  body[dir="rtl"] .hero-content {
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    left: 0;
    right: 0;
    margin: 0 auto;
  }
  
  body[dir="rtl"] .container {
    padding: 0 15px;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  /* Additional RTL mobile fixes */
  body[dir="rtl"] .hero {
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  body[dir="rtl"] .floating-elements {
    width: 100vw;
    max-width: 100vw;
    overflow: hidden;
  }
  
  body[dir="rtl"] .page-bg {
    width: 100vw;
    max-width: 100vw;
    overflow: hidden;
  }
  
  .hero {
    background-attachment: scroll;
  }
}