/* Custom Footer — Prayag Pandits
   Matches the custom header's warm minimalism + restrained motion design language.
   Key patterns: underline wipe hovers, opacity transitions, warm cream gradients,
   Material Design easing, charcoal text with maroon accents. */

:root {
    --ppn-ft-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ppn-ft-charcoal: rgb(68, 68, 68);
    --ppn-ft-primary: #960000;
    --ppn-ft-accent: #E8731A;
    --ppn-ft-maroon: #5C0F1F;
}

.ppn-footer {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ppn-ft-charcoal);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.ppn-footer *, .ppn-footer *::before, .ppn-footer *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
.ppn-footer a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease-in-out, color 0.15s ease;
}
.ppn-footer h3, .ppn-footer h4, .ppn-footer h5 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
.ppn-footer ul { list-style: none; }
.ppn-footer img { max-width: 100%; height: auto; display: inline-block; }

.ppn-footer-container {
    width: min(1200px, 90vw);
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════
   Section 1: Enquiry Form
   Background matches header topbar gradient style
   ═══════════════════════════════════════════════ */
.ppn-footer-form {
    background: linear-gradient(180deg, #fffdfb 0%, #fdf5ee 100%);
    padding: 48px 0;
    border-top: 1px solid rgba(0,0,0,0.06);
}
.ppn-footer-form-inner {
    max-width: 900px;
    margin: 0 auto;
}
.ppn-footer-form-header {
    text-align: center;
    margin-bottom: 28px;
}
.ppn-footer-form-header span {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(68,68,68,0.5);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.ppn-footer-form-header h3 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ppn-ft-maroon);
}

.ppn-enquiry-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: stretch;
}
.ppn-enquiry-form input {
    flex: 1;
    min-width: 140px;
    padding: 12px 16px;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    color: var(--ppn-ft-charcoal);
    background: #fff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ppn-enquiry-form input:focus {
    border-color: var(--ppn-ft-primary);
    box-shadow: 0 0 0 3px rgba(150,0,0,0.08);
}
.ppn-enquiry-form input::placeholder {
    color: rgba(68,68,68,0.45);
}
.ppn-enquiry-form button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: var(--ppn-ft-primary);
    color: #fff;
    border: none;
    border-radius: 100px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}
.ppn-enquiry-form button:hover {
    background: #B80000;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(150,0,0,0.2);
}

/* ── Floating Label Fields (Air India pattern) ────────── */
.ppn-ft-field {
    position: relative;
    flex: 1;
    min-width: 140px;
}
.ppn-ft-field input {
    width: 100%;
    padding: 16px 16px 8px;
    border: 1.5px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--ppn-ft-charcoal);
    background: #fff;
    outline: none;
    min-height: 52px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ppn-ft-field input:focus {
    border-color: var(--ppn-ft-primary);
    box-shadow: 0 0 0 3px rgba(150,0,0,0.08);
}
.ppn-ft-field label {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 400;
    color: rgba(68,68,68,0.45);
    pointer-events: none;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    padding: 0 4px;
    line-height: 1;
}
/* Float up on focus */
.ppn-ft-field input:focus ~ label {
    top: 0;
    transform: translateY(-50%);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--ppn-ft-primary, #960000);
    background: #fff;
    padding: 0 6px;
    left: 12px;
}
/* Stay floated when filled */
.ppn-ft-field input:not(:placeholder-shown) ~ label {
    top: 0;
    transform: translateY(-50%);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--ppn-ft-charcoal, #444);
    background: #fff;
    padding: 0 6px;
    left: 12px;
}

/* ═══════════════════════════════════════════════
   Section 2: City Links Grid
   Warm cream gradient bg, header-style underline wipe on links
   ═══════════════════════════════════════════════ */
.ppn-footer-links {
    background: linear-gradient(180deg, #fdf5ee 0%, #faf0e4 100%);
    padding: 48px 0;
    border-top: 1px solid rgba(0,0,0,0.06);
}
.ppn-footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 24px;
}

/* City headings — match header drawer group headings */
.ppn-footer-city h4 {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ppn-ft-maroon);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.ppn-footer-city h4 a {
    opacity: 1;
}
.ppn-footer-city h4 a:hover {
    color: var(--ppn-ft-primary);
}

/* City links — opacity hover + underline wipe (header signature) */
.ppn-footer-city ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ppn-footer-city li a {
    display: inline;
    position: relative;
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--ppn-ft-charcoal);
    opacity: 0.75;
    transition: opacity 0.2s ease-in-out;
    line-height: 1.8;
}
.ppn-footer-city li a:hover {
    opacity: 1;
}
/* Underline wipe from left — header's signature interaction */
.ppn-footer-city li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--ppn-ft-charcoal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ppn-ft-ease);
    opacity: 0.35;
}
.ppn-footer-city li a:hover::after {
    transform: scaleX(1);
}

/* ═══════════════════════════════════════════════
   Section 3: Trust Badges + Payment + Contact
   Clean white with subtle border — matches header bg
   ═══════════════════════════════════════════════ */
