/* css/style.css */
:root {
  --navy:        #0B1A2E;
  --navy-mid:    #122240;
  --navy-light:  #1A3055;
  --navy-card:   #0F2035;
  --navy-border: #1E3550;
  --gold:        #C9A84C;
  --gold-light:  #E4C97A;
  --gold-dim:    rgba(201, 168, 76, 0.2);
  --gold-faint:  rgba(201, 168, 76, 0.06);
  --white:       #F5F2EC;
  --white-dim:   #B8B4AC;
  --white-muted: #6E7A8A;
  --font-display: 'Playfair Display', serif;
  --font-body:    'Cairo', sans-serif;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; }

html { direction: rtl; scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0 0 var(--spacing-sm) 0;
  line-height: 1.3;
}

p { margin: 0 0 var(--spacing-sm) 0; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; }

/* Utilities */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-white-dim { color: var(--white-dim); }
.text-white { color: var(--white); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }
.pt-section { padding-top: var(--spacing-xl); }
.pb-section { padding-bottom: var(--spacing-xl); }
.py-section { padding-top: var(--spacing-xl); padding-bottom: var(--spacing-xl); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }
.gap-3 { gap: 3rem; }

/* Typography */
.display-title { font-size: 4rem; font-weight: 900; }
@media (max-width: 768px) { .display-title { font-size: 2.5rem; } }
.section-title { font-size: 2.5rem; margin-bottom: var(--spacing-sm); }
.subtitle { color: var(--gold); text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem; font-weight: 600; display: block; margin-bottom: 0.5rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}
.btn-primary {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold);
  color: var(--navy);
}
.btn-outline {
  border-color: var(--white-dim);
  color: var(--white);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.05);
}
.btn-gold-fill { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-gold-fill:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn-green { border-color: #25D366; color: #25D366; }
.btn-green:hover { background: #25D366; color: var(--navy); }

/* Navbar */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(11,26,46,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gold-faint);
  z-index: 1000;
  transition: var(--transition);
  padding: 1rem 0;
}
.navbar.scrolled {
  background: rgba(11,26,46,0.98);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  padding: 0.8rem 0;
  border-bottom-color: var(--gold-dim);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  display: flex;
  flex-direction: column;
}
.logo span { font-family: var(--font-body); font-size: 0.6rem; letter-spacing: 2px; color: var(--white-dim); font-weight: 400; }
.nav-links { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--white-dim); font-weight: 600; padding-bottom: 0.3rem; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--gold); border-radius: 2px;
}
@media (max-width: 992px) {
  .nav-links, .nav-cta { display: none; }
}

/* Footer */
.footer { background: var(--navy-mid); padding: 4rem 0 2rem; border-top: 1px solid var(--navy-border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { font-family: var(--font-display); color: var(--gold); font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; display: block; }
.footer-desc { color: var(--white-dim); font-size: 0.9rem; margin-bottom: 1.5rem; max-width: 300px; }
.footer h4 { color: var(--white); font-family: var(--font-body); font-size: 1.1rem; margin-bottom: 1.5rem; position: relative; padding-bottom: 0.5rem; }
.footer h4::after { content: ''; position: absolute; bottom: 0; right: 0; width: 30px; height: 2px; background: var(--gold); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 0.8rem; }
.footer ul a { color: var(--white-dim); }
.footer ul a:hover { color: var(--gold); padding-right: 5px; }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid var(--navy-border); color: var(--white-muted); font-size: 0.85rem; }

/* Grid Utilities */
.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 992px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* Cards */
.card { background: var(--navy-card); border-radius: var(--border-radius); padding: 2rem; transition: var(--transition); border: 1px solid var(--navy-border); position: relative; overflow: hidden; }
.card:hover { transform: translateY(-5px); border-bottom-color: var(--gold); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.card-icon { width: 50px; height: 50px; color: var(--gold); margin-bottom: 1.5rem; }
.card-title { font-size: 1.25rem; font-family: var(--font-display); margin-bottom: 1rem; }
.card p { color: var(--white-dim); font-size: 0.95rem; }
.placeholder-img { background: var(--navy-mid); height: 200px; border-radius: var(--border-radius); display: flex; align-items: center; justify-content: center; color: var(--white-muted); margin-bottom: 1rem; }

/* Animations */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Specific Sections */
/* Hero */
.hero { min-height: 100vh; display: flex; align-items: center; background: radial-gradient(circle at center, rgba(18,34,64,0.8) 0%, var(--navy) 100%), linear-gradient(rgba(11,26,46,0.9), rgba(11,26,46,0.9)), repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(201,168,76,0.02) 40px, rgba(201,168,76,0.02) 41px), repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(201,168,76,0.02) 40px, rgba(201,168,76,0.02) 41px); position: relative; padding-top: 80px; }
.hero-content { max-width: 800px; z-index: 1; position: relative; }
.badge { display: inline-block; padding: 0.4rem 1rem; background: var(--gold-faint); border: 1px solid var(--gold-dim); border-radius: 50px; font-size: 0.85rem; color: var(--gold); margin-bottom: 1.5rem; }
.hero-stats { position: absolute; bottom: 2rem; left: 5%; display: flex; gap: 2rem; }
.stat-item { border-right: 1px solid var(--navy-border); padding-right: 1.5rem; }
.stat-item:first-child { border-right: none; padding-right: 0; }
.stat-item strong { display: block; font-family: var(--font-display); color: var(--gold); font-size: 1.5rem; }
.stat-item span { font-size: 0.8rem; color: var(--white-dim); }
@media (max-width: 768px) { .hero-stats { position: relative; bottom: 0; left: 0; margin-top: 3rem; flex-wrap: wrap; } .stat-item { border-right: none; border-left: 1px solid var(--navy-border); padding-left: 1rem; padding-right: 0; } .stat-item:last-child { border-left: none; } }

