*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #121e46;
  --primary-deep: #0a1129;
  --secondary: #b8904f;
  --secondary-soft: #d9c29a;
  --ink: #122033;
  --text: #435061;
  --muted: #6b7685;
  --white: #ffffff;
  --surface: #f7f4ef;
  --surface-strong: #efe8dc;
  --line: rgba(15, 35, 65, 0.12);
  --shadow: 0 22px 50px rgba(10, 20, 36, 0.12);
  --shadow-soft: 0 14px 32px rgba(10, 20, 36, 0.08);
  --radius: 22px;
  --transition: 0.3s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: #fafafa;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
}

p {
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--primary), #163762);
  color: var(--white);
  border: 1px solid transparent;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(15, 35, 65, 0.18);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 35, 65, 0.22);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: rgba(15, 35, 65, 0.18);
  box-shadow: none;
}

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

header {
  background: var(--primary-deep);
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 10000;
  overflow: visible;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  gap: 22px;
}

.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
}

.logo img {
  width: 136px;
  height: auto;
  object-fit: contain;
  filter: none;
}

.logo span {
  display: none;
}

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

.nav-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--white);
  transition: var(--transition);
}

nav {
  display: flex;
  align-items: center;
  min-width: 0;
}

nav > ul {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  align-items: center;
}

nav > ul > li {
  position: relative;
}

nav a {
  color: var(--white);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  padding: 8px 0;
  display: block;
  white-space: nowrap;
}

nav ul li a:hover,
nav ul li.active > a {
  color: var(--secondary-soft);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  display: grid;
  gap: 0;
  background: rgba(9, 23, 43, 0.97);
  min-width: 300px;
  max-width: min(380px, calc(100vw - 32px));
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 44px rgba(0,0,0,0.24);
  z-index: 10001;
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  width: 100%;
  height: 14px;
}

nav > ul > li:last-child .dropdown-menu,
nav > ul > li:nth-last-child(2) .dropdown-menu {
  left: auto;
  right: 0;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

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

.dropdown-menu li a {
  padding: 13px 18px;
  display: block;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  white-space: normal;
  line-height: 1.35;
  font-size: 0.78rem;
}

.dropdown-menu li a:hover {
  background-color: rgba(184, 144, 79, 0.18);
  color: var(--secondary-soft);
}

.hero {
  position: relative;
  z-index: 0;
  height: min(82vh, 860px);
  min-height: 560px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(180deg, rgba(9, 23, 43, 0.30) 0%, rgba(9, 23, 43, 0.70) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 160px;
  background: linear-gradient(180deg, rgba(250, 250, 250, 0) 0%, rgba(250, 250, 250, 1) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 3.5rem;
  color: var(--white);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.hero-slides {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
}

.slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(18,30,70,0.7), rgba(18,30,70,0.5));
}

.slide-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--white);
  text-align: center;
  padding: 0 24px;
}

.slide-content h1,
.slide-content h2 {
  max-width: 12ch;
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  color: var(--white);
  margin-bottom: 0.8rem;
  text-transform: none;
  letter-spacing: -0.04em;
  text-shadow: 0 14px 30px rgba(0,0,0,0.22);
}

.slide-content p {
  max-width: 32rem;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 10px 22px rgba(0,0,0,0.2);
}

.slide-nav {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  z-index: 4;
}

.slide-dot {
  width: 14px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.42);
  border: 1px solid rgba(255,255,255,0.32);
  cursor: pointer;
  transition: var(--transition);
}

.slide-dot.active,
.slide-dot:hover {
  background-color: var(--white);
}

section {
  padding: 92px 0;
}

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

.section-title h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: 1rem;
  text-transform: none;
}

.section-title p {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 760px;
  margin: 0 auto;
}

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

.service-card {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  transition: all 0.4s ease;
  box-shadow: 0 8px 32px rgba(15, 35, 65, 0.05);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  box-shadow: 0 16px 40px rgba(15, 35, 65, 0.1);
  transform: translateY(-4px);
}

.service-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  margin-bottom: 24px;
  border-radius: 16px;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.85rem;
  text-transform: none;
  color: var(--ink);
}

.service-card p {
  color: var(--text);
  margin-bottom: 1.8rem;
  flex-grow: 1;
}

.service-card .btn {
  padding: 10px 25px;
  font-size: 0.8rem;
  margin-top: auto;
  align-self: center;
}

.about-section {
  background:
    linear-gradient(180deg, rgba(250, 250, 250, 0.72), rgba(250, 250, 250, 0.96));
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 58px;
  align-items: center;
}

.about-content--text-only {
  grid-template-columns: minmax(0, 760px);
  justify-content: start;
  max-width: 760px;
  margin: 0 auto;
}

.about-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--text);
  font-size: 1.08rem;
}

.about-image img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: center top;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.contact-section {
  background:
    linear-gradient(135deg, var(--primary-deep), var(--primary));
  color: var(--white);
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: stretch;
}

