/* ============================================================
   FOOTER 
   ============================================================ */
 
.footer {
  background-color: var(--primary-green);
  color: #ffffff;
  padding: clamp(2.25rem, 5vw, 3.75rem) clamp(1.5rem, 4vw, 3.75rem) 0;
  margin-top: auto;
}
 
/* ── Main 3-column grid ── */
.footer-main {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}
 
/* ── Left: Brand ── */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  align-self: center;
}
 
.footer-logo {
  height: clamp(3.75rem, 8vw, 6.25rem);
  width: auto;
}
 
.footer-legal {
  font-family: var(--font-serif);
  font-size: clamp(0.8125rem, 1.3vw, 1.125rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  text-align: center;
}
 
.footer-email {
  font-family: var(--font-serif);
  font-size: clamp(0.8125rem, 1.3vw, 1.125rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}
 
.footer-email strong {
  font-weight: 500;
}
 
.footer-email a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s ease;
}
 
.footer-email a:hover {
  color: #ffffff;
  text-decoration: underline;
}
 
/* ── Center: Newsletter ── */
.footer-newsletter {
  text-align: center;
}
 
.footer-newsletter-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 0.625rem;
  line-height: 1.2;
}
 
.footer-newsletter-sub {
  font-family: var(--font-serif);
  font-size: clamp(0.8125rem, 1.3vw, 1.125rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.375rem;
}
 
.footer-form {
  display: flex;
  gap: 0.625rem;
  justify-content: center;
  flex-wrap: wrap;
}
 
.footer-input {
  flex: 0 1 auto;
  min-width: 10rem;
  max-width: 20rem;
  width: 18rem;
  padding: 0.625rem 1rem;
  border-radius: 0.625rem;
  border: none;
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-family: var(--font-serif);
  font-size: clamp(0.8125rem, 1.2vw, 1.125rem);
  font-weight: 300;
  outline: none;
  transition: background-color 0.2s ease;
}
 
.footer-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
 
.footer-input:focus {
  background-color: rgba(255, 255, 255, 0.22);
}
 
.footer-btn {
  flex: 0 1 auto;
  padding: 0.625rem 1.5rem;
  border-radius: 0.625rem;
  border: none;
  background-color: var(--primary-pink);
  color: #ffffff;
  font-family: var(--font-serif);
  font-size: clamp(0.8125rem, 1.2vw, 1.125rem);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}
 
.footer-btn:hover {
  background-color: #a3563f;
}
 
.footer-form-message {
  font-family: var(--font-serif);
  font-size: clamp(0.75rem, 1.1vw, 1rem);
  margin-top: 0.625rem;
  min-height: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
}
 
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
 
.footer-form-message.success {
  color: #c8dfc4;
}
 
.footer-form-message.error {
  color: #f4a897;
}
 
/* ── Right: Nav links ── */
.footer-nav {
  display: flex;
  flex-direction: column;
  align-self: center;
}
 
.footer-nav-title {
  font-family: var(--font-serif);
  font-size: clamp(0.875rem, 1.3vw, 1.125rem);
  font-weight: 500;
  align-self: flex-start;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}
 
.footer-nav-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem clamp(1rem, 2.5vw, 2rem);
  text-align: left;
}
 
