/* ===== Brand colours taken from the Amigo Star banner ===== */
:root {
  --red: #e31e24;
  --red-dark: #b9151a;
  --blue: #1f4e9c;
  --blue-dark: #0f2c5c;
  --green: #4caf50;
  --orange: #f7941d;
  --dark: #0d1b2a;
  --text: #4a5568;
  --light: #f5f7fb;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(13, 27, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(13, 27, 42, 0.15);
  --transition: all 0.35s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: "Poppins", sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }
h1, h2, h3, h4 { color: var(--dark); line-height: 1.25; }

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section { padding: 100px 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px; border-radius: 50px;
  font-weight: 600; font-size: 0.95rem;
  border: 2px solid transparent; cursor: pointer;
  transition: var(--transition); font-family: inherit;
}
.btn-primary { background: var(--red); color: var(--white); box-shadow: 0 8px 20px rgba(227, 30, 36, 0.3); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-3px); }
.btn-outline { border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--dark); }
.btn-light { background: var(--white); color: var(--red); }
.btn-light:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn-outline-light { border-color: var(--white); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--red); }
.btn-block { width: 100%; justify-content: center; }

/* ===== Name Banner ===== */
.name-banner {
  background: var(--white);
  display: flex; justify-content: center;
  border-bottom: 1px solid #eee;
}
.name-banner img { width: 100%; max-width: 1024px; height: auto; }

/* ===== Navbar ===== */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 48px; width: auto; }
.brand span { display: flex; flex-direction: column; line-height: 1.2; }
.brand strong { color: var(--red); font-size: 1.25rem; letter-spacing: 1px; font-weight: 800; }
.brand small { color: var(--green); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.5px; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-weight: 500; color: var(--dark); position: relative; padding: 6px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--red); transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--red); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { padding: 10px 22px; font-size: 0.85rem; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--dark); cursor: pointer; }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 88vh;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--blue-dark) url("https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=1920&q=80") center/cover no-repeat;
  color: var(--white); padding: 120px 0 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(13, 27, 42, 0.92) 0%, rgba(15, 44, 92, 0.78) 55%, rgba(227, 30, 36, 0.35) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 1200px; }
