/* --- VARIABLES (The "Nikki Blend" Palette) --- */
:root {
    /* PRIMARY: The Light/Airy Lavender (Backgrounds, soft accents) */
    --brand-primary: #e1d5e9;       
    
    /* SECONDARY: The Dusty Lilac (Buttons, Text Links, Footer Pattern) */
    --brand-secondary: #a28fb6;     
    --brand-dark: #8a759e;          /* Darker shade for hover states */
    
    /* Text Colors */
    --text-dark: #444444;           /* Soft Black */
    --text-light: #777777;          /* Grey */
    
    /* Backgrounds */
    --white: #ffffff;
    --bg-grey: #f9f9f9;
    
    /* Fonts */
    --font-main: 'Lato', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* --- REUSABLE GRID PATTERN --- */
/* Uses the Darker Lilac as base so white lines show up */
.bg-pattern {
    background-color: var(--brand-secondary);
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.3) 2px, transparent 2px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.3) 2px, transparent 2px);
    background-size: 40px 40px; 
    color: var(--white);
}

/* --- NAVIGATION --- */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 15px 0; transition: 0.3s;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.navbar.scrolled { box-shadow: 0 2px 10px rgba(0,0,0,0.05); }

.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.2rem; font-weight: 700; letter-spacing: 2px; color: var(--text-dark); text-transform: uppercase; }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-item { font-size: 0.9rem; text-transform: uppercase; color: var(--text-dark); letter-spacing: 1px; font-weight: 400; }
/* Hover turns to the Dark Lilac */
.nav-item:hover { color: var(--brand-secondary); }

/* The "Contact" Button - Uses Dark Lilac for contrast */
.nav-btn {
    background: var(--brand-secondary); color: var(--white);
    padding: 8px 25px; border-radius: 4px;
    font-size: 0.85rem; text-transform: uppercase; font-weight: 700; letter-spacing: 1px;
}
.nav-btn:hover { background: var(--brand-dark); }

.hamburger { display: none; font-size: 1.5rem; cursor: pointer; color: var(--text-dark); }

/* --- HERO SECTION --- */
.hero {
    height: 55vh; min-height: 400px;
    background: url('images/nikki-hero.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    display: flex; align-items: center; justify-content: center; text-align: center;
}

/* Glass Card */
.hero-content {
    position: relative; z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 60px;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    max-width: 600px; margin: 0 20px;
    border: 1px solid #fff;
    /* Optional: Add a top border in the Light Lavender */
    border-top: 5px solid var(--brand-primary);
}

.hero h1 { 
    font-size: 3rem; color: #333; margin-bottom: 5px; font-weight: 300; 
    letter-spacing: 2px; text-transform: uppercase;
}

.hero p { 
    font-size: 1rem; text-transform: uppercase; letter-spacing: 3px; 
    margin-bottom: 25px; font-weight: 700; 
    /* Text is Dark Lilac, Background is Light Lavender */
    color: var(--brand-secondary);
    background: var(--brand-primary);
    padding: 5px 15px; border-radius: 4px;
    display: inline-block;
}

.hero-btns { display: flex; gap: 15px; justify-content: center; }

/* Buttons */
.btn-primary { 
    background: var(--brand-secondary); color: #fff; padding: 12px 30px; border-radius: 4px; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; font-weight: bold;
}
.btn-secondary { 
    background: transparent; color: var(--text-dark); padding: 12px 30px; border-radius: 4px; border: 1px solid var(--text-dark); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; font-weight: bold;
}
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary:hover { background: var(--text-dark); color: #fff; }

/* --- SECTIONS --- */
.section-padding { padding: 80px 0; }
.section-grey { background-color: var(--bg-grey); padding: 80px 0; }
/* New class for sections using the Light Lavender background */
.section-lavender { background-color: var(--brand-primary); padding: 80px 0; }

.section-title { font-size: 2rem; margin-bottom: 40px; font-weight: 300; color: var(--text-dark); text-transform: uppercase; letter-spacing: 2px; }
.section-title.center { text-align: center; }

/* --- ABOUT --- */
.about-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; align-items: center; }
/* Shadow block uses the Light Lavender for softness */
.about-img img { 
    border-radius: 4px; 
    margin-top: 15px;
    box-shadow: 15px 15px 0px var(--brand-primary); 
}

.about-text p { margin-bottom: 20px; color: var(--text-light); font-size: 1.1rem; }
.social-row { display: flex; gap: 20px; margin-top: 20px; }
.social-row i { font-size: 1.5rem; color: var(--text-light); transition: 0.3s; }
.social-row i:hover { color: var(--brand-secondary); transform: translateY(-3px); }

.about-grid { 
    display: grid; 
    grid-template-columns: 1fr 1.5fr; 
    gap: 50px; 
    align-items: start; /* CHANGED from 'center' to 'start' so text flows naturally */
}

/* --- REELS SECTION (Video Grid) --- */

.reels-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 Columns Layout */
    gap: 40px;
    align-items: start;
}

