/* ============================================================
   FOOTER.CSS  –  Unified site footer for all pages
   Background: #1a1a2e, 4-column grid, newsletter, popular searches
   ============================================================ */

.sf-footer {
  background: #1a1a2e;
  padding: 120px 0 0;
}

/* ── 4-column grid inner ─────────────────────────────────── */
.sf-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 60px 64px;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ── Col 1: Brand ────────────────────────────────────────── */
.sf-brand { display: flex; flex-direction: column; }

.sf-brand .logo-new {
  filter: brightness(10);
  margin-bottom: 18px;
}

.footer-logo {
  position: relative;
  width: 220px;
  height: 62px;
  margin-bottom: 18px;
}
.footer-logo .logo-house {
  position: absolute;
  top: 0;
  left: 0;
  width: 220px;
  height: 54px;
}
.footer-logo .logo-wordmark {
  position: absolute;
  top: 20px;
  left: 4px;
  width: 200px;
  height: 32px;
}
.sf-footer .logo-fill {
  fill: #ffffff;
}

.sf-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: Inter, sans-serif;
  font-size: 15px;
  color: #92d2ff;
  text-decoration: none;
  transition: color 0.2s;
  margin-bottom: 14px;
}
.sf-email:hover { color: #fff; }
.sf-email svg { flex-shrink: 0; stroke: #92d2ff; transition: stroke 0.2s; }
.sf-email:hover svg { stroke: #fff; }

.sf-tagline {
  font-family: Inter, sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,0.78);
  line-height: 1.75;
  margin: 0;
}

/* ── Cols 2 & 3: Link columns ────────────────────────────── */
.sf-col {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.sf-col-title {
  font-family: Inter, sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #ffffff;
  margin: 0 0 10px;
  line-height: 1.4;
}

.sf-link {
  font-family: Inter, sans-serif;
  font-size: 15px;
  color: #92d2ff;
  text-decoration: none;
  line-height: 1.55;
  transition: color 0.2s;
}
.sf-link:hover { color: #ffffff; }

/* ── Col 4: Newsletter ───────────────────────────────────── */
.sf-newsletter {
  display: flex;
  flex-direction: column;
}

.sf-newsletter-title {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 10px;
  line-height: 1.4;
}

.sf-newsletter-desc {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13.5px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin: 0 0 18px;
}

.sf-newsletter-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

.sf-newsletter-input {
  flex: 1;
  min-width: 0;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  color: #fff;
  outline: none;
  transition: border-color 0.2s;
}
.sf-newsletter-input:focus {
  border-color: rgba(136, 206, 255, 0.4);
}

.sf-newsletter-input::placeholder { color: rgba(255,255,255,0.35); }

.sf-newsletter-btn {
  position: relative;
  background: #1a1f2e;
  border: none;
  color: #ffffff;
  font-size: 14px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.sf-btn-text {
  transition: transform 0.3s ease;
}
.sf-btn-arrow {
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s ease;
}
.sf-newsletter-btn:hover {
  background: #155dfc;
  padding-right: 18px;
}
.sf-newsletter-btn:hover .sf-btn-text {
  transform: translateX(-4px);
}
.sf-newsletter-btn:hover .sf-btn-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ── Popular searches row ────────────────────────────────── */
.sf-searches-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 60px;
  border-top: 1px solid rgba(255,255,255,0.14);
}

.sf-searches {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  cursor: pointer;
  transition: opacity 0.15s;
}
.sf-searches:hover { opacity: 0.85; }

.sf-searches-label {
  font-family: Inter, sans-serif;
  font-size: 17px;
  color: #ffffff;
}

.sf-searches-arrow {
  color: #ffffff;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.sf-searches[aria-expanded="true"] .sf-searches-arrow {
  transform: rotate(180deg);
}

/* ── Popular searches panel ──────────────────────────────── */
.sf-searches-panel {
  display: none;
  padding-bottom: 28px;
}

.sf-searches-panel.open {
  display: block;
}

.sf-searches-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

.sf-searches-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sf-searches-col-title {
  font-family: Inter, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 6px;
}

/* ── Copyright bar ───────────────────────────────────────── */
.sf-bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding: 20px 60px;
  text-align: center;
}

.sf-bottom p {
  font-family: Inter, sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.50);
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

/* Large desktops */
@media (max-width: 1280px) {
  .sf-inner        { padding: 0 48px 56px; gap: 40px; }
  .sf-searches-wrap { padding: 0 48px; }
  .sf-bottom       { padding: 20px 48px; }
}

/* Tablet landscape */
@media (max-width: 1060px) {
  .sf-inner {
    grid-template-columns: 1.2fr 1fr 1fr;
    padding: 0 36px 52px;
    gap: 36px;
  }
  /* Newsletter spans 2 columns on 3-col grid */
  .sf-newsletter { grid-column: 1 / -1; }
  .sf-searches-wrap { padding: 0 36px; }
  .sf-bottom { padding: 20px 36px; }
}

/* Tablet portrait */
@media (max-width: 780px) {
  .sf-footer { padding-top: 52px; }
  .sf-inner {
    grid-template-columns: 1fr 1fr;
    padding: 0 28px 44px;
    gap: 32px 28px;
  }
  /* Brand spans full width */
  .sf-brand { grid-column: 1 / -1; }
  /* Newsletter spans full width */
  .sf-newsletter { grid-column: 1 / -1; }
  .sf-searches-wrap { padding: 0 28px; }
  .sf-bottom { padding: 18px 28px; }
}

/* Mobile */
@media (max-width: 540px) {
  .sf-footer { padding-top: 40px; }
  .sf-inner {
    grid-template-columns: 1fr;
    padding: 0 20px 36px;
    gap: 28px;
  }
  .sf-brand        { grid-column: auto; }
  .sf-newsletter   { grid-column: auto; }

  .sf-col-title,
  .sf-newsletter-title { font-size: 16px; }

  .sf-link { font-size: 14px; }

  .sf-newsletter-desc { font-size: 13px; }

  .sf-newsletter-form {
    flex-direction: column;
    border-radius: 0;
    overflow: visible;
    gap: 10px;
  }
  .sf-newsletter-input {
    border-radius: 8px;
    height: 46px;
    font-size: 13px;
  }
  .sf-newsletter-btn {
    border-radius: 8px;
    height: 46px;
    width: 100%;
    font-size: 13px;
  }

  .sf-searches-wrap { padding: 0 20px; }
  .sf-searches-label { font-size: 15px; }
  .sf-bottom { padding: 18px 20px; }
  .sf-bottom p { font-size: 12px; }
}

/* ═══════════════════════════════════════════════════════════
   DARK MODE
   ═══════════════════════════════════════════════════════════ */

/* Footer background */
body.dark-mode .sf-footer {
  background: #0e1018;
}

/* Logo fill */
body.dark-mode .sf-footer .logo-fill {
  fill: #f1f5f9;
}

/* Brand logo brightness */
body.dark-mode .sf-brand .logo-new {
  filter: brightness(10);
}

/* Email link */
body.dark-mode .sf-email {
  color: #92d2ff;
}
body.dark-mode .sf-email:hover {
  color: #f1f5f9;
}
body.dark-mode .sf-email svg {
  stroke: #92d2ff;
}
body.dark-mode .sf-email:hover svg {
  stroke: #f1f5f9;
}

/* Tagline */
body.dark-mode .sf-tagline {
  color: #a1a1aa;
}

/* Column titles */
body.dark-mode .sf-col-title {
  color: #f1f5f9;
}

/* Links */
body.dark-mode .sf-link {
  color: #7dcbf5;
}
body.dark-mode .sf-link:hover {
  color: #f1f5f9;
}

/* Newsletter */
body.dark-mode .sf-newsletter-title {
  color: #f1f5f9;
}

body.dark-mode .sf-newsletter-desc {
  color: #7dcbf5;
}

body.dark-mode .sf-newsletter-input {
  background: rgba(255,255,255,0.06);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
body.dark-mode .sf-newsletter-input::placeholder {
  color: rgba(255,255,255,0.25);
}

body.dark-mode .sf-newsletter-btn {
  background: #1b1e2b;
  border: none;
  color: #f1f5f9;
}
body.dark-mode .sf-newsletter-btn:hover {
  background: #38B6FF;
  color: #fff;
}

/* Popular searches divider */
body.dark-mode .sf-searches-wrap {
  border-top-color: rgba(255, 255, 255, 0.08);
}

/* Searches label & arrow */
body.dark-mode .sf-searches-label {
  color: #f1f5f9;
}
body.dark-mode .sf-searches-arrow {
  color: #f1f5f9;
}

/* Searches column title */
body.dark-mode .sf-searches-col-title {
  color: #f1f5f9;
}

/* Copyright bar */
body.dark-mode .sf-bottom {
  border-top-color: rgba(255, 255, 255, 0.08);
}
body.dark-mode .sf-bottom p {
  color: #64748b;
}
