/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1a3a5c;
  --primary-light: #2a5a8c;
  --primary-dark: #0f2440;
  --accent: #3498db;
  --accent-hover: #2980b9;
  --text: #333;
  --text-light: #666;
  --bg: #fff;
  --bg-light: #f5f7fa;
  --bg-dark: #e8ecf1;
  --white: #fff;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --transition: 0.3s ease;
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
}

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

ul {
  list-style: none;
}

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

/* ===== Utility ===== */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: background var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ===== Hero ===== */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
  color: var(--white);
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 70px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.15rem;
  max-width: 704px;
  margin: 0 auto 36px;
  opacity: 0.9;
}

.hero-lead {
  display: block;
  padding-bottom: 30px;
  font-weight: 700;
  font-size: 1.25em;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Front Page Slideshow ===== */
.homepage-showcase {
  position: relative;
  margin-top: 36px;
  padding: 0 0 24px;
}

.slideshow {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--primary-dark);
  box-shadow: 0 18px 50px rgba(15, 36, 64, 0.18);
}

.slideshow-track {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
}

.slideshow-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.slideshow-slide.is-active {
  opacity: 1;
}

.slideshow-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 36, 64, 0.08) 0%, rgba(15, 36, 64, 0.32) 100%);
}

.slideshow-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slideshow-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1;
  max-width: 420px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(15, 36, 64, 0.72);
  color: var(--white);
  backdrop-filter: blur(8px);
}

.slideshow-caption span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.74;
}

.slideshow-caption strong {
  font-size: 1.15rem;
  line-height: 1.35;
  font-weight: 600;
}

.slideshow-caption p {
  margin-top: 8px;
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.9;
}

.slideshow-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background var(--transition), transform var(--transition);
  backdrop-filter: blur(8px);
}

.slideshow-control.prev {
  left: 20px;
}

.slideshow-control.next {
  right: 20px;
}

.slideshow-control:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-50%) scale(1.04);
}

.slideshow-control:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.slideshow-control span {
  font-size: 1.8rem;
  line-height: 1;
}

.slideshow-dots {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 2;
  display: flex;
  gap: 10px;
  align-items: center;
  transform: translateX(-50%);
}

.slideshow-dot {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: none;
  border-radius: 999px;
  background: rgba(15, 36, 64, 0.45);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), color var(--transition);
  backdrop-filter: blur(8px);
}

.slideshow-dot.is-active {
  background: var(--white);
  color: var(--primary-dark);
  transform: scale(1.1);
}

.slideshow-dot:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.slideshow.is-single .slideshow-control,
.slideshow.is-single .slideshow-dots {
  display: none;
}

.slideshow-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  color: var(--white);
  text-align: center;
}

/* ===== Page Header (inner pages) ===== */
.page-header {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
  color: var(--white);
  text-align: center;
}

.page-header h1 {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.page-header p {
  opacity: 0.85;
  max-width: 540px;
  margin: 0 auto;
}

/* ===== Benefits / Cards Grid ===== */
.section {
  padding: 80px 0;
}

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

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card .icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ===== About Specific ===== */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-intro .text h2 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.about-intro .text p {
  color: var(--text-light);
  margin-bottom: 14px;
}

.about-intro .image-placeholder {
  background: var(--bg-dark);
  border-radius: var(--radius);
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.9rem;
}

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.value-item {
  text-align: center;
  padding: 24px;
}

.value-item .icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.value-item h3 {
  color: var(--primary);
  margin-bottom: 8px;
}

.value-item p {
  color: var(--text-light);
  font-size: 0.93rem;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

.team-member {
  text-align: center;
}

.team-member .avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--bg-dark);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.8rem;
}

.team-member h3 {
  color: var(--primary);
  margin-bottom: 4px;
}

.team-member p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ===== Services Specific ===== */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}

.service-detail:last-child {
  margin-bottom: 0;
}

.service-detail.reverse {
  direction: rtl;
}

.service-detail.reverse > * {
  direction: ltr;
}

.service-detail .content h3 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.service-detail .content p {
  color: var(--text-light);
  margin-bottom: 12px;
}

.service-detail .content ul {
  list-style: disc;
  padding-left: 20px;
}

.service-detail .content ul li {
  color: var(--text-light);
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.service-detail .visual {
  background: var(--bg-dark);
  border-radius: var(--radius);
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ===== Contact ===== */
.contact-panel {
  max-width: 760px;
  margin: 0 auto;
}

.contact-section-title {
  margin-bottom: 32px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.contact-info-box {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 36px;
}

.contact-info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.contact-info-item .icon {
  font-size: 1.3rem;
  color: var(--accent);
  min-width: 24px;
  text-align: center;
}

.contact-info-item p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.contact-info-item p strong {
  color: var(--text);
  display: block;
  margin-bottom: 2px;
}

.map-embed {
  margin-top: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-dark);
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 260px;
  border: 0;
}

/* ===== CTA Section ===== */
.cta {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
  color: var(--white);
  text-align: center;
  padding: 64px 0;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}

.cta p {
  opacity: 0.85;
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Footer ===== */
.footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-about p {
  opacity: 0.7;
  font-size: 0.9rem;
  margin-top: 12px;
}

.footer h4 {
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer-links a {
  display: block;
  opacity: 0.7;
  font-size: 0.9rem;
  margin-bottom: 8px;
  transition: opacity var(--transition);
}

.footer-links a:hover {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  opacity: 0.5;
  font-size: 0.85rem;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .about-intro,
  .service-detail,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service-detail.reverse {
    direction: ltr;
  }

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

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 20px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right var(--transition);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
  }

  .nav-links.open + .nav-overlay {
    display: block;
  }

  .hero {
    padding: 130px 0 70px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .homepage-showcase {
    margin-top: 28px;
    padding-bottom: 12px;
  }

  .slideshow-track {
    aspect-ratio: 5 / 4;
  }

  .slideshow-caption {
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 14px 16px;
  }

  .slideshow-control {
    width: 40px;
    height: 40px;
  }

  .slideshow-control.prev {
    left: 14px;
  }

  .slideshow-control.next {
    right: 14px;
  }

  .page-header {
    padding: 120px 0 40px;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .section {
    padding: 56px 0;
  }

  .section-title h2 {
    font-size: 1.6rem;
  }

}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .homepage-showcase {
    margin-top: 20px;
  }

  .slideshow-caption {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .slideshow-caption strong {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
}