.footer-nav-list a {
  font-family: var(--font-serif);
  font-size: clamp(0.75rem, 1.1vw, 1rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}
 
.footer-nav-list a:hover {
  color: #ffffff;
}
 
/* ── Bottom bar ── */
.footer-bottom {
  padding: 1.25rem 0;
  text-align: center;
}
 
.footer-bottom p {
  font-family: var(--font-serif);
  font-size: clamp(0.75rem, 1.1vw, 1rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
}
 
/* ============================================================
   TABLET (769px – 1024px)
   ============================================================ */
@media (min-width: 769px) and (max-width: 1024px) {
  .footer {
    padding: 2.25rem 2rem 0;
  }
 
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    padding-bottom: 1.75rem;
  }
 
  .footer-brand {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.5rem;
    align-self: center;
  }
 
  .footer-logo {
    height: 3.75rem;
  }
 
  .footer-legal {
    font-size: 0.8125rem;
    margin: 0;
  }
 
  .footer-email {
    font-size: 0.8125rem;
    margin: 0;
  }
 
  .footer-newsletter {
    grid-column: 1;
    text-align: center;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
 
  .footer-newsletter-title {
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 0.375rem;
  }
 
  .footer-newsletter-sub {
    font-size: 0.875rem;
    text-align: center;
    margin-bottom: 0.875rem;
  }
 
  .footer-form {
    justify-content: center;
  }
 
  .footer-input {
    font-size: 0.875rem;
    min-width: 8.75rem;
    max-width: 12.5rem;
    width: 8.75rem;
    padding: 0.5rem 0.875rem;
  }
 
  .footer-btn {
    font-size: 0.875rem;
    padding: 0.5rem 1.25rem;
  }
 
  .footer-nav {
    grid-column: 2;
    align-items: center;
    align-self: center;
    padding-top: 0;
  }
 
  .footer-nav-title {
    font-size: 0.875rem;
    align-self: center;
    margin-bottom: 0.625rem;
  }
 
  .footer-nav-list {
    gap: 0.375rem 1.25rem;
    text-align: center;
  }
 
  .footer-nav-list a {
    font-size: 0.8125rem;
    white-space: nowrap;
  }
 
  .footer-bottom p {
    font-size: 0.75rem;
  }
}
 
/* ============================================================
   MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  .footer {
    padding: 1.75rem 1.25rem 0;
  }
 
  .footer-main {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
  }
 
  .footer-brand {
    gap: 0.375rem;
    align-self: center;
  }
 
  .footer-logo {
    height: 3.125rem;
  }
 
  .footer-legal {
    font-size: 0.6875rem;
    line-height: 1.4;
  }
 
  .footer-email {
    font-size: 0.75rem;
  }
 
  .footer-newsletter {
    padding: 0 0.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
 
  .footer-newsletter-title {
    font-size: 1.375rem;
    margin-bottom: 0.25rem;
    text-align: center;
  }
 
  .footer-newsletter-sub {
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
    text-align: center;
  }
 
  .footer-form {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 16.25rem;
    margin: 0 auto;
  }
 
  .footer-input {
    font-size: 0.8125rem;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    padding: 0.5rem 0.875rem;
  }
 
  .footer-btn {
    font-size: 0.8125rem;
    width: 100%;
    padding: 0.5rem 0.875rem;
  }
 
  .footer-form-message {
    font-size: 0.6875rem;
    margin-top: 0.375rem;
    min-height: 0.875rem;
    text-align: center;
  }
 
  .footer-nav {
    align-items: center;
    gap: 0.25rem;
  }
 
  .footer-nav-title {
    font-size: 0.8125rem;
    align-self: center;
    margin-bottom: 0.375rem;
  }
 
  .footer-nav-list {
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem 1rem;
    text-align: center;
  }
 
  .footer-nav-list a {
    font-size: 0.75rem;
    white-space: nowrap;
  }
 
  .footer-bottom {
    padding: 0.75rem 0;
  }
 
  .footer-bottom p {
    font-size: 0.625rem;
  }
}

/* ============================================================
   EXTRA SMALL (≤ 400px)
   ============================================================ */
@media (max-width: 400px) {
  .footer {
    padding: 1.25rem 0.875rem 0;
  }
 
  .footer-main {
    gap: 1.125rem;
    padding-bottom: 1.125rem;
  }
 
  .footer-logo {
    height: 2.5rem;
  }
 
  .footer-legal {
    font-size: 0.625rem;
  }
 
  .footer-email {
    font-size: 0.625rem;
  }
 
  .footer-newsletter-title {
    font-size: 1.125rem;
  }
 
  .footer-newsletter-sub {
    font-size: 0.625rem;
    margin-bottom: 0.625rem;
  }
 
  .footer-form {
    max-width: 12.5rem;
  }
 
  .footer-input {
    font-size: 0.6875rem;
    padding: 0.375rem 0.75rem;
  }
 
  .footer-btn {
    font-size: 0.6875rem;
    padding: 0.375rem 0.75rem;
  }
 
  .footer-nav-title {
    font-size: 0.6875rem;
  }
 
  .footer-nav-list {
    gap: 0.1875rem 0.75rem;
  }
 
  .footer-nav-list a {
    font-size: 0.625rem;
  }
 
  .footer-bottom p {
    font-size: 0.5625rem;
  }
}