/* ============================================
   Middle East Made Yours - Shared Stylesheet
   Premium DMC Brand Design System
   ============================================ */

:root {
  --color-primary: #ba2a34;
  --color-primary-dark: #8a1f27;
  --color-navy: #233245;
  --color-navy-light: #3a4a5e;
  --color-accent: #a0244e;
  --color-gold: #c9a961;
  --color-cream: #f7f3ec;
  --color-sand: #ede5d3;
  --color-text: #4d5d71;
  --color-text-light: #8a98ab;
  --color-white: #ffffff;
  --color-black: #0f1419;
  --color-overlay: #b5cfea;

  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container-width: 1240px;
  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-white);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-navy);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.15em; font-family: var(--font-body); font-weight: 500; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================
   HEADER
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(35, 50, 69, 0.06);
  transition: all var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.site-logo img {
  height: 56px;
  width: auto;
  transition: transform var(--transition);
}

.site-logo:hover img {
  transform: scale(1.03);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.main-nav a {
  color: var(--color-navy);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  position: relative;
  padding: 0.5rem 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: all var(--transition);
  transform: translateX(-50%);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav a.active {
  color: var(--color-primary);
}

.has-dropdown {
  position: relative;
}

.has-dropdown > a::before {
  content: '▾';
  margin-left: 0.4rem;
  font-size: 0.75rem;
  opacity: 0.6;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: white;
  min-width: 220px;
  padding: 1rem 0;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(15, 20, 25, 0.12);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  color: var(--color-navy);
}

.dropdown-menu a::after { display: none; }

.dropdown-menu a:hover {
  color: var(--color-primary);
  background: var(--color-cream);
  padding-left: 1.75rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-navy);
}

/* ============================================
   PAGE HERO
   ============================================ */

.page-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  overflow: hidden;
  background: linear-gradient(135deg, #1a2332 0%, #2d3e5a 50%, #1a2332 100%);
  color: white;
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(186, 42, 52, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(201, 169, 97, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,0.02) 35px, rgba(255,255,255,0.02) 70px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
  position: relative;
  padding: 0 3rem;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 2.5rem;
  height: 1px;
  background: var(--color-gold);
}

.hero-eyebrow::before { left: 0; }
.hero-eyebrow::after { right: 0; }

.page-hero h1 {
  color: white;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.page-hero h1 em {
  font-style: italic;
  color: var(--color-gold);
}

.hero-subtitle {
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto;
  opacity: 0.85;
  line-height: 1.7;
}

/* ============================================
   SECTIONS
   ============================================ */

section {
  padding: 6rem 0;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-title {
  margin-bottom: 1.5rem;
}

.section-title em {
  font-style: italic;
  color: var(--color-primary);
}

.section-intro {
  max-width: 720px;
  margin: 0 auto 4rem;
  text-align: center;
  font-size: 1.1rem;
  color: var(--color-text);
}

.text-center { text-align: center; }

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: var(--color-primary);
  color: white;
  border: 2px solid var(--color-primary);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(186, 42, 52, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn-outline:hover {
  background: var(--color-navy);
  color: white;
  border-color: var(--color-navy);
  box-shadow: 0 12px 30px rgba(35, 50, 69, 0.25);
}

.btn-light {
  background: white;
  color: var(--color-navy);
  border-color: white;
}

.btn-light:hover {
  background: var(--color-gold);
  color: var(--color-navy);
  border-color: var(--color-gold);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: #0a0e14;
  color: #999;
  padding: 5rem 0 2rem;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-gold), var(--color-primary));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-logo {
  height: 80px;
  width: auto;
  margin-bottom: 1.5rem;
}

.footer-info p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.footer-info strong {
  color: white;
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.footer-info a {
  color: var(--color-gold);
}

.footer h6 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #999;
  font-size: 0.95rem;
  transition: all var(--transition);
}

.footer-links a:hover {
  color: var(--color-gold);
  padding-left: 0.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all var(--transition);
}

.social-links a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-3px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.85rem;
  color: #666;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .main-nav { display: none; }
  .mobile-toggle { display: block; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 767px) {
  body { font-size: 15px; }
  section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }
  .page-hero { min-height: 50vh; padding: 7rem 1.25rem 3rem; }
  .hero-eyebrow { font-size: 0.75rem; padding: 0 2rem; }
  .hero-eyebrow::before, .hero-eyebrow::after { width: 1.5rem; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .header-inner { padding: 0.75rem 1.25rem; }
  .site-logo img { height: 44px; }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.fade-up-delay-1 { animation-delay: 0.15s; }
.fade-up-delay-2 { animation-delay: 0.3s; }
.fade-up-delay-3 { animation-delay: 0.45s; }
