:root {
  --spot: #5c8ea2;
  --bg: #d1e6f0;
  --hero: #1e3540; /* dark top background */
  --hero-2: #4f6773; /* lighter section below */
  --text: #eaf2f6;
  --muted: #cddbe4;
  --underline: #ffffff;
  --maxw: 1180px;
  --bg: #112733; /* hero background */
  --bg-darker: #0c1d26;
  --text: #e9f1f5;
  --muted: #b9c6cf;
  --accent: #6bb0a7; /* button/hover accent */
  --outline: #274150;
  --maxw: 1200px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
/* Dark (your current look) */
.theme-dark {
  --bg: #2a4654; /* base behind gradient */
  --spot: #183a49; /* inner spot color */
  --ind-text: #ffffff; /* text on dark */
}

/* Light companion */
.theme-light {
  --bg: #d1e6f0; /* light base */
  --spot: #5c8ea2; /* lighter cousin of #183a49 */
  --ind-text: #0f2730; /* dark ink text (AA+/AAA on the light bg) */
}
.logo {
  text-decoration: none;
  font-size: 24px;
  letter-spacing: 0.3px;
  font-weight: 600;
  color: white;
}
/* Base */
body {
  margin: 0;
  background: var(--hero-2);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol", "Noto Color Emoji";
}
a {
  color: var(--muted);
  text-decoration: none;
}
a:hover {
  opacity: 0.9;
}
.container {
  width: 90%;
  margin: 0 auto;
  padding: 0 28px;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.4rem 0.2rem;
  border-radius: 8px;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-links {
  display: flex;
  gap: clamp(0.75rem, 1.2vw, 1.5rem);
  align-items: center;
  flex-wrap: wrap;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol", "Noto Color Emoji";
}
.nav-links a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.06);
}
.nav-links a.active {
  color: #fff;
  padding-bottom: 2px;
  border-bottom: 2px solid #fff;
  font-size: 20px;
}
/* Header */
.site-header {
  background: radial-gradient(
      1200px 600px at 25% 30%,
      #183a49 0%,
      var(--bg) 60%
    ),
    var(--bg);
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 18px 10px 12px;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  font-weight: 600;
  font-family: "Crimson Text", Georgia, serif;
  font-size: 24px;
}
.links {
  display: flex;
  gap: 26px;
  align-items: center;
  font-size: 16px;
}
.links a.active {
  color: #fff;
  border-bottom: 2px solid #fff;
  padding-bottom: 2px;
}

/* Hero / Services */
.services-hero {
  position: relative;
  background: radial-gradient(
      1200px 600px at 25% 30%,
      #183a49 0%,
      var(--bg) 60%
    ),
    var(--bg);
  padding: 70px 0 48px; /* extra bottom to make space for curve */
  overflow: hidden;
}
.grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: start;
}
.title {
  font-size: 64px;
  margin: 18px 0 10px;
  font-weight: 600;
}
.underline {
  height: 2px;
  width: 61%;
  /* width: 280px;*/
  background: var(--underline);
  border-radius: 99px;
  margin: 0 0 24px 6px;
}
.lead {
  color: #dde7ee;
  line-height: 1.9;
  font-size: 17px;
}

/* Curved divider (SVG) */
.curve {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 140px;
}
.curve svg {
  display: block;
  width: 100%;
  height: 100%;
}
.curve path {
  fill: var(--hero-2);
}

/* Responsive */
@media (max-width: 980px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .title {
    font-size: 48px;
  }
  .underline {
    width: 220px;
  }
}
/* card section----------------------------------------------------*/
/* Container reused from earlier */
/* .container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
} */

/* Section wrapper to match your palette */
.grid-3x3 {
  background: radial-gradient(
      1200px 600px at 25% 30%,
      var(--spot, #183a49) 0%,
      #496573 60%
    ),
    #496573 !important; /* same page blue-gray */
  color: #fff;
  padding: 40px 0 150px;
}

/* 3×3 grid */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 5%;
  gap: 42px;
}

/* Card styling */
.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 6%;
  border-radius: 18px;
  box-shadow: -1px 0px 13px hsl(0deg 0% 0% / 32%);
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3; /* consistent image box */
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

.card h3 {
  font-size: 24px;
  margin: 6px 0 2px;
  text-underline-offset: 6px;
}

.card ul {
  margin: 0;
  padding-left: 22px; /* bullets indent */
  line-height: 1.75;
  color: #e6eff6;
}

.card li {
  margin: 6px 0;
}

