/* =============================================================================
   CORE component — Footer Module - default theme
   Generated by Fehmi Demiralp
   ============================================================================= */

/* ── Outer shell ─────────────────────────────────────────────────────────────── */
.footer {
  background: #1a1a2e;
  border-top: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  line-height: 1.65;
}

/* ── Inner max-width wrapper ─────────────────────────────────────────────────── */
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 60px 32px 28px;
}

/* ── Top: 4-column grid ──────────────────────────────────────────────────────── */
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

@media (max-width: 880px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px 28px;
  }
}

@media (max-width: 520px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-inner { padding: 44px 20px 24px; }
}

/* ── Brand column ────────────────────────────────────────────────────────────── */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Logo */
.footer-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
  cursor: pointer;
  /* Cap the logo area so a large image never stretches the brand column */
  max-width: 200px;
  width: 100%;
}

/* Image logo: fill the capped area, preserve aspect ratio, never overflow */
.footer-logo-img {
  display: block;
  width: 100%;
  max-width: 200px;
  max-height: 64px;
  height: auto;
  object-fit: contain;
  object-position: left center;
}
.footer-logo-mark {
  display: flex;
  align-items: baseline;
  gap: 1px;
}
.footer-logo-word {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  font-family: 'Segoe UI', system-ui, sans-serif;
}
.footer-logo-dot {
  font-size: 1.9rem;
  font-weight: 900;
  color: #c9a84c;   /* gold accent — matches hero CTA */
  line-height: 1;
}

/* Tagline */
.footer-tagline {
  display: block;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  max-width: 240px;
}

/* Social icon buttons */
.footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.65);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  cursor: pointer;
}
.social-icon:hover {
  background: #c9a84c;
  border-color: #c9a84c;
  color: #000;
  transform: translateY(-2px);
}

/* ── Footer columns (nav / services / contact) ───────────────────────────────── */
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col-title {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 4px;
}

.footer-col-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col-item {
  display: block;
}

/* Internal nav links */
.footer-col-link {
  display: inline-block;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.18s, padding-left 0.18s;
  cursor: pointer;
}
.footer-col-link:hover {
  color: #fff;
  padding-left: 5px;
}

/* ── Footer Contact column ──────────────────────────────────────────────────────────── */
.footer-contact-list {
  gap: 10px !important;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.fc-icon {
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 1px;
  opacity: 0.7;
}

.fc-value {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.55);
  word-break: break-all;
}

.fc-link {
  text-decoration: none;
  transition: color 0.18s;
}
.fc-link:hover { color: #c9a84c; }

/* ── Divider ─────────────────────────────────────────────────────────────────── */
.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin-bottom: 24px;
}

/* ── Bottom bar ──────────────────────────────────────────────────────────────── */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.footer-bottom-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Legal links group (centred on desktop) */
.footer-legal {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-legal-sep {
  color: rgba(255,255,255,0.2);
  font-size: 0.75rem;
  user-select: none;
}

.footer-legal-link {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.18s;
}
.footer-legal-link:hover { color: #fff; }

/* "Made with" note */
.footer-madewith {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.25);
  white-space: nowrap;
}

/* Plain text fragments */
.footer-mw-text {
  color: rgba(255,255,255,0.25);
  font-size: 0.8rem;
}

/* Red heart ♥ */
.footer-mw-heart {
  color: #e8392a;
  font-size: 1rem;
  line-height: 1;
  filter: drop-shadow(0 0 3px rgba(232,57,42,0.5));
}

/* "Wt" hyperlink */
.footer-mw-link {
  color: rgba(255,255,255,0.40) !important;
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s, border-color 0.2s;
}
.footer-mw-link:visited,
.footer-mw-link:active {
  color: rgba(255,255,255,0.40) !important;
}
.footer-mw-link:hover {
  color: rgba(255,255,255,0.65) !important;
  text-decoration: underline; 
}

/* ── Bottom-bar mobile stack ─────────────────────────────────────────────────── */
@media (max-width: 680px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .footer-bottom-right { order: -1; }   /* "made with" floats to top on mobile */
}

/* ── Navigation two-sub-column grid ─────────────────────────────────────────── */
.footer-nav-col {
  /* slightly wider than sibling cols to hold 2 sub-cols */
}

.footer-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}

/* ── Copyright multi-line layout ─────────────────────────────────────────────── */
.footer-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-copy-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
}

.footer-copy-type {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.22);
  font-style: italic;
}

.footer-copy-year {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
}

.footer-copy-name {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

/* ── Social icon image (when SVG/PNG found) ──────────────────────────────────── */
.social-icon-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(0.65);
  transition: filter 0.2s;
}
.social-icon:hover .social-icon-img {
  filter: brightness(0) invert(0);   /* black on gold hover */
}

/* Owner hyperlink in copyright line */
.footer-owner-link {
  color: rgba(255,255,255,0.45) !important;
  text-decoration: none;
  transition: color 0.18s;
}
.footer-owner-link:hover {
  color: #c9a84c !important;
  text-decoration: underline;
}

