/* ============================================
   SHARED STYLES - Common Design System
   Replaces Tailwind CSS with Vanilla CSS
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  background-color: #0f3d2e;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
input, select, textarea { font-family: inherit; }

/* --- CSS Variables --- */
:root {
  --green: #0f3d2e;
  --green-light: #1a5a44;
  --green-dark: #0a2a1f;
  --gold: #c9a646;
  --gold-light: #e0c070;
  --gold-dark: #a88a35;
  --cream: #f5f0e6;
  --white: #ffffff;
  --shadow-gold: 0 0 20px rgba(201,166,70,0.3);
  --shadow-gold-lg: 0 0 40px rgba(201,166,70,0.5);
}

/* --- Typography --- */
.font-arabic { font-family: 'Amiri', serif; }
.gold-text {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gold { color: var(--gold); }

/* --- Layout --- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }
.section-padding { padding: 4rem 0; }
@media (min-width: 768px) { .section-padding { padding: 6rem 0; } }
.flex-center { display: flex; align-items: center; justify-content: center; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.text-center { text-align: center; }

/* --- Buttons --- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--gold); color: var(--green);
  padding: 0.75rem 1.5rem; border-radius: 0.5rem;
  font-weight: 600; font-size: 0.95rem;
  transition: all 0.3s; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
.btn-primary:hover { background: var(--gold-light); transform: scale(1.05); }
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: transparent; border: 2px solid var(--gold); color: var(--gold);
  padding: 0.75rem 1.5rem; border-radius: 0.5rem;
  font-weight: 600; font-size: 0.95rem; transition: all 0.3s;
}
.btn-secondary:hover { background: var(--gold); color: var(--green); }

/* --- Card --- */
.card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.75rem;
  transition: all 0.3s;
}
.card:hover { border-color: rgba(201,166,70,0.3); }

/* --- Form Elements --- */
.input {
  width: 100%; padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.5rem; color: #fff; font-size: 0.9rem;
  transition: border-color 0.3s; outline: none;
}
.input::placeholder { color: rgba(255,255,255,0.4); }
.input:focus { border-color: var(--gold); }
.label { display: block; color: rgba(255,255,255,0.7); font-size: 0.875rem; margin-bottom: 0.5rem; }
select.input option { background: var(--green); }

/* --- Pattern Overlay --- */
.pattern-overlay {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a646' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  position: absolute; inset: 0; opacity: 0.2; pointer-events: none;
}

/* --- Hero Banner --- */
.hero-banner {
  position: relative; padding: 5rem 0; overflow: hidden;
}
.hero-banner .hero-bg {
  position: absolute; inset: 0;
}
.hero-banner .hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-banner .hero-bg .overlay {
  position: absolute; inset: 0; background: rgba(15,61,46,0.9);
}
.hero-banner .hero-content {
  position: relative; z-index: 1;
}

/* --- Animations --- */
.animate-fade-in { animation: fadeIn 0.6s ease-out forwards; }
.animate-slide-up { animation: slideUp 0.6s ease-out forwards; }
.animate-slide-down { animation: slideDown 0.6s ease-out forwards; }
.animate-scale-in { animation: scaleIn 0.4s ease-out forwards; }
.animate-float { animation: floatAnim 3s ease-in-out infinite; }
.animate-bounce { animation: bounceAnim 2s ease-in-out infinite; }
.animate-pulse-glow { animation: pulseGlow 2s ease-in-out infinite; }
@keyframes fadeIn { from{opacity:0}to{opacity:1} }
@keyframes slideUp { from{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)} }
@keyframes slideDown { from{opacity:0;transform:translateY(-30px)}to{opacity:1;transform:translateY(0)} }
@keyframes scaleIn { from{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)} }
@keyframes floatAnim { 0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)} }
@keyframes bounceAnim { 0%,100%{transform:translateY(0)}50%{transform:translateY(8px)} }
@keyframes pulseGlow { 0%,100%{box-shadow:var(--shadow-gold)}50%{box-shadow:var(--shadow-gold-lg)} }
@keyframes spin { from{transform:rotate(0deg)}to{transform:rotate(360deg)} }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--green-dark); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-light); }

