/**
 * TravelPro Theme - Footer Styles
 * 
 * @package TravelPro
 */

/* ==========================================================================
   Site Footer - Common Styles
   ========================================================================== */

.site-footer {
    background-color: var(--color-dark);
    color: var(--color-light);
}

/* Footer Main */
.footer-main {
    padding: var(--spacing-xl) 0;
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

/* Footer Widget */
.footer-widget {
    flex: 1;
    min-width: 200px;
}

.footer-widget-title {
    font-size: 18px;
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
}

.footer-widget p {
    color: var(--color-gray-light);
    margin-bottom: var(--spacing-sm);
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget li {
    margin-bottom: var(--spacing-sm);
}

.footer-widget a {
    color: var(--color-gray-light);
    transition: color var(--transition-fast);
}

.footer-widget a:hover {
    color: var(--color-primary);
}

/* About Widget */
.footer-about .site-logo {
    margin-bottom: var(--spacing-md);
}

.footer-about .site-logo img {
    max-height: 50px;
}

.footer-about p {
    line-height: 1.7;
}

/* Contact Widget */
.footer-contact-info li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.footer-contact-info i {
    color: var(--color-primary);
    margin-top: 4px;
}

/* Links Widget */
.footer-links a::before {
    content: '›';
    margin-right: 8px;
    color: var(--color-primary);
}

/* Newsletter Widget */
.footer-newsletter p {
    margin-bottom: var(--spacing-md);
}

.footer-newsletter form {
    display: flex;
    gap: var(--spacing-sm);
}

.footer-newsletter input[type="email"] {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}

.footer-newsletter input[type="email"]::placeholder {
    color: var(--color-gray-light);
}

.footer-newsletter button {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.footer-newsletter button:hover {
    background-color: var(--color-primary-dark);
}

/* Social Links */
.footer-social {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-white);
    font-size: 16px;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background-color: var(--color-primary);
    transform: translateY(-3px);
}

/* Footer Bottom */
.footer-bottom {
    padding: var(--spacing-md) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.copyright {
    color: var(--color-gray-light);
    font-size: var(--font-size-small);
}

.copyright a {
    color: var(--color-primary);
}

.footer-menu ul {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu a {
    color: var(--color-gray-light);
    font-size: var(--font-size-small);
}

.footer-menu a:hover {
    color: var(--color-primary);
}

/* ==========================================================================
   Footer Layout Variations
   ========================================================================== */

/* Footer 4 Columns */
.footer-4col .footer-widget {
    flex: 0 0 calc(25% - var(--spacing-lg));
}

/* Footer 3 Columns */
.footer-3col .footer-widget {
    flex: 0 0 calc(33.333% - var(--spacing-lg));
}

/* Footer 2 Columns */
.footer-2col .footer-widget {
    flex: 0 0 calc(50% - var(--spacing-lg));
}

/* ==========================================================================
   Footer CTA Section
   ========================================================================== */

.footer-cta {
    background-color: var(--color-primary);
    padding: var(--spacing-xl) 0;
    text-align: center;
    color: var(--color-white);
}

.footer-cta h3 {
    color: var(--color-white);
    font-size: var(--font-size-h2);
    margin-bottom: var(--spacing-sm);
}

.footer-cta p {
    font-size: 18px;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

.footer-cta .btn {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.footer-cta .btn:hover {
    background-color: var(--color-dark);
    color: var(--color-white);
}

/* ==========================================================================
   Instagram Feed Widget
   ========================================================================== */

.footer-instagram {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.footer-instagram a {
    position: relative;
    display: block;
    overflow: hidden;
}

.footer-instagram img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform var(--transition-fast);
}

.footer-instagram a:hover img {
    transform: scale(1.1);
}

.footer-instagram a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(46, 204, 113, 0);
    transition: background-color var(--transition-fast);
}

.footer-instagram a:hover::after {
    background-color: rgba(46, 204, 113, 0.3);
}

/* ==========================================================================
   WhatsApp Button (footer.php output)
   ========================================================================== */

.whatsapp-button {
    position: fixed;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all .3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

@media (max-width: 767px) {
    .whatsapp-button {
        display: none !important;
    }
}

.whatsapp-button:hover {
    background-color: #128C7E;
    color: #fff;
    transform: scale(1.1) translateY(-3px);
}

.whatsapp-button svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}

/* Position variants */
.whatsapp-button.position-bottom-right {
    bottom: 30px;
    right: 30px;
}

.whatsapp-button.position-bottom-left {
    bottom: 30px;
    left: 30px;
}

/* Pulse animation */
.whatsapp-button::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #25D366;
    border-radius: 50%;
    z-index: -1;
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ==========================================================================
   Footer – New Layout System (Top Bar, Columns, Copyright)
   ========================================================================== */

/* ── Site Footer Override (CSS custom-property driven) ──────────────── */
.site-footer {
    background-color: var(--footer-bg-color, var(--color-dark));
    color: var(--footer-text-color, var(--color-light));
}

.site-footer a {
    color: var(--footer-accent-color, var(--color-primary));
}

.site-footer a:hover {
    opacity: 0.85;
}

/* ── Footer Top Bar ──────────────────────────────────────────────────── */
.footer-top-bar {
    padding: 18px 0;
    text-align: center;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top-bar-content {
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Footer Columns ──────────────────────────────────────────────────── */
.footer-columns {
    padding: 60px 0 40px;
}

.footer-columns-grid {
    display: grid;
    gap: 30px;
}

/* Column counts */
.footer-columns-2 .footer-columns-grid {
    grid-template-columns: repeat(2, 1fr);
}

.footer-columns-3 .footer-columns-grid {
    grid-template-columns: repeat(3, 1fr);
}

.footer-columns-4 .footer-columns-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* Column title */
.footer-column-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--footer-accent-color, #fff);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--footer-accent-color, var(--color-primary));
    display: inline-block;
}

/* Column content */
.footer-column-content {
    font-size: 14px;
    line-height: 1.75;
    color: var(--footer-text-color, #d1d5db);
}

.footer-column-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-column-content li {
    margin-bottom: 8px;
}

.footer-column-content a {
    transition: opacity 0.2s;
}

/* ── Widget title inside footer columns (uses footer-accent-color) ────── */
.footer-columns .footer-widget-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--footer-accent-color, var(--color-primary));
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--footer-accent-color, var(--color-primary));
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Copyright Bar ───────────────────────────────────────────────────── */
.footer-copyright {
    padding: 18px 0;
    font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-copyright-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copyright-text {
    margin: 0;
}

.footer-copyright-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-credit {
    opacity: 0.75;
}

.footer-policy-link {
    color: var(--footer-accent-color, var(--color-primary));
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-policy-link:hover {
    opacity: 0.75;
    text-decoration: underline;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .footer-columns-4 .footer-columns-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-columns-3 .footer-columns-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .footer-columns-grid {
        grid-template-columns: 1fr !important;
    }

    .footer-columns {
        padding: 40px 0 24px;
    }
}

/* ==========================================================================
   Consultation Box Section (Travel Expert Column)
   ========================================================================== */

.tec-section {
  width: 100%;
  max-width: 1200px;
  margin: 40px auto 60px;
  padding: 0 16px;
  font-family: 'DM Sans', sans-serif;
}

/* ── CARD ── */
.tec-card {
  display: grid;
  grid-template-columns: 195px 1fr 255px;
  align-items: center;
  background: #1a1a2e;
  border-radius: 16px;
  padding: 28px 32px;
  min-height: 162px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 32px 80px rgba(0,0,0,0.45), 0 2px 4px rgba(0,0,0,0.3);
}

/* very subtle warm shimmer top */
.tec-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(212,175,125,0.4) 40%, rgba(212,175,125,0.4) 60%, transparent 100%);
}

/* deep vignette corners */
.tec-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 100% at 50% 50%, transparent 60%, rgba(0,0,0,0.25) 100%);
  pointer-events: none;
}

/* ── LEFT ── */
.tec-avatar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding-right: 28px;
  border-right: 1px solid rgba(255,255,255,0.07);
  position: relative;
  z-index: 1;
}

.tec-avatar-wrap {
  position: relative;
  width: 84px;
  height: 84px;
}

.tec-avatar-wrap img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(212,175,125,0.5);
  display: block;
}

/* placeholder avatar when no image */
.tec-avatar-placeholder {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a5f, #2a4d7a);
  border: 2px solid rgba(212,175,125,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: rgba(212,175,125,0.8);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
}

.tec-online-dot {
  position: absolute;
  bottom: 4px; right: 4px;
  width: 12px; height: 12px;
  background: #5cb87a;
  border-radius: 50%;
  border: 2px solid #1a1a2e;
  animation: tec-pulse 2.5s ease-in-out infinite;
}

@keyframes tec-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(92,184,122,0.45); }
  50%      { box-shadow: 0 0 0 4px rgba(92,184,122,0); }
}