.eyebrow {
  display: inline-block; background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 8px 20px; border-radius: 50px;
  font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 24px;
}
.hero h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; max-width: 780px; margin-bottom: 22px; }
.text-gradient {
  background: linear-gradient(90deg, var(--orange), var(--red), #ff6b6b);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { max-width: 620px; font-size: 1.1rem; opacity: 0.9; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-features {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--white); border-radius: var(--radius) var(--radius) 0 0;
  margin-top: 90px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.hero-feature { display: flex; align-items: center; gap: 18px; padding: 30px; border-right: 1px solid #eee; transition: var(--transition); }
.hero-feature:last-child { border-right: none; }
.hero-feature i {
  font-size: 1.6rem; width: 60px; height: 60px; flex-shrink: 0;
  display: grid; place-items: center; border-radius: 12px;
  background: rgba(227, 30, 36, 0.1); color: var(--red); transition: var(--transition);
}
.hero-feature:nth-child(2) i { background: rgba(31, 78, 156, 0.1); color: var(--blue); }
.hero-feature:nth-child(3) i { background: rgba(76, 175, 80, 0.12); color: var(--green); }
.hero-feature h4 { font-size: 1.1rem; }
.hero-feature p { color: var(--text); font-size: 0.9rem; margin: 0; opacity: 1; }
.hero-feature:hover { background: var(--light); }

/* ===== Section headings ===== */
.section-tag {
  display: inline-block; color: var(--red); font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px; font-size: 0.85rem;
  margin-bottom: 12px; position: relative; padding-left: 40px;
}
.section-tag::before { content: ""; position: absolute; left: 0; top: 50%; width: 30px; height: 2px; background: var(--red); }
.section-tag.light { color: var(--orange); }
.section-tag.light::before { background: var(--orange); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section-head .section-tag { padding: 0 40px; }
.section-head .section-tag::after { content: ""; position: absolute; right: 0; top: 50%; width: 30px; height: 2px; background: var(--red); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; margin-bottom: 16px; }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-media { position: relative; height: 560px; }
.about-img { position: absolute; border-radius: var(--radius); background-size: cover; background-position: center; box-shadow: var(--shadow-lg); }
.about-img-main {
  inset: 0 70px 90px 0;
  background-color: var(--blue);
  background-image: url("https://images.unsplash.com/photo-1503387762-592deb58ef4e?w=1000&q=80");
}
.about-img-small {
  width: 55%; height: 45%; right: 0; bottom: 0; border: 8px solid var(--white);
  background-color: var(--red);
  background-image: url("https://images.unsplash.com/photo-1521791136064-7986c2920216?w=800&q=80");
}
.about-badge {
  position: absolute; left: 30px; bottom: 30px;
  background: var(--white); padding: 16px 22px; border-radius: var(--radius);
  display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-lg);
}
.about-badge img { height: 46px; }
.about-badge span { font-size: 0.85rem; line-height: 1.3; }
.about-badge strong { color: var(--red); font-size: 1.3rem; }
.about-text p { margin-bottom: 16px; }
.arabic { font-family: "Cairo", sans-serif; font-size: 1.35rem; color: var(--blue); direction: rtl; text-align: left; font-weight: 700; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: 24px 0 30px; }
.check-list li { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--dark); font-size: 0.95rem; }
.check-list i { color: var(--green); }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mv-card { background: var(--light); padding: 24px; border-radius: var(--radius); border-left: 4px solid var(--red); transition: var(--transition); }
.mv-card:nth-child(2) { border-left-color: var(--blue); }
.mv-card i { font-size: 1.5rem; color: var(--red); margin-bottom: 10px; }
.mv-card:nth-child(2) i { color: var(--blue); }
.mv-card h4 { margin-bottom: 6px; }
.mv-card p { font-size: 0.9rem; margin: 0; }
.mv-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); background: var(--white); }

/* ===== Stats ===== */
.stats { background: linear-gradient(120deg, var(--red) 0%, var(--red-dark) 100%); padding: 70px 0; color: var(--white); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat i { font-size: 2.2rem; margin-bottom: 12px; opacity: 0.85; }
.stat h3 { color: var(--white); font-size: 2.8rem; font-weight: 800; }
.stat h3::after { content: "+"; }
.stat p { opacity: 0.9; font-weight: 500; }

/* ===== Services ===== */
.services { background: var(--light); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card {
  background: var(--white); padding: 40px 32px; border-radius: var(--radius);
  box-shadow: var(--shadow); transition: var(--transition);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--green), var(--orange), var(--red));
  transform: scaleX(0); transform-origin: left; transition: var(--transition);
}
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 70px; height: 70px; border-radius: 16px;
  display: grid; place-items: center; font-size: 1.8rem; margin-bottom: 24px;
  transition: var(--transition);
}
.service-icon.red { background: rgba(227, 30, 36, 0.1); color: var(--red); }
.service-icon.blue { background: rgba(31, 78, 156, 0.1); color: var(--blue); }
.service-icon.green { background: rgba(76, 175, 80, 0.12); color: var(--green); }
.service-icon.orange { background: rgba(247, 148, 29, 0.12); color: var(--orange); }
.service-card:hover .service-icon { transform: rotateY(180deg); }
.service-card h3 { font-size: 1.3rem; margin-bottom: 12px; }

