/* ===== Footer Base ===== */
.site-footer {
  background: #2E2D26;
  color: #cfcfcf; /* default text color */
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.10);
  font-family: 'Montserrat', sans-serif;
}

/* Links (nav links and contacts) inherit the text color */
.site-footer a { 
  color: #cfcfcf; 
  text-decoration: none; 
}

/* ===== Top row (logo • phone/email • nav buttons) ===== */
.footer-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 48px;
  row-gap: 18px;
  margin-bottom: 60px; /* spacing below top row */
}

.footer-left { justify-self: start; }
.footer-logo { height: 52px; width: auto; object-fit: contain; }

/* social nav buttons (keep their own colors/hover from header.css) */
.footer-right { 
  justify-self: end; 
  display: flex; 
  gap: 1rem; 
}

.footer-center {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
}

.footer-contact {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  white-space: nowrap;
  color: #cfcfcf; /* make sure contacts use the gray */
}

.dot-sep {
  opacity: 0.6;
  color: #cfcfcf;
}

/* ===== Nav row (second row) ===== */
.footer-nav-row { margin-bottom: 36px; }

.footer-nav {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 0px;
  margin-bottom: 60px;
}

.footer-link {
  font-family: 'Playfair Display', serif;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
  color: #cfcfcf; /* ensure nav text uses the gray */
}

.footer-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: #a6764b; /* gold underline */
  transition: width .3s ease;
}
.footer-link:hover::after { width: 100%; }

/* ===== Legal Line ===== */
.footer-legal { margin-bottom: 18px; }

.legal-line {
  display: flex;
  align-items: center;
  gap: 18px;
}
.legal-line::before,
.legal-line::after {
  content: "";
  flex: 1 1 0;
  border-top: 1px solid rgba(166, 118, 75, 1); /* gold line */
  transform: translateY(0.1em);
}
.legal-text {
  font-size: 0.95rem;
  text-align: center;
  white-space: nowrap;
  font-family: 'Playfair Display', serif;
  color: #cfcfcf; /* gray legal text */
}

/* ===== Bottom Note ===== */
.insured {
  margin: 0;
  text-align: center;
  font-size: 0.95rem;
  opacity: 0.95;
  font-family: 'Playfair Display', serif;
  color: #cfcfcf; /* gray licensed/insured text */
}

/* ===== Responsive ===== */

/* Desktop → 993px: keep footer nav in a single row */
@media (min-width: 993px) {
  /* keep links in one line and let spacing scale with viewport */
  .footer-nav {
    flex-wrap: nowrap;                         /* single row */
    justify-content: center;
    gap: 8px clamp(24px, 5vw, 120px);         /* shrink column gap as width shrinks */
  }

  /* scale link size + tracking so they fit without wrapping */
  .footer-link {
    font-size: clamp(0.86rem, 0.7rem + 0.4vw, 1rem);
    letter-spacing: clamp(0.02em, 0.012em + 0.2vw, 0.065em);
    white-space: nowrap;                      /* belt-and-suspenders */
    padding-bottom: 3px;                      /* slightly tighter baseline at small desktop */
  }

  /* keep underline tidy with the smaller text */
  .footer-link::after {
    bottom: -10px;                            /* closer to text than -14px */
    height: 1px;                              /* thin line reads better when smaller */
  }
}

@media (max-width: 992px) {
  .footer-top {
    grid-template-columns: 1fr;
    row-gap: 20px;
    text-align: center;
    margin-bottom: 40px;
  }

   .footer-logo {
    height: 48px;
    margin-bottom: 15px; /* 👈 add spacing under the logo */
  }

  .footer-right {
    margin-top: 20px;  /* extra vertical space above the nav buttons */
  }

  .footer-left, .footer-right { justify-self: center; }
  .footer-center { flex-direction: column; gap: 10px; }
  .footer-logo { height: 48px; }
    .footer-nav { 
    justify-content: center; 
    gap: 12px 20px; 
    margin-bottom: 0px;   /* 👈 change spacing here */
  }
}

@media (max-width: 480px) {
  /* add 30px padding around entire footer content */
  .site-footer .footer-inner {
    padding: 30px;
    box-sizing: border-box;
  }

  /* keep same layout as <=992px */
  .footer-top {
    grid-template-columns: 1fr;
    row-gap: 20px;
    text-align: center;
    margin-bottom: 40px;
  }

  .footer-logo {
    height: 48px;
    margin-bottom: 15px;
  }

  .footer-right {
    margin-top: 20px;
  }

  .footer-left, 
  .footer-right {
    justify-self: center;
  }

  .footer-center {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .footer-nav { 
    justify-content: center; 
    gap: 20px 25px; 
    margin-bottom: 0px;
  }

  /* remove the line design in legal section */
  .legal-line::before,
  .legal-line::after {
    display: none;
  }

  .legal-line {
    justify-content: center;
  }

  .legal-text {
    text-align: center;
    font-size: 0.9rem;     /* 👈 smaller so it fits inside border */
    line-height: 1.4;      /* 👈 allow wrapping cleanly */
    word-wrap: break-word; /* 👈 force break if needed */
    max-width: 100%;       /* 👈 never overflow parent */
    margin: 0 auto;        /* 👈 center horizontally */
  }

  .insured {
    font-size: 0.85rem;    /* 👈 shrink licensed/insured text slightly too */
  }
}