.tec-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #f0ece4;
  text-align: center;
  line-height: 1.35;
}

.tec-role {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #d4af7d;
  font-weight: 500;
  text-align: center;
}

.tec-badge {
  background: rgba(212,175,125,0.08);
  border: 1px solid rgba(212,175,125,0.2);
  border-radius: 20px;
  padding: 3px 11px;
  font-size: 11px;
  color: rgba(212,175,125,0.8);
  white-space: nowrap;
}

.tec-badge strong { color: #d4af7d; font-weight: 600; }

/* ── MIDDLE ── */
.tec-content-col {
  padding: 0 30px;
  position: relative;
  z-index: 1;
}

.tec-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
}

.tec-eyebrow-line {
  width: 22px;
  height: 1px;
  background: rgba(212,175,125,0.6);
}

.tec-eyebrow-text {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(212,175,125,0.7);
}

.tec-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  color: #f0ece4;
  line-height: 1.1;
  margin-bottom: 1px;
}

.tec-headline-italic {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-style: italic;
  font-weight: 500;
  color: #d4af7d;
  line-height: 1.3;
  margin-bottom: 10px;
  display: block;
}

.tec-body {
  font-size: 12.5px;
  color: rgba(240,236,228,0.5);
  line-height: 1.7;
  margin-bottom: 14px;
  max-width: 490px;
}

