:root {
  --blue-900: #0f3d75;
  --blue-800: #1457a8;
  --blue-700: #1d6fd1;
  --blue-100: #eaf4ff;
  --blue-50: #f5faff;
  --text-900: #112033;
  --text-700: #516176;
  --text-500: #6f8098;
  --white: #ffffff;
  --border: rgba(20, 87, 168, 0.12);
  --shadow: 0 14px 40px rgba(17, 32, 51, 0.08);
  --radius: 22px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text-900);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(20, 87, 168, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.brand-logo,
.brand-fallback {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  flex-shrink: 0;
}

.brand-logo {
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--white);
}

.brand-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--blue-900), var(--blue-700));
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-name,
.brand-tagline {
  display: block;
}

.brand-name {
  font-weight: 800;
  font-size: 1.05rem;
}

.brand-tagline {
  color: var(--text-500);
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

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

.main-nav a {
  padding: 0.8rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  color: var(--text-700);
  transition: 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--blue-800);
  background: var(--blue-50);
}

.nav-cta.btn {
  color: var(--white);
}

.nav-cta.btn:hover,
.nav-cta.btn.active {
  color: var(--white);
  background: var(--blue-700);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--blue-900);
  margin: 5px auto;
  border-radius: 999px;
}

.hero {
  padding: 4.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 2rem;
  align-items: stretch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-800);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
}

h1 {
  margin-top: 1rem;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  max-width: 12ch;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

p {
  color: var(--text-700);
  line-height: 1.7;
}

.hero-text {
  max-width: 62ch;
  font-size: 1.05rem;
  margin: 1.2rem 0 0;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-card,
.contact-card,
.service-card,
.gallery-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 2rem;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.hero-card.compact {
  align-self: start;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  gap: 0.9rem;
}

.check-list li {
  position: relative;
  padding-left: 1.8rem;
  color: var(--text-700);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blue-700);
  font-weight: 800;
}

.section {
  padding: 2rem 0 5rem;
}

.section-light {
  background: linear-gradient(180deg, #f9fcff 0%, #ffffff 100%);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin-top: 0.9rem;
}

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

.service-card {
  padding: 1.6rem;
  display: grid;
  gap: 1rem;
}

.service-card-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.service-card-header h3 {
  font-size: 1.3rem;
}

.service-index {
  min-width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--blue-50);
  color: var(--blue-800);
  font-weight: 800;
}

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

.service-card li {
  padding-left: 1rem;
  position: relative;
  color: var(--text-700);
}

.service-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--blue-700);
  font-weight: 800;
}

.cta-panel {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  color: var(--white);
  border-radius: 28px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: var(--shadow);
}

.cta-panel p,
.cta-panel .eyebrow {
  color: rgba(255, 255, 255, 0.88);
}

.cta-panel .eyebrow {
  background: rgba(255, 255, 255, 0.14);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-700));
  color: var(--white);
  box-shadow: 0 12px 25px rgba(29, 111, 209, 0.2);
}

.btn-secondary {
  background: var(--white);
  color: var(--blue-800);
  border-color: rgba(20, 87, 168, 0.16);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-700);
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
  border-color: rgba(20, 87, 168, 0.24);
  color: var(--blue-800);
  background: var(--blue-50);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.gallery-card {
  overflow: hidden;
}

.gallery-card-media {
  min-height: 190px;
  padding: 1.4rem;
  display: flex;
  align-items: end;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0.02)),
    linear-gradient(145deg, var(--blue-800), #6eb7ff);
  color: var(--white);
}

.gallery-card-media span {
  display: inline-flex;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  font-weight: 700;
  font-size: 0.9rem;
}

.gallery-card-content {
  padding: 1.2rem;
}

.gallery-card-content h3 {
  font-size: 1.15rem;
}

.gallery-card-content p {
  margin: 0.6rem 0 0;
}

.contact-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
}

.quick-contact {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.quick-contact a {
  color: var(--blue-800);
  font-weight: 700;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.25fr);
  gap: 1.5rem;
}

.contact-card {
  padding: 1.8rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  gap: 1.2rem;
}

.contact-list li {
  display: grid;
  gap: 0.35rem;
}

.contact-list strong {
  color: var(--text-900);
}

.contact-list a,
.contact-list span {
  color: var(--text-700);
}

.contact-form {
  margin-top: 1.4rem;
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 0.45rem;
}

label {
  font-weight: 700;
  color: var(--text-900);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(20, 87, 168, 0.16);
  border-radius: 16px;
  background: #fcfeff;
  color: var(--text-900);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(20, 87, 168, 0.36);
  box-shadow: 0 0 0 4px rgba(29, 111, 209, 0.08);
}

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

.form-message {
  min-height: 1.5rem;
  margin: 0;
  font-weight: 600;
}

.form-message.success {
  color: #177245;
}

.form-message.error {
  color: #b53939;
}

.site-footer {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid rgba(20, 87, 168, 0.08);
  background: var(--white);
}

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

.footer-inner p {
  margin: 0;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-contact a {
  color: var(--blue-800);
  font-weight: 700;
}

.gallery-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(20, 87, 168, 0.08);
}

.gallery-card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f3f7fc;
}

.gallery-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gallery-card-content {
  padding: 1rem;
}

.gallery-badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #eaf2ff;
  color: #1457a8;
  font-size: 0.85rem;
  font-weight: 600;
}

.service-card,
.gallery-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.service-card-link:hover {
  transform: translateY(-4px);
}

.service-card-link:focus-visible {
  outline: 3px solid var(--blue-800);
  outline-offset: 4px;
}

.gallery-card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f3f7fc;
}

.gallery-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gallery-card-media {
  aspect-ratio: 4 / 3;
  min-height: auto;
  padding: 1.4rem;
  display: flex;
  align-items: end;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0.02)),
    linear-gradient(145deg, var(--blue-800), #6eb7ff);
  color: var(--white);
}

.gallery-badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #eaf2ff;
  color: #1457a8;
  font-size: 0.85rem;
  font-weight: 600;
}

.gallery-card-image img {
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(10, 18, 30, 0.88);
}

.lightbox.open {
  display: flex;
}

.lightbox-image {
  max-width: min(100%, 1100px);
  max-height: 80vh;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  background: #fff;
}

.lightbox-caption {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(8px);
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 960px) {
  .hero-grid,
  .contact-layout,
  .services-grid,
  .gallery-grid,
  .contact-hero-grid {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    flex-direction: column;
    align-items: start;
  }
}

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

  .main-nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }

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

  .main-nav a {
    width: 100%;
    text-align: center;
  }

  .header-inner {
    position: relative;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 3.2rem;
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .brand-tagline {
    font-size: 0.82rem;
  }

  .cta-panel,
  .hero-card,
  .contact-card,
  .service-card {
    padding: 1.4rem;
  }

  .container {
    width: min(calc(100% - 1.2rem), var(--container));
  }
}
