/* ===== AYZ Brand Variables ===== */
:root {
  --burgundy: #4a0e0e;
  --burgundy-dark: #3a0b0b;
  --burgundy-light: #6b1515;
  --white: #ffffff;
  --off-white: #faf8f8;
  --gray-100: #f5f3f3;
  --gray-200: #e8e4e4;
  --gray-400: #9a9191;
  --gray-600: #5c5555;
  --gray-800: #2a2424;
  --black: #1a1414;
  --font-sans: 'Outfit', system-ui, sans-serif;
  --font-script: 'Great Vibes', cursive;
  --shadow-sm: 0 2px 8px rgba(74, 14, 14, 0.08);
  --shadow-md: 0 8px 30px rgba(74, 14, 14, 0.12);
  --shadow-lg: 0 20px 60px rgba(74, 14, 14, 0.18);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
  background: transparent;
}
.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 72px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-center {
  justify-self: center;
  grid-column: 2;
}
.nav-right {
  display: flex;
  align-items: center;
  justify-self: end;
  grid-column: 3;
  gap: 24px;
}
.nav-menu {
  display: flex;
  gap: 28px;
}
.nav-menu:first-of-type {
  justify-self: start;
  grid-column: 1;
}
.nav-menu-right {
  display: flex;
}
.nav-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}
.nav-logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--burgundy);
  letter-spacing: -0.5px;
}
.header:not(.scrolled) .nav-logo-text { color: var(--white); }
.header:not(.scrolled) .nav-menu a { color: rgba(255,255,255,0.9); }
.header:not(.scrolled) .nav-menu a:hover { color: var(--white); }
.header:not(.scrolled) .lang-toggle { color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.3); }
.header:not(.scrolled) .nav-toggle span { background: var(--white); }

.nav-menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: var(--transition);
  position: relative;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--burgundy);
  transition: var(--transition);
}
.nav-menu a:hover { color: var(--burgundy); }
.nav-menu a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 16px; }
.lang-toggle {
  background: none;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
  transition: var(--transition);
}
.lang-toggle:hover { border-color: var(--burgundy); color: var(--burgundy); }
.lang-active { color: var(--burgundy); }
.lang-inactive { color: var(--gray-400); }
.lang-sep { margin: 0 4px; color: var(--gray-200); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-mobile {
  display: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--burgundy);
  transition: var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 0;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--burgundy-dark) 0%, var(--burgundy) 50%, var(--burgundy-light) 100%);
  z-index: -1;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 40%);
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  flex: 1;
}
.hero-tagline {
  font-family: var(--font-script);
  font-size: 2rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 12px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual { display: flex; justify-content: center; }
.hero-logo-card {
  width: 280px;
  height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid rgba(255,255,255,0.15);
  animation: float 6s ease-in-out infinite;
}
.hero-logo { width: 100%; height: 100%; object-fit: cover; }

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px 24px;
  margin-top: auto;
  background: rgba(0,0,0,0.2);
  backdrop-filter: blur(8px);
}
.stat { text-align: center; }
.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}
.btn-primary {
  background: var(--white);
  color: var(--burgundy);
}
.btn-primary:hover {
  background: var(--off-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}
.btn-full { width: 100%; }

/* ===== Sections ===== */
.section { padding: 100px 0; }
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}
.section-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--burgundy);
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--black);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ===== Services ===== */
.services { background: var(--off-white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-100);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--burgundy), var(--burgundy-light));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 26px; height: 26px; color: var(--white); }
.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--black);
}
.service-card p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.65;
}

/* ===== Why ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.why-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}
.why-card:hover {
  border-color: var(--burgundy);
  box-shadow: var(--shadow-sm);
}
.why-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-200);
  line-height: 1;
  margin-bottom: 16px;
}
.why-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--burgundy);
}
.why-card p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.65;
}

/* ===== About ===== */
.about { background: var(--off-white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-content .section-label { display: block; text-align: start; }
.about-content h2 {
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--black);
  letter-spacing: -0.5px;
}
.about-content p {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 16px;
}
.about-visual { display: flex; justify-content: center; }
.about-card {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--burgundy-dark), var(--burgundy));
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 70%, rgba(255,255,255,0.08) 0%, transparent 60%);
}
.about-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
}
.about-icon svg { width: 100%; height: 100%; color: var(--white); }
.about-card-text {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
  position: relative;
}
.about-card-tagline {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: rgba(255,255,255,0.85);
  margin-top: 8px;
  position: relative;
}

/* ===== Team ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.team-card:hover { box-shadow: var(--shadow-md); }
.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--burgundy), var(--burgundy-light));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.team-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 4px;
}
.team-role {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--burgundy);
  margin-bottom: 16px;
}
.team-card p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ===== Contact ===== */
.contact { background: var(--off-white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}
.contact-icon svg { width: 22px; height: 22px; color: var(--burgundy); }
.contact-item h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-400);
  margin-bottom: 4px;
}
.contact-item a,
.contact-item p {
  font-size: 1rem;
  color: var(--gray-800);
  font-weight: 500;
}
.contact-item a:hover { color: var(--burgundy); }

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
}
.form-group { margin-bottom: 20px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--gray-800);
  background: var(--off-white);
  transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--burgundy);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(74, 14, 14, 0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}
.form-status.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.form-status.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ===== Footer ===== */
.footer {
  background: var(--burgundy-dark);
  color: rgba(255,255,255,0.8);
  padding: 48px 0 32px;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}
.footer-logo {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  margin: 0 auto;
}
.footer-tagline {
  font-family: var(--font-script);
  font-size: 1.3rem;
  color: rgba(255,255,255,0.9);
  margin-top: 8px;
}
.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--white); }
.footer-copy {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.footer-domain { color: rgba(255,255,255,0.7); }

/* ===== Reveal Animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RTL Support ===== */
[dir="rtl"] .nav-menu a::after { left: auto; right: 0; }
[dir="rtl"] .contact-item { flex-direction: row-reverse; text-align: right; }
[dir="rtl"] .about-content .section-label { text-align: right; }
[dir="rtl"] .hero-cta { flex-direction: row-reverse; }

/* ===== Responsive ===== */
@media (max-width: 968px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-logo-card { width: 200px; height: 200px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav {
    grid-template-columns: 1fr auto;
  }
  .nav-logo-center {
    grid-column: 1;
    justify-self: center;
  }
  .nav-right {
    grid-column: 2;
  }
  .nav-menu,
  .nav-menu-right {
    display: none;
  }
  .nav-mobile {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
    z-index: 999;
  }
  .nav-mobile.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-mobile a { color: var(--gray-800) !important; font-size: 1.1rem; font-weight: 500; }
  .nav-toggle { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 16px; }
  .hero h1 { font-size: 2rem; }
  .contact-form { padding: 24px; }
}
