/* ===== ESTSSMAR AI SITE — MAIN STYLESHEET v2 ===== */
:root {
  --navy: #1a2744;
  --navy-light: #243460;
  --teal: #4BB8C5;
  --teal-light: #6dcdd8;
  --gold: #c9a84c;
  --gold-light: #e2c06e;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-400: #adb5bd;
  --gray-600: #6c757d;
  --gray-800: #343a40;
  --text: #1e2a3a;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ebe5d;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(26,39,68,0.09);
  --shadow-lg: 0 8px 40px rgba(26,39,68,0.15);
  --transition: all 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { direction: rtl; scroll-behavior: smooth; }
body { font-family: 'Segoe UI', 'Tahoma', Arial, sans-serif; font-size: 16px; line-height: 1.75; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.35; color: var(--navy); }
h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); }
p { margin-bottom: 1rem; color: var(--gray-800); }
a { color: var(--navy); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--teal); }
ul, ol { padding-right: 1.5rem; }
img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

/* ── HEADER ── */
.site-header {
  background: var(--navy);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.22);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 1.25rem; max-width: 1200px; margin: 0 auto; gap: 1rem;
}

/* ── LOGO ── */
.logo { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.logo-img {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: contain; background: white; padding: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--teal);
}
.logo-icon-fallback {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--white); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden; padding: 3px;
  box-shadow: 0 0 0 2px var(--teal);
}
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-size: 1.15rem; font-weight: 800; color: var(--white); line-height: 1.1; }
.logo-sub { font-size: 0.66rem; color: var(--teal-light); letter-spacing: 0.02em; }

/* ── NAV ── */
.main-nav { display: flex; align-items: center; gap: 0.15rem; flex-wrap: wrap; }
.main-nav a { color: rgba(255,255,255,0.85); font-size: 0.85rem; font-weight: 500; padding: 0.45rem 0.7rem; border-radius: 6px; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { background: rgba(75,184,197,0.2); color: var(--teal-light); }
.nav-cta { background: var(--whatsapp) !important; color: var(--white) !important; font-weight: 700 !important; padding: 0.5rem 1.1rem !important; }
.nav-cta:hover { background: var(--whatsapp-dark) !important; color: var(--white) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a5e 60%, #152235 100%);
  padding: 5.5rem 1.25rem 4.5rem; text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(75,184,197,0.08) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(201,168,76,0.06) 0%, transparent 40%);
}
/* Decorative SVG wave at bottom */
.hero::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 60px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,40 C300,80 900,0 1200,40 L1200,60 L0,60 Z' fill='%23f8f9fa'/%3E%3C/svg%3E") center bottom / cover no-repeat;
}
.hero-content { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(75,184,197,0.15); border: 1px solid rgba(75,184,197,0.4);
  color: var(--teal-light); font-size: 0.82rem; font-weight: 600;
  padding: 0.38rem 1.1rem; border-radius: 50px; margin-bottom: 1.5rem;
}
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero h1 span { color: var(--teal); }
.hero p { color: rgba(255,255,255,0.82); font-size: 1.05rem; margin-bottom: 2rem; max-width: 640px; margin-left: auto; margin-right: auto; }

.hero-stats { display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap; margin: 2.5rem 0; }
.stat-item { text-align: center; }
.stat-num { font-size: 2.4rem; font-weight: 900; color: var(--teal); display: block; line-height: 1; }
.stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.65); margin-top: 0.3rem; }

.hero-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; padding-bottom: 3rem; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.8rem; border-radius: 50px; font-weight: 700; font-size: 0.95rem;
  cursor: pointer; border: 2px solid transparent; transition: var(--transition);
  text-decoration: none; line-height: 1;
}
.btn-primary { background: var(--teal); color: var(--white); border-color: var(--teal); }
.btn-primary:hover { background: var(--teal-light); color: var(--white); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(75,184,197,0.4); }
.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-light); color: var(--navy); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,168,76,0.35); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-light); color: var(--white); transform: translateY(-2px); }
.btn-whatsapp { background: var(--whatsapp); color: var(--white); border-color: var(--whatsapp); font-size: 1rem; padding: 0.85rem 2rem; }
.btn-whatsapp:hover { background: var(--whatsapp-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,0.4); }
.btn-whatsapp svg, .whatsapp-float svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

/* ── SECTIONS ── */
section { padding: 4.5rem 0; }
.section-alt { background: var(--gray-50); }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { margin-bottom: 0.6rem; }
.section-header p { color: var(--gray-600); max-width: 600px; margin: 0 auto; font-size: 1.02rem; }
.section-label {
  display: inline-block; color: var(--teal); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.4rem;
}
.gold-divider { width: 55px; height: 4px; background: linear-gradient(90deg, var(--teal), var(--gold)); border-radius: 2px; margin: 0.75rem auto 1.5rem; }

