/* Satin & Skin - Core Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Color Palette - Light Theme (Satin Plaster) */
    --bg: #FDFBF7;
    --text: #2D2D2D;
    --muted: #6B6661;
    --accent-beige: #F2EDE4;
    --accent-pink: #F9F2F0;
    --border: rgba(45, 45, 45, 0.08);
    --border-hover: rgba(45, 45, 45, 0.2);
    --card-bg: #FFFFFF;
    --shadow-color: rgba(45, 45, 45, 0.05);
    --plaster-shadow: 0 10px 40px -10px var(--shadow-color);
    --satin-glow: inset 0 0 40px rgba(255, 255, 255, 0.4);
    
    /* UI Control Variables */
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --header-height: 90px;
    --cursor-color: #2D2D2D;
}

[data-theme="dark"] {
    /* Color Palette - Dark Theme (Charcoal Silk) */
    --bg: #121212;
    --text: #E6E6E6;
    --muted: #A39E98;
    --accent-beige: #1C1B19;
    --accent-pink: #242120;
    --border: rgba(230, 230, 230, 0.1);
    --border-hover: rgba(230, 230, 230, 0.25);
    --card-bg: #181818;
    --shadow-color: rgba(0, 0, 0, 0.4);
    --plaster-shadow: 0 10px 40px -10px var(--shadow-color);
    --satin-glow: inset 0 0 40px rgba(0, 0, 0, 0.6);
    --cursor-color: #E6E6E6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg);
    overflow-x: hidden;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.8s cubic-bezier(0.16, 1, 0.3, 1), color 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Plaster Grain Texture Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url("https://www.transparenttextures.com/patterns/natural-paper.png");
    opacity: 0.025;
    pointer-events: none;
    z-index: 9999;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Page Transitions */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Layout Sections */
section {
    padding: 100px 0;
    position: relative;
}

.page-header {
    padding-top: 160px;
    padding-bottom: 60px;
    text-align: center;
}

.page-header h1 {
    font-size: clamp(3rem, 7vw, 4.5rem);
    margin-bottom: 16px;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 18px 40px;
    background: var(--accent-beige);
    color: var(--text);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: var(--plaster-shadow);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.btn:hover::after {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    background: var(--accent-pink);
    box-shadow: 0 15px 35px var(--shadow-color);
    border-color: var(--border-hover);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--accent-beige);
}

.btn-full {
    display: block;
    width: 100%;
    text-align: center;
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

/* Grid System */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

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

/* Responsive Rules */
@media (max-width: 968px) {
    .container {
        padding: 0 24px;
    }
    
    section {
        padding: 70px 0;
    }
    
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .page-header {
        padding-top: 130px;
        padding-bottom: 40px;
    }

    /* Hero section mobile ordering: Title -> Subtitle -> Photo -> Options */
    #hero .grid-2 {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    #hero .hero-content {
        display: contents;
    }

    #hero .hero-content h1 {
        order: 1;
        margin-bottom: 16px !important;
    }

    #hero .hero-content p {
        order: 2;
        margin-bottom: 24px !important;
    }

    #hero .hero-image-wrapper {
        order: 3;
        width: 100%;
        margin-bottom: 24px;
    }

    #hero .hero-image-wrapper > div {
        height: 380px !important;
        border-radius: 30px !important;
    }

    #hero .hero-grid {
        order: 4;
        width: 100%;
    }
}
