/* ==========================================================
   scriptgrapher.com - Swiss Marble Observatory
   Colors: #FFF0F0, #A0C8E8, #E8A0A0, #2A2A30, #5A5A60, #FAF8F5
   Fonts: Lora (serif), Inter (sans-serif)
   ========================================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.7;
    color: #5A5A60;
    background-color: #FFF0F0;
    overflow-x: hidden;
    position: relative;
}

/* --- Skeleton Loading Overlay --- */
#skeleton-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    background-color: #FFF0F0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#skeleton-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.skeleton-hero {
    width: 60%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.skeleton-line {
    border-radius: 4px;
    background: linear-gradient(90deg, #FAF8F5 25%, #FFF0F0 50%, #FAF8F5 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.8s ease-in-out infinite;
}

.skeleton-line--title {
    width: 80%;
    height: 48px;
}

.skeleton-line--subtitle {
    width: 60%;
    height: 24px;
}

.skeleton-line--cta {
    width: 30%;
    height: 16px;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- Particles --- */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    opacity: 0.4;
    animation: particle-drift 20s linear infinite;
}

.particle--rose {
    background-color: #E8A0A0;
}

.particle--blue {
    background-color: #A0C8E8;
}

@keyframes particle-drift {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-100vh) translateX(40px);
        opacity: 0;
    }
}

