/*
 * homepage.css — Premium homepage styles
 * Imagination Nature Studio
 * Loaded only on index.php via a conditional link tag.
 * Never modifies assets/css/style.css.
 */

/* ── Cormorant Garamond — loaded here so the font request stays inside CSS,
      not in stray <link> tags placed in <body> after header.php ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&display=swap');

/* ── Display font + gold accent (homepage only) ── */
:root {
    --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --accent-hp:       #c9a96e;
    --accent-hp-light: #e8d4a8;
    --gold-line:       rgba(201, 169, 110, .18);
}

/* ── Hero display typography upgrade ── */
.hero-slider h1 {
    font-family: var(--font-display) !important;
    font-weight: 300;
    letter-spacing: .02em;
    line-height: 1.05;
    font-size: clamp(2.8rem, 7vw, 5.5rem);
}

/* =========================================================
   STATS BAR
   ========================================================= */

.hp-stats-bar {
    background: #100f0d;
    border-top:    1px solid var(--gold-line);
    border-bottom: 1px solid var(--gold-line);
    padding: 1.5rem 0;
}

.hp-stats-inner {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
}

.hp-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: .4rem 2.5rem;
    border-right: 1px solid var(--gold-line);
    min-width: 100px;
}

.hp-stat:last-child {
    border-right: none;
}

.hp-stat-n {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 400;
    color: var(--accent-hp);
    line-height: 1.1;
}

.hp-stat-l {
    font-size: .62rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(243, 236, 227, .38);
    margin-top: .18rem;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .hp-stat { padding: .4rem 1.4rem; }
    .hp-stat-l { font-size: .56rem; letter-spacing: .12em; }
}

@media (max-width: 400px) {
    .hp-stats-inner { justify-content: flex-start; overflow-x: auto; padding: 0 .5rem; }
    .hp-stat { padding: .4rem 1rem; min-width: 72px; }
}

/* =========================================================
   WEDDING PHOTOGRAPHY FEATURE
   ========================================================= */

.hp-wedding {
    padding: 6rem 0;
    background: #0a0806;
    overflow: hidden;
}

.hp-wed-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4.5rem;
    align-items: center;
}

/* imagery side */
.hp-wed-imagery {
    position: relative;
}

.hp-wed-img-main {
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
}

.hp-wed-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s ease;
}

.hp-wed-img-main:hover img {
    transform: scale(1.03);
}

.hp-wed-img-accent {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    width: 42%;
    border-radius: 4px;
    overflow: hidden;
    border: 4px solid #0a0806;
    aspect-ratio: 2 / 3;
    box-shadow: 0 12px 36px rgba(0, 0, 0, .4);
}

.hp-wed-img-accent img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* text side */
.hp-kicker {
    display: block;
    font-size: .66rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--accent-hp);
    font-weight: 600;
    margin-bottom: .8rem;
}

.hp-wed-content h2 {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(2rem, 3.8vw, 3rem);
    line-height: 1.1;
    margin: 0 0 1.2rem;
    color: var(--cream);
    text-wrap: balance;
}

.hp-wed-content > p {
    color: #aaa29a;
    line-height: 1.8;
    margin: 0 0 1.8rem;
    font-size: .95rem;
}

.hp-wed-features {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.hp-wed-features li {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .88rem;
    color: rgba(243, 236, 227, .62);
}

.hp-wed-features li::before {
    content: '✦';
    color: var(--accent-hp);
    font-size: .56rem;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .hp-wed-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .hp-wed-img-accent { display: none; }
    .hp-wed-img-main { aspect-ratio: 16 / 9; }
}

@media (max-width: 600px) {
    .hp-wedding { padding: 4rem 0; }
}

/* =========================================================
   WEDDING PACKAGES
   ========================================================= */

.hp-packages {
    padding: 5rem 0;
    background: var(--bg);
    border-top: 1px solid var(--gold-line);
}

.hp-pkg-head {
    text-align: center;
    margin-bottom: 3rem;
}

.hp-pkg-head h2 {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    color: var(--cream);
    margin: .5rem 0 .8rem;
    line-height: 1.1;
}

.hp-pkg-head p {
    color: #aaa29a;
    max-width: 540px;
    margin: 0 auto;
    font-size: .88rem;
    line-height: 1.7;
}

.hp-pkg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.hp-pkg-card {
    background: rgba(255, 255, 255, .025);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
    position: relative;
}

.hp-pkg-card:hover {
    transform: translateY(-6px);
    border-color: rgba(201, 169, 110, .25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .2);
}

.hp-pkg-card.hp-pkg-featured {
    border-color: rgba(201, 169, 110, .32);
    background: rgba(201, 169, 110, .04);
}

.hp-pkg-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-hp);
    color: #0e0d0c;
    font-size: .56rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: .22rem .75rem;
    border-radius: 999px;
    white-space: nowrap;
}

