/* ===============================
   Global Reset & Theme
================================ */

:root {
  --white: #ffffff;
  --blue: #1f77b4;
  --red: #d62828;

  --light-blue: #f7fbff;
  --dark-text: #333333;
  --shadow-light: rgba(0, 0, 0, 0.08);
  --shadow-heavy: rgba(0, 0, 0, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: var(--white);
  color: var(--dark-text);
  line-height: 1.6;
}

/* ===============================
   Common Utilities
================================ */
.container {
  width: min(90%, 1200px);
  margin-inline: auto;
}

a {
  text-decoration: none;
}

/* ===============================
   Buttons
================================ */
.btn {
  display: inline-block;
  border-radius: 30px;
  font-weight: 500;
  transition: 0.3s ease;
  cursor: pointer;
}

.btn.primary {
  background: var(--blue);
  color: var(--white);
  padding: clamp(12px, 1.5vw, 14px) clamp(26px, 2vw, 34px);
}

.btn.primary:hover {
  background: var(--red);
}

.btn.outline {
  border: 2px solid var(--red);
  color: var(--red);
  padding: clamp(10px, 1.5vw, 14px) clamp(24px, 2vw, 32px);
}

.btn.outline:hover {
  background: var(--red);
  color: var(--white);
}

.btn.small {
  background: var(--blue);
  color: var(--white);
  padding: clamp(10px, 1.5vw, 14px) clamp(22px, 2vw, 30px);
}

.btn.small:hover {
  background: var(--red);
}

/* ===============================
   Navbar (Desktop First)
================================ */
.top-header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;

  height: 80px; /* 🔥 INCREASED HEIGHT */
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--blue);
}

.logo img {
  height: 42px; /* 🔥 consistent logo size */
  width: auto;
}

nav ul {
  display: flex;
  align-items: center;
  white-space: nowrap; /* 🔥 prevents link wrapping */
}

nav {
  margin-left: auto;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px; /* 🔥 clear spacing */
}

nav ul,
.logo {
  white-space: nowrap;
}

nav ul li a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--dark-text);
  padding: 8px 0;
}

nav ul li a:hover {
  color: var(--red);
}

nav ul li a.active {
  color: var(--blue);
  border-bottom: 2px solid var(--red);
}

/* Hamburger & close (desktop hidden) */
.hamburger,
.close-btn {
  display: none;
  cursor: pointer;
  color: var(--blue);
}

/* ===============================
   Hero Section
================================ */
.hero {
  background:
    linear-gradient(rgba(31, 119, 180, 0.85), rgba(31, 119, 180, 0.85)),
    /*url("../images/hero.jpg") center / cover no-repeat;*/

  min-height: clamp(55vh, 65vh, 70vh);
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(60px, 6vw, 100px) 20px;
  color: var(--white);
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
}

.hero h1::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--red);
  margin: 15px auto 0;
  border-radius: 4px;
}

.hero p {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  margin: 12px 0 25px;
}

/* ===============================
   Cards Section
================================ */
.cards-section {
  position: relative;
  overflow: hidden;
  /* Use an attractive background image (falls back to color) */
  background:
    linear-gradient(rgba(31, 119, 180, 0.3), rgba(0, 0, 0, 0.12)),
    url("../images/hero.avif") center / cover no-repeat;
}

.cards-section::before {
  content: "";
  position: absolute;
  inset: 0;
  /* subtle dark overlay so text/cards stay readable */
  background: linear-gradient(
    180deg,
    rgba(31, 119, 180, 0.65),
    rgba(31, 119, 180, 0.15)
  );
  z-index: 0;
  pointer-events: none;
}

.cards-grid {
  position: relative; /* sit above overlay */
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(25px, 4vw, 45px);
  padding: clamp(60px, 7vw, 100px) 0;
}

.card {
  /* make cards slightly translucent to reveal the background subtly */
  background: rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  padding: clamp(35px, 4vw, 60px);

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  aspect-ratio: 4 / 3;

  border-top: 6px solid var(--blue);
  box-shadow: 0 18px 45px var(--shadow-light);
  transition: 0.35s ease;
}

.card:hover {
  transform: translateY(-10px);
  border-top-color: var(--red);
  box-shadow: 0 28px 60px var(--shadow-heavy);
}

.card h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  color: var(--blue);
}

.card p {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  color: var(--dark-text);
  margin: 15px 0;
}

.card .btn {
  align-self: center;
}

/* ===============================
   Footer
================================ */
.footer {
  background: var(--blue);
  color: var(--white);
  padding: clamp(50px, 6vw, 40px) 0 20px;
}

/* MAIN GRID: 3 COLUMNS */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(30px, 4vw, 60px);
  align-items: start;
}

/* DESCRIPTION */
.footer-grid > div:first-child p {
  max-width: 520px;
  line-height: 1.7;
}

/* HEADINGS */
.footer h3,
.footer h4 {
  margin-bottom: 12px;
}

/* LINKS */
.footer a {
  color: var(--white);
  opacity: 0.9;
}

.footer a:hover {
  color: var(--red);
}

/* TEXT */
.footer p {
  font-size: 0.95rem;
}

/* LIST */
.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: 8px;
}

/* DIVIDER */
.footer-divider {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
  margin: 45px auto 20px;
  width: 90%;
}

/* COPYRIGHT */
.footer .copyright {
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.85;
}

/* ===============================
   MOBILE VIEW
================================ */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid > div:first-child p {
    max-width: 100%;
  }
}



/* ===============================
   Mobile Off-Canvas Menu
================================ */
@media (max-width: 768px) {
  .hamburger {
    display: block;
    font-size: 2rem;
  }

  .mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 280px;
    background: var(--white);
    box-shadow: -12px 0 35px var(--shadow-heavy);
    transition: right 0.35s ease;
    z-index: 1000;
    padding-top: 80px;
  }

  .mobile-nav.active {
    right: 0;
  }

  .mobile-nav ul {
    flex-direction: column;
    gap: 25px;
    padding-left: 30px;
  }

  .mobile-nav .close-btn {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.6rem;
    color: var(--red);
  }
}

/* ===============================
   Body Scroll Lock
================================ */
body.menu-open {
  overflow: hidden;
}

/* ===============================
   Common Page Hero
================================ */
.page-hero {
  position: relative;
  min-height: clamp(50vh, 55vh, 60vh);
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--white);
  /*background: url("../images/hero.avif") center / cover no-repeat;*/
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(31, 119, 180, 0.88); /* blue overlay */
  z-index: 1;
}

.page-hero .hero-content {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.page-hero h1::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  background: var(--red);
  margin: 15px auto 0;
  border-radius: 4px;
}

.page-hero p {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  margin-top: 12px;
  opacity: 0.95;
}
