/* ═══════════════════════════════════════════════════════════
   UNIDA INSURANCE – Stylesheet
   Colors: Navy #0f2a6e / Deep Blue #1a3a8f / Gold #c9a227
   ═══════════════════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0f2a6e;
  --blue:       #1a3a8f;
  --blue-mid:   #1e4db7;
  --blue-light: #2563eb;
  --gold:       #c9a227;
  --gold-dark:  #a8841c;
  --gold-light: #e8c547;
  --white:      #ffffff;
  --off-white:  #f4f7fb;
  --gray-light: #e8edf5;
  --gray:       #8899bb;
  --green:      #0a7a55;
  --green-light:#0e9d6e;
  --purple:     #5b21b6;
  --orange:     #c9a227;

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(15,42,110,0.12);
  --shadow-lg: 0 10px 40px rgba(15,42,110,0.2);
  --transition: 0.28s cubic-bezier(0.4,0,0.2,1);

  --container: 1200px;
  --header-h: 72px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--white);
  background: var(--navy);
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Utilities ────────────────────────────────────────────── */
.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.text-gold { color: var(--gold); }

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  text-align: center;
  color: var(--white);
  margin-bottom: 3rem;
  letter-spacing: -0.5px;
}
.section-title--left { text-align: left; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
  line-height: 1;
}
.btn--sm  { padding: 0.55rem 1.2rem; font-size: 0.875rem; }
.btn--lg  { padding: 0.9rem 1.8rem; font-size: 1rem; }

.btn--primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(26,58,143,0.4);
}
.btn--primary:hover {
  background: var(--blue-mid);
  border-color: var(--blue-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,58,143,0.55);
}

.btn--gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(201,162,39,0.4);
}
.btn--gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,162,39,0.55);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn--outline:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,162,39,0.45);
}

.btn--green {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
  box-shadow: 0 4px 14px rgba(10,122,85,0.35);
}
.btn--green:hover {
  background: var(--green-light);
  border-color: var(--green-light);
  transform: translateY(-2px);
}

/* ═══════════════════════════════ HEADER ═══════════════════════════════ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  height: var(--header-h);
  box-shadow: 0 2px 20px rgba(15,42,110,0.1);
  transition: var(--transition);
}
.header.scrolled {
  box-shadow: 0 4px 30px rgba(15,42,110,0.2);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
}

/* Logo image – navbar */
.nav__logo {
  flex-shrink: 0;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.nav__logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
  display: block;
  /* mix-blend-mode: multiply removes the white background on the white header */
  mix-blend-mode: multiply;
  transition: opacity 0.25s ease;
}
.nav__logo-img:hover { opacity: 0.85; }

/* Logo image – footer (dark background: use screen blend to drop white) */
.footer__logo-link { display: inline-block; }
.footer-logo-img {
  width: 150px;
  height: auto;
  object-fit: contain;
  display: block;
  /* screen blend removes white on dark, keeps blue & gold */
  mix-blend-mode: screen;
  transition: opacity 0.25s ease;
}
.footer-logo-img:hover { opacity: 0.85; }


/* Nav menu */
.nav__menu {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: auto;
  list-style: none;
}

.nav__link {
  display: block;
  padding: 0.4rem 0.7rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: var(--transition);
}
.nav__link:hover::after,
.nav__link.active::after { left: 10%; right: 10%; }
.nav__link:hover { color: var(--blue); }
.nav__link.active { color: var(--blue); font-weight: 600; }

.nav__cta { margin-left: 0.5rem; flex-shrink: 0; }

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}
.nav__toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ═══════════════════════════════ HERO ═══════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10,20,70,0.88) 0%,
    rgba(15,42,110,0.75) 45%,
    rgba(15,42,110,0.25) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--header-h));
  padding-block: 5rem;
}

.hero__text { max-width: 540px; }

.hero__title {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1.2rem;
  letter-spacing: -1px;
  animation: fadeUp 0.8s ease both;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  line-height: 1.7;
  animation: fadeUp 0.8s 0.15s ease both;
}

.hero__btn {
  animation: fadeUp 0.8s 0.3s ease both;
  background: var(--blue);
  border-color: var(--blue);
  font-size: 1rem;
  padding: 0.9rem 2rem;
}
.hero__btn:hover {
  background: var(--blue-mid);
  border-color: var(--blue-mid);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(26,58,143,0.6);
}

.hero__disclaimer {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  animation: fadeUp 0.8s 0.45s ease both;
}

/* ═══════════════════════════════ SERVICES ═══════════════════════════════ */
.services {
  background: linear-gradient(180deg, var(--navy) 0%, #0d2260 100%);
}
.services .section-title { color: var(--white); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
  transition: var(--transition);
  border: 1.5px solid rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.35); border-color: rgba(201,162,39,0.35); }
.service-card:hover::before { transform: scaleX(1); }

.service-card__icon { width: 54px; height: 54px; margin-bottom: 0.5rem; }

.service-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
}

.service-card__desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
  flex: 1;
}

