/* ========================================
   LUXURY LIFESTYLE WEBSITE - MAIN STYLES
   Modern Luxury Aesthetic
   ======================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ========================================
   CSS VARIABLES - Design System
   ======================================== */
:root {
    /* Colors */
    --primary-dark: #0A1628;
    --primary-gold: #D4AF37;
    --secondary-gold: #F4E4C1;
    --neutral-light: #F8F6F3;
    --neutral-gray: #8B8680;
    --text-primary: #1A1A1A;
    --text-secondary: #4A4A4A;
    --border-subtle: rgba(212, 175, 55, 0.2);
    --white: #FFFFFF;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing (8px base unit) */
    --space-1: 0.5rem;   /* 8px */
    --space-2: 1rem;     /* 16px */
    --space-3: 1.5rem;   /* 24px */
    --space-4: 2rem;     /* 32px */
    --space-6: 3rem;     /* 48px */
    --space-8: 4rem;     /* 64px */
    --space-12: 6rem;    /* 96px */
    
    /* Border Radius */
    --radius-sm: 2px;
    --radius-md: 8px;
    --radius-lg: 24px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.08);
    --shadow-md: 0 4px 16px rgba(10, 22, 40, 0.12);
    --shadow-lg: 0 8px 32px rgba(10, 22, 40, 0.16);
    
    /* Transitions */
    --transition: 300ms ease-in-out;
    
    /* Max Width */
    --max-width: 1280px;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--neutral-light);
}

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

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

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: var(--space-4);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: var(--space-3);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
    margin-bottom: var(--space-3);
}

h4 {
    font-size: 1.25rem;
    margin-bottom: var(--space-2);
}

p {
    margin-bottom: var(--space-3);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-gold {
    color: var(--primary-gold);
}

.text-uppercase {
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

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

/* ========================================
   LAYOUT UTILITIES
   ======================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--space-4);
}

.section {
    padding: var(--space-12) 0;
}

.section-sm {
    padding: var(--space-8) 0;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(var(--primary-dark-rgb), 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) var(--space-4);
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.site-logo img {
    height: 40px;
    width: auto;
}

.main-nav ul {
    display: flex;
    gap: var(--space-6);
    align-items: center;
}

.main-nav a {
    color: var(--white);
    font-weight: 500;
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

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

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

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: var(--space-1);
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    font-weight: 600;
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--primary-gold);
    color: var(--primary-dark);
    border: 2px solid var(--primary-gold);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary-gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-gold);
    border: 2px solid var(--primary-gold);
}

.btn-secondary:hover {
    background: var(--primary-gold);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-dark {
    background: var(--primary-dark);
    color: var(--white);
    border: 2px solid var(--primary-dark);
}

.btn-dark:hover {
    background: transparent;
    color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* Background set dynamically from admin settings */
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.8), rgba(10, 22, 40, 0.4));
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    padding: var(--space-4);
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    color: var(--white);
    margin-bottom: var(--space-3);
}

.hero-subheading {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: var(--space-6);
    color: var(--secondary-gold);
}

.hero-cta {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    flex-wrap: wrap;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   STATS BAR
   ======================================== */
.stats-bar {
    background: var(--primary-dark);
    padding: var(--space-8) 0;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 64px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--white);
    gap: 16px;
    min-width: 200px;
}

.stat-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--primary-gold);
}

.stat-icon img,
.stat-icon svg {
    width: 32px;
    height: 32px;
    max-width: 32px;
    max-height: 32px;
    display: block;
    object-fit: contain;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-gold);
    line-height: 1;
    margin: 0;
    display: block;
    margin-bottom: var(--space-1);
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    margin: 0;
}

/* Mobile responsive for stats */
@media (max-width: 768px) {
    .stats-grid {
        flex-direction: column;
        gap: 32px;
        padding: 0 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-icon {
        width: 56px;
        height: 56px;
    }
    
    .stat-icon img,
    .stat-icon svg {
        width: 28px;
        height: 28px;
    }
}

/* ========================================
   LIFESTYLE PILLARS GRID
   ======================================== */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-4);
}

.pillar-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-subtle);
    background: var(--white);
    transition: all var(--transition);
    cursor: pointer;
}

.pillar-card:hover {
    border-color: var(--primary-gold);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.pillar-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

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

.pillar-card:hover .pillar-image img {
    transform: scale(1.08);
}

.pillar-content {
    padding: var(--space-4);
}

.pillar-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.pillar-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
}

.pillar-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    color: var(--primary-gold);
    font-weight: 600;
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pillar-link:hover {
    gap: var(--space-2);
}

