:root {
  --navy: #061936;
  --navy-2: #0b254b;
  --ink: #09162b;
  --gold: #caa45a;
  --gold-2: #e7c774;
  --cream: #f7f3eb;
  --muted: #68758a;
  --line: rgba(9, 22, 43, 0.12);
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(6, 25, 54, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Manrope", Arial, sans-serif;
  line-height: 1.6;
}

body.menu-open,
body.popup-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(202, 164, 90, 0.22);
  backdrop-filter: blur(18px);
}

.navbar {
  width: min(1180px, calc(100% - 36px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  display: block;
  width: 178px;
  height: auto;
  max-height: 66px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 800;
}

.nav-links a {
  position: relative;
  padding: 29px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.24s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-whatsapp,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease, color 0.24s ease;
  white-space: nowrap;
}

.nav-whatsapp {
  gap: 9px;
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 14px 35px rgba(6, 25, 54, 0.22);
}

.nav-whatsapp svg,
.floating-whatsapp svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.nav-whatsapp:hover,
.btn:hover,
.floating-whatsapp:hover {
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.hero {
  position: relative;
  min-height: 710px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(6, 25, 54, 0.92), rgba(6, 25, 54, 0.76) 45%, rgba(6, 25, 54, 0.5)),
    url("assets/rabat-hassan-tower.jpg") center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 25, 54, 0.05), rgba(6, 25, 54, 0.38));
}

.hero-overlay {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(6, 25, 54, 0.88));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 36px));
  text-align: center;
  padding: 120px 0 170px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 890px;
  margin-inline: auto;
  font-size: clamp(42px, 6.2vw, 76px);
}

.hero-subtitle {
  max-width: 760px;
  margin: 24px auto 34px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-gold {
  color: var(--navy);
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  box-shadow: 0 18px 42px rgba(202, 164, 90, 0.27);
}

.btn-dark {
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 18px 42px rgba(6, 25, 54, 0.18);
}

.btn-outline {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.18);
}