/* --- Marble Overlay --- */
.marble-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(232, 160, 160, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(160, 200, 232, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(232, 160, 160, 0.04) 0%, transparent 40%),
        radial-gradient(ellipse at 30% 10%, rgba(250, 248, 245, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 70%, rgba(250, 248, 245, 0.2) 0%, transparent 50%);
}

/* --- Grid Container (12-col Swiss Grid) --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

/* --- Section Base --- */
.section {
    position: relative;
    padding: 120px 0;
}

.section__title {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #2A2A30;
    line-height: 1.2;
    margin-bottom: 24px;
}

.section__title--light {
    color: #FAF8F5;
}

.section__text {
    color: #5A5A60;
    margin-bottom: 16px;
    line-height: 1.7;
}

/* ==========================================================
   HERO SECTION
   ========================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FAF8F5;
    overflow: hidden;
}

.hero .marble-overlay {
    background:
        radial-gradient(ellipse at 15% 30%, rgba(232, 160, 160, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 60%, rgba(160, 200, 232, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 90%, rgba(232, 160, 160, 0.06) 0%, transparent 40%),
        radial-gradient(ellipse at 25% 80%, rgba(250, 248, 245, 0.5) 0%, transparent 60%),
        radial-gradient(ellipse at 75% 15%, rgba(250, 248, 245, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 40% 50%, rgba(232, 160, 160, 0.03) 0%, transparent 30%);
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: hero-fade-in 1s ease-out 0.4s forwards;
}

@keyframes hero-fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__title {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 5vw, 5rem);
    color: #2A2A30;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.hero__subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #5A5A60;
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.hero__divider {
    width: 60px;
    height: 2px;
    background-color: #E8A0A0;
    margin: 0 auto 24px;
}

.hero__tagline {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    color: #E8A0A0;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* ==========================================================
   ABOUT SECTION
   ========================================================== */
.section--about {
    background-color: #FFF0F0;
}

.about__heading-col {
    grid-column: 1 / 5;
}

.about__text-col {
    grid-column: 5 / 12;
}

/* ==========================================================
   FEATURES SECTION
   ========================================================== */
.section--features {
    background-color: #FAF8F5;
}

.features__heading-col {
    grid-column: 1 / 13;
    text-align: center;
    margin-bottom: 40px;
}

.features__cards {
    grid-column: 1 / 13;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.feature-card {
    background-color: #FFF0F0;
    border-radius: 8px;
    padding: 40px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(232, 160, 160, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(160, 200, 232, 0.04) 0%, transparent 60%);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(42, 42, 48, 0.06);
}

.feature-card__icon {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card__title {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #2A2A30;
    margin-bottom: 12px;
}

.feature-card__text {
    font-size: 0.9375rem;
    color: #5A5A60;
    line-height: 1.6;
}

/* ==========================================================
   SHOWCASE SECTION
   ========================================================== */
.section--showcase {
    background-color: #FFF0F0;
}

.showcase__heading-col {
    grid-column: 1 / 13;
    text-align: center;
    margin-bottom: 40px;
}

.showcase__items {
    grid-column: 1 / 13;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.showcase-item {
    overflow: hidden;
    border-radius: 8px;
    background-color: #FAF8F5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.showcase-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(42, 42, 48, 0.06);
}

.showcase-item__visual {
    height: 200px;
    overflow: hidden;
}

.showcase-item__marble-swatch {
    width: 100%;
    height: 100%;
    position: relative;
}

.showcase-item__marble-swatch--rose {
    background:
        radial-gradient(ellipse at 30% 40%, rgba(232, 160, 160, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 70%, rgba(255, 240, 240, 0.6) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 20%, rgba(232, 160, 160, 0.15) 0%, transparent 40%),
        linear-gradient(135deg, #FFF0F0 0%, #f5d5d5 100%);
}

.showcase-item__marble-swatch--blue {
    background:
        radial-gradient(ellipse at 25% 35%, rgba(160, 200, 232, 0.35) 0%, transparent 60%),
        radial-gradient(ellipse at 75% 65%, rgba(250, 248, 245, 0.5) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(160, 200, 232, 0.15) 0%, transparent 40%),
        linear-gradient(135deg, #FAF8F5 0%, #d0e4f0 100%);
}

.showcase-item__marble-swatch--charcoal {
    background:
        radial-gradient(ellipse at 20% 50%, rgba(90, 90, 96, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 30%, rgba(42, 42, 48, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 70%, rgba(90, 90, 96, 0.1) 0%, transparent 40%),
        linear-gradient(135deg, #5A5A60 0%, #2A2A30 100%);
}

.showcase-item__info {
    padding: 28px;
}

.showcase-item__title {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: #2A2A30;
    margin-bottom: 8px;
}

.showcase-item__text {
    font-size: 0.9375rem;
    color: #5A5A60;
    line-height: 1.6;
}

/* ==========================================================
   FOOTER / CONTACT
   ========================================================== */
.footer {
    position: relative;
    padding: 100px 0 60px;
    background-color: #2A2A30;
    overflow: hidden;
}

.footer .marble-overlay {
    background:
        radial-gradient(ellipse at 20% 40%, rgba(232, 160, 160, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 60%, rgba(160, 200, 232, 0.04) 0%, transparent 50%);
}

.footer__heading-col {
    grid-column: 1 / 5;
}

.footer__content-col {
    grid-column: 5 / 12;
}

.footer__text {
    color: rgba(250, 248, 245, 0.7);
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer__link {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: #E8A0A0;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.footer__link:hover {
    border-bottom-color: #E8A0A0;
}

.footer__bottom {
    grid-column: 1 / 13;
    margin-top: 80px;
    padding-top: 24px;
    border-top: 1px solid rgba(250, 248, 245, 0.1);
}

.footer__copyright {
    font-size: 0.8125rem;
    color: rgba(250, 248, 245, 0.4);
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1024px) {
    .features__cards {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .grid-container {
        padding: 0 24px;
        gap: 16px;
    }

    .section {
        padding: 80px 0;
    }

    .about__heading-col {
        grid-column: 1 / 13;
    }

    .about__text-col {
        grid-column: 1 / 13;
    }

    .features__cards {
        grid-template-columns: 1fr;
    }

    .showcase__items {
        grid-template-columns: 1fr;
    }

    .footer__heading-col {
        grid-column: 1 / 13;
    }

    .footer__content-col {
        grid-column: 1 / 13;
    }

    .hero__title {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
}

@media (max-width: 480px) {
    .grid-container {
        padding: 0 16px;
    }

    .section {
        padding: 60px 0;
    }

    .feature-card {
        padding: 28px 20px;
    }
}