/* ── CARDS ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }

.card {
  background: var(--white); border-radius: var(--radius); padding: 1.75rem;
  box-shadow: var(--shadow); border: 1px solid var(--gray-200); transition: var(--transition);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--teal); }
.card-icon {
  width: 54px; height: 54px;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1.1rem;
}
.card h3 { margin-bottom: 0.5rem; color: var(--navy); }
.card p { font-size: 0.9rem; color: var(--gray-600); margin: 0; }

/* ── SERVICE CARD ── */
.service-card {
  background: var(--white); border-radius: var(--radius); padding: 2rem;
  border: 1px solid var(--gray-200); box-shadow: var(--shadow);
  transition: var(--transition); display: flex; flex-direction: column; gap: 0.75rem;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--teal); }
.service-card .icon { font-size: 2.2rem; }
.service-card h3 { color: var(--navy); font-size: 1.05rem; }
.service-card p { font-size: 0.88rem; color: var(--gray-600); margin: 0; }

/* ── SECTOR TAGS ── */
.sectors-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.sector-tag {
  background: var(--white); border: 2px solid var(--navy); color: var(--navy);
  padding: 0.6rem 1.25rem; border-radius: 50px; font-weight: 600; font-size: 0.88rem;
  transition: var(--transition); cursor: pointer; text-decoration: none; display: inline-block;
}
.sector-tag:hover { background: var(--navy); color: var(--white); border-color: var(--navy); transform: translateY(-2px); }

/* ── PROJECTS PAGE ── */
.sector-block { margin-bottom: 3rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.sector-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white); padding: 1rem 1.4rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.sector-header h3 { font-size: 1rem; color: var(--white); display: flex; align-items: center; gap: 0.6rem; margin: 0; }
.sector-count { background: var(--teal); color: var(--white); font-size: 0.75rem; font-weight: 700; padding: 0.2rem 0.65rem; border-radius: 50px; }
.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  border: 1px solid var(--gray-200); border-top: none; background: var(--white);
}
.project-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 1rem; border-bottom: 1px solid var(--gray-100);
  border-left: 1px solid var(--gray-100);
  font-size: 0.875rem; color: var(--text); text-decoration: none;
  transition: var(--transition); gap: 0.5rem;
  cursor: pointer;
}
.project-link:hover {
  background: linear-gradient(135deg, rgba(75,184,197,0.08), rgba(26,39,68,0.05));
  color: var(--navy); font-weight: 600;
  padding-right: 1.3rem;
}
.project-link::before { content: '📋'; font-size: 0.8rem; flex-shrink: 0; }
.project-done {
  display: inline-flex; align-items: center; gap: 0.2rem;
  background: rgba(37,211,102,0.12); color: #16a34a;
  font-size: 0.68rem; font-weight: 700; padding: 0.15rem 0.45rem;
  border-radius: 50px; flex-shrink: 0; white-space: nowrap;
}

/* ── SEARCH ── */
.search-box { position: relative; max-width: 540px; margin: 2rem auto 0; }
.search-box input {
  width: 100%; padding: 0.9rem 1.25rem 0.9rem 3.5rem;
  border: 2px solid var(--gray-200); border-radius: 50px; font-size: 0.95rem;
  outline: none; transition: var(--transition); font-family: inherit; direction: rtl;
  background: var(--white); color: var(--text);
}
.search-box input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(75,184,197,0.15); }
.search-icon { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); color: var(--gray-400); font-size: 1rem; }

/* ── FAQ ── */
.faq-list { max-width: 840px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.6rem; }
.faq-item { border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 1.35rem; background: none; border: none; text-align: right;
  font-size: 1rem; font-weight: 600; color: var(--navy); cursor: pointer; gap: 0.75rem;
  transition: var(--transition); font-family: inherit;
}
.faq-question:hover { background: var(--gray-50); }
.faq-question.open { background: var(--navy); color: var(--white); }
.faq-icon { font-size: 1.2rem; flex-shrink: 0; transition: transform 0.25s; color: var(--teal); }
.faq-question.open .faq-icon { transform: rotate(45deg); color: var(--white); }
.faq-answer { display: none; padding: 1.2rem 1.35rem; color: var(--gray-800); font-size: 0.95rem; border-top: 1px solid var(--gray-200); line-height: 1.8; }
.faq-answer.open { display: block; }
.faq-answer a { color: var(--teal); font-weight: 600; }
.faq-answer ul, .faq-answer ol { margin: 0.5rem 0; }
.faq-answer li { margin-bottom: 0.35rem; }

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a5e 100%);
  padding: 4.5rem 1.25rem; text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(75,184,197,0.12) 0%, transparent 70%);
}
.cta-banner > .container { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,0.82); margin-bottom: 2rem; font-size: 1.05rem; }

/* ── BREADCRUMB ── */
.breadcrumb { background: var(--gray-50); padding: 0.7rem 0; border-bottom: 1px solid var(--gray-200); }
.breadcrumb-list { display: flex; align-items: center; gap: 0.5rem; list-style: none; padding: 0; margin: 0; font-size: 0.85rem; }
.breadcrumb-list li { display: flex; align-items: center; gap: 0.5rem; }
.breadcrumb-list li:not(:last-child)::after { content: '/'; color: var(--gray-400); }
.breadcrumb-list a { color: var(--navy); font-weight: 500; }
.breadcrumb-list a:hover { color: var(--teal); }
.breadcrumb-list .current { color: var(--gray-600); }