.trust-bar {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 0;
  width: min(1180px, calc(100% - 36px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  background: rgba(6, 25, 54, 0.84);
  box-shadow: 0 -16px 60px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(18px);
}

.trust-bar div {
  padding: 24px 20px;
  text-align: center;
  font-weight: 700;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.trust-bar div:last-child {
  border-right: 0;
}

.trust-bar span {
  color: var(--gold-2);
  font-weight: 900;
}

.section {
  padding: 100px 0;
}

.section-heading {
  width: min(760px, calc(100% - 36px));
  margin: 0 auto 44px;
  text-align: center;
}

.section-heading h2,
.online-copy h2,
.contact-info h2,
.lead-card h2 {
  color: var(--navy);
  font-size: clamp(31px, 4vw, 48px);
}

.service-grid,
.packs-grid,
.why-grid,
.testimonial-grid,
.steps {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.services {
  position: relative;
  background:
    radial-gradient(circle at 12% 12%, rgba(202, 164, 90, 0.12), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card,
.why-card,
.testimonial,
.pack-card,
.online-card,
.contact-form,
.lead-card {
  border: 1px solid rgba(202, 164, 90, 0.2);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 44px rgba(6, 25, 54, 0.08);
}

.service-card {
  min-height: 250px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.78)),
    linear-gradient(135deg, rgba(202, 164, 90, 0.1), rgba(6, 25, 54, 0.02));
  box-shadow: 0 18px 54px rgba(6, 25, 54, 0.09);
  backdrop-filter: blur(14px);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(231, 199, 116, 0.72), rgba(6, 25, 54, 0.08), rgba(255, 255, 255, 0.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.service-card::after,
.why-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(202, 164, 90, 0.18), transparent 48%),
    radial-gradient(circle at 86% 16%, rgba(6, 25, 54, 0.08), transparent 26%);
  opacity: 0;
  transition: opacity 0.24s ease;
  pointer-events: none;
}

.service-card:hover,
.why-card:hover,
.pack-card:hover,
.testimonial:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 78px rgba(6, 25, 54, 0.16);
}

.service-card,
.why-card,
.pack-card,
.testimonial {
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.service-card:hover::after,
.why-card:hover::after {
  opacity: 1;
}

.icon {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  color: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  background:
    linear-gradient(145deg, var(--gold-2), var(--gold));
  box-shadow:
    0 14px 28px rgba(202, 164, 90, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.48);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  position: relative;
  z-index: 1;
}

.service-card h3,
.why-card h3,
.pack-card h3 {
  margin: 16px 0 0;
  color: var(--navy);
  line-height: 1.25;
}

.service-card h3 {
  margin-top: 24px;
  font-size: 21px;
  font-weight: 900;
}

.service-card p {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  color: #59677d;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.65;
}

.packs-section {
  background: linear-gradient(180deg, var(--white), #f5f8fb);
}

.packs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 22px;
}

.pack-card {
  position: relative;
  padding: 36px 30px 30px;
  display: flex;
  flex-direction: column;
}

.pack-card.featured {
  color: var(--white);
  background: linear-gradient(180deg, var(--navy), #031229);
  border-color: rgba(202, 164, 90, 0.58);
  transform: translateY(-14px);
}

.pack-card.featured h3,
.pack-card.featured .price,
.pack-card.featured li {
  color: var(--white);
}

.badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 140px;
  padding: 8px 14px;
  color: var(--navy);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.price {
  margin: 12px 0 22px;
  color: var(--navy);
  font-size: 46px;
  font-weight: 900;
  letter-spacing: 0;
}

.price span,
.online-card strong span {
  font-size: 18px;
}

.pack-card ul,
.online-copy ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.pack-card li,
.online-copy li {
  position: relative;
  padding-left: 24px;
  margin: 12px 0;
  color: #2f3b4e;
  font-weight: 700;
}

.pack-card.featured li {
  color: rgba(255, 255, 255, 0.88);
}

.pack-card li::before,
.online-copy li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-weight: 900;
}

.pack-card .btn {
  margin-top: auto;
}

.online-pack {
  padding: 90px 0;
  color: var(--white);
  background:
    radial-gradient(circle at 86% 18%, rgba(202, 164, 90, 0.24), transparent 28%),
    linear-gradient(135deg, #031229, var(--navy-2));
  overflow: hidden;
}

.online-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr minmax(290px, 420px);
  gap: 44px;
  align-items: center;
}

.online-copy h2 {
  color: var(--white);
  max-width: 600px;
}

.online-copy ul {
  margin-top: 28px;
}

.online-copy li {
  color: rgba(255, 255, 255, 0.9);
}

.online-card {
  min-height: 350px;
  padding: 34px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  background: linear-gradient(180deg, #ffffff, #f7f3eb);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.laptop-icon {
  width: 130px;
  height: 96px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
}

.laptop-icon span {
  width: 76px;
  height: 48px;
  border: 6px solid var(--navy);
  border-radius: 5px;
  position: relative;
}

.laptop-icon span::after {
  content: "";
  position: absolute;
  left: -13px;
  right: -13px;
  bottom: -16px;
  height: 6px;
  border-radius: 999px;
  background: var(--navy);
}

.online-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.online-card strong {
  display: block;
  margin: 2px 0 22px;
  color: var(--navy);
  font-size: 46px;
  font-weight: 900;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.why-card {
  position: relative;
  min-height: 176px;
  padding: 26px;
}

.why-card h3 {
  margin-top: 0;
}

.why-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 600;
}

.steps-section {
  background: var(--cream);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step {
  min-height: 150px;
  padding: 26px;
  border-left: 4px solid var(--gold);
  background: var(--white);
  box-shadow: 0 14px 40px rgba(6, 25, 54, 0.07);
}

.step span {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--white);
  border-radius: 50%;
  background: var(--navy);
  font-weight: 900;
}

.step p {
  margin: 18px 0 0;
  color: var(--navy);
  font-size: 18px;
  font-weight: 900;
}

.testimonials {
  padding: 100px 0;
  background: linear-gradient(180deg, #f6f9fc, var(--white));
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial {
  padding: 28px;
}

.stars {
  color: var(--gold);
  font-size: 20px;
  letter-spacing: 0;
}

.testimonial p {
  color: #304057;
  font-weight: 600;
}

.testimonial strong {
  color: var(--navy);
}

.faq-list {
  width: min(900px, calc(100% - 36px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  color: var(--navy);
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 25px;
  line-height: 1;
}

details[open] summary::after {
  content: "−";
}

details p {
  margin: 0;
  padding: 0 0 22px;
  color: var(--muted);
  font-weight: 600;
}

.contact-section {
  padding: 105px 0;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(6, 25, 54, 0.96), rgba(6, 25, 54, 0.9)),
    url("assets/rabat-hassan-tower.jpg") center / cover no-repeat;
}

.contact-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 460px);
  gap: 58px;
  align-items: center;
}

.contact-info h2 {
  color: var(--white);
}

.contact-text {
  max-width: 600px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.contact-lines {
  display: grid;
  gap: 14px;
  margin-top: 34px;
  color: var(--white);
  font-size: 21px;
  font-weight: 900;
}

.contact-lines a {
  width: fit-content;
}

.contact-lines a:hover {
  color: var(--gold-2);
}

.contact-form {
  padding: 28px;
  background: rgba(255, 255, 255, 0.97);
}

.contact-form input,
.contact-form select,
.contact-form textarea,
.lead-card input {
  width: 100%;
  min-height: 48px;
  margin-bottom: 12px;
  padding: 12px 14px;
  color: var(--ink);
  border: 1px solid rgba(9, 22, 43, 0.12);
  border-radius: 6px;
  background: #fff;
  outline: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus,
.lead-card input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(202, 164, 90, 0.14);
}

.form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.footer {
  padding: 34px max(18px, calc((100% - 1180px) / 2));
  color: rgba(255, 255, 255, 0.76);
  background: #031229;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer strong {
  color: var(--white);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 25px;
}

.footer p {
  margin: 4px 0 0;
}

.footer div:nth-child(2) {
  display: grid;
  gap: 4px;
  font-weight: 800;
}

.footer a:hover {
  color: var(--gold-2);
}

.footer small {
  width: 100%;
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  color: var(--white);
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 16px 40px rgba(37, 211, 102, 0.35);
}

.floating-whatsapp svg {
  width: 30px;
  height: 30px;
}

.lead-popup {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3, 18, 41, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.lead-popup.is-open {
  opacity: 1;
  visibility: visible;
}

.lead-card {
  position: relative;
  width: min(450px, 100%);
  padding: 34px;
  transform: translateY(18px);
  transition: transform 0.24s ease;
}

.lead-popup.is-open .lead-card {
  transform: translateY(0);
}

.lead-card p:not(.eyebrow) {
  margin: 14px 0 22px;
  color: var(--muted);
  font-weight: 600;
}

.lead-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: var(--navy);
  background: var(--cream);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.lead-card .btn {
  width: 100%;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .navbar {
    min-height: 70px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 18px;
    right: 18px;
    display: grid;
    gap: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateY(-18px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  }

  .nav-links a {
    padding: 15px;
  }

  .nav-links a::after {
    display: none;
  }

  body.menu-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  body.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-whatsapp {
    padding: 0 16px;
  }

  .hero {
    min-height: 720px;
  }

  .trust-bar,
  .service-grid,
  .packs-grid,
  .why-grid,
  .testimonial-grid,
  .steps,
  .online-inner,
  .contact-inner {
    grid-template-columns: 1fr 1fr;
  }

  .pack-card.featured {
    transform: none;
  }

  .contact-inner,
  .online-inner {
    gap: 28px;
  }
}

@media (max-width: 700px) {
  .navbar {
    width: min(100% - 24px, 1180px);
    gap: 12px;
  }

  .brand img {
    width: 138px;
    max-height: 56px;
  }

  .nav-whatsapp {
    min-height: 42px;
    padding: 0 12px;
    font-size: 0;
  }

  .nav-whatsapp svg {
    width: 22px;
    height: 22px;
  }

  .hero {
    min-height: 760px;
    background-position: center;
  }

  .hero-content {
    width: min(100% - 24px, 980px);
    padding-top: 100px;
    padding-bottom: 250px;
  }

  h1 {
    font-size: clamp(38px, 13vw, 52px);
  }

  .trust-bar {
    width: 100%;
    grid-template-columns: 1fr 1fr;
    border-radius: 0;
  }

  .trust-bar div {
    padding: 16px 12px;
    font-size: 13px;
  }

  .section,
  .testimonials,
  .contact-section,
  .online-pack {
    padding: 72px 0;
  }

  .section-heading,
  .service-grid,
  .packs-grid,
  .why-grid,
  .testimonial-grid,
  .steps,
  .online-inner,
  .contact-inner,
  .faq-list {
    width: min(100% - 24px, 1180px);
  }

  .service-grid,
  .packs-grid,
  .why-grid,
  .testimonial-grid,
  .steps,
  .online-inner,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .service-card,
  .why-card,
  .pack-card,
  .testimonial,
  .contact-form,
  .lead-card {
    padding: 24px;
  }

  .online-card {
    padding: 26px;
  }

  .price,
  .online-card strong {
    font-size: 40px;
  }

  .form-actions,
  .hero-actions {
    grid-template-columns: 1fr;
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 92px;
  }

  .floating-whatsapp {
    right: 16px;
    bottom: 16px;
    width: 58px;
    height: 58px;
  }
}
