/* ========================================
   PETAL SPARK STUDIO - CSS
   Beauty Sort Pastel Design
   Primary: #D4758C (Rose Pink)
   Accent: #9B6FB0 (Lavender)
   Background: #FFFAFB (Soft White)
   ======================================== */

:root {
    --color-primary: #D4758C;
    --color-primary-dark: #C05A74;
    --color-text-primary: #4A2040;
    --color-text-secondary: #7A5070;
    --color-text-muted: #B898A8;
    --color-background: #FFFAFB;
    --color-background-alt: #FFF5F8;
    --color-border: #F0D8E0;
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-24: 6rem;
    
    --transition-base: 250ms ease;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;
    
    --container-max: 1200px;
    --container-padding: 1.5rem;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-background);
}

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

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

@media (min-width: 768px) {
    :root {
        --container-padding: 2rem;
    }
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 250, 251, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.nav.scrolled {
    border-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    transition: opacity 0.15s ease;
}

.nav-logo:hover {
    opacity: 0.7;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    z-index: 1001;
}

.nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text-primary);
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-background);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

.nav-menu.active {
    opacity: 1;
    visibility: visible;
}

.nav-link {
    font-size: 1.5rem;
    font-weight: 500;
    transition: color 0.15s ease;
}

.nav-link:hover {
    color: var(--color-primary);
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }
    
    .nav-menu {
        position: static;
        flex-direction: row;
        opacity: 1;
        visibility: visible;
        background: transparent;
        gap: var(--space-8);
    }
    
    .nav-link {
        font-size: 0.875rem;
        font-weight: 500;
    }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(64px + var(--space-16)) 0 var(--space-16);
    background: linear-gradient(135deg, #FDE8EF 0%, #E8D0F0 50%, #F0E0F8 100%);
}

.hero-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-6);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
}

.hero-scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-full);
    position: relative;
}

.hero-scroll-indicator::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(8px); opacity: 0.5; }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }
}

/* ========================================
   SECTION LABELS & TITLES
   ======================================== */
.section-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-6);
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
    padding: var(--space-24) 0;
    background: var(--color-background-alt);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    align-items: center;
}

.about-content {
    max-width: 540px;
}

.about-text {
    font-size: 1.0625rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-5);
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-12);
    }
}

/* ========================================
   STUDIO SECTION
   ======================================== */
.studio {
    padding: var(--space-24) 0;
}

.studio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    align-items: center;
}

.studio-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    order: -1;
}

.studio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.studio-content {
    max-width: 540px;
}

.studio-text {
    font-size: 1.0625rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-5);
}

@media (min-width: 768px) {
    .studio-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-12);
    }
    
    .studio-image {
        order: 0;
    }
}

/* ========================================
   VALUES SECTION
   ======================================== */
.values {
    padding: var(--space-24) 0;
    background: var(--color-background-alt);
}

.values-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}

.value-card {
    text-align: center;
}

.value-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow-lg);
}

.value-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.value-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-3);
}

.value-text {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

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

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
    padding: var(--space-24) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-10);
    align-items: center;
}

.contact-content {
    max-width: 400px;
}

.contact-address {
    font-size: 1.0625rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    font-style: normal;
}

.contact-map {
    height: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(20%);
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1.5fr;
        gap: var(--space-16);
    }
    
    .contact-map {
        height: 400px;
    }
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: var(--space-6) 0;
    background: #4A2040;
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-align: center;
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: white;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