.reel-item h3 {
    margin-top: 15px;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 5px;
    line-height: 1.4;
}

.reel-item p {
    color: var(--brand-secondary); /* Uses your Dark Lilac variable */
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* RESPONSIVE VIDEO CONTAINER (The Magic Part) */
/* This forces the video to maintain a 16:9 Cinema Aspect Ratio */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* MOBILE TWEAK: Stack videos vertically on phones */
@media (max-width: 768px) {
    .reels-grid {
        grid-template-columns: 1fr; 
        gap: 50px;
    }
}

/* --- GALLERY --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.gallery-item img { 
    width: 100%; height: 300px; object-fit: cover; border-radius: 4px; 
    transition: 0.3s; filter: grayscale(10%);
}
.gallery-item img:hover { filter: grayscale(0); transform: scale(1.02); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* --- GALLERY CAPTIONS (Slide-Up Effect) --- */

.gallery-item {
    position: relative; /* Needed so we can position the text on top */
    overflow: hidden;   /* Keeps the zoom and slide effects inside the rounded corners */
    border-radius: 4px; /* Matches your image radius */
}

/* The Overlay Box */
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    
    /* Airy White Glass Look */
    background: rgba(255, 255, 255, 0.95); 
    color: var(--text-dark);
    
    padding: 15px 10px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    
    /* Pop of color on top */
    border-top: 3px solid var(--brand-secondary); 
    
    /* Animation Magic */
    transform: translateY(100%); /* Start hidden below the card */
    transition: transform 0.3s ease-in-out;
    z-index: 10;
}

/* The Trigger: When hovering the ITEM, slide up the CAPTION */
.gallery-item:hover .gallery-caption {
    transform: translateY(0); /* Slide into view */
}

/* Ensure the image zoom still works nicely behind the text */
.gallery-item:hover img {
    transform: scale(1.05); /* Slight zoom */
    filter: grayscale(0);   /* Full color */
}

/* --- LATEST NEWS (Horizontal Scroll) --- */

.scroll-hint {
    font-size: 0.9rem;
    color: var(--brand-secondary);
    font-weight: normal;
    margin-left: 10px;
    animation: pulse 2s infinite;
}

/* The Scrolling Container */
.news-scroller {
    display: flex;
    overflow-x: auto; /* Enables horizontal scroll */
    gap: 30px;
    padding-bottom: 30px; /* Room for scrollbar */
    scroll-snap-type: x mandatory; /* Makes cards "snap" into place */
    -webkit-overflow-scrolling: touch; /* Smooth scroll on iPhone */
}

/* Hide the scrollbar but keep functionality (Optional - Cleaner look) */
.news-scroller::-webkit-scrollbar {
    height: 8px;
}
.news-scroller::-webkit-scrollbar-thumb {
    background: var(--brand-secondary);
    border-radius: 4px;
}
.news-scroller::-webkit-scrollbar-track {
    background: #eee;
}

