/* HeartSave Egypt — shared stylesheet */

:root {
  --orange: #F05B1F;
  --red: #E63212;
  --primedic-red: #EC300D;
  --offwhite: #FAF9F7;
  --navy: #1A1A1A;
  --gray: #5A5A5A;
  --light-gray: #E8E6E2;
  --white: #FFFFFF;
  --radius: 12px;
  --max-width: 1160px;
  --font-en: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-ar: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-en);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Language toggling ---------- */

.lang-ar-only { display: none; }
html.lang-ar .lang-en-only { display: none; }
html.lang-ar .lang-ar-only { display: block; }
html.lang-ar .lang-ar-only.inline { display: inline; }
html.lang-ar .lang-ar-only.flex { display: flex; }

html.lang-ar { direction: rtl; }
html.lang-ar body { direction: rtl; text-align: right; }
html.lang-ar .site-header .nav-inner { flex-direction: row-reverse; }
html.lang-ar .nav-links { flex-direction: row-reverse; }
html.lang-ar .footer-grid { direction: rtl; }

/* ---------- Layout helpers ---------- */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 72px 0; }

.section-tight { padding: 48px 0; }

.section-alt { background: var(--offwhite); }

.eyebrow {
  display: inline-block;
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 12px;
}

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 16px; color: var(--navy); }
h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; }
h2 { font-size: clamp(26px, 4vw, 34px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 16px; color: var(--gray); }
.lead { font-size: 19px; color: var(--gray); }

.center { text-align: center; }
.section-head { max-width: 680px; margin: 0 auto 48px; }
.section-head.left { margin: 0 0 48px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { filter: brightness(0.94); }
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--orange); color: var(--white); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline-white { background: transparent; border-color: var(--white); color: var(--white); }
.btn-white { background: var(--white); color: var(--orange); }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--light-gray);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 40px; }
.brand-word { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-weight: 600;
  font-size: 15px;
}

.nav-links a { padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.active { border-bottom-color: var(--orange); color: var(--orange); }

.nav-right { display: flex; align-items: center; gap: 16px; }

.lang-toggle {
  background: var(--offwhite);
  border: 1px solid var(--light-gray);
  border-radius: 20px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  color: var(--navy);
}
.lang-toggle:hover { background: var(--light-gray); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--light-gray);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  html.lang-ar .nav-links { align-items: flex-end; }
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #2A2A2A 100%);
  color: var(--white);
  padding: 96px 0 88px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { color: var(--white); }
.hero p.lead { color: rgba(255,255,255,0.78); }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(240, 91, 31, 0.16);
  color: #FFB18C;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 20px;
}
.hero-visual {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
}
.hero-visual img { margin: 0 auto; max-height: 320px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
}

/* ---------- Cards / grids ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(240, 91, 31, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.icon-badge img { height: 26px; width: 26px; }

/* ---------- Sector strip ---------- */

.sector-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.sector-pill {
  background: var(--offwhite);
  border: 1px solid var(--light-gray);
  border-radius: 24px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
}

/* ---------- Partner logos strip ---------- */

.partner-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}
.partner-strip .partner-name {
  font-weight: 800;
  font-size: 18px;
  color: var(--gray);
  letter-spacing: 0.02em;
}

/* ---------- Product cards ---------- */

.product-card {
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
}
.product-card .product-image {
  background: var(--offwhite);
  padding: 28px;
  text-align: center;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card .product-image img { max-height: 220px; margin: 0 auto; }
.product-card .product-body { padding: 24px 24px 28px; flex: 1; display: flex; flex-direction: column; }
.product-card .spec-list { margin: 12px 0 20px; }
.product-card .spec-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--light-gray);
  font-size: 14px;
  color: var(--gray);
}
.product-card .spec-list li span:first-child { font-weight: 600; color: var(--navy); }
.product-tag {
  display: inline-block;
  background: rgba(240,91,31,0.1);
  color: var(--orange);
  font-weight: 700;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
  width: fit-content;
}

/* ---------- Partner grid (logos/names as cards) ---------- */

.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .partner-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .partner-grid { grid-template-columns: 1fr; } }

.partner-card {
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  background: var(--white);
}
.partner-card .partner-title { font-weight: 800; font-size: 17px; margin-bottom: 4px; }
.partner-card .partner-sub { font-size: 13px; color: var(--gray); }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.contact-info-item .icon-badge { flex-shrink: 0; margin-bottom: 0; }
.contact-info-item h4 { margin-bottom: 4px; }
.contact-info-item p { margin: 0; }

form.contact-form label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
  margin-top: 18px;
}
form.contact-form label:first-child { margin-top: 0; }
form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  color: var(--navy);
}
form.contact-form input:focus,
form.contact-form textarea:focus {
  outline: none;
  border-color: var(--orange);
}
form.contact-form textarea { resize: vertical; min-height: 120px; }
form.contact-form .btn { margin-top: 24px; width: 100%; justify-content: center; }
.form-note { font-size: 13px; color: var(--gray); margin-top: 12px; }
.form-success {
  display: none;
  background: rgba(240,91,31,0.08);
  border: 1px solid var(--orange);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  font-weight: 600;
  color: var(--navy);
}
.form-success.show { display: block; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--orange);
  color: var(--white);
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.9); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid h4 { color: var(--white); font-size: 15px; margin-bottom: 16px; }
.footer-grid p, .footer-grid li { color: rgba(255,255,255,0.65); font-size: 14px; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul li a:hover { color: var(--white); }
.footer-logo { height: 36px; margin-bottom: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- About page ---------- */

.about-hero {
  background: var(--offwhite);
  padding: 72px 0;
}
.story-block { max-width: 760px; margin: 0 auto; }
.story-block p { font-size: 17px; color: var(--navy); }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
@media (max-width: 860px) { .value-grid { grid-template-columns: 1fr; } }

/* ---------- Misc ---------- */

.divider { height: 1px; background: var(--light-gray); margin: 0; }

.badge-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.mini-badge {
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
}
