/**
 * JiyaneDesign - Layout Styles
 * Responsive grid systems and layout utilities
 */

/* ===== GRID LAYOUTS ===== */

/* Services Grid - 3 columns on desktop */
.grid-services {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}

@media (min-width: 768px) {
    .grid-services {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-services {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Features Grid - 2 columns */
.grid-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-10);
}

@media (min-width: 768px) {
    .grid-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Process Steps Grid */
.grid-process {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    position: relative;
}

@media (min-width: 768px) {
    .grid-process {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-process {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Two Column Layout */
.layout-two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    align-items: center;
}

@media (min-width: 768px) {
    .layout-two-col {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 180px;
    /* Navbar offset */
    background: linear-gradient(180deg, var(--bg-body) 0%, var(--bg-surface-alt) 100%);
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero {
        padding-top: 180px;
        min-height: auto;
        padding-bottom: var(--space-12);
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 90% 10%, rgba(212, 175, 55, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    align-items: center;
}

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

.hero-content {
    color: var(--text-body);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    background-color: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-primary);
    margin-bottom: var(--space-6);
}

.hero-title {
    font-size: clamp(var(--text-3xl), 8vw, var(--text-6xl));
    line-height: 1.1;
    color: var(--text-heading);
    margin-bottom: var(--space-6);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: var(--text-4xl);
    }

    .hero-description {
        font-size: var(--text-lg);
    }
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: var(--text-xl);
    line-height: var(--leading-relaxed);
    color: var(--text-muted);
    margin-bottom: var(--space-10);
    max-width: 600px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-img-light,
.hero-img-dark {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Default state (Light Mode) */
.hero-img-light {
    display: block;
    opacity: 1;
}

.hero-img-dark {
    display: none;
    opacity: 0;
}

/* Dark Mode State */
[data-theme="dark"] .hero-img-light {
    display: none;
    opacity: 0;
}

[data-theme="dark"] .hero-img-dark {
    display: block;
    opacity: 1;
    /* Premium Glow Effect for the Logo */
    /* Premium Glow Effect for the Logo - Reduced intensity to prevent artifacts */
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.3));
    transform: scale(1.2);
    /* Further scale up for effect */
    max-width: 100%;
    height: auto;
}

.hero-img-light {
    max-width: 100%;
    height: auto;
    transform: scale(1.15);
}


/* Dark Mode Hero Image Adaptation - REMOVED GENERIC FILTER to avoid conflict with Premium Logo */
/* The layout now relies on swapping .hero-img-light and .hero-img-dark explicitly */


/* ===== FOOTER ===== */
.footer {
    background-color: var(--bg-footer);
    color: var(--text-muted);
    padding: var(--space-20) 0 var(--space-8);
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-16);
}

@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        align-items: start;
        /* Align all columns to the top */
    }
}

.footer-brand {
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    margin-bottom: var(--space-4);
    /* Adjust for logo whitespace to align with other columns */
    margin-top: -40px;
}

.footer-logo img {
    height: 130px;
    /* Much larger logo */
    width: auto;
    display: block;
}

.footer-description {
    color: var(--color-gray-400);
    margin-bottom: var(--space-6);
}

.footer-social {
    display: flex;
    gap: var(--space-4);
    flex-wrap: nowrap;
    gap: var(--space-4);
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-base);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    transition: all var(--transition-base);
}

.footer-social-link:hover {
    background-color: var(--color-primary);
    transform: translateY(-2px);
}

.footer-section-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--color-white);
    margin-bottom: var(--space-6);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--space-3);
}

.footer-links a {
    color: var(--color-gray-400);
    transition: color var(--transition-base);
}

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

.footer-bottom {
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-copyright {
    font-size: var(--text-sm);
    color: var(--color-gray-500);
}

.footer-legal {
    display: flex;
    gap: var(--space-6);
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-legal a {
    font-size: var(--text-sm);
    color: var(--color-gray-500);
}

.footer-legal a:hover {
    color: var(--color-primary);
}

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

/* Show/Hide on breakpoints */
.mobile-only {
    display: block;
}

.desktop-only {
    display: none;
}

@media (min-width: 768px) {
    .mobile-only {
        display: none;
    }

    .desktop-only {
        display: block;
    }
}

/* ===== SPACING SECTIONS ===== */
.section-light {
    background-color: var(--bg-surface-alt);
}

.section-dark {
    background-color: var(--bg-footer);
    /* Keep dark sections dark but use footer token or new one */
    color: var(--color-white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
    color: var(--color-white);
}

.section-dark p {
    color: var(--color-gray-300);
}