/* dreweshgroup.css - Premium Corporate Stylesheet (White, Crimson Red & Gold) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Cairo:wght@300;400;600;700;800&display=swap');

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #fbfbfd;
  --bg-tertiary: #f4f4f7;
  --card-bg: #ffffff;
  --border-color: rgba(15, 23, 42, 0.06);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  
  /* Brand colors */
  --accent-red: #a81e1e; /* Premium Corporate Crimson */
  --accent-red-hover: #881616;
  --accent-red-light: rgba(168, 30, 30, 0.04);
  --accent-gold: #c5a059; /* Luxury Champagne Gold */
  --accent-gold-hover: #ab853e;
  --accent-gold-light: rgba(197, 160, 89, 0.08);
  
  --font-en: 'Outfit', sans-serif;
  --font-ar: 'Cairo', sans-serif;
  
  /* Modern styling defaults */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 12px 34px -10px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-en);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.rtl {
  font-family: var(--font-ar);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-red);
}

/* Background Glows */
.glow-bg {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}
.glow-1 {
  background: var(--accent-red);
  top: -10%;
  left: -5%;
}
.glow-2 {
  background: var(--accent-gold);
  bottom: 20%;
  right: -5%;
}

/* Navigation Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 16px 8%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: var(--transition);
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 1px;
}

.logo-text span {
  color: var(--accent-red);
  position: relative;
}

.logo-text span::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-gold);
}

.lang-switch {
  padding: 8px 20px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: transparent;
  color: var(--text-primary);
  border-radius: 30px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.lang-switch:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: white;
  box-shadow: 0 4px 15px rgba(168, 30, 30, 0.2);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 8% 100px;
  text-align: center;
  background: radial-gradient(circle at center, #ffffff 0%, #f7f9fc 100%);
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  max-width: 380px;
  width: 80%;
  margin-bottom: 35px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.04));
  transition: transform 0.5s ease;
}
.hero-logo:hover {
  transform: scale(1.02);
}

.hero h2 {
  font-size: 20px;
  color: var(--accent-red);
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 20px;
  text-transform: uppercase;
  position: relative;
}

.hero p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.8;
  font-weight: 400;
}

.btn-container {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.btn {
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent-red);
  color: white;
}
.btn-primary:hover {
  background: var(--accent-red-hover);
  box-shadow: 0 8px 24px rgba(168, 30, 30, 0.25);
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: transparent;
  color: var(--text-primary);
}
.btn-secondary:hover {
  background: var(--accent-gold-light);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

.btn-green {
  background: #15803d;
  color: white;
}
.btn-green:hover {
  background: #166534;
  box-shadow: 0 8px 24px rgba(21, 128, 61, 0.25);
  transform: translateY(-2px);
}

/* Sections */
.section {
  position: relative;
  padding: 120px 8%;
  z-index: 10;
}

.section-title {
  text-align: center;
  margin-bottom: 80px;
}

.section-title h2 {
  font-size: 34px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-red);
  margin: 15px auto 0;
  border-radius: 2px;
}

.section-title p {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 600px;
  margin: 0 auto;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* Card Styles */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 40px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(168, 30, 30, 0.15);
}

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

.card-icon {
  background: var(--accent-red-light);
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  color: var(--accent-red);
  font-weight: 700;
  font-size: 18px;
  border: 1px solid rgba(168, 30, 30, 0.08);
}

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

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

/* Spotlight Sections */
.spotlight-img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  object-fit: cover;
  aspect-ratio: 16/11;
  transition: var(--transition);
}

.spotlight-img:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.spotlight-content h3 {
  font-size: 28px;
  color: var(--text-primary);
  margin-bottom: 20px;
  font-weight: 800;
  position: relative;
  display: inline-block;
}

.spotlight-content h3::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent-gold);
}

.spotlight-content p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 35px;
}