/* CTA Section */
.cta-section { text-align: center; padding: 6rem 0; position: relative; }
.cta-line { width: 2px; height: 60px; background: var(--gold); margin: 0 auto 2rem; display: block; }

/* Quote Form */
.quote-page { background: var(--navy-mid); min-height: 100vh; padding: 120px 0 4rem; }
.progress-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3rem; position: relative; }
.progress-step { text-align: center; position: relative; z-index: 2; flex: 1; }
.step-circle { width: 30px; height: 30px; border-radius: 50%; background: var(--navy-card); border: 2px solid var(--white-dim); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 0.5rem; color: var(--white-dim); font-size: 0.85rem; transition: var(--transition); margin-left: auto; margin-right: auto; }
.step-text { font-size: 0.85rem; color: var(--white-dim); display: block; }
.progress-step.active .step-circle, .progress-step.completed .step-circle { border-color: var(--gold); }
.progress-step.active .step-circle { background: var(--gold); color: var(--navy); }
.progress-step.completed .step-circle { background: var(--navy-card); color: var(--gold); }
.progress-step.active .step-text, .progress-step.completed .step-text { color: var(--gold); }
.progress-line { position: absolute; top: 15px; right: 15%; left: 15%; height: 2px; background: var(--navy-border); z-index: 1; }
.progress-line-fill { position: absolute; top: 0; right: 0; height: 100%; background: var(--gold); width: 0%; transition: width 0.3s ease; }
.quote-card { background: var(--navy-card); border: 1px solid var(--navy-border); border-radius: var(--border-radius); padding: 3rem; box-shadow: 0 20px 40px rgba(0,0,0,0.4); max-width: 800px; margin: 0 auto; }
.step-content { display: none; }
.step-content.active { display: block; animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Form Controls */
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--white-dim); }
.form-control { width: 100%; background: var(--navy); border: 1px solid var(--navy-border); color: var(--white); padding: 0.8rem 1rem; border-radius: 4px; font-family: inherit; font-size: 1rem; transition: var(--transition); }
.form-control:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-dim); }
textarea.form-control { resize: vertical; min-height: 120px; }
.radio-group { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.radio-card { flex: 1; min-width: 150px; border: 1px solid var(--navy-border); border-radius: 4px; padding: 1rem; text-align: center; cursor: pointer; transition: var(--transition); background: var(--navy); position: relative; }
.radio-card:hover { border-color: var(--gold-dim); }
.radio-card.selected { border-color: var(--gold); background: var(--navy-card); }
.radio-card input[type="radio"] { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.form-actions { display: flex; justify-content: space-between; margin-top: 3rem; }

/* Summary Box */
.summary-box { border: 1px solid var(--navy-border); border-radius: 4px; padding: 1.5rem; margin-bottom: 1.5rem; background: var(--navy); }
.summary-title { font-family: var(--font-display); color: var(--gold); border-bottom: 1px solid var(--navy-border); padding-bottom: 0.5rem; margin-bottom: 1rem; font-size: 1.1rem; }
.summary-row { display: flex; margin-bottom: 0.5rem; font-size: 0.95rem; gap: 1rem; }
.summary-label { width: 120px; color: var(--white-dim); }
.summary-value { color: var(--white); font-weight: 600; }

/* Form layout specific */
.form-row { display: flex; gap: 1.5rem; }
.form-row .form-group { flex: 1; }
@media (max-width: 768px) { .form-row { flex-direction: column; gap: 0; } }

/* About Page specifics */
.page-hero { padding: 150px 0 80px; text-align: center; background: radial-gradient(circle at center, var(--navy-mid) 0%, var(--navy) 100%); }
.page-hero h1 { color: var(--gold); margin-bottom: 1rem; }
.value-card { text-align: center; padding: 2rem; background: var(--navy-card); border-radius: var(--border-radius); border: 1px solid var(--navy-border); }
.value-number { font-family: var(--font-display); font-size: 3rem; color: var(--gold-dim); font-weight: 900; line-height: 1; margin-bottom: 0.5rem; }

/* Contact page specifics */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
@media (max-width: 992px) { .contact-wrapper { grid-template-columns: 1fr; } }
.contact-info-item { display: flex; gap: 1rem; margin-bottom: 2rem; align-items: flex-start; }
.contact-icon { width: 24px; height: 24px; color: var(--gold); mt-1; }