/* Responsive: 3 → 2 → 1 columns */
@media (max-width: 1024px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .card h3 {
    font-size: 22px;
  }
}

/* footer----------------------------------------------------*/

/* Footer */
footer {
  background: radial-gradient(
      1200px 600px at 25% 30%,
      #183a49 0%,
      var(--bg) 60%
    ),
    var(--bg);
  padding: 70px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 64px;

  align-items: center;
  justify-items: center;
}
.footer-title {
  font-size: 31px;
  margin: 0 0 16px 0;
  font-weight: 600;
}
.made-with {
  color: #b8c8d2;
}
.section-title {
  font-size: 22px;
  margin: 0 0 16px 0;
  font-weight: 600;
  color: #dbe6ee;
}
.footer-col p {
  margin: 0 0 10px 0;
  color: #d4e1ea;
}
.footer-col a {
  color: #cfe0ea;
}

/* Responsive tweaks */
@media (max-width: 1020px) {
  .about-wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .about h1 {
    font-size: 56px;
  }
  .underline {
    width: 210px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-title {
    font-size: 38px;
  }
}
@media (max-width: 560px) {
  .brand {
    font-size: 20px;
  }
  .nav-links {
    gap: 18px;
    font-size: 15px;
  }
  .about h1 {
    font-size: 44px;
  }
  .underline {
    width: 180px;
  }
}

img.footer-image {
  width: 136%;
  height: 15vh;
  border-radius: 10px;
  box-shadow: -1px 0px 13px hsl(0deg 0% 0% / 0%);
  border: solid 2px #5c8ea212;
}

/* popup modal for contact */
.skylark-call {
  color: var(--text);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.4rem 0.2rem;
  border-radius: 8px;
  transition: color 0.15s ease, background-color 0.15s ease;
  background: none;
  border: none;
}
.skylark-call:hover {
  color: white;
  background: rgba(255, 255, 255, 0.06);
}
.skylark-veil {
  position: fixed;
  inset: 0;
  display: none;
}
.skylark-veil[aria-hidden="false"] {
  display: block;
}

.skylark-backdrop {
  position: absolute;
  inset: 0;
  background: var(--sk-bg);
  backdrop-filter: blur(4px);
  animation: sk-fade 0.18s ease-out;
}

.skylark-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(720px, calc(100% - 40px));
  background: linear-gradient(
    180deg,
    rgba(18, 23, 31, 0.96),
    rgba(18, 23, 31, 0.92)
  );
  color: var(--sk-text);
  border-radius: 10px;
  box-shadow: var(--sk-shadow);
  padding: 20px 20px 22px;
  animation: sk-pop 0.18s ease-out forwards;
}
.skylark-panel::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(
    from 180deg at 50% 50%,
    var(--sk-ring1),
    var(--sk-ring2),
    var(--sk-ring1)
  );
  filter: blur(20px);
  opacity: 0.15;
  z-index: -1;
}

.skylark-x {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: var(--sk-muted);
  font-size: 22px;
  cursor: pointer;
}
.skylark-x:hover {
  color: #fff;
}

.skylark-panel h2 {
  margin: 6px 4px 6px;
  font: 800 clamp(26px, 4vw, 42px) / 1.1 system-ui, -apple-system, Segoe UI,
    Inter, Arial, sans-serif;
  letter-spacing: 0.01em;
}
.skylark-sub {
  margin: 0 4px 14px;
  color: var(--sk-muted);
}

.skylark-form {
  display: grid;
  gap: 12px;
}
.skylark-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.skylark-input {
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 14, 22, 0.55);
  color: var(--sk-text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    background 0.2s ease;
}
.skylark-input:focus {
  border-color: rgba(124, 92, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.18);
  background: rgba(10, 14, 22, 0.7);
}
.skylark-area {
  resize: vertical;
  min-height: 120px;
}

.skylark-send {
  margin-top: 2px;
  justify-self: start;
  border: 0;
  padding: 0.85rem 1.2rem;
  border-radius: 12px;
  color: #0b0c0f;
  background: linear-gradient(135deg, #00e0c6, #7c5cff);
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 224, 198, 0.25);
  transition: transform 0.15s ease, filter 0.2s ease;
}
.skylark-send:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.skylark-hint {
  margin: 10px 4px 0;
  color: var(--sk-muted);
  font-size: 0.95rem;
}

@media (max-width: 700px) {
  .skylark-row {
    grid-template-columns: 1fr;
  }
}

@keyframes sk-pop {
  to {
    transform: translate(-50%, -50%) scale(1);
  }
}
@keyframes sk-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
