:root {
  --bg: #f2f5f8;
  --surface: #ffffff;
  --surface-soft: #eaf1f7;
  --text: #1a2b3b;
  --muted: #536477;
  --line: #d2dde7;
  --brand: #1e557f;
  --brand-strong: #173f61;
  --accent: #2e8ea0;
  --radius: 18px;
  --shadow: 0 16px 34px rgba(17, 40, 62, 0.09);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Gill Sans", "Avenir Next", "Trebuchet MS", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(circle at 12% -6%, rgba(30, 85, 127, 0.1), transparent 38%),
    radial-gradient(circle at 89% 9%, rgba(46, 142, 160, 0.1), transparent 34%),
    var(--bg);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.22;
  letter-spacing: 0.01em;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

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

.hero {
  padding: 2.3rem 0 4.5rem;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(23, 63, 97, 0.3), transparent);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3.2rem;
}

.company {
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-strong);
  font-weight: 800;
}

.hero__content {
  max-width: 700px;
  animation: fade-up 0.7s ease both;
}

.hero h1 {
  font-size: clamp(1.95rem, 5vw, 3.1rem);
  margin-bottom: 1rem;
  max-width: 20ch;
}

.lead {
  max-width: 62ch;
  color: #2d4155;
  margin-bottom: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong) 70%);
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(22, 58, 91, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(22, 58, 91, 0.26);
}

.section {
  padding: 3.7rem 0;
}

.section__head {
  margin-bottom: 1.55rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.79rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.45rem;
}

.section h2 {
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  max-width: 24ch;
}

.section--media {
  padding-top: 3.2rem;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.24rem;
  animation: fade-up 0.6s ease both;
}

.services-grid .card:nth-child(2) {
  animation-delay: 0.05s;
}

.services-grid .card:nth-child(3) {
  animation-delay: 0.1s;
}

.services-grid .card:nth-child(4) {
  animation-delay: 0.15s;
}

.card h3 {
  font-size: 1.04rem;
  margin-bottom: 0.45rem;
}

.card p {
  color: var(--muted);
}

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

.photo-card {
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: fade-up 0.6s ease both;
}

.photo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px rgba(17, 40, 62, 0.12);
}

.photo-grid .photo-card:nth-child(2) {
  animation-delay: 0.05s;
}

.photo-grid .photo-card:nth-child(3) {
  animation-delay: 0.1s;
}

.photo-card img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center;
  background: #d8e3ed;
}

.photo-card figcaption {
  padding: 0.72rem 0.85rem 0.9rem;
  min-height: 5.8rem;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.media-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: fade-up 0.6s ease both;
}

.media-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px rgba(17, 40, 62, 0.12);
}

.media-grid .media-card:nth-child(2) {
  animation-delay: 0.05s;
}

.media-grid .media-card:nth-child(3) {
  animation-delay: 0.1s;
}

.media-card img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--line);
}

.media-card p {
  padding: 0.75rem 0.85rem 0.9rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.section--soft {
  background: linear-gradient(165deg, #e5edf4, #f1f6fa);
  border-top: 1px solid #d7e2ec;
  border-bottom: 1px solid #d7e2ec;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.focus-item {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #ccd9e4;
  border-radius: 14px;
  padding: 1rem;
  animation: fade-up 0.6s ease both;
}

.focus-grid .focus-item:nth-child(2) {
  animation-delay: 0.05s;
}

.focus-grid .focus-item:nth-child(3) {
  animation-delay: 0.1s;
}

.focus-grid .focus-item:nth-child(4) {
  animation-delay: 0.15s;
}

.icon {
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--brand-strong);
  background: #dce8f1;
  margin-bottom: 0.65rem;
}

.icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.focus-item h3 {
  font-size: 0.99rem;
  margin-bottom: 0.4rem;
}

.focus-item p {
  color: #3f4f5f;
  font-size: 0.94rem;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem;
  animation: fade-up 0.6s ease both;
}

.contact-card__name {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.contact-card p + p {
  margin-top: 0.35rem;
}

.contact-links {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.contact-links a {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  padding: 0.46rem 0.78rem;
  font-weight: 600;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-links a:hover {
  border-color: #b6c9da;
  background: #f2f7fb;
}

.footer {
  border-top: 1px solid var(--line);
  background: #eaf0f5;
  padding: 1.1rem 0;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
}

.footer a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .section {
    padding: 3.2rem 0;
  }

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

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

  .photo-card img {
    height: 230px;
  }

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

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

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

  .hero h1 {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
  }

  .lead {
    font-size: 0.98rem;
  }

  .topbar {
    margin-bottom: 2rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    padding: 2.8rem 0;
  }

  .photo-card img {
    height: 210px;
  }

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

  .contact-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
}