/* ===== Projects ===== */
.filter-bar { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn {
  padding: 10px 24px; border-radius: 50px; border: 2px solid #e2e8f0;
  background: var(--white); font-family: inherit; font-weight: 500; cursor: pointer;
  transition: var(--transition); color: var(--dark);
}
.filter-btn:hover, .filter-btn.active { background: var(--blue); border-color: var(--blue); color: var(--white); }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card {
  position: relative; height: 300px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, var(--blue), var(--red));
  cursor: pointer; transition: opacity 0.4s ease, transform 0.4s ease;
}
.project-card::before {
  content: ""; position: absolute; inset: 0;
  background: var(--img) center/cover no-repeat;
  transition: transform 0.6s ease;
}
.project-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13, 27, 42, 0.9) 0%, rgba(13, 27, 42, 0.1) 60%);
}
.project-card:hover::before { transform: scale(1.1); }
.project-info { position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 2; color: var(--white); transition: var(--transition); }
.project-info span {
  display: inline-block; background: var(--red); padding: 4px 14px; border-radius: 50px;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px;
}
.project-info h4 { color: var(--white); font-size: 1.2rem; }
.project-card:hover .project-info { bottom: 34px; }
.project-card.hide { display: none; }

/* ===== Sales ===== */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.product-card {
  background: var(--white); padding: 32px 26px; border-radius: var(--radius);
  box-shadow: var(--shadow); transition: var(--transition);
  display: flex; flex-direction: column; border-top: 4px solid transparent;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-top-color: var(--red); }
.product-card:hover .service-icon { transform: rotateY(180deg); }
.product-card .service-icon { margin-bottom: 18px; }
.product-tag { color: var(--blue); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.product-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.product-card p { font-size: 0.9rem; margin-bottom: 20px; flex-grow: 1; }
.product-quote {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 50px; font-weight: 600; font-size: 0.88rem;
  border: 2px solid #25d366; color: #1a9e4b;
}
.product-quote:hover { background: #25d366; color: var(--white); }
.product-card.hide { display: none; }

/* ===== Why Choose Us ===== */
.why {
  background: linear-gradient(rgba(13, 27, 42, 0.94), rgba(15, 44, 92, 0.94)),
    url("https://images.unsplash.com/photo-1541888946425-d81bb19240f5?w=1920&q=80") center/cover fixed;
  color: rgba(255, 255, 255, 0.85);
}
.why-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: center; }
.why h2 { color: var(--white); }
.why-text p { margin-bottom: 30px; font-size: 1.05rem; }
.why-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.why-card {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 30px; border-radius: var(--radius); transition: var(--transition);
}
.why-card i { font-size: 2rem; color: var(--orange); margin-bottom: 14px; }
.why-card h4 { color: var(--white); margin-bottom: 8px; font-size: 1.15rem; }
.why-card p { font-size: 0.92rem; }
.why-card:hover { background: var(--red); border-color: var(--red); transform: translateY(-6px); }
.why-card:hover i { color: var(--white); }

/* ===== Process ===== */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; }
.process-grid::before {
  content: ""; position: absolute; top: 55px; left: 12%; right: 12%;
  border-top: 2px dashed #cbd5e0; z-index: 0;
}
.step { text-align: center; position: relative; z-index: 1; padding: 0 10px; }
.step i {
  width: 110px; height: 110px; border-radius: 50%;
  display: grid; place-items: center; margin: 0 auto 22px;
  font-size: 2.2rem; color: var(--blue); background: var(--white);
  box-shadow: var(--shadow); border: 3px solid var(--light); transition: var(--transition);
}
.step:hover i { background: var(--blue); color: var(--white); transform: scale(1.08); }
.step-num {
  position: absolute; top: -6px; left: calc(50% + 28px);
  background: var(--red); color: var(--white); width: 38px; height: 38px;
  border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; z-index: 2;
}
.step h4 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { font-size: 0.92rem; }