.service-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold-light);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 0.5rem;
}
.service-card__link:hover { gap: 8px; color: var(--white); }
.service-card__link--green { color: #6ee7b7; }
.service-card__link--purple { color: #c4b5fd; }
.service-card__link--orange { color: var(--gold-light); }
.service-card__icon {
  width: 64px;
  height: 64px;
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}

.service-card__icon-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
  transition: transform var(--transition);
}

.service-card:hover .service-card__icon-img {
  transform: scale(1.08);
}

/* icon bg tints – kept for legacy, no longer needed */

/* ═══════════════════════════════ WHY US ═══════════════════════════════ */
.why-us { background: linear-gradient(180deg, #0d2260 0%, var(--navy) 100%); }
.why-us .section-title { color: var(--white); }

.why-us__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.why-us__image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}
.why-us__img { object-fit: cover; }
.why-us__badge {
  position: absolute;
  bottom: 1.2rem;
  right: 1.2rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 0.65rem 0.85rem;
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-us__badge-logo {
  width: 130px;
  height: auto;
  object-fit: contain;
  display: block;
}

.why-us__list { display: flex; flex-direction: column; gap: 1rem; margin-block: 1.5rem; }

.why-us__item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 1rem;
  color: var(--white);
  font-weight: 500;
  animation: fadeLeft 0.6s ease both;
}
.why-us__check { width: 24px; height: 24px; flex-shrink: 0; }

/* ═══════════════════════════════ RESOURCES ═══════════════════════════════ */
.resources { background: linear-gradient(180deg, var(--navy) 0%, #0a1d55 100%); }
.resources .section-title { color: var(--white); }

.resources__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.resource-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
  transition: var(--transition);
}
.resource-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,0.35); border-color: rgba(201,162,39,0.35); }

.resource-card__content {
  display: flex;
  gap: 1.2rem;
  padding: 1.8rem;
  flex: 1;
  align-items: flex-start;
}

.resource-card__icon-wrap { flex-shrink: 0; }

.resource-card__text { flex: 1; }

.resource-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
  line-height: 1.4;
}
.resource-card__title--green { color: var(--white); }

.resource-card__desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
  margin-bottom: 1.2rem;
}

.resource-card__img-wrap {
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}
.resource-card__img { object-position: center; transition: transform 0.5s ease; }
.resource-card:hover .resource-card__img { transform: scale(1.04); }

/* ═══════════════════════════════ CTA BANNER ═══════════════════════════════ */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 60%, #1e4db7 100%);
  padding-block: clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(201,162,39,0.12) 0%, transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
}

.cta-banner__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-banner__icon-wrap { flex-shrink: 0; }

.cta-banner__text { flex: 1; min-width: 260px; }

.cta-banner__title {
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
}
.cta-banner__title strong { color: var(--gold-light); }

.cta-banner__subtitle {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  margin-top: 0.4rem;
}

.cta-banner__btn { flex-shrink: 0; }

/* ═══════════════════════════════ FOOTER ═══════════════════════════════ */
.footer {
  background: linear-gradient(180deg, #071545 0%, #050e30 100%);
  padding-top: clamp(3rem, 6vw, 5rem);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__brand { display: flex; flex-direction: column; gap: 0.75rem; }
.footer__logo-link { display: inline-block; }
.footer-logo { width: 150px; height: auto; }
.footer__tagline { font-size: 0.82rem; color: rgba(255,255,255,0.5); font-style: italic; margin-top: 0.25rem; }

.footer__heading {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer__links { display: flex; flex-direction: column; gap: 0.55rem; }

.footer__link {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.footer__link:hover { color: var(--gold); }

.footer__link--icon {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer__bottom {
  padding-block: 1.25rem;
  background: rgba(0,0,0,0.2);
}
.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__copy { font-size: 0.8rem; color: rgba(255,255,255,0.5); text-align: center; }

/* ═══════════════════════════════ SCROLL TO TOP ═══════════════════════════════ */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(26,58,143,0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: var(--transition);
}
.scroll-top.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
.scroll-top:hover { background: var(--gold); transform: translateY(-2px); }
.scroll-top svg { width: 20px; height: 20px; }

/* ═══════════════════════════════ ANIMATIONS ═══════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ═══════════════════════════════ RESPONSIVE ═══════════════════════════════ */
@media (max-width: 1100px) {
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav__menu {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 2rem 2rem;
    gap: 0.25rem;
    box-shadow: 0 10px 30px rgba(15,42,110,0.15);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 999;
    border-top: 1px solid var(--gray-light);
  }
  .nav__menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav__link { padding: 0.6rem 0; font-size: 1rem; width: 100%; }
  .nav__link::after { display: none; }
  .nav__toggle { display: flex; }
  .nav__cta { display: none; }

  .why-us__grid { grid-template-columns: 1fr; }
  .why-us__image-wrap { aspect-ratio: 16/9; }
}

@media (max-width: 700px) {
  .services__grid { grid-template-columns: 1fr 1fr; }
  .resources__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .cta-banner__inner { flex-direction: column; text-align: center; }
  .cta-banner__btn { align-self: center; }
}

@media (max-width: 480px) {
  .services__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
  .hero__title { font-size: 2rem; }
}