/* Brand Highlight Banner (Sabrina) */
.brand-highlight-section {
  padding: 100px 8%;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.brand-banner {
  background: rgba(21, 128, 61, 0.02);
  border: 1px solid rgba(21, 128, 61, 0.08);
  border-radius: var(--radius-lg);
  padding: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.brand-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: #15803d;
}

.brand-banner-text {
  max-width: 550px;
}

.brand-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(21, 128, 61, 0.06);
  border: 1px solid rgba(21, 128, 61, 0.12);
  color: #15803d;
  font-size: 11px;
  font-weight: 700;
  border-radius: 30px;
  text-transform: uppercase;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.brand-banner h2 {
  font-size: 32px;
  color: var(--text-primary);
  margin-bottom: 20px;
  font-weight: 800;
}

.brand-banner p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 35px;
}

.brand-banner-img {
  width: 280px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.brand-banner-img:hover {
  transform: rotate(2deg) scale(1.03);
}

/* Slider Section */
.slider-container {
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  aspect-ratio: 16/9;
  box-shadow: var(--shadow-lg);
  background: #e2e8f0;
}

.slider-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.slider-container img.active {
  opacity: 1;
  z-index: 2;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  font-size: 18px;
  user-select: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.slider-nav:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: white;
  box-shadow: 0 6px 18px rgba(168, 30, 30, 0.25);
}
.slider-prev {
  left: 24px;
}
.slider-next {
  right: 24px;
}

/* Contact Form */
.contact-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
}

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

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input, .textarea {
  width: 100%;
  padding: 14px 20px;
  background: white;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
}
.input:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(168, 30, 30, 0.08);
}

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

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.info-icon {
  background: white;
  border: 1px solid var(--border-color);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-red);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  font-size: 18px;
}

.contact-info-item h4 {
  font-size: 15px;
  margin-bottom: 6px;
  font-weight: 700;
}

.contact-info-item p, .contact-info-item a {
  color: var(--text-secondary);
  font-size: 14px;
  text-decoration: none;
  transition: var(--transition);
}
.contact-info-item a:hover {
  color: var(--accent-red);
}

/* Footer */
footer {
  padding: 50px 8%;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  color: var(--text-secondary);
  font-size: 13px;
}

/* RTL Layout fixes */
body.rtl {
  direction: rtl;
  text-align: right;
}

body.rtl .logo-text span::after {
  left: auto;
  right: 0;
}

body.rtl .slider-prev {
  left: auto;
  right: 24px;
}
body.rtl .slider-next {
  right: auto;
  left: 24px;
}

body.rtl .card::before {
  left: auto;
  right: 0;
  transform-origin: right;
}

body.rtl .brand-banner::before {
  left: auto;
  right: 0;
}

body.rtl .spotlight-content h3::after {
  left: auto;
  right: 0;
}

/* Image Load / Error Resilience styles */
img {
  transition: opacity 0.5s ease;
}
img.loading-fade {
  opacity: 0;
}
img.loaded-fade {
  opacity: 1;
}

/* Handle layout changes when images fail and are hidden */
.grid-2:has(.spotlight-img[style*="display: none"]),
.grid-2:has(.spotlight-img:not([src])) {
  grid-template-columns: 1fr;
}
.grid-2:has(.spotlight-img[style*="display: none"]) .spotlight-img,
.grid-2:has(.spotlight-img:not([src])) .spotlight-img {
  display: none;
}

.brand-banner:has(.brand-banner-img[style*="display: none"]) {
  grid-template-columns: 1fr;
  text-align: center;
  justify-content: center;
}
.brand-banner:has(.brand-banner-img[style*="display: none"]) .brand-banner-text {
  max-width: 100%;
}

/* Responsive Design */
@media (max-width: 992px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .brand-banner {
    flex-direction: column-reverse;
    padding: 50px 40px;
    gap: 40px;
    text-align: center;
  }
  .brand-banner::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
  }
  body.rtl .brand-banner::before {
    right: 0;
  }
  .brand-banner-img {
    width: 60%;
    max-width: 220px;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  footer {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
}
