/* =================================
   EDITORIAL LUXURY DESIGN SYSTEM
   ================================= */

:root {
    --color-burgundy: #8B1538;
    --color-burgundy-dark: #6B0F28;
    --color-cream: #FAF7F2;
    --color-charcoal: #2D2D2D;
    --color-gold: #D4AF37;
    --color-text: #2D2D2D;
    --color-text-muted: #666666;
    --color-border: #E8E1D8;

    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Outfit', sans-serif;

    --transition-smooth: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-cream);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px;
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
}

/* =================================
   HEADER
   ================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 247, 242, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-burgundy);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: var(--transition-smooth);
}

.logo:hover {
    color: var(--color-burgundy-dark);
    transform: translateY(-2px);
}

.main-nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--color-text);
    text-decoration: none;
    position: relative;
    transition: var(--transition-smooth);
    letter-spacing: 0.02em;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-burgundy);
    transition: var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link-cta {
    background: var(--color-burgundy);
    color: white;
    padding: 0.7rem 1.8rem;
    border-radius: 0;
    font-weight: 500;
}

.nav-link-cta::after {
    display: none;
}

.nav-link-cta:hover {
    background: var(--color-burgundy-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 21, 56, 0.25);
}

/* Mobile Menu Button (Hidden on Desktop) */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background: var(--color-burgundy);
    transition: var(--transition-smooth);
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* =================================
   HERO SECTION
   ================================= */

.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding: 4rem 3rem;
    background: linear-gradient(135deg, #FAF7F2 0%, #F5EFE7 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 120%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6rem;
    align-items: center;
    position: relative;
}

.hero-eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-burgundy);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 5.5rem;
    line-height: 1.1;
    font-weight: 600;
    color: var(--color-charcoal);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.hero-title-accent {
    color: var(--color-burgundy);
    font-style: italic;
    font-weight: 300;
    display: block;
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.hero-visual {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.hero-image {
    width: 100%;
    max-width: 450px;
    border-radius: 32px;
    height: auto;
    filter: drop-shadow(0 20px 60px rgba(45, 45, 45, 0.15));
    position: relative;
    z-index: 2;
}

.hero-image-accent {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--color-gold) 0%, transparent 70%);
    opacity: 0.1;
    z-index: 1;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.05); opacity: 0.15; }
}

/* =================================
   BUTTONS
   ================================= */

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--color-burgundy);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 21, 56, 0.2);
}

.btn-primary:hover {
    background: var(--color-burgundy-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 21, 56, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 1.5px solid var(--color-charcoal);
}

.btn-secondary:hover {
    background: var(--color-charcoal);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(45, 45, 45, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--color-burgundy);
    border: 1.5px solid var(--color-burgundy);
    padding: 0.9rem 2.2rem;
}

.btn-outline:hover {
    background: var(--color-burgundy);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(139, 21, 56, 0.25);
}

/* =================================
   SECTIONS
   ================================= */

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 3rem;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--color-charcoal);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* =================================
   BLOG SECTION
   ================================= */

.blog-section {
    background: var(--color-cream);
    position: relative;
}

.blog-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--color-border), transparent);
}

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

.blog-card {
    background: var(--color-cream);
    overflow: hidden;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(45, 45, 45, 0.1);
}

.blog-image {
    width: 100%;
    height: 280px;
    background-size: cover;
    background-position: center;
    transition: var(--transition-smooth);
}

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

.blog-content {
    padding: 2rem;
}

.blog-category {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-burgundy);
    font-weight: 500;
    display: block;
    margin-bottom: 0.8rem;
}

.blog-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-charcoal);
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.blog-excerpt {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.blog-link {
    font-size: 0.9rem;
    color: var(--color-burgundy);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: var(--transition-smooth);
}

.blog-link:hover {
    color: var(--color-burgundy-dark);
    transform: translateX(5px);
}

/* =================================
   TEMPLATES SECTION
   ================================= */

.templates-section {
    background: linear-gradient(180deg, var(--color-cream) 0%, #F5EFE7 100%);
    position: relative;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3.5rem;
    margin-bottom: 4rem;
}

.template-card {
    background: white;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.template-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(45, 45, 45, 0.15);
}

.template-image-wrapper {
    position: relative;
    overflow: hidden;
    background: white;
    padding: 3rem;
    aspect-ratio: 4/5;
}

.template-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.template-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(139, 21, 56, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.template-card:hover .template-overlay {
    opacity: 1;
}

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

.template-btn {
    background: white;
    color: var(--color-burgundy);
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-bounce);
    transform: translateY(20px);
}

.template-card:hover .template-btn {
    transform: translateY(0);
}

.template-btn:hover {
    background: var(--color-gold);
    color: white;
}

.template-info {
    padding: 2rem;
    border-top: 1px solid var(--color-border);
}

.template-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-charcoal);
    margin-bottom: 0.5rem;
}

.template-description {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

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

/* =================================
   FOOTER
   ================================= */

.site-footer {
    background: linear-gradient(180deg, var(--color-charcoal) 0%, #1F1F1F 100%);
    color: white;
    padding: 5rem 3rem 2rem;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-burgundy), transparent);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 6rem;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: var(--color-cream);
    letter-spacing: 0.02em;
}

.footer-brand p {
    font-family: var(--font-body);
    color: rgba(255, 255, 255, 0.65);
    font-size: 1rem;
    line-height: 1.8;
    max-width: 450px;
}

.footer-links {
    display: flex;
    gap: 5rem;
    justify-content: flex-end;
}

.footer-column h4 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--color-burgundy);
}

.footer-column a {
    display: block;
    font-family: var(--font-body);
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 0.9rem;
    transition: var(--transition-smooth);
    position: relative;
    padding-left: 0;
}

.footer-column a::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 1px;
    background: var(--color-burgundy);
    transition: var(--transition-smooth);
}

.footer-column a:hover {
    color: var(--color-cream);
    padding-left: 20px;
}

.footer-column a:hover::before {
    width: 10px;
}

.footer-bottom {
    padding-top: 2.5rem;
    text-align: center;
}

.footer-bottom p {
    font-family: var(--font-body);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

/* =================================
   ANIMATIONS
   ================================= */

.fade-in {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }
.fade-in:nth-child(5) { animation-delay: 0.5s; }

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

.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =================================
   RESPONSIVE
   ================================= */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-title {
        font-size: 4rem;
    }

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

    .templates-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .footer-links {
        justify-content: flex-start;
        gap: 4rem;
    }

    .footer-brand h3 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    /* Smaller, more compact header */
    .site-header {
        background: rgba(250, 247, 242, 0.98);
    }

    .header-container {
        padding: 0.9rem 1.5rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    /* Show hamburger menu button */
    .mobile-menu-btn {
        display: flex;
    }

    /* Hide navigation by default on mobile */
    .main-nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s ease, opacity 0.4s ease;
        border-bottom: 1px solid var(--color-border);
        box-shadow: 0 4px 20px rgba(45, 45, 45, 0.1);
    }

    /* Show navigation when menu is open */
    .main-nav.mobile-menu-open {
        max-height: 300px;
        opacity: 1;
    }

    .nav-link {
        width: 100%;
        padding: 1.2rem 1.5rem;
        font-size: 0.95rem;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-link::after {
        display: none;
    }

    /* Hide CTA button on mobile */
    .nav-link-cta {
        display: none;
    }

    .hero {
        padding: 3rem 1.5rem;
        min-height: calc(100vh - 60px);
    }

    .hero-title {
        font-size: 3rem;
    }

    .section-container {
        padding: 4rem 1.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .templates-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    /* Footer mobile styles */
    .site-footer {
        padding: 4rem 1.5rem 2rem;
    }

    .footer-content {
        gap: 3rem;
    }

    .footer-brand h3 {
        font-size: 2rem;
    }

    .footer-brand p {
        font-size: 0.95rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 2.5rem;
    }

    .footer-column h4 {
        font-size: 0.75rem;
    }

    .footer-column a {
        font-size: 0.9rem;
    }
}