.hp-pkg-name {
    font-size: .66rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent-hp);
    margin-bottom: .5rem;
}

.hp-pkg-price {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.8vw, 2rem);
    font-weight: 400;
    color: var(--cream);
    line-height: 1;
    margin-bottom: .2rem;
}

.hp-pkg-price-note {
    font-size: .7rem;
    color: rgba(243, 236, 227, .3);
    margin-bottom: 1.2rem;
}

.hp-pkg-features {
    flex: 1;
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    font-size: .84rem;
    color: rgba(243, 236, 227, .52);
}

.hp-pkg-features li {
    display: flex;
    gap: .4rem;
    align-items: flex-start;
}

.hp-pkg-features li::before {
    content: '—';
    color: var(--accent-hp);
    font-size: .7rem;
    flex-shrink: 0;
    margin-top: .1rem;
}

.hp-pkg-cta {
    display: block;
    text-align: center;
    padding: .7rem 1rem;
    border-radius: 6px;
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .07em;
    text-decoration: none;
    transition: all .25s ease;
    border: 1px solid rgba(243, 236, 227, .18);
    color: rgba(243, 236, 227, .62);
}

.hp-pkg-cta:hover {
    border-color: var(--accent-hp);
    color: var(--accent-hp);
    text-decoration: none;
}

.hp-pkg-card.hp-pkg-featured .hp-pkg-cta {
    background: var(--accent-hp);
    color: #0e0d0c;
    border-color: var(--accent-hp);
    font-weight: 700;
}

.hp-pkg-card.hp-pkg-featured .hp-pkg-cta:hover {
    background: var(--accent-hp-light);
    border-color: var(--accent-hp-light);
}

.hp-pkg-note {
    text-align: center;
    margin-top: 2rem;
    color: rgba(243, 236, 227, .35);
    font-size: .82rem;
}

.hp-pkg-note a {
    color: var(--accent-hp);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Fallback enquiry block — shown when no DB packages are available */
.hp-pkg-enquiry {
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    border: 1px solid var(--gold-line);
    border-radius: 4px;
}

.hp-pkg-enquiry p {
    color: rgba(243, 236, 227, .7);
    margin-bottom: 1.5rem;
    line-height: 1.65;
}

.hp-pkg-enquiry .hp-pkg-cta {
    display: block;
    margin-bottom: .75rem;
}

.hp-pkg-enquiry .hp-pkg-cta-alt {
    background: transparent;
    border: 1px solid var(--accent-hp);
    color: var(--accent-hp);
}

@media (max-width: 900px) {
    .hp-pkg-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-inline: auto;
    }
}

@media (max-width: 600px) {
    .hp-packages { padding: 3.5rem 0; }
}

/* =========================================================
   INSTAGRAM SHOWCASE
   ========================================================= */

.hp-instagram {
    padding: 5rem 0;
    background: #0a0806;
    border-top: 1px solid var(--gold-line);
}

.hp-ig-head {
    text-align: center;
    margin-bottom: 2.5rem;
}

.hp-ig-head h2 {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: var(--cream);
    margin: .5rem 0 .4rem;
    line-height: 1.1;
}

.hp-ig-head p {
    color: rgba(243, 236, 227, .38);
    font-size: .82rem;
}

.hp-ig-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    grid-template-rows: repeat(2, 220px);
    gap: 5px;
}