/* ========================================
   BLOG CARDS
   ======================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-4);
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid var(--border-subtle);
    transition: all var(--transition);
}

.blog-card:hover {
    border-color: var(--primary-gold);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.blog-card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: var(--space-4);
}

.blog-meta {
    display: flex;
    gap: var(--space-2);
    align-items: center;
    margin-bottom: var(--space-2);
    font-size: 0.875rem;
}

.blog-category {
    display: inline-block;
    padding: var(--space-1) var(--space-2);
    background: var(--secondary-gold);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-sm);
}

.blog-date {
    color: var(--neutral-gray);
}

.blog-card-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-2);
    line-height: 1.3;
}

.blog-card-title a {
    color: var(--text-primary);
}

.blog-card-title a:hover {
    color: var(--primary-gold);
}

.blog-excerpt {
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
    line-height: 1.6;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: var(--space-8) 0 var(--space-4);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

.footer-section h3 {
    color: var(--primary-gold);
    margin-bottom: var(--space-3);
}

.footer-section p {
    color: var(--secondary-gold);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-disclaimer {
    font-size: 0.8125rem;
    color: rgba(244, 228, 193, 0.7);
    font-style: italic;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.social-links {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-3);
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 2px solid var(--primary-gold);
    border-radius: 50%;
    color: var(--primary-gold);
    font-size: 1.25rem;
    transition: all var(--transition);
}

.social-links a:hover {
    background: var(--primary-gold);
    color: var(--primary-dark);
    transform: translateY(-4px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-subtle);
    color: var(--secondary-gold);
    font-size: 0.875rem;
}

/* ========================================
   HOMEPAGE BLOG SECTION - GRID LAYOUT
   ======================================== */

/* Homepage Blog Section */
.homepage-blog-section {
    padding: 96px 0;
    background: var(--neutral-light);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--neutral-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Grid - 3 Columns */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

/* Blog Card */
.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Featured Image */
.blog-card-image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #E0E0E0;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

/* Category Badge */
.category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary-gold);
    color: var(--primary-dark);
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

/* Card Content */
.blog-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 12px;
}

.blog-card-title a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-card-title a:hover {
    color: var(--primary-gold);
}

.blog-card-excerpt {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

/* Meta Info */
.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--neutral-gray);
    margin-bottom: 16px;
}

.separator {
    color: #D0D0D0;
}

/* Read More Link */
.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-gold);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: gap 0.2s;
    margin-top: auto;
}

.read-more-link:hover {
    gap: 12px;
}

/* Section Footer */
.section-footer {
    text-align: center;
}

.btn-secondary-outline {
    display: inline-block;
    padding: 16px 48px;
    background: transparent;
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-secondary-outline:hover {
    background: var(--primary-gold);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */

/* Tablet (2 columns for blog grid) */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--primary-dark);
        padding: var(--space-8) var(--space-4);
        transition: right var(--transition);
        z-index: 999;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: var(--space-4);
    }
    
    .hero {
        min-height: 70vh;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .pillars-grid {
        grid-template-columns: 1fr;
    }
    
    /* Homepage Blog Section Mobile */
    .homepage-blog-section {
        padding: 64px 0;
    }
    
    .section-header {
        margin-bottom: 48px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .blog-card-title {
        font-size: 1.25rem;
    }
    
    .category-badge {
        top: 12px;
        left: 12px;
        font-size: 0.7rem;
        padding: 4px 12px;
    }
    
    .section {
        padding: var(--space-8) 0;
    }
}

/* ========================================
   UTILITIES
   ======================================== */
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.hidden {
    display: none !important;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ========================================
   FEATURED ARTICLES - 4 COLUMN GRID
   ======================================== */
.featured-articles-section {
    padding: 96px 0;
    background: white;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: var(--space-6);
}

.featured-card {
    background: var(--neutral-light);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.featured-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.featured-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-card:hover .featured-card-image img {
    transform: scale(1.05);
}

.featured-card-content {
    padding: var(--space-3);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.featured-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: var(--space-2);
    color: var(--primary-dark);
}

.featured-card-title a {
    color: inherit;
}

.featured-card-title a:hover {
    color: var(--primary-gold);
}

.featured-card-excerpt {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
    flex: 1;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary-gold);
    transition: all 0.2s;
}

.read-more-link:hover {
    gap: 12px;
    color: var(--primary-dark);
}

/* Responsive Featured Grid */
@media (max-width: 1024px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-articles-section {
        padding: 64px 0;
    }
}