/* The Individual Press Card */
.press-card {
    min-width: 350px;  /* Desktop width */
    max-width: 350px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    scroll-snap-align: center; /* Snaps card to center of screen */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column; /* Stacks image on top, text bottom */
}

/* Image Container */
.press-img-container {
    width: 100%;
    background: #fff; /* Grey background for transparency */
    padding-top: 5px;
}

/* THE IMAGE FIX: No more cropping! */
.fit-img {
    width: 100%;
    height: auto;      /* Lets height adjust naturally */
    max-height: 250px; /* Cap it so super-tall images don't break layout */
    object-fit: contain; /* Ensures the WHOLE image is seen, never chopped */
    display: block;
}

/* Text Content - Stretchable! */
.press-content {
    padding: 25px;
    flex-grow: 1; /* Pushes content to fill space */
    display: flex;
    flex-direction: column;
}

.press-meta {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
}

.publication {
    color: var(--brand-secondary);
    margin-right: 5px;
}

.press-content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--text-dark);
}

.press-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes the button to the bottom */
}

.text-link {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--text-dark);
    text-transform: uppercase;
    margin-top: auto; /* Forces link to stay at bottom */
}
.text-link:hover {
    color: var(--brand-secondary);
}
/* --- NEWS CARD ACTIONS --- */

/* Pushes the buttons to the bottom of the card */
.card-actions {
    margin-top: auto; /* Uses Flexbox magic to stick to bottom */
    display: flex;
    gap: 15px; /* Space between the two links */
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f9f9f9; /* Subtle separator line */
}

/* Standard Read Link */
.text-link {
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.text-link:hover {
    color: var(--brand-secondary);
}

/* New Video Link */
.video-link {
    font-size: 0.8rem;
    font-weight: bold;
    color: #c4302b; /* YouTube Red color */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 5px; /* Space between icon and text */
}

.video-link i {
    font-size: 1rem;
}

.video-link:hover {
    color: #ff0000; /* Brighter red on hover */
    text-decoration: underline;
}

/* Simple Pulse Animation for the "Scroll" hint */
@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* --- MOBILE TWEAKS --- */
@media (max-width: 768px) {
    .press-card {
        min-width: 85vw; /* Make cards wider on phones */
    }
}

/* --- INSTAGRAM SECTION --- */

.center-text {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
    margin-top: -30px; /* Pulls it closer to the title */
    font-size: 1.1rem;
}

.insta-grid {
    display: grid;
    /* Creates 4 columns. Change to repeat(6, 1fr) for a wider row */
    grid-template-columns: repeat(4, 1fr); 
    gap: 10px; /* Small gap like the real app */
    margin-bottom: 40px;
}

.insta-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1 / 1; /* Forces perfect squares */
}

.insta-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* The Overlay Effect */
.insta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(162, 143, 182, 0.8); /* Dusty Lilac overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.insta-overlay i {
    color: #fff;
    font-size: 2rem;
    transform: scale(0);
    transition: transform 0.3s ease;
}

/* Hover Actions */
.insta-item:hover .insta-overlay {
    opacity: 1;
}
.insta-item:hover .insta-overlay i {
    transform: scale(1);
}
.insta-item:hover img {
    transform: scale(1.1);
}

.center-btn-row {
    text-align: center;
}

/* --- MOBILE TWEAK --- */
@media (max-width: 768px) {
    .insta-grid {
        grid-template-columns: repeat(2, 1fr); /* 2x2 grid on phone */
    }
}

/* --- CONTACT SECTION (The Twin Card Layout) --- */

.contact-wrapper {
    display: flex;
    gap: 40px;
    align-items: stretch; /* This forces both cards to be equal height! */
    justify-content: center;
}

/* Common Styles for Both Cards */
.contact-card {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    flex: 1; /* Makes them take up equal width */
    border-top: 5px solid var(--brand-secondary); /* That purple accent line */
    display: flex;
    flex-direction: column;
}

