/* ========================================
   BECKY YATES PILATES - Styles
   Inspired by ashleypattenpilates.com
   ======================================== */

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

:root {
    --color-bg: #FFFFFF;
    --color-bg-alt: #F9F7F4;
    --color-text: #1a1a1a;
    --color-text-light: #6b6b6b;
    --color-accent: #C4A882;
    --color-accent-dark: #a8905e;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --spacing-section: clamp(80px, 10vw, 140px);
    --spacing-container: clamp(20px, 5vw, 80px);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

.section {
    padding: var(--spacing-section) 0;
}

/* ========================================
   NAVIGATION
   ======================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.3s ease;
}

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

.nav-logo {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 3px;
    color: var(--color-text);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-text-light);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

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

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--color-text);
    transition: all 0.3s ease;
}

/* ========================================
   HERO
   ======================================== */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0.35) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: 36px;
    letter-spacing: -0.5px;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 16px 36px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--color-text);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-accent-dark);
}

.hero .btn-primary {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    backdrop-filter: blur(4px);
}

.hero .btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: #fff;
}

/* ========================================
   SECTION LABELS & TITLES
   ======================================== */

.section-label {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 40px;
    color: var(--color-text);
}

/* ========================================
   ABOUT
   ======================================== */

.about {
    background: var(--color-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    object-position: center 60%;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--color-text-light);
    font-size: 15px;
    line-height: 1.8;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* ========================================
   SERVICES
   ======================================== */

.services {
    background: var(--color-bg-alt);
    text-align: center;
}

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

.service-card {
    background: var(--color-bg);
    padding: 48px 32px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.service-icon {
    color: var(--color-accent);
    margin-bottom: 24px;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 16px;
    color: var(--color-text);
}

.service-card p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.service-price {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-accent);
    font-weight: 400;
}

.services-cta {
    text-align: center;
}

/* ========================================
   GALLERY
   ======================================== */

.gallery {
    background: var(--color-bg);
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 16px;
}

.gallery-item {
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-item-tall {
    grid-row: span 2;
}

.gallery-item-tall img {
    height: 100%;
}

.gallery-item-wide {
    grid-column: span 2;
}

.gallery-item-wide img {
    height: 300px;
}

.gallery-item-class img {
    object-position: center 60%;
}

/* ========================================
   CONTACT
   ======================================== */

.contact {
    background: var(--color-bg-alt);
    text-align: center;
}

.contact-content {
    max-width: 560px;
    margin: 0 auto;
}

.contact-title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--color-text);
}

.contact-text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 12px;
}

.contact-location {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 36px;
}

.btn-instagram svg {
    flex-shrink: 0;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: var(--color-text);
    color: rgba(255, 255, 255, 0.7);
    padding: 48px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 3px;
    color: #fff;
}

.footer-location {
    font-size: 13px;
    letter-spacing: 1px;
}

.footer-social {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
    margin: 8px 0;
}

.footer-social:hover {
    color: var(--color-accent);
}

.footer-copy {
    font-size: 12px;
    margin-top: 8px;
    opacity: 0.5;
}

/* ========================================
   RESPONSIVE - Tablet
   ======================================== */

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image img {
        height: 400px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

    .gallery-item-tall {
        grid-row: span 1;
    }

    .gallery-item-tall img {
        height: 300px;
    }

    .gallery-item-wide {
        grid-column: span 2;
    }
}

/* ========================================
   RESPONSIVE - Mobile
   ======================================== */

@media (max-width: 640px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        z-index: 999;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        pointer-events: none;
        transition: max-height 0.3s ease, padding 0.3s ease;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-menu.active {
        max-height: 280px;
        padding: 16px 0;
        pointer-events: all;
    }

    .nav-menu .nav-link {
        color: var(--color-text);
    }

    .nav-link {
        display: block;
        padding: 14px 0;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -5px);
    }

    .hero {
        height: 70vh;
        min-height: 420px;
    }

    .hero-image img {
        object-position: center top;
    }

    .hero-title {
        font-size: clamp(32px, 10vw, 48px);
    }

    .about-image img {
        height: 350px;
    }

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

    .gallery-item-wide {
        grid-column: span 1;
    }

    .gallery-item img,
    .gallery-item-wide img {
        height: 250px;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Transparent nav at top of page */
.nav:not(.scrolled) {
    background: transparent;
    border-bottom-color: transparent;
}

.nav:not(.scrolled) .nav-logo {
    color: #fff;
}

.nav:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.nav:not(.scrolled) .nav-link:hover {
    color: #fff;
}

.nav:not(.scrolled) .nav-toggle span {
    background: #fff;
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}