.hp-ig-cell {
    overflow: hidden;
    border-radius: 3px;
    position: relative;
    background: #1a1714;
    cursor: pointer;
}

.hp-ig-cell:first-child {
    grid-row: span 2;
}

.hp-ig-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.hp-ig-cell:hover img {
    transform: scale(1.06);
}

.hp-ig-cell-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background .3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp-ig-cell:hover .hp-ig-cell-overlay {
    background: rgba(0, 0, 0, .35);
}

.hp-ig-cell-overlay span {
    opacity: 0;
    color: #fff;
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: opacity .3s ease;
}

.hp-ig-cell:hover .hp-ig-cell-overlay span {
    opacity: 1;
}

.hp-ig-cta {
    text-align: center;
    margin-top: 2rem;
}

.hp-ig-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 1.6rem;
    border: 1px solid var(--gold-line);
    border-radius: 999px;
    color: rgba(243, 236, 227, .55);
    text-decoration: none;
    font-size: .8rem;
    letter-spacing: .08em;
    transition: all .25s ease;
}

.hp-ig-link:hover {
    border-color: var(--accent-hp);
    color: var(--accent-hp);
    text-decoration: none;
}

@media (max-width: 1024px) {
    .hp-ig-grid {
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: repeat(2, 200px);
    }
    .hp-ig-cell:first-child { grid-row: span 2; }
    .hp-ig-cell:nth-child(7) { display: none; }
}

@media (max-width: 700px) {
    .hp-instagram { padding: 3.5rem 0; }
    .hp-ig-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 160px);
    }
    .hp-ig-cell:first-child { grid-row: span 1; }
    .hp-ig-cell:nth-child(7) { display: block; }
}

@media (max-width: 450px) {
    .hp-ig-grid { grid-template-rows: repeat(3, 140px); }
}

/* =========================================================
   WHATSAPP + BOOKING CTA SECTION
   ========================================================= */

.hp-cta-section {
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(170deg, #111008 0%, var(--bg) 100%);
    border-top: 1px solid var(--gold-line);
    position: relative;
    overflow: hidden;
}

.hp-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 40%, rgba(201, 169, 110, .05) 0%, transparent 60%);
    pointer-events: none;
}

.hp-cta-inner {
    max-width: 640px;
    margin-inline: auto;
    position: relative;
}

.hp-cta-label {
    display: block;
    font-size: .66rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--accent-hp);
    font-weight: 600;
    margin-bottom: .8rem;
}

.hp-cta-h {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    color: var(--cream);
    line-height: 1.08;
    margin: 0 0 1rem;
    text-wrap: balance;
}

.hp-cta-p {
    color: #aaa29a;
    font-size: .9rem;
    line-height: 1.8;
    margin: 0 0 2.2rem;
    max-width: 520px;
    margin-inline: auto;
    margin-bottom: 2.2rem;
}

.hp-cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .9rem;
    flex-wrap: wrap;
}

.hp-btn-wa {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #25d366;
    color: #fff;
    padding: .85rem 1.9rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: .84rem;
    font-weight: 700;
    letter-spacing: .04em;
    transition: all .25s ease;
    box-shadow: 0 4px 20px rgba(37, 211, 102, .22);
    white-space: nowrap;
}

.hp-btn-wa:hover {
    background: #1fa855;
    box-shadow: 0 6px 28px rgba(37, 211, 102, .35);
    transform: translateY(-2px);
    text-decoration: none;
    color: #fff;
}

.hp-btn-wa svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.hp-btn-gold {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--accent-hp);
    color: #0e0d0c;
    padding: .85rem 1.9rem;
    border-radius: 3px;
    text-decoration: none;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: all .25s ease;
    white-space: nowrap;
}

.hp-btn-gold:hover {
    background: var(--accent-hp-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(201, 169, 110, .28);
    text-decoration: none;
    color: #0e0d0c;
}

@media (max-width: 600px) {
    .hp-cta-section { padding: 4rem 0; }

    .hp-cta-buttons {
        flex-direction: column;
        align-items: stretch;
        max-width: 300px;
        margin-inline: auto;
    }

    .hp-btn-wa,
    .hp-btn-gold {
        justify-content: center;
    }
}
