/*
Theme Name: Olai Marble
Theme URI: https://example.com/olai-marble
Author: Olai Marble
Description: Premium responsive WordPress theme for Olai Marble and Minerals, based on the supplied HTML homepage.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: olai-marble
*/

.olai-hero {
    --olai-bg-start: #1a1c22;
    --olai-bg-middle: #2a2d36;
    --olai-bg-end: #41454f;
    --olai-text: #f5f0e7;
    --olai-accent: #c8a977;

    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    background: var(--olai-bg-middle);
    color: var(--olai-text);
}

.olai-hero *,
.olai-hero *::before,
.olai-hero *::after {
    box-sizing: border-box;
}

.olai-hero__background {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background-color: var(--olai-bg-middle);
    background-image:
        radial-gradient(
            120% 90% at 20% 15%,
            var(--olai-bg-start) 0%,
            transparent 55%
        ),
        radial-gradient(
            100% 80% at 85% 80%,
            var(--olai-bg-end) 0%,
            transparent 50%
        ),
        linear-gradient(
            115deg,
            var(--olai-bg-start) 0%,
            var(--olai-bg-middle) 45%,
            var(--olai-bg-end) 100%
        );
}

.olai-hero__grain {
    position: absolute;
    inset: 0;
    opacity: 0.16;
    pointer-events: none;
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

.olai-hero__texture {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: repeating-linear-gradient(
        125deg,
        rgba(255, 255, 255, 0.14) 0,
        transparent 3px,
        rgba(0, 0, 0, 0.06) 7px,
        transparent 14px
    );
}

.olai-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(15, 17, 22, 0.96) 0%,
        rgba(15, 17, 22, 0.72) 48%,
        rgba(15, 17, 22, 0.30) 100%
    );
}

.olai-hero__container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 112px 40px 80px;
}

.olai-hero__content {
    max-width: 820px;
}

.olai-hero__eyebrow {
    margin: 0 0 32px;
    color: rgba(245, 240, 231, 0.70);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.20em;
    line-height: 1.6;
    text-transform: uppercase;
}

.olai-hero__heading {
    margin: 0;
    color: var(--olai-text);
    font-family: inherit;
    font-size: clamp(38px, 5.4vw, 76px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.045em;
    overflow-wrap: anywhere;
}

.olai-hero__tagline {
    margin: 20px 0 0;
    color: var(--olai-accent);
    font-family: Georgia, serif;
    font-size: clamp(26px, 3vw, 40px);
    font-style: italic;
    line-height: 1.3;
}

.olai-hero__description {
    max-width: 600px;
    margin: 30px 0 0;
    color: rgba(245, 240, 231, 0.82);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.8;
}

.olai-hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 40px;
}

.olai-hero__button {
    display: inline-flex;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 28px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    text-decoration: none !important;
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.olai-hero__button--primary {
    background: var(--olai-text);
    color: #1a1c22;
}

.olai-hero__button--primary:hover {
    background: #ffffff;
    color: #1a1c22;
    transform: translateY(-2px);
}

.olai-hero__button--primary svg {
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.olai-hero__button--primary:hover svg {
    transform: translate(2px, -2px);
}

.olai-hero__button--secondary {
    border-color: rgba(245, 240, 231, 0.30);
    color: var(--olai-text);
    background: transparent;
}

.olai-hero__button--secondary:hover {
    border-color: rgba(245, 240, 231, 0.60);
    background: rgba(245, 240, 231, 0.10);
    color: #ffffff;
}

@media (max-width: 767px) {
    .olai-hero {
        min-height: 100svh;
    }

    .olai-hero__container {
        padding: 120px 24px 64px;
    }

    .olai-hero__content {
        max-width: 100%;
    }

    .olai-hero__eyebrow {
        margin-bottom: 24px;
        font-size: 11px;
    }

    .olai-hero__heading {
        font-size: clamp(34px, 9vw, 48px);
        line-height: 1.12;
    }

    .olai-hero__tagline {
        margin-top: 16px;
    }

    .olai-hero__description {
        margin-top: 22px;
        font-size: 16px;
        line-height: 1.75;
    }

    .olai-hero__buttons {
        margin-top: 30px;
    }

    .olai-hero__button {
        min-height: 52px;
        padding: 14px 22px;
    }
}

@media (max-width: 480px) {
    .olai-hero__buttons {
        align-items: stretch;
        flex-direction: column;
    }

    .olai-hero__button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .olai-hero__button,
    .olai-hero__button svg {
        transition: none;
    }
}

