/*
 * Site footer (resources/views/components/footer.blade.php).
 * All classes start with "ft-" (footer) so they never clash with the rest of the site.
 * Plain CSS on purpose: no Tailwind rebuild is needed when this file changes.
 *
 * Look: same as the home page hero. Navy background, serif titles, orange accents.
 * Colours are written out (not var(--brand-blue)) because not every page defines those variables.
 */

.ft {
    position: relative;
    overflow: hidden;
    background: #00006D;              /* brand navy */
    color: rgba(255, 255, 255, .72);  /* soft white for normal text, pure white for titles */
    font-size: .95rem;
}
/* Thin orange line on top, like the line before the hero's small title */
.ft::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #FF6B00 0%, #FF6B00 30%, rgba(255, 107, 0, 0) 100%);
}
/* Big faint "Crete" in the background: decoration only */
.ft::after {
    content: 'Crete';
    position: absolute; right: -2vw; bottom: -0.32em; z-index: 0;
    font-family: 'Instrument Serif', Georgia, serif; font-style: italic;
    font-size: clamp(9rem, 22vw, 20rem); line-height: 1;
    color: rgba(255, 255, 255, .035);
    pointer-events: none;
}

/* Same width as the rest of the site (Tailwind max-w-7xl = 80rem) */
.ft-wrap {
    position: relative; z-index: 1;
    max-width: 80rem; margin: 0 auto; padding-left: 24px; padding-right: 24px;
}
.ft a { color: inherit; text-decoration: none; transition: color .2s, background .2s, border-color .2s; }

/* ---------- Top band: "Planning a trip to Crete?" ---------- */
.ft-cta {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
    padding-top: 56px; padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.ft-cta-title {
    margin: 0;
    font-family: 'Instrument Serif', Georgia, serif; font-weight: 400;
    font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1; color: #fff;
}
.ft-cta-title em { font-style: italic; color: #FF6B00; }
.ft-cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.ft-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 20px; border-radius: 999px;
    font-weight: 600; color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .4);
}
.ft-btn:hover { background: #fff; color: #00006D !important; border-color: #fff; }
.ft-btn-main { background: #FF6B00; border-color: #FF6B00; }
.ft-btn-main:hover { background: #e55f00; color: #fff !important; border-color: #e55f00; }

/* ---------- Main part: brand + 3 link columns ---------- */
.ft-main {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    padding-top: 48px; padding-bottom: 48px;
}
.ft-logo { height: 40px; width: auto; display: block; margin-bottom: 16px; }
.ft-brand p { max-width: 300px; line-height: 1.6; margin: 0; }

/* Social icons: outlined circles, filled orange on hover */
.ft-social { display: flex; gap: 10px; margin-top: 22px; }
.ft-social a {
    width: 40px; height: 40px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255, 255, 255, .3); color: #fff;
}
.ft-social a:hover { background: #FF6B00; border-color: #FF6B00; }

/* Column titles: small capitals, like the hero's small title */
.ft-col h3 {
    margin: 0 0 16px;
    font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
    color: #fff;
}
.ft-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ft-col a:hover { color: #FF6B00; }

/* ---------- Bottom bar ---------- */
.ft-bottom {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
    padding-top: 22px; padding-bottom: 22px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: .85rem; color: rgba(255, 255, 255, .55);
}
.ft-bottom p { margin: 0; }
.ft-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.ft-legal a:hover { color: #fff; }
.ft-top {
    border: 0; background: none; padding: 0; cursor: pointer;
    font: inherit; color: inherit;
}
.ft-top:hover { color: #FF6B00; }

/* ---------- Tablets: brand on its own row, 3 link columns under it ---------- */
@media (max-width: 900px) {
    .ft-main { grid-template-columns: repeat(3, 1fr); gap: 36px 24px; }
    .ft-brand { grid-column: 1 / -1; }
}

/* ---------- Phones: 2 link columns side by side (no long single list) ---------- */
@media (max-width: 560px) {
    .ft-wrap { padding-left: 20px; padding-right: 20px; }
    .ft-cta { padding-top: 44px; padding-bottom: 32px; }
    .ft-main { grid-template-columns: 1fr 1fr; padding-top: 36px; padding-bottom: 36px; }
    .ft-col:last-child { grid-column: 1 / -1; }   /* third column gets the full width... */
    .ft-col:last-child ul { display: flex; flex-wrap: wrap; gap: 10px 22px; } /* ...with its links in one row */
    .ft-bottom { flex-direction: column; align-items: flex-start; }
}