/* ===== CTA ===== */
.cta { background: linear-gradient(110deg, var(--blue) 0%, var(--blue-dark) 50%, var(--red) 100%); padding: 70px 0; color: var(--white); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta h2 { color: var(--white); margin-bottom: 6px; }
.cta p { opacity: 0.9; font-size: 1.05rem; }
.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== Contact ===== */
.contact { background: var(--light); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.info-item {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--white); padding: 22px; border-radius: var(--radius);
  box-shadow: var(--shadow); transition: var(--transition);
}
.info-item:hover { transform: translateX(6px); }
.info-icon {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 12px;
  background: var(--red); color: var(--white); display: grid; place-items: center; font-size: 1.2rem;
}
.info-item h4 { font-size: 1.05rem; margin-bottom: 4px; }
.info-item p { font-size: 0.93rem; }
.info-item a:hover { color: var(--red); }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 230px; }
.map iframe { width: 100%; height: 100%; border: 0; }
.contact-form { background: var(--white); padding: 44px; border-radius: var(--radius); box-shadow: var(--shadow-lg); border-top: 5px solid var(--red); }
.contact-form h3 { font-size: 1.6rem; margin-bottom: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 500; color: var(--dark); margin-bottom: 8px; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 14px 18px; border: 2px solid #e2e8f0; border-radius: 10px;
  font-family: inherit; font-size: 0.95rem; color: var(--dark); background: var(--light);
  transition: var(--transition); resize: vertical;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--blue); background: var(--white);
  box-shadow: 0 0 0 4px rgba(31, 78, 156, 0.1);
}
.form-note { margin-top: 14px; text-align: center; font-weight: 500; color: var(--green); min-height: 1.5em; }

/* ===== Footer ===== */
.footer { background: var(--dark); color: rgba(255, 255, 255, 0.7); padding-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 50px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand img { height: 52px; background: var(--white); border-radius: 10px; padding: 4px; }
.footer-brand strong { color: var(--white); font-size: 1.3rem; letter-spacing: 1px; display: block; }
.arabic-sm { font-family: "Cairo", sans-serif; font-size: 0.8rem; color: var(--orange); }
.footer-col p { font-size: 0.92rem; margin-bottom: 10px; }
.footer-col h4 { color: var(--white); font-size: 1.15rem; margin-bottom: 22px; position: relative; padding-bottom: 12px; }
.footer-col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: var(--red); border-radius: 2px; }
.footer-col ul li { margin-bottom: 12px; font-size: 0.92rem; }
.footer-col ul li a:hover { color: var(--red); padding-left: 6px; }
.footer-contact li { display: flex; gap: 12px; }
.footer-contact i { color: var(--red); margin-top: 5px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 22px 0; text-align: center; font-size: 0.88rem; }

/* ===== Floating buttons ===== */
.whatsapp-float {
  position: fixed; left: 26px; bottom: 26px; z-index: 999;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: var(--white); font-size: 1.9rem;
  display: grid; place-items: center; box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.back-to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 999;
  width: 50px; height: 50px; border-radius: 50%; border: none;
  background: var(--red); color: var(--white); font-size: 1.1rem; cursor: pointer;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: var(--transition);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--blue); }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .nav-cta { display: none; }
  .nav-links { gap: 24px; }
}
@media (max-width: 992px) {
  .section { padding: 80px 0; }
  .about-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { height: 460px; }
  .services-grid, .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid, .process-grid { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
  .process-grid::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--white);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
  }
  .nav-links.open { max-height: 480px; }
  .nav-links li a { display: block; padding: 14px 5%; border-bottom: 1px solid #f0f0f0; }
  .nav-links a::after { display: none; }
}
@media (max-width: 680px) {
  .hero-features { grid-template-columns: 1fr; }
  .hero-feature { border-right: none; border-bottom: 1px solid #eee; }
  .services-grid, .projects-grid, .why-cards, .mv-grid, .check-list, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .stats-grid, .products-grid { grid-template-columns: 1fr 1fr; }
  .product-card { padding: 24px 18px; }
  .contact-form { padding: 30px 22px; }
  .about-media { height: 360px; }
  .about-img-main { inset: 0 40px 70px 0; }
  .brand small { display: none; }
  .cta-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 440px) {
  .products-grid { grid-template-columns: 1fr; }
}
