:root {
  --bg: #f7f7f5;
  --white: #ffffff;
  --ink: #1a1f1b;
  --muted: #4e5851;
  --line: #dde2dc;
  --accent: #45624b;
  --accent-hover: #36513d;
  --radius: 20px;
  --shadow: 0 24px 55px rgba(24, 34, 26, 0.12);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Source Sans 3", sans-serif;
  background: radial-gradient(circle at 10% 15%, #ffffff 0%, var(--bg) 58%);
  color: var(--ink);
  line-height: 1.6;
}

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

a {
  text-decoration: none;
}

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

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.top-nav {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
}

.brand {
  font-family: "Manrope", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.03em;
  line-height: 0;
}

.brand-logo {
  height: 57px;
  width: auto;
  display: block;
  transition: opacity 180ms ease;
}
.brand-logo:hover { opacity: 0.85; }

.nav-links {
  display: flex;
  gap: 1.4rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: settle 1.4s ease-out forwards;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    118deg,
    rgba(17, 23, 19, 0.83) 4%,
    rgba(17, 23, 19, 0.52) 45%,
    rgba(17, 23, 19, 0.2) 100%
  );
  display: grid;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 660px;
  color: var(--white);
  animation: rise 0.8s ease 0.2s both;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-family: "Manrope", sans-serif;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: "Manrope", sans-serif;
  line-height: 1.15;
  margin: 0;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  margin-bottom: 1rem;
}

.lead {
  margin: 0;
  max-width: 58ch;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.92);
}

.cta {
  margin-top: 2rem;
  display: inline-block;
  background: var(--white);
  color: #1f2a22;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(4, 12, 7, 0.23);
}

.hub {
  margin-top: 0;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(182, 194, 184, 0.5);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.65s ease forwards;
  transition: transform 220ms ease, box-shadow 220ms ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 64px rgba(24,34,26,0.18);
}

.service-card:nth-child(2) {
  animation-delay: 80ms;
}

.service-card:nth-child(3) {
  animation-delay: 160ms;
}

.service-card:nth-child(4) {
  animation-delay: 240ms;
}

.service-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.service-content {
  padding: 1.2rem 1.25rem 1.3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.service-content h2 {
  font-size: clamp(1.15rem, 2.1vw, 1.4rem);
  margin-bottom: 0.9rem;
}

.service-content a {
  display: inline-block;
  color: var(--white);
  background: #4da6e8;
  border-radius: 999px;
  padding: 0.52rem 0.95rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.service-content a:hover {
  background: #2e8fd4;
}

.about {
  padding: 2.5rem 0 5rem;
}

.about-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.8rem;
  align-items: stretch;
}

.about-image,
.about-content {
  border-radius: var(--radius);
}

.about-image {
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.about-content {
  background: linear-gradient(160deg, #f2f4f1 0%, #e8ece6 100%);
  border: 1px solid var(--line);
  padding: 2rem;
}

.about-content .eyebrow {
  color: var(--muted);
}

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

.about-content p {
  margin: 0;
  color: #25302a;
  font-size: 1.06rem;
}

footer {
  background: linear-gradient(135deg, #0b1f3a 0%, #1a3a5c 45%, #2d6080 100%);
  color: #f1f3ef;
  padding: 2.4rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact h3 {
  margin-bottom: 0.8rem;
}

.contact p {
  margin: 0.25rem 0;
  color: rgba(255,255,255,0.75);
}

.footer-nav {
  display: grid;
  gap: 0.65rem;
  align-content: start;
}

.footer-nav a {
  color: rgba(255,255,255,0.88);
  font-weight: 600;
}

@keyframes settle {
  to {
    transform: scale(1);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .hero {
    min-height: 78vh;
  }
}

@media (max-width: 640px) {
  .service-card img {
    height: 200px;
  }

  .about-content {
    padding: 1.4rem;
  }
}

/* ── Hamburger button ────────────────────────────────── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  z-index: 20;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255,255,255,0.92);
  border-radius: 2px;
  transition: transform 280ms ease, opacity 280ms ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

  .top-nav {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    position: relative;
  }
  .brand-logo { height: 38px; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 220px;
    background: rgba(8, 18, 36, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 0.6rem 0;
    gap: 0;
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 0.75rem 1.4rem;
    font-size: 0.97rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links a:last-child { border-bottom: none; }
}