/* ── PAGE HERO ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy), #1e3a5e);
  padding: 3.5rem 1.25rem 4rem; text-align: center; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 50px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 50' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,30 C300,60 900,0 1200,30 L1200,50 L0,50 Z' fill='%23f8f9fa'/%3E%3C/svg%3E") center bottom / cover no-repeat;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.82); font-size: 1.05rem; margin: 0 auto; max-width: 640px; }

/* ── CONTACT ── */
.contact-card {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--white); padding: 1.5rem; border-radius: var(--radius);
  border: 1px solid var(--gray-200); box-shadow: var(--shadow); transition: var(--transition);
  text-decoration: none;
}
.contact-card:hover { border-color: var(--teal); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.contact-card-icon {
  width: 50px; height: 50px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0;
}
.contact-card h4 { font-size: 0.85rem; color: var(--gray-600); margin-bottom: 0.2rem; font-weight: 500; }
.contact-card p { font-size: 0.95rem; color: var(--navy); font-weight: 700; margin: 0; }

/* ── WHATSAPP FLOAT ── */
.whatsapp-float {
  position: fixed; bottom: 1.75rem; left: 1.75rem; z-index: 999;
  display: flex; align-items: center; gap: 0.55rem;
  background: var(--whatsapp); color: var(--white);
  padding: 0.85rem 1.4rem; border-radius: 50px;
  font-weight: 700; font-size: 0.9rem;
  box-shadow: 0 4px 24px rgba(37,211,102,0.45); text-decoration: none;
  transition: var(--transition); animation: pulse-wa 2.8s infinite;
}
.whatsapp-float:hover { background: var(--whatsapp-dark); color: var(--white); transform: scale(1.05); box-shadow: 0 6px 32px rgba(37,211,102,0.6); }
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 4px 24px rgba(37,211,102,0.45); }
  50% { box-shadow: 0 4px 36px rgba(37,211,102,0.7), 0 0 0 8px rgba(37,211,102,0.1); }
}

/* ── ABOUT STATS ── */
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin: 3rem 0; }
.about-stat { text-align: center; background: var(--white); padding: 2rem 1rem; border-radius: var(--radius); border: 1px solid var(--gray-200); box-shadow: var(--shadow); }
.about-stat .num { font-size: 2.5rem; font-weight: 900; color: var(--teal); display: block; }
.about-stat .label { font-size: 0.85rem; color: var(--gray-600); margin-top: 0.3rem; }

/* ── HIGHLIGHT BOX ── */
.highlight-box { background: linear-gradient(135deg, var(--navy), #1e3a5e); color: var(--white); border-radius: var(--radius); padding: 2rem; }
.highlight-box h3 { color: var(--teal); margin-bottom: 0.5rem; }
.highlight-box p { color: rgba(255,255,255,0.85); margin: 0; }

/* ── FEATURE LIST ── */
.feature-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.feature-list li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.95rem; color: var(--gray-800); }
.feature-list li::before { content: '✓'; background: var(--teal); color: var(--white); width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 800; flex-shrink: 0; margin-top: 0.15rem; }

/* ── SVG ILLUSTRATIONS (inline) ── */
.illustration-wrap { display: flex; justify-content: center; align-items: center; }
.hero-illustration { max-width: 380px; width: 100%; opacity: 0.9; }

/* ── FOOTER ── */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.75); padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-brand p { font-size: 0.87rem; line-height: 1.8; margin-top: 1rem; color: rgba(255,255,255,0.65); }
.footer-col h4 { color: var(--teal); font-size: 0.88rem; font-weight: 700; margin-bottom: 1.1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul li a { color: rgba(255,255,255,0.68); font-size: 0.87rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--teal-light); padding-right: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; flex-wrap: wrap; gap: 0.5rem; color: rgba(255,255,255,0.55); }
.footer-bottom a { color: var(--teal-light); }

/* ── UTILITY ── */
.text-center { text-align: center; }
.text-teal { color: var(--teal); }
.text-gold { color: var(--gold); }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .hero { padding: 4rem 1rem 3rem; }
  .hero::after { display: none; }
  .page-hero::after { display: none; }
  .hero-stats { gap: 1.5rem; }
  .stat-num { font-size: 1.9rem; }
  .main-nav { display: none; flex-direction: column; position: absolute; top: 100%; right: 0; left: 0; background: #0f1a2e; padding: 1rem; gap: 0.2rem; border-top: 1px solid rgba(255,255,255,0.1); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.65rem 1rem; border-radius: 8px; width: 100%; }
  .hamburger { display: flex; }
  .site-header { position: relative; }
  .header-inner { flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; }
  .whatsapp-float { left: 1rem; bottom: 1rem; padding: 0.75rem 1.1rem; font-size: 0.85rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .projects-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  section { padding: 3rem 0; }
  .btn { padding: 0.7rem 1.4rem; font-size: 0.9rem; }
}
