* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Tajawal", "Segoe UI", sans-serif;
  color: #0f1624;
  background-color: #f6f7fb;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}

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

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(15, 22, 36, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand-name {
  font-weight: 700;
  margin: 0;
  font-size: 1.05rem;
}

.brand-tagline {
  margin: 0;
  font-size: 0.85rem;
  color: #536079;
}

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

.main-nav a {
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: #0f1624;
  color: #ffffff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  background: none;
  border: none;
  padding: 0.4rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #0f1624;
  border-radius: 999px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  color: #ffffff;
  overflow: hidden;
  background-image: linear-gradient(135deg, #0b0e2d 0%, #1a2d6d 40%, #d84d6a 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/al-thameen-exterior.jpg") center/cover;
  opacity: 0.35;
  mix-blend-mode: screen;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(11, 14, 45, 0.85), rgba(216, 77, 106, 0.6));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  padding: 6rem 0 4rem;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  margin: 0.75rem 0 1rem;
}

.hero-text p {
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 1.25rem;
}

.badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(11, 14, 45, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: #ffffff;
  color: #141a42;
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.hero-card {
  background: rgba(5, 8, 29, 0.72);
  border-radius: 24px;
  padding: 2rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 40px rgba(5, 8, 29, 0.45);
}

.hero-card h2 {
  margin: 0 0 1rem;
  font-size: 1.65rem;
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.hero-card li {
  position: relative;
  padding-inline-end: 1.5rem;
}

.hero-card li::before {
  content: "•";
  position: absolute;
  inset-inline-end: 0;
  color: #ff8aa3;
  font-size: 1.25rem;
  line-height: 1;
}

.section {
  padding: clamp(3.5rem, 5vw, 5rem) 0;
}

.section h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin: 0 0 1.2rem;
}

.section-intro {
  color: #4a576a;
  max-width: 560px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.about-panel {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 22, 36, 0.12);
}

.about-panel img {
  height: 100%;
  object-fit: cover;
}

.panel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(15, 22, 36, 0) 0%, rgba(15, 22, 36, 0.82) 80%);
  color: #ffffff;
  padding: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.8;
}

.services {
  background: #ffffff;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.service-card {
  padding: 1.75rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(11, 14, 45, 0.06), rgba(216, 77, 106, 0.08));
  border: 1px solid rgba(15, 22, 36, 0.05);
  box-shadow: 0 14px 25px rgba(15, 22, 36, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(15, 22, 36, 0.16);
}

.service-card h3 {
  margin: 0 0 0.85rem;
  font-size: 1.25rem;
}

.gallery {
  background: #f0f3fa;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.gallery figure {
  margin: 0;
  background: #ffffff;
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: 0 18px 35px rgba(15, 22, 36, 0.12);
}

.gallery figcaption {
  margin-top: 0.75rem;
  color: #4a576a;
  font-size: 0.9rem;
}

.visit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1.1rem;
}

.info-list li {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-inline-end: 1.1rem;
  border-inline-end: 3px solid rgba(216, 77, 106, 0.5);
}

.label {
  font-weight: 600;
  font-size: 0.8rem;
  color: #d84d6a;
  letter-spacing: 0.03em;
}

.map-wrapper {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(15, 22, 36, 0.15);
  aspect-ratio: 4 / 3;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact {
  background: linear-gradient(120deg, #0b0e2d, #1a2d6d, #d84d6a);
  color: #ffffff;
}

.contact-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  padding: 3rem;
  border-radius: 28px;
  background: rgba(5, 8, 29, 0.6);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 50px rgba(5, 8, 29, 0.4);
}

.contact-details {
  display: grid;
  gap: 0.75rem;
  font-weight: 500;
}

.contact-details a {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.reg-info {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer {
  padding: 1.75rem 0;
  text-align: center;
  color: #536079;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    inset: 0 0 auto auto;
    top: 68px;
    right: 4%;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 16px;
    padding: 1.2rem 1.4rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    box-shadow: 0 16px 35px rgba(15, 22, 36, 0.18);
    transform: scale(0.6);
    transform-origin: top right;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .main-nav.active {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

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

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

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

  .contact-card {
    padding: 2.25rem;
  }
}

@media (max-width: 600px) {
  .header-inner {
    padding: 0.5rem 0;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .hero-content {
    padding: 5rem 0 3rem;
  }

  .hero-card {
    padding: 1.6rem;
  }

  .section {
    padding: 3rem 0;
  }

  .contact-card {
    padding: 2rem;
  }

  .gallery figure {
    padding: 1rem;
  }
}