.contact-card h3 {
    margin-bottom: 30px;
    font-size: 1.5rem;
    color: var(--text-dark);
    text-align: left;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

/* --- LEFT CARD: Agency Styling --- */
.agency-block {
    margin-bottom: 20px;
    text-align: left; /* Aligns text cleanly to the left */
}

.agency-logo {
    height: 45px;
    width: auto;
    margin-bottom: 15px;
    display: block; /* Ensures logo sits on its own line */
}

.agency-block h4 {
    color: var(--brand-secondary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.agent-name {
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.contact-details li {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.contact-details strong {
    color: var(--brand-secondary);
    margin-right: 5px;
}

.contact-details a:hover {
    color: var(--brand-secondary);
    text-decoration: underline;
}

/* The divider line between agencies */
.agency-divider {
    border: 0;
    border-top: 1px dashed #ddd;
    margin: 20px 0 30px 0;
}

/* --- RIGHT CARD: Form Styling --- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-card input, 
.contact-card textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    background: #fafafa;
    transition: 0.3s;
    font-size: 0.95rem;
}

.contact-card input:focus, 
.contact-card textarea:focus {
    outline: none;
    border-color: var(--brand-secondary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(162, 143, 182, 0.2); /* Subtle purple glow */
}

/* Push the button to the bottom if the form is short */
.btn-form {
    margin-top: auto; 
    width: 100%;
    padding: 15px;
    background: var(--brand-secondary);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s;
}

.btn-form:hover {
    background: var(--brand-dark);
}

/* --- MOBILE TWEAK --- */
@media (max-width: 768px) {
    .contact-wrapper {
        flex-direction: column; /* Stack them on phone */
        align-items: center;
    }
    .contact-card {
        width: 100%;
    }
}

/* --- FOOTER with Irregular "Window Pane" Pattern --- */
footer {
    text-align: center;
    padding: 60px 20px;
    font-size: 0.9rem;
    color: #4a4a4a; /* Dark grey text for readability */
    
    /* The Base Color (Dark Dusty Lilac) */
    background-color: var(--brand-secondary);
    
    /* The Pattern Magic: Layering two different grids to make it look random */
    background-image:
        /* Layer 1: Thick major lines (Wide rectangles) */
        linear-gradient(rgba(255, 255, 255, 0.4) 2px, transparent 2px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.4) 2px, transparent 2px),
        
        /* Layer 2: Thinner offset lines (Creates the irregularity) */
        linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
        
    /* Different sizes for the layers force them to overlap irregularly */
    background-size: 
        100px 60px,  /* Layer 1 size (Wide) */
        100px 60px,  /* Layer 1 Vertical */
        40px 40px,   /* Layer 2 size (Small Square) */
        40px 40px;   /* Layer 2 Vertical */
        
    /* Offset the second layer to break the grid */
    background-position:
        0 0,
        0 0,
        20px 20px,
        20px 20px;
}

/* Make sure the text is readable on top of the pattern */
footer p {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.85); /* Small white backing for text */
    display: inline-block;
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: bold;
    color: #333;
}

/* --- MOBILE --- */
@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-links {
        position: absolute; top: 60px; left: 0; width: 100%; background: #fff;
        flex-direction: column; padding: 20px; display: none; box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    .nav-links.active { display: flex; }
    .hero { height: 45vh; }
    .hero h1 { font-size: 2.2rem; }
    .about-grid, .contact-wrapper { grid-template-columns: 1fr; }
}

/* --- LIGHTBOX (The Pop-up Window) --- */
.lightbox {
    position: fixed; 
    z-index: 2000; /* Stays on top of everything */
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* 90% Dark background */
    display: none; /* Hidden by default */
    align-items: center; 
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    animation: fadeIn 0.3s forwards; /* Smooth fade in */
}

/* The Full Image */
.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    border: 2px solid #fff;
}

/* The Caption below the full image */
.lightbox-caption {
    margin-top: 15px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* The Close Button (X) */
.close-lightbox {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}
.close-lightbox:hover {
    color: var(--brand-secondary); /* Turns Lilac on hover */
}

/* Simple Fade In Animation */
@keyframes fadeIn {
    to { opacity: 1; }
}