/* ==========================================================================
   Site chrome — header/nav, footer, WhatsApp CTA, bottom insure CTA
   ========================================================================== */

/* ---- Header ---------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-800);
  height: var(--header-h);
  transition: transform var(--dur-med) var(--ease-out);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img {
  height: 42px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  font-weight: 600;
  font-size: 0.94rem;
  padding: 8px 0;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-med) var(--ease-out);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

/* current page indicator */
.nav-link[aria-current="page"] {
  color: var(--gold-500);
}

.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

/* ---- Nav dropdown (Services) --------------------------------------------- */

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-caret {
  font-size: 10px;
  transition: transform var(--dur-fast) var(--ease-out);
}

.nav-item:hover .nav-caret,
.nav-item:focus-within .nav-caret,
.nav-item.is-open .nav-caret {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out),
    visibility 0s linear var(--dur-fast);
  z-index: 60;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown,
.nav-item.is-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

.nav-dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--navy-800);
  font-size: 0.88rem;
  font-weight: 600;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.nav-dropdown a:hover {
  background: var(--bg-light);
  color: var(--gold-700);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-contact {
  background-image: linear-gradient(90deg, var(--gold-500) 50%, var(--white) 50%);
  background-repeat: no-repeat;
  background-size: 200% 100%;
  background-position: 100% 0;
  color: var(--navy-800);
  transition: background-position var(--dur-med) var(--ease-out);
}

.btn-contact:hover {
  background-position: 0 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}

/* ---- WhatsApp CTA ------------------------------------------------------ */

.whatsapp-cta-section {
  margin-bottom: 80px;
}

.whatsapp-cta {
  background: var(--green-600);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.whatsapp-cta__left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.whatsapp-cta__bubble {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.whatsapp-cta__bubble i {
  font-size: 30px;
  color: var(--white);
}

.whatsapp-cta__text .eyebrow {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 6px;
}

.whatsapp-cta__text h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.whatsapp-cta__text p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  max-width: 46ch;
}

/* ---- Bottom "what do you want to insure" CTA ---------------------------- */

.insure-banner {
  position: relative;
  overflow: hidden;
  background-image: url('../Assets/Images/black-umbrella-c.jpg');
  background-size: cover;
  background-position: center;
  padding: 84px 0 112px;
}

.insure-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(20, 19, 60, 0.92), rgba(74, 71, 112, 0.82));
  pointer-events: none;
}

.insure-banner .container {
  position: relative;
  z-index: 1;
}

.insure-banner__inner {
  max-width: 480px;
}

.insure-banner h2 {
  color: var(--gold-500);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 16px;
}

.insure-banner p {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 28px;
}

/* ---- Footer ------------------------------------------------------------ */

.site-footer {
  background: var(--navy-800);
  color: rgba(255, 255, 255, 0.78);
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: 28px;
}

.footer-brand p.tagline {
  color: var(--white);
  font-weight: 700;
  font-size: 0.76rem;
  white-space: nowrap;
  margin-bottom: 12px;
}

.footer-brand p.desc {
  font-size: 0.88rem;
  line-height: 1.7;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.footer-col ul li {
  margin-bottom: 9px;
}

.footer-col ul li a {
  font-size: 0.88rem;
  transition: color var(--dur-fast) var(--ease-out);
}

.footer-col ul li a:hover {
  color: var(--gold-500);
}

.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.86rem;
  margin-bottom: 16px;
}

.footer-contact i {
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--gold-500);
}

.footer-contact .label {
  display: block;
  color: var(--white);
  font-size: 0.78rem;
  margin-bottom: 2px;
}

.social-row {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.social-row a {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  background: var(--gold-500);
  border: 1px solid var(--gold-500);
  color: var(--navy-800);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}

.social-row a i {
  font-size: 14px;
}

.social-row a:hover {
  background: var(--gold-600);
  border-color: var(--gold-600);
}

.footer-col h4.newsletter-heading {
  margin-bottom: 12px;
}

.newsletter-form {
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  padding: 11px 14px;
  color: var(--white);
  font-size: 0.85rem;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.newsletter-form button {
  width: 42px;
  background: var(--gold-500);
  color: var(--navy-800);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--dur-fast) var(--ease-out);
}

.newsletter-form button:hover {
  background: var(--gold-600);
}

.newsletter-form button i {
  font-size: 15px;
}

.newsletter-success {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 0.85rem;
}

.newsletter-success i {
  color: var(--gold-500);
}

.newsletter-error {
  margin-top: 8px;
  color: #e57373;
  font-size: 0.8rem;
}

.footer-badges {
  background: var(--white);
  padding: 24px 0;
}

.footer-badges .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}

.footer-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-badge span {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.footer-badge img {
  height: 26px;
  width: auto;
}

.footer-bottom {
  background: var(--navy-900);
  padding: 18px 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .header-actions .btn-contact {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--navy-800);
    padding: 12px 24px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .nav.is-open .nav-item {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  /* hover has no effect on touch — the dropdown only opens via the
     caret's click toggle (.is-open), added by nav.js */
  .nav.is-open .nav-dropdown {
    position: static;
    min-width: 0;
    width: 100%;
    border: none;
    padding: 0 0 0 14px;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--dur-med) var(--ease-out);
  }

  .nav.is-open .nav-item.is-open .nav-dropdown {
    max-height: 400px;
  }

  .nav.is-open .nav-dropdown a {
    color: rgba(255, 255, 255, 0.78);
  }

  .nav.is-open .nav-dropdown a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .whatsapp-cta {
    padding: 36px 24px;
  }

  .whatsapp-cta > .btn {
    margin-left: 84px;
  }
}

/* ---- Simple page hero (About / Products & Services / News) -------------- */

.page-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 19, 60, 0.6), rgba(20, 19, 60, 0.75));
}

.page-hero-content {
  position: relative;
  z-index: 1;
  padding-inline: 24px;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.page-hero .rule {
  margin-top: 18px;
}
