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

:root {
  --brand-dark: #1d587f;
  --brand: #206b9c;
  --brand-light: #2980b9;
  --brand-lighter: #eaf2f8;
  --text: #333333;
  --text-light: #666666;
  --border: #dde3e8;
  --bg-section: #f5f7fa;
  --white: #ffffff;
  --radius: 4px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 15px;
}

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

a:hover {
  color: var(--brand-dark);
}

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

ul {
  padding-left: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* Header */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 20px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 24px;
}

.logo img {
  height: 62px;
  width: auto;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-dark);
  font-weight: 600;
  font-size: 18px;
}

.header-contact .icon-phone {
  width: 28px;
  height: auto;
  flex-shrink: 0;
}

/* Nav */

.main-nav {
  background: var(--brand-dark);
  position: sticky;
  top: 0;
  z-index: 100;
}

.main-nav .container {
  display: flex;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.main-nav > .container > ul > li {
  position: relative;
}

.main-nav a,
.main-nav > .container > ul > li > span {
  display: block;
  padding: 14px 18px;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.main-nav > .container > ul > li:hover > a,
.main-nav > .container > ul > li:hover > span {
  background: var(--brand-light);
}

.main-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 240px;
  box-shadow: var(--shadow);
  z-index: 50;
  flex-direction: column;
}

.main-nav li:hover > .sub-menu {
  display: flex;
}

.main-nav .sub-menu a {
  color: var(--text);
  text-transform: none;
  font-weight: 500;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
}

.main-nav .sub-menu a:hover {
  background: var(--bg-section);
  color: var(--brand-dark);
}

.nav-toggle {
  display: none;
}

/* Hero carousel */

.hero-carousel {
  position: relative;
  overflow: hidden;
  background: #000;
}

.hero-slides {
  position: relative;
  height: 400px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.hero-caption-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
}

.hero-caption {
  pointer-events: auto;
  max-width: 480px;
  background: rgba(29, 88, 127, 0.85);
  color: var(--white);
  padding: 24px 32px;
}

.hero-caption h2 {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 700;
}

.hero-caption p {
  margin: 0;
  font-size: 16px;
}

.hero-nav-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.35);
  border: none;
  color: var(--white);
  width: 44px;
  height: 44px;
  font-size: 20px;
  cursor: pointer;
  pointer-events: auto;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.6);
}

.hero-arrow.prev {
  left: 0;
}

.hero-arrow.next {
  right: 0;
}

.hero-dots {
  position: absolute;
  bottom: 12px;
  right: 20px;
  display: flex;
  gap: 8px;
  z-index: 5;
}

.hero-dots button {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.hero-dots button.is-active {
  background: var(--white);
}

/* Feature cards */

.features {
  padding: 50px 0;
  background: var(--bg-section);
}

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

.feature-card {
  background: var(--white);
  border-top: 3px solid var(--brand-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.feature-card .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  color: var(--brand-dark);
}

.feature-card .icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: var(--brand-dark);
}

.feature-card p {
  flex-grow: 1;
  margin: 0 0 18px;
  color: var(--text-light);
  font-size: 14px;
}

.btn {
  display: inline-block;
  align-self: center;
  border: 2px solid var(--brand-dark);
  color: var(--brand-dark);
  background: transparent;
  padding: 9px 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  background: var(--brand-dark);
  color: var(--white);
}

/* About */

.about {
  padding: 60px 0;
}

.about-inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

.about h2 {
  color: var(--brand-dark);
  font-size: 24px;
  margin-top: 0;
}

.about-year {
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 6px;
}

.contact-box {
  background: var(--brand-dark);
  color: var(--white);
  padding: 26px;
  border-radius: var(--radius);
}

.contact-box h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-box h3 img {
  width: 26px;
  height: auto;
  filter: brightness(0) invert(1);
}

.contact-box p {
  margin: 4px 0;
}

.contact-box a {
  color: var(--white);
  text-decoration: underline;
}

/* Gallery */

.gallery {
  padding: 50px 0 60px;
  background: var(--bg-section);
}

.gallery h2 {
  text-align: center;
  color: var(--brand-dark);
  margin-top: 0;
  margin-bottom: 28px;
  font-size: 22px;
}

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

.gallery-grid button {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-grid button:hover img {
  transform: scale(1.05);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 200;
  padding: 30px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(80vw, 900px);
  max-height: 85vh;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--white);
  font-size: 34px;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

.lightbox-arrow {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: var(--white);
  width: 50px;
  height: 50px;
  font-size: 22px;
  cursor: pointer;
  border-radius: 50%;
}

.lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Footer */

.site-footer {
  background: var(--brand-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 40px 0 20px;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 6px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  padding: 6px 10px;
  display: inline-block;
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.8);
}

/* Inner pages */

.page-banner {
  background: linear-gradient(rgba(29, 88, 127, 0.9), rgba(29, 88, 127, 0.9)), url("../images/background/bg2.jpg");
  background-size: cover;
  background-position: center;
  padding: 38px 0;
}

.page-banner h1 {
  margin: 0;
  color: var(--white);
  font-size: 26px;
  text-align: center;
}

.page-layout {
  padding: 50px 0 60px;
}

.page-layout .container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

.page-content h2 {
  color: var(--brand-dark);
  font-size: 22px;
  margin-top: 0;
}

.page-content h3 {
  color: var(--brand-dark);
  font-size: 17px;
  margin-bottom: 6px;
}

.page-content ul {
  margin: 10px 0;
}

.page-content li {
  margin-bottom: 4px;
}

.license-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0;
}

.license-row img {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.license-row strong {
  color: var(--brand-dark);
  font-size: 16px;
  margin-right: 6px;
}

.sidebar .contact-box {
  position: sticky;
  top: 20px;
}

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

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

/* Responsive */

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-inner,
  .page-layout .container {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .header-inner {
    flex-direction: column;
    text-align: center;
  }

  .nav-toggle {
    display: block;
    position: absolute;
    top: 14px;
    right: 16px;
    background: var(--brand-dark);
    color: var(--white);
    border: none;
    font-size: 22px;
    padding: 6px 12px;
    border-radius: var(--radius);
    z-index: 20;
  }

  .site-header {
    position: relative;
  }

  .main-nav .container {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    display: none;
  }

  .main-nav.is-open ul {
    display: flex;
  }

  .main-nav .sub-menu {
    display: none;
    position: static;
    box-shadow: none;
    min-width: 0;
  }

  .main-nav li.is-open > .sub-menu {
    display: flex;
  }

  .hero-slides,
  .hero-slide img {
    height: 260px;
  }

  .hero-caption {
    max-width: 90%;
    padding: 16px 18px;
  }

  .hero-caption h2 {
    font-size: 20px;
  }

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

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

  .lightbox {
    gap: 8px;
    padding: 16px;
  }

  .lightbox-arrow {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .lightbox img {
    max-width: calc(100vw - 100px);
  }
}

@media (max-width: 500px) {
  .logo img {
    height: 48px;
  }
}
