/* 
   GRAND PLATINUM MARQUEE & LAWNS - MASTER STYLESHEET
   Design: Soft Luxury Pakistani Wedding Venue
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=DM+Sans:wght@300;400;500&family=Noto+Nastaliq+Urdu&family=Playfair+Display:wght@500;600&display=swap');

:root {
    /* Colors */
    --ivory: #F5EFE6;
    --gold: #C9A84C;
    --gold-light: #E8D5A3;
    --walnut: #2C2416;
    --blush: #E8C4B8;
    --green: #3D5A47;
    --white: #FFFFFF;
    --text-dark: #1A1208;
    --text-mid: #5C4A2A;
    --shadow: rgba(201, 168, 76, 0.15);
    
    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Layout Constants */
    --nav-height: 90px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--ivory);
    color: var(--text-dark);
    line-height: 1.6;
    opacity: 0;
    animation: fadeInPage 0.6s ease forwards;
    overflow-x: hidden;
}

@keyframes fadeInPage {
    from { opacity: 0; }
    to { opacity: 1; }
}

h1, h2, h3, .heading-serif {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    to { background-position: 200% center; }
}

.urdu {
    font-family: 'Noto Nastaliq Urdu', serif;
    direction: rtl;
    line-height: 2;
}

.sub-heading {
    font-family: 'Playfair Display', serif;
    color: var(--text-mid);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.9rem;
    display: block;
    text-align: center;
    margin-bottom: 0.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Layout Components */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem !important; /* Forces a 'contained' look on mobile */
    }
}

section {
    padding-block: 140px; /* Logical property for top/bottom: ensures horizontal padding is preserved */
    position: relative;
    scroll-margin-top: var(--nav-height);
}

/* Section Variation Classes - Only affecting vertical spacing */
.section-airy { padding-block: 180px !important; }
.section-standard { padding-block: 140px !important; }
.section-compact { padding-block: 80px !important; }
.section-top-none { padding-top: 0 !important; }
.section-bottom-none { padding-bottom: 0 !important; }

/* Page Hero — Shared across subpages */
.page-hero {
    padding: 180px 0 120px; /* Increased padding for more presence */
    text-align: center;
    background-color: var(--ivory);
    background-position: center;
    background-size: cover;
    position: relative;
}

.page-hero .sub-heading {
    margin-bottom: 20px;
}

.page-hero h1 {
    margin-bottom: 25px;
}

.page-hero p {
    color: var(--text-mid);
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Base background for sections with content backgrounds */
section[style*="background"] {
    padding: 140px 0;
}



/* Global Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    /* Default: transparent (over hero) */
    background: transparent;
}

/* Scrolled state: white solid bar */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    padding: 0.8rem 0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    backdrop-filter: blur(8px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Logo: white when transparent, walnut when scrolled */
.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    transition: var(--transition);
}

.navbar.scrolled .logo {
    color: var(--walnut);
}

.logo svg {
    width: 30px;
    height: 30px;
    fill: var(--gold);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* Nav links: white when transparent, dark when scrolled */
.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    padding-bottom: 5px;
    transition: var(--transition);
}

.navbar.scrolled .nav-links a {
    color: var(--text-dark);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Mobile Menu Links Highlighting */
#mobile-menu a {
    transition: var(--transition);
}
#mobile-menu a.active {
    color: var(--gold) !important;
}
#mobile-menu a:hover {
    color: var(--gold-light) !important;
}

.btn-book {
    background: var(--gold);
    color: var(--walnut);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px var(--shadow);
}

.btn-book:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px var(--shadow);
    background: var(--gold-light);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001; /* Above overlay */
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: rgba(255, 255, 255, 0.9); /* White by default */
    transition: var(--transition);
}

.navbar.scrolled .hamburger span {
    background: var(--walnut); /* Dark when scrolled */
}

/* Hamburger Close (X) Animation */
.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Ensure the X remains dark when mobile menu is open (since overlay is white) */
.hamburger.active span {
    background: var(--walnut) !important;
}

.hamburger:hover span {
    background: var(--gold);
}

/* Footer Styles */
footer {
    background: var(--walnut);
    color: var(--white);
    padding: 100px 0 40px;
    border-top: 5px solid var(--gold);
    position: relative;
}

footer::before {
    content: '✵ ✵ ✵';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--walnut);
    color: var(--gold);
    padding: 5px 20px;
    letter-spacing: 0.5em;
    font-size: 1.2rem;
}

.footer-newsletter {
    max-width: 600px;
    margin: 0 auto 80px;
    text-align: center;
    border-bottom: 1px solid rgba(201,168,76,0.2);
    padding-bottom: 60px;
}

.footer-newsletter h3 {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.newsletter-input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(201,168,76,0.3);
    padding: 15px 20px;
    border-radius: 4px;
    color: var(--white);
    font-family: inherit;
    transition: var(--transition);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255,255,255,0.1);
}

.newsletter-btn {
    background: var(--gold);
    color: var(--walnut);
    border: none;
    padding: 0 30px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-btn:hover {
    background: var(--gold-light);
    transform: scale(1.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 5rem;
    margin-bottom: 60px;
}

.footer-col h4 {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col h4::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(201,168,76,0.2);
}

.footer-col p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a::before {
    content: '→';
    font-size: 0.8rem;
    opacity: 0;
    transition: var(--transition);
    color: var(--gold);
}

.footer-links a:hover {
    color: var(--gold);
    transform: translateX(5px);
}

.footer-links a:hover::before {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(201,168,76,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--gold);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--gold);
    color: var(--walnut);
    border-color: var(--gold);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a:hover {
    color: var(--gold);
}

/* Floating Elements */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 999;
    color: white;
    font-size: 2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 45px;
    height: 45px;
    background: var(--white);
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    z-index: 999;
    opacity: 0;
    transition: var(--transition);
}

.back-to-top.visible {
    opacity: 1;
}

/* Common UI Elements */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow);
    border-color: var(--gold-light);
}

.placeholder-img {
    width: 100%;
    height: 250px;
    background: linear-gradient(45deg, var(--ivory), var(--blush));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    position: relative;
    overflow: hidden;
}

.placeholder-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 3s infinite;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    section {
        padding: 60px 0;
    }
}