/* --- Navbar --- */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: all 0.5s; padding: 1.25rem 0;
}
#navbar.scrolled {
  background: rgba(15,61,46,0.98);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  padding: 0.75rem 0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none;
}
.nav-logo img {
  height: 4.5rem; object-fit: contain; transition: all 0.4s ease;
  filter: drop-shadow(0 2px 8px rgba(201,166,70,0.2));
}
.nav-logo:hover img {
  transform: scale(1.06);
  filter: drop-shadow(0 4px 16px rgba(201,166,70,0.35));
}
#navbar.scrolled .nav-logo img {
  height: 3rem;
}
.nav-logo-text {
  display: flex; flex-direction: column; line-height: 1.15;
}
.nav-logo-title {
  font-size: 1.35rem; font-weight: 800; letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-logo-subtitle {
  font-size: 0.65rem; font-weight: 500; letter-spacing: 0.15em;
  text-transform: uppercase; color: rgba(255,255,255,0.5);
}
#navbar.scrolled .nav-logo-title { font-size: 1.15rem; }
#navbar.scrolled .nav-logo-subtitle { font-size: 0.55rem; }
.nav-links { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-link {
  padding: 0.5rem 1rem; border-radius: 0.5rem;
  font-size: 0.875rem; font-weight: 500; color: rgba(255,255,255,0.8);
  transition: all 0.3s;
}
.nav-link:hover, .nav-link.active { color: var(--gold); background: rgba(201,166,70,0.1); }
.nav-dropdown { position: relative; }
.nav-dropdown-btn {
  display: flex; align-items: center; gap: 0.25rem;
  padding: 0.5rem 1rem; border-radius: 0.5rem;
  font-size: 0.875rem; font-weight: 500; color: rgba(255,255,255,0.8);
  transition: all 0.3s;
}
.nav-dropdown-btn:hover { color: var(--gold); }
.nav-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0; padding-top: 0.5rem;
  width: 12rem;
}
.nav-dropdown-menu::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 0.5rem;
}
.nav-dropdown-menu-inner {
  background: var(--green-light);
  border: 1px solid rgba(201,166,70,0.2);
  border-radius: 0.75rem; overflow: hidden;
  box-shadow: var(--shadow-gold-lg); animation: scaleIn 0.3s ease-out;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-item {
  display: block; padding: 0.75rem 1rem; font-size: 0.875rem;
  color: rgba(255,255,255,0.8); transition: all 0.3s;
}
.nav-dropdown-item:hover, .nav-dropdown-item.active {
  color: var(--gold); background: rgba(201,166,70,0.1);
}
.nav-cta { display: none; }
@media (min-width: 1024px) { .nav-cta { display: flex; } }
.mobile-menu-btn {
  display: flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 0.5rem;
  background: rgba(201,166,70,0.1); color: var(--gold);
}
@media (min-width: 1024px) { .mobile-menu-btn { display: none; } }
#mobile-menu {
  display: none; margin-top: 1rem; padding-bottom: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  max-height: calc(100vh - 5rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
#mobile-menu.open { display: block; }
.mobile-link {
  display: block; padding: 0.75rem 1rem; border-radius: 0.5rem;
  color: rgba(255,255,255,0.8); transition: all 0.3s;
}
.mobile-link:hover, .mobile-link.active { color: var(--gold); background: rgba(201,166,70,0.05); }
.mobile-dropdown-items {
  display: none; margin-left: 1rem; margin-top: 0.5rem;
}
.mobile-dropdown-items.open { display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-dropdown-item {
  display: block; padding: 0.5rem 1rem; border-radius: 0.5rem;
  font-size: 0.875rem; color: rgba(255,255,255,0.6); transition: all 0.3s;
}
.mobile-dropdown-item:hover, .mobile-dropdown-item.active { color: var(--gold); }

/* --- Footer --- */
.site-footer {
  background: var(--green-dark); border-top: 1px solid rgba(201,166,70,0.2);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-brand p { color: rgba(255,255,255,0.7); font-size: 0.875rem; line-height: 1.7; }
.footer-heading {
  font-size: 1.125rem; font-weight: 600; color: #fff; margin-bottom: 1.5rem;
}
.footer-link {
  display: block; color: rgba(255,255,255,0.6); font-size: 0.875rem;
  margin-bottom: 0.75rem; transition: color 0.3s;
}
.footer-link:hover { color: var(--gold); }
.footer-social {
  display: flex; gap: 0.75rem; margin-top: 1.5rem;
}
.footer-social a {
  width: 2.5rem; height: 2.5rem; border-radius: 0.5rem;
  background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); transition: all 0.3s;
}
.footer-social a:hover { background: var(--gold); color: var(--green); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0; margin-top: 3rem;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  text-align: center;
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-bottom p { color: rgba(255,255,255,0.5); font-size: 0.875rem; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: rgba(255,255,255,0.5); font-size: 0.875rem; transition: color 0.3s; }
.footer-bottom-links a:hover { color: var(--gold); }

/* --- WhatsApp Button --- */
.whatsapp-btn {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 90;
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 15px rgba(37,211,102,0.4); transition: all 0.3s;
}
.whatsapp-btn:hover { transform: scale(1.1); background: #20BA5C; }
.whatsapp-btn svg { width: 1.75rem; height: 1.75rem; fill: #fff; }

/* --- Utility --- */
.line-clamp-2 { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.scrollbar-hide::-webkit-scrollbar { display:none; }
.scrollbar-hide { -ms-overflow-style:none; scrollbar-width:none; }
input[type="range"] { accent-color: var(--gold); }
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0; }

/* --- Icon Box --- */
.icon-box {
  width: 3.5rem; height: 3.5rem; border-radius: 0.75rem;
  background: rgba(201,166,70,0.1); display: flex;
  align-items: center; justify-content: center; color: var(--gold);
  flex-shrink: 0; transition: all 0.3s;
}
.icon-box.lg { width: 4rem; height: 4rem; border-radius: 1rem; }
.icon-box svg { width: 1.5rem; height: 1.5rem; }
.icon-box.lg svg { width: 2rem; height: 2rem; }

/* --- Badge --- */
.badge {
  display: inline-block; padding: 0.25rem 0.75rem;
  background: var(--gold); color: var(--green);
  font-size: 0.75rem; font-weight: 600; border-radius: 9999px;
}

/* --- Page top spacing for fixed navbar --- */
.page-wrapper { padding-top: 6rem; min-height: 100vh; }