.tec-body strong {
  color: rgba(240,236,228,0.85);
  font-weight: 500;
}

.tec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tec-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 4px 11px;
  font-size: 11px;
  color: rgba(240,236,228,0.5);
  transition: all 0.2s;
}

.tec-chip:hover {
  background: rgba(212,175,125,0.08);
  border-color: rgba(212,175,125,0.22);
  color: rgba(212,175,125,0.9);
}

.tec-chip-check { color: #d4af7d; font-size: 9.5px; }

/* ── RIGHT ── */
.tec-cta-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 28px;
  border-left: 1px solid rgba(255,255,255,0.07);
  position: relative;
  z-index: 1;
}

.tec-get-touch {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240,236,228,0.25);
  margin-bottom: 1px;
}

.tec-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 9px;
  padding: 9px 12px;
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}

.tec-btn:hover { transform: translateX(3px); filter: brightness(1.08); }

/* warm champagne-gold CTA */
.tec-btn-call {
  background: linear-gradient(135deg, #b8935a 0%, #c9a46a 50%, #a87d48 100%);
  box-shadow: 0 4px 18px rgba(184,147,90,0.28);
  color: #1a1a2e !important;
}

/* deep forest green */
.tec-btn-whatsapp {
  background: linear-gradient(135deg, #2d6a4f, #357a5c);
  box-shadow: 0 4px 18px rgba(45,106,79,0.3);
  color: #ffffff !important;
}

/* ghost */
.tec-btn-email {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: #ffffff !important;
}

.tec-btn-email:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.16);
}

.tec-btn-icon {
  width: 30px; height: 30px;
  border-radius: 7px;
  background: rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tec-btn-icon svg { width: 14px; height: 14px; fill: rgba(255,255,255,0.9); }

.tec-btn-label {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  display: block;
  line-height: 1;
  margin-bottom: 2px;
}

.tec-btn-value {
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  display: block;
  line-height: 1.2;
}

.tec-btn-arrow {
  margin-left: auto;
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  transition: transform 0.2s, color 0.2s;
}

.tec-btn:hover .tec-btn-arrow { transform: translateX(2px); color: rgba(255,255,255,0.85); }

.tec-responds {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: rgba(240,236,228,0.22);
  margin-top: 2px;
}

.tec-responds svg { width: 10px; height: 10px; fill: rgba(212,175,125,0.35); }

@media (max-width: 880px) {
  .tec-card { grid-template-columns: 1fr; gap: 22px; }
  .tec-avatar-col {
    flex-direction: row; flex-wrap: wrap; justify-content: center;
    border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07);
    padding-right: 0; padding-bottom: 18px;
  }
  .tec-content-col { padding: 0; }
  .tec-cta-col {
    border-left: none; border-top: 1px solid rgba(255,255,255,0.07);
    padding-left: 0; padding-top: 18px;
  }
}