.contact-grid--info-only {
  grid-template-columns: minmax(0, 760px);
  justify-content: start;
  max-width: 760px;
  margin: 0 auto;
}

.contact-info h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-item strong {
  display: block;
  margin-bottom: 5px;
}

.contact-item p {
  margin: 0;
  color: rgba(255,255,255,0.84);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 2rem;
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: var(--transition);
}

.linkedin-link:hover {
  color: var(--secondary-soft);
}

.linkedin-link img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  opacity: 0.8;
  transition: var(--transition);
}

.linkedin-link:hover img {
  opacity: 1;
}

.map-container {
  width: 100%;
  min-height: 320px;
  border-radius: 24px;
  overflow: hidden;
  background-color: rgba(255,255,255,0.08);
  box-shadow: var(--shadow-soft);
}

/* --- Mega Footer --- */
.mega-footer {
  background-color: var(--primary-deep);
  color: var(--white);
  padding: 60px 0 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

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

.footer-col h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
}

.brand-col .logo {
  display: inline-block;
  margin-bottom: 20px;
}

.brand-col .logo img {
  width: 160px;
}

.links-col ul {
  list-style: none;
  padding: 0;
}

.links-col li {
  margin-bottom: 12px;
}

.links-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  transition: var(--transition);
}

.links-col a:hover {
  color: var(--secondary-soft);
}

.contact-col strong {
  color: var(--white);
  display: block;
  margin-bottom: 2px;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

.page-header {
  background: var(--primary-deep);
  padding: 88px 0 74px;
  text-align: center;
  color: var(--white);
}

.page-header h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: var(--white);
}

.page-header p {
  font-size: 1.12rem;
  color: rgba(255,255,255,0.84);
  margin-top: 1rem;
}

.content-section {
  padding: 72px 0;
}

.content-section p {
  font-size: 1.06rem;
  line-height: 1.85;
  color: var(--text);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

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

.team-member img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  margin-bottom: 15px;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.team-member h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.team-member p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.partner-card {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 8px 32px rgba(15, 35, 65, 0.05);
  backdrop-filter: blur(12px);
}

.partner-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 16px;
}

.partner-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.partner-card p {
  color: var(--text);
  margin: 0;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--ink);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(15, 35, 65, 0.14);
  border-radius: 16px;
  background: rgba(255,255,255,0.92);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.breadcrumb {
  padding: 20px 0;
  background-color: rgba(250, 250, 250, 0.5);
}

.breadcrumb ul {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--secondary);
}

.breadcrumb span {
  color: var(--muted);
}

@media (max-width: 1024px) {
  .header-inner {
    gap: 14px;
  }

  nav > ul {
    gap: 14px;
  }

  nav a {
    font-size: 0.74rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-content {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 10002;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: linear-gradient(180deg, var(--primary-deep), var(--primary));
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 80px;
    overflow-y: auto;
    transition: var(--transition);
    z-index: 10001;
    box-shadow: -22px 0 48px rgba(0,0,0,0.28);
  }

  nav.active {
    right: 0;
  }

  nav > ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
    align-items: stretch;
  }

  nav > ul > li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    width: 100%;
  }

  nav a {
    padding: 15px 20px;
  }

  .dropdown-menu {
    position: static;
    left: auto;
    right: auto;
    display: grid;
    opacity: 0;
    visibility: hidden;
    transform: none;
    max-height: 0;
    overflow: hidden;
    background-color: rgba(255,255,255,0.04);
    box-shadow: none;
    border: 0;
    border-radius: 0;
    transition: max-height 0.3s ease, opacity 0.2s ease;
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .dropdown-menu::before {
    content: none;
  }

  .dropdown-menu li a {
    padding: 12px 20px 12px 34px;
    font-size: 0.74rem;
    border-bottom-color: rgba(255,255,255,0.08);
  }

  .dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    max-height: 1000px;
  }

  .hero-content h1,
  .slide-content h2 {
    font-size: 2.2rem;
  }

  .hero-content p,
  .slide-content p {
    font-size: 1.1rem;
  }

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

  .about-content {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
  }

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

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

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

  section {
    padding: 68px 0;
  }

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

@media (max-width: 480px) {
  .logo img {
    width: 112px;
    height: auto;
  }

  .logo span {
    display: none;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.8rem;
  }

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

  .hero {
    min-height: 500px;
  }

  .slide-content h2 {
    max-width: 10ch;
  }

  .team-member img {
    height: 250px;
  }
}

/* --- Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.services-grid .service-card:nth-child(2) { transition-delay: 100ms; }
.services-grid .service-card:nth-child(3) { transition-delay: 200ms; }
.services-grid .service-card:nth-child(4) { transition-delay: 300ms; }
.services-grid .service-card:nth-child(5) { transition-delay: 400ms; }
.services-grid .service-card:nth-child(6) { transition-delay: 500ms; }