.ppn-footer-trust {
    background: #fffdfb;
    padding: 40px 0;
    border-top: 1px solid rgba(0,0,0,0.06);
}
.ppn-footer-trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
    align-items: start;
}
/* Section headings — match header drawer group headings exactly */
.ppn-footer-trust-col h5 {
    font-size: 0.68rem;
    font-weight: 700;
    color: rgba(68,68,68,0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}
.ppn-footer-logos {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}
/* Logos — opacity hover like header icons */
.ppn-footer-logos img {
    height: 36px;
    width: auto;
    opacity: 0.55;
    transition: opacity 0.15s ease;
    object-fit: contain;
    filter: grayscale(20%);
}
.ppn-footer-logos img:hover {
    opacity: 1;
    filter: grayscale(0%);
}
.ppn-footer-trust-col p {
    font-size: 0.85rem;
    color: var(--ppn-ft-charcoal);
    line-height: 1.7;
}
/* Phone links — primary red color like header CTA */
.ppn-footer-trust-col p a {
    color: var(--ppn-ft-primary);
    font-weight: 600;
    position: relative;
}
.ppn-footer-trust-col p a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--ppn-ft-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ppn-ft-ease);
    opacity: 0.4;
}
.ppn-footer-trust-col p a:hover::after {
    transform: scaleX(1);
}
.ppn-footer-trust-col p a:hover {
    color: #B80000;
}

/* ═══════════════════════════════════════════════
   Section 4: Footer Nav + Ventures
   Warm cream strip — matches header topbar gradient
   ═══════════════════════════════════════════════ */
.ppn-footer-nav {
    background: linear-gradient(90deg, #e8ddd4 0%, #e2d5c9 50%, #ddd0c3 100%);
    padding: 20px 0;
}
.ppn-footer-nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
/* Nav links — match header topbar link style */
.ppn-footer-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
}
.ppn-footer-nav-links a {
    font-size: 0.78rem;
    font-weight: 500;
    color: #5c2d0e;
    position: relative;
    transition: color 0.15s ease;
}
.ppn-footer-nav-links a:hover {
    color: #1a0a04;
}
.ppn-footer-nav-links a:not(:last-child)::after {
    content: '·';
    position: absolute;
    right: -12px;
    color: rgba(92,45,14,0.3);
    pointer-events: none;
    font-weight: 700;
}

/* Ventures — logo opacity hover */
.ppn-footer-ventures {
    display: flex;
    align-items: center;
    gap: 16px;
}
.ppn-footer-ventures span {
    font-size: 0.68rem;
    font-weight: 700;
    color: #5c2d0e;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.ppn-footer-ventures a {
    display: inline-flex;
}
.ppn-footer-ventures img {
    height: 26px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.ppn-footer-ventures img:hover {
    opacity: 1;
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════
   Section 5: Copyright Bar
   Dark maroon — matches header primary color
   ═══════════════════════════════════════════════ */
.ppn-footer-copyright {
    background: var(--ppn-ft-maroon);
    padding: 16px 0;
    color: rgba(255,255,255,0.65);
}
.ppn-footer-copyright-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}
.ppn-footer-copyright strong {
    color: #fff;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════
   Responsive — maintains header's spacing philosophy
   ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .ppn-footer-links-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .ppn-footer-trust-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (min-width: 577px) and (max-width: 768px) {
    .ppn-footer-links-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .ppn-footer-trust-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .ppn-footer-form { padding: 32px 0; }
    .ppn-footer-form-header h3 { font-size: 1.3rem; }
    .ppn-footer-links { padding: 32px 0; }
    .ppn-footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 20px;
    }
    .ppn-footer-trust { padding: 28px 0; }
    .ppn-footer-trust-grid {
        grid-template-columns: 1fr;
    }
    .ppn-footer-trust-col { text-align: center; }
    .ppn-footer-logos { justify-content: center; }
    .ppn-enquiry-form {
        flex-direction: column;
    }
    .ppn-enquiry-form input {
        min-width: 100%;
    }
    .ppn-footer-nav-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .ppn-footer-nav {
        padding: 16px 0;
    }
    .ppn-footer-nav-links { justify-content: center; gap: 8px 16px; }
    .ppn-footer-nav-links a:not(:last-child)::after { display: none; }
    .ppn-footer-ventures { justify-content: center; width: 100%; }
    .ppn-footer-copyright-row {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        font-size: 0.72rem;
    }
}
@media (max-width: 480px) {
    .ppn-footer-links-grid {
        grid-template-columns: 1fr;
    }
    .ppn-footer-form {
        padding: 32px 0;
    }
    .ppn-footer-form-header h3 { font-size: 1.1rem; }
    .ppn-footer-city h4 { font-size: 0.68rem; margin-bottom: 8px; }
    .ppn-footer-city li a { font-size: 0.78rem; }
    .ppn-enquiry-form button { width: 100%; justify-content: center; }
    .ppn-footer-logos img { height: 28px; }
}
