/* Design System - Din Frisör */

:root {
    --bg-primary: #F5F0EB;
    --bg-dark: #0a0a0a;
    --text-primary: #1A1A1A;
    --text-secondary: #4A4A4A;
    --text-light: #e8e4e0;
    --accent: #A89080;
    --border: #E8E4E0;
    --bg-secondary: #F5F0EB;

    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Inter', sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.2;
}

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

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

/* ============================================
   LANDING / HERO SECTION (Cafe Pascal style)
   ============================================ */

.landing {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-dark);
    overflow: hidden;
}

/* Background image — starts invisible, fades in */
.landing-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/hero.png');
    background-size: cover;
    background-position: center;
    z-index: 0;
    opacity: 0;
    transition: opacity 1.3s ease-in-out;
}

.landing-bg.visible {
    opacity: 0.3;
}

/* Centered content */
.landing-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Tagline above logo */
.tagline {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.95s ease-in-out, transform 1.05s ease-out;
}

.tagline.visible {
    opacity: 1;
    transform: translateY(0);
}

/* The logo */
.site-logo {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--text-light);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.95s ease-in-out, transform 1.05s ease-out;
}

.site-logo.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Underline */
.logo-underline {
    width: 80px;
    height: 1px;
    background-color: var(--accent);
    margin: 1.5rem auto 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 1.05s ease-in-out;
}

.logo-underline.visible {
    transform: scaleX(1);
}

/* Navigation at bottom of landing */
.landing-nav {
    position: absolute;
    bottom: 3rem;
    z-index: 2;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-out;
}

.landing-nav.visible {
    opacity: 1;
    transform: translateY(0);
}

.landing-nav ul {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.landing-nav a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-light);
    opacity: 0.6;
}

.landing-nav a:hover {
    opacity: 1;
    color: var(--accent);
}

/* ============================================
   REST OF THE SITE
   ============================================ */

.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    background-color: var(--accent);
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn:hover {
    background-color: var(--accent);
    opacity: 0.9;
    transform: translateY(-5px) scale(1.02);
}

/* Sections */
section:not(.landing) {
    padding: var(--spacing-xl) 10%;
    background-color: var(--bg-primary);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-title .subtitle,
.details-content .subtitle {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.8rem;
    color: var(--accent);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
}

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

.service-image {
    width: 100%;
    aspect-ratio: 4/5;
    background-size: cover;
    background-position: center;
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
    filter: grayscale(20%);
}


.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* About / Details */
.details-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 8rem;
    background-color: var(--bg-secondary) !important;
}

.details-content h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

.details-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.details-image img {
    width: 100%;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.05);
}

/* Booking */
.booking-section {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.booking-section h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.contact-info {
    margin-top: 5rem;
    display: flex;
    justify-content: center;
    gap: 5rem;
    max-width: 100%;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.info-item p {
    font-size: 1.1rem;
}

@media (min-width: 769px) {
    .info-item p {
        white-space: nowrap;
    }
}

.info-item h4 {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

/* Footer */
footer {
    padding: var(--spacing-lg) 10%;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    background-color: var(--bg-primary);
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 2rem;
}

.social-links {
    display: flex;
    gap: 2rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .details-section {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .details-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .landing-nav ul {
        gap: 1.5rem;
    }

    .landing-nav a {
        font-size: 0.75rem;
    }

    .section-title h2 {
        font-size: 2.5rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 2rem;
    }

    footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 3rem;
    }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
