:root {
  --primary: #0b2e4a;
  --secondary: #ffb703;
  --accent: #2a9d8f;
  --bg: #f6f9fc;
  --text: #1b1b1b;
  --white: #ffffff;
  --muted: #5f6b7a;
  --shadow: 0 12px 28px rgba(11, 46, 74, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", "Inter", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f8fbff 0%, var(--bg) 55%, #edf4fb 100%);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-sm);
}

ul {
  list-style: none;
}

.container {
  width: min(1150px, 92%);
  margin: 0 auto;
}

.section {
  padding: 4.8rem 0;
}

.section-heading {
  margin-bottom: 2rem;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  color: var(--primary);
  margin-bottom: 0.9rem;
}

.section-heading p {
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.9rem 1.4rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary), #f4a300);
  color: var(--primary);
  box-shadow: 0 10px 18px rgba(255, 183, 3, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 20px rgba(255, 183, 3, 0.4);
}

.btn-outline {
  border: 1.4px solid var(--white);
  color: var(--white);
  backdrop-filter: blur(4px);
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(12px);
  background: rgba(11, 46, 74, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1.2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-logo {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.brand-name {
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
}

.brand-name small {
  display: block;
  font-weight: 500;
  font-size: 0.72rem;
  opacity: 0.85;
  letter-spacing: 0.4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-links a {
  color: #eaf2ff;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--secondary);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
}

.hero {
  min-height: 78vh;
  display: grid;
  align-items: center;
  position: relative;
  color: var(--white);
  background-image: linear-gradient(
      120deg,
      rgba(11, 46, 74, 0.88),
      rgba(11, 46, 74, 0.55)
    ),
    url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 1.1rem;
}

.hero p {
  color: #edf2fb;
  max-width: 620px;
  margin-bottom: 1.5rem;
}

.hero-card {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  padding: 1.45rem;
  box-shadow: var(--shadow);
}

.hero-card h3 {
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

.hero-card ul li {
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-card i {
  color: var(--secondary);
}

.grid {
  display: grid;
  gap: 1.3rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 26px rgba(11, 46, 74, 0.18);
}

.card-content {
  padding: 1.2rem;
}

.card h3 {
  color: var(--primary);
  margin-bottom: 0.55rem;
}

.card p {
  color: var(--muted);
}

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), #1a4d75);
  margin-bottom: 0.9rem;
  font-size: 1.15rem;
}

.about-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.7rem;
  align-items: center;
}

.about-split h2 {
  color: var(--primary);
  margin-bottom: 0.8rem;
}

.about-split p {
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.why-list li {
  margin-bottom: 0.65rem;
  color: var(--muted);
}

.why-list i {
  color: var(--accent);
  margin-right: 0.45rem;
}

.stats {
  background: linear-gradient(145deg, var(--primary), #173f62);
  color: var(--white);
}

.stats .stat-card {
  text-align: center;
  padding: 1.2rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.stat-card h3 {
  color: var(--secondary);
  font-size: 2rem;
}

.testimonial {
  padding: 1.1rem;
}

.testimonial p {
  font-style: italic;
}

.testimonial .role {
  margin-top: 0.7rem;
  font-weight: 600;
  color: var(--primary);
}

.faq-item {
  border: 1px solid #d7e5f5;
  border-radius: var(--radius-sm);
  background: var(--white);
  margin-bottom: 0.7rem;
}

.faq-question {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  color: var(--muted);
  padding: 0 1rem;
}

.faq-item.active .faq-answer {
  max-height: 260px;
  padding-bottom: 1rem;
}

.cta-banner {
  background: linear-gradient(120deg, var(--accent), #207d73);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  display: grid;
  gap: 1rem;
  align-items: center;
  grid-template-columns: 1.2fr auto;
}

.page-hero {
  padding: 4rem 0;
  color: var(--white);
  background-size: cover;
  background-position: center;
}

.page-hero.about-hero {
  background-image: linear-gradient(
      115deg,
      rgba(11, 46, 74, 0.85),
      rgba(11, 46, 74, 0.5)
    ),
    url("https://images.unsplash.com/photo-1570129477492-45c003edd2be?auto=format&fit=crop&w=1600&q=80");
}

.page-hero.services-hero {
  background-image: linear-gradient(
      115deg,
      rgba(11, 46, 74, 0.85),
      rgba(11, 46, 74, 0.5)
    ),
    url("https://images.unsplash.com/photo-1590725121839-892b458a74fe?auto=format&fit=crop&w=1600&q=80");
}

.page-hero.contact-hero {
  background-image: linear-gradient(
      115deg,
      rgba(11, 46, 74, 0.85),
      rgba(11, 46, 74, 0.5)
    ),
    url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1600&q=80");
}

.page-hero.legal-hero {
  background-image: linear-gradient(
      115deg,
      rgba(11, 46, 74, 0.9),
      rgba(11, 46, 74, 0.6)
    ),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1600&q=80");
}

.page-hero.subscribe-hero {
  background-image: linear-gradient(
      115deg,
      rgba(11, 46, 74, 0.88),
      rgba(11, 46, 74, 0.5)
    ),
    url("https://images.unsplash.com/photo-1460317442991-0ec209397118?auto=format&fit=crop&w=1600&q=80");
}

.page-hero h1 {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  margin-bottom: 0.6rem;
}

.page-hero p {
  max-width: 760px;
  opacity: 0.95;
}

.service-card img {
  height: 210px;
  width: 100%;
  object-fit: cover;
}

.service-card .card-content p {
  font-size: 0.95rem;
}

form {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #e6eef8;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.form-row {
  margin-bottom: 1rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--primary);
}

input,
textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #c8d9ee;
  padding: 0.8rem;
  font: inherit;
  background: #fbfdff;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.18);
}

.error-msg {
  color: #c1121f;
  font-size: 0.82rem;
  margin-top: 0.25rem;
  min-height: 1.1em;
}

.form-success {
  background: #e7f7f4;
  border: 1px solid #bce9e2;
  color: #125f55;
  padding: 0.85rem 0.95rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  display: none;
}

.form-success.show {
  display: block;
}

.legal-content {
  background: #ffffff;
  border: 1px solid #e8eef6;
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.legal-content h2,
.legal-content h3 {
  color: var(--primary);
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: #445266;
  margin-bottom: 0.7rem;
}

.footer {
  background: #081f33;
  color: #d8e4f1;
  padding: 3rem 0 1.1rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
}

.footer h3 {
  color: var(--secondary);
  margin-bottom: 0.7rem;
}

.footer p,
.footer li {
  color: #c7d6e7;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.footer a:hover {
  color: var(--secondary);
}

.social-links {
  display: flex;
  gap: 0.6rem;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  transition: var(--transition);
}

.social-links a:hover {
  background: rgba(255, 183, 3, 0.25);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 1.4rem;
  padding-top: 1rem;
  text-align: center;
  color: #b4c7db;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-grid,
  .about-split,
  .grid-3,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(8, 31, 51, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    flex-direction: column;
    padding: 1rem;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .hero-grid,
  .about-split,
  .grid-2,
  .grid-3,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 86vh;
    padding: 3rem 0;
  }

  .section {
    padding: 4rem 0;
  }
}
