/* Header & navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.util-row {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.util-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.header-contact-btn {
  min-height: 42px;
  padding: 0.45rem 0.85rem 0.45rem 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(20, 157, 175, 0.2);
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff, #eaf8fa);
  color: #0b5a72;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(8, 72, 96, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-contact-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(20, 157, 175, 0.45);
  box-shadow: 0 12px 24px rgba(8, 72, 96, 0.13);
}

.header-contact-btn__icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #1aa8b6, #0b7181);
  color: #fff;
  font-size: 0.85rem;
}

.header-contact-btn__arrow {
  color: #d4a035;
  font-size: 1.05rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none !important;
}

.brand-lockup img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  transition: transform 0.3s ease;
}

.brand-lockup:hover img {
  transform: scale(1.05);
}

.brand-lockup span {
  display: grid;
  text-align: right;
  line-height: 1;
  font-family: 'Almarai', sans-serif;
  text-decoration: none !important;
}

.brand-lockup small {
  color: #58b9c4;
  font-weight: 400;
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
  letter-spacing: 0.5px;
  opacity: 0.9;
  border-bottom: 0 !important;
  text-decoration: none !important;
}

.brand-lockup strong {
  color: var(--ink);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  border-bottom: 0 !important;
  text-decoration: none !important;
}

.nav-row {
  border-top: 1px solid #edf2f4;
  border-bottom: 4px solid #e4f4f6;
}

.nav-wrap {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: #149daf;
  font-weight: 800;
  font-size: 1.03rem;
  padding: 0.35rem 0.2rem;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--ink);
  border-color: var(--teal);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  padding: 10px;
  align-content: center;
  gap: 4px;
  position: relative;
  z-index: 3;
}

.menu-toggle__line {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Footer — unified contact + links */
.site-footer {
  margin-top: 0;
}

.footer-shell {
  position: relative;
  overflow: hidden;
  color: #f2fdff;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(26, 168, 182, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(8, 52, 68, 0.5), transparent 50%),
    linear-gradient(155deg, #062a38 0%, #0a5568 42%, #128ea0 100%);
}

.footer-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.35;
  pointer-events: none;
}

.footer-shell__inner {
  position: relative;
  z-index: 1;
  padding: 2.5rem 0 2rem;
  display: grid;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1.35rem 1.5rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 40px rgba(4, 32, 42, 0.25);
  backdrop-filter: blur(8px);
}

.footer-brand__lockup {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-brand__lockup img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.2));
}

.footer-brand__lockup strong {
  display: block;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.2;
}

.footer-brand__eyebrow {
  display: block;
  font-size: 0.82rem;
  opacity: 0.85;
  margin-bottom: 0.15rem;
}

.footer-brand__sub {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-brand__book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #e8b84a, #d4a035);
  color: #1a2a32;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(212, 160, 53, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-brand__book:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(212, 160, 53, 0.42);
}

.footer-panels {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.5rem;
}

.footer-panel {
  padding: 1.35rem 1.4rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-panel__title {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.footer-nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-nav a:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.footer-contact {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.12);
  line-height: 1.5;
}

.footer-contact__icon {
  flex-shrink: 0;
  font-size: 1rem;
}

.footer-contact a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.footer-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 1rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.88rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-action:hover {
  transform: translateY(-1px);
}

.footer-action--wa {
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.footer-action--map {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
}

.footer-action--social {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.footer-bottom {
  background: #062a38;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(242, 253, 255, 0.75);
  text-align: center;
  padding: 1rem 0 calc(1rem + env(safe-area-inset-bottom, 0px));
  font-weight: 600;
  font-size: 0.88rem;
}

.page-home .util-actions .chip-gold {
  display: none;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: grid;
    place-items: center;
  }
}

@media (min-width: 980px) {
  .footer-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .footer-shell__inner {
    padding: 2rem 0 1.5rem;
    gap: 1.25rem;
  }

  .footer-brand {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 1.25rem 1.15rem;
  }

  .footer-brand__lockup {
    flex-direction: column;
  }

  .footer-brand__book {
    width: 100%;
  }

  .footer-panels {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-panel--contact {
    order: -1;
  }

  .footer-nav {
    grid-template-columns: 1fr;
  }

  .footer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .footer-action--social {
    grid-column: 1 / -1;
  }
}
