/* ============================================
   SEWN THE STITCHERY - STYLESHEET
   Mimics Squarespace design with beige/tan theme
   ============================================ */

/* CSS Variables for easy theming */
:root {
    --primary-bg: #d4c4b0;
    --secondary-bg: #e8dfd5;
    --dark-text: #3a3a3a;
    --light-text: #5a5a5a;
    --border-color: #3a3a3a;
    --button-border: #3a3a3a;
    --white: #ffffff;
    --star-color: #ffd700;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.header-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

/* Mobile */
@media (max-width: 768px) {
    .header-logo {
        height: 50px;
    }
}
body {
    font-family: 'Spectral', 'Georgia', serif;
    background-color: var(--primary-bg);
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-weight: 400;
    letter-spacing: 0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

/* ============================================
   HEADER STYLES
   ============================================ */

   .site-header {
    background-color: var(--primary-bg);
    border-bottom: 1px solid rgba(58, 58, 58, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 30px 0;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-icons {
    display: flex;
    gap: 20px;
    align-items: center;
    flex: 1;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.social-icons svg {
    width: 20px;
    height: 20px;
    stroke: var(--dark-text);
    fill: none;
}

.social-icons svg[fill="currentColor"] {
    fill: var(--dark-text);
    stroke: none;
}

.site-title {
    flex: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.site-title h1 {
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.main-nav {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    padding: 15px 0 5px 0;
    border-top: 1px solid rgba(58, 58, 58, 0.1);
}

.main-nav a {
    font-size: 1rem;
    position: relative;
    padding-bottom: 2px;
}

.main-nav a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--dark-text);
}

.cta-button {
    padding: 12px 30px;
    border: 2px solid var(--button-border);
    background-color: transparent;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-family: inherit;
    white-space: nowrap;
}

.cta-button:hover {
    background-color: var(--dark-text);
    color: var(--white);
    opacity: 1;
}

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

.hero {
    width: 100%;
    min-height: 70vh;
    position: relative;
}

.hero-image {
    width: 100%;
    min-height: 70vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-content {
    text-align: center;
    color: var(--dark-text);
    max-width: 600px;
    padding: 40px;
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 400;
}

.shop-now-button {
    display: inline-block;
    padding: 12px 40px;
    border: 2px solid var(--button-border);
    background-color: transparent;  /* Already transparent */
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shop-now-button:hover {
    background-color: var(--dark-text);
    color: var(--white);
    opacity: 1;
}

/* ============================================
   REVIEWS SECTION
   ============================================ */

.reviews-section {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    padding: 80px 60px;
    background-color: var(--primary-bg);
}

.newsletter-sidebar {
    padding-right: 20px;
}

.newsletter-sidebar h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: 400;
}

.newsletter-sidebar p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--light-text);
    font-size: 0.95rem;
}

.reviews-content {
    border-left: 1px solid rgba(58, 58, 58, 0.3);
    padding-left: 60px;
}

.reviews-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 8px;
}

.review {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(58, 58, 58, 0.2);
}

.review:last-child {
    border-bottom: none;
}

.stars {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--star-color);
}

.review-header {
    display: flex;
    gap: 10px;
    align-items: baseline;
    margin-bottom: 15px;
}

.reviewer-name {
    font-size: 1.1rem;
    text-decoration: underline;
    font-weight: 600;
}

.review-date {
    font-size: 0.95rem;
    color: var(--light-text);
}

.review-text {
    line-height: 1.8;
    color: var(--dark-text);
}

/* ============================================
   CALL TO ACTION SECTION
   ============================================ */

.cta-section {
    text-align: center;
    padding: 100px 60px;
    background-color: var(--secondary-bg);
    border-top: 1px solid rgba(58, 58, 58, 0.2);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-text {
    font-size: 1.3rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.cta-button-secondary {
    display: inline-block;
    padding: 12px 40px;
    border: 2px solid var(--button-border);
    background-color: transparent;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button-secondary:hover {
    background-color: var(--dark-text);
    color: var(--white);
    opacity: 1;
}

/* ============================================
   SERVICES PREVIEW SECTION
   ============================================ */

.services-preview {
    padding: 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.service-item {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--white);
    padding: 20px;
    text-align: center;
    font-size: 1.2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.service-item:hover .service-overlay {
    transform: translateY(0);
}

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

   .site-footer {
    background-color: var(--primary-bg);
    padding: 60px 60px 20px;
    border-top: 1px solid rgba(58, 58, 58, 0.3);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section p {
    line-height: 1.8;
    color: var(--light-text);
    margin-bottom: 15px;
}

.footer-links-section {
    display: flex;
    flex-direction: column;
}

.footer-links-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-column a {
    font-size: 0.95rem;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.footer-column a:hover {
    opacity: 0.7;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-contact h3 {
    margin-bottom: 20px;
}

.contact-email {
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 500;
}

.contact-email a {
    color: var(--dark-text);
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.contact-email a:hover {
    opacity: 0.7;
}

.footer-contact .cta-button {
    display: inline-block;
    margin-top: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 40px;
    border-top: 1px solid rgba(58, 58, 58, 0.2);
    color: var(--light-text);
    font-size: 0.9rem;
}

.shipping-address {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.8;
}

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

@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-links-container {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 40px 20px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-links-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-contact {
        align-items: center;
        text-align: center;
    }
}
/* ============================================
   LAZY LOADING - IMAGE FADE IN & SCROLL ANIMATIONS
   ============================================ */

.lazy-load {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.lazy-load.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for reviews */
.review.lazy-load {
    transition-delay: 0.1s;
}

.review.lazy-load:nth-child(2) {
    transition-delay: 0.2s;
}

.review.lazy-load:nth-child(3) {
    transition-delay: 0.3s;
}

.review.lazy-load:nth-child(4) {
    transition-delay: 0.4s;
}

.review.lazy-load:nth-child(5) {
    transition-delay: 0.5s;
}

/* Service items slide in from sides */
.service-item.lazy-load:nth-child(odd) {
    transform: translateX(-50px);
}

.service-item.lazy-load:nth-child(even) {
    transform: translateX(50px);
}

.service-item.lazy-load.loaded {
    transform: translateX(0);
}

/* Hero section fade in without translate */
.hero.lazy-load {
    transform: none;
    transition: opacity 1s ease-out;
}

.hero.lazy-load.loaded {
    transform: none;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

   @media (max-width: 1200px) {
    .site-header {
        padding: 10px 30px;
    }
    
    .reviews-section {
        grid-template-columns: 250px 1fr;
        gap: 40px;
        padding: 60px 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 20px 20px 0;
        transition: all 0.3s ease;
    }

    /* Enable mobile menu overlay on mobile */
    .mobile-menu-overlay {
        display: block;
    }

    /* Normal expanded header on mobile */
    .site-header .header-top {
        flex-direction: column;
        gap: 20px;
    }
    
    .site-header .social-icons {
        order: 2;
        justify-content: center;
    }
    
    .site-header .site-title {
        order: 1;
    }
    
    .site-header .header-right {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .site-header .main-nav {
        flex-wrap: wrap;
        gap: 15px;
        padding: 20px 0;
    }
    
    .reviews-section {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }
    
    .reviews-content {
        border-left: none;
        border-top: 1px solid rgba(58, 58, 58, 0.3);
        padding-left: 0;
        padding-top: 40px;
    }
    
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 20px;
    }
    
    .cta-section {
        padding: 60px 20px;
    }
}

@media (max-width: 480px) {
    .site-title h1 {
        font-size: 1.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .reviews-title {
        font-size: 2rem;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-text {
        font-size: 1.1rem;
    }

    .mobile-nav a {
        font-size: 1.3rem;
    }
    
    .collapsed-site-name {
        font-size: 1rem;
    }
}
/* ============================================
   MOBILE HEADER ANIMATIONS
   ============================================ */

   @media (max-width: 768px) {
    .site-header {
        transition: opacity 0.6s cubic-bezier(0.4, 0.0, 0.2, 1),
                    transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
    }
    
    .site-header.collapsing {
        opacity: 0;
        transform: translateY(-20px);
    }
    
    .site-header.expanding {
        opacity: 0;
        transform: translateY(-20px);
        animation: slideDown 0.6s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .collapsed-header-bar {
        transition: opacity 0.6s cubic-bezier(0.4, 0.0, 0.2, 1),
                    transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
    }
    
    .collapsed-header-bar.visible {
        animation: slideDownBar 0.6s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
    }
    
    @keyframes slideDownBar {
        from {
            opacity: 0;
            transform: translateY(-100%);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
/* ============================================
   COLLAPSED MOBILE HEADER BAR
   ============================================ */

   .collapsed-header-bar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-bg);
    border-bottom: 1px solid rgba(58, 58, 58, 0.2);
    padding: 10px 20px;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.6s cubic-bezier(0.4, 0.0, 0.2, 1), 
                transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.collapsed-header-bar.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.collapsed-site-name {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-align: center;
    flex: 1;
}

.collapsed-logo {
    height: 40px;
    width: auto;
    cursor: pointer;
    transition: opacity 0.3s ease;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

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

/* Mobile-only header transitions */
@media (max-width: 768px) {
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1),
                    opacity 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
        transform: translateY(0);
        opacity: 1;
    }
    
    /* Hide full header when scrolled down - PERMANENT */
    body.mobile-scrolled .site-header {
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
    }
    
    /* Show collapsed bar when scrolled down - PERMANENT */
    body.mobile-scrolled .collapsed-header-bar {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile-only smooth header transitions */
@media (max-width: 768px) {
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1),
                    opacity 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
        transform: translateY(0);
        opacity: 1;
    }
    
    /* Hide full header when scrolled down */
    body.mobile-scrolled .site-header {
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
    }
    
    /* Show collapsed bar when scrolled down */
    body.mobile-scrolled .collapsed-header-bar {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }
}
/* ============================================
   MOBILE MENU OVERLAY
   ============================================ */

   .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(212, 196, 176, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    overflow-y: auto;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 80px;
}

.close-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--dark-text);
    border: 2px solid var(--dark-text);
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 0;
    padding: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10000;
    border-radius: 50%;
    font-family: Arial, sans-serif;
    font-weight: 300;
}

.close-menu:hover {
    background: var(--white);
    color: var(--dark-text);
    transform: rotate(90deg);
}

.mobile-social-icons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 60px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    max-width: 350px;
    width: 100%;
}

.mobile-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: rgba(58, 58, 58, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mobile-social-icons a:hover {
    background-color: var(--dark-text);
    transform: scale(1.1);
}

.mobile-social-icons svg {
    width: 24px;
    height: 24px;
    stroke: var(--dark-text);
    fill: none;
}

.mobile-social-icons svg[fill="currentColor"] {
    fill: var(--dark-text);
    stroke: none;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 40px 60px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(58, 58, 58, 0.2);
    width: 100%;
    max-width: 350px;
}

.mobile-nav a {
    color: var(--dark-text);
    font-size: 1.6rem;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 8px;
    position: relative;
    width: 100%;
    text-align: center;
}

.mobile-nav a:hover {
    background-color: rgba(58, 58, 58, 0.1);
    transform: translateX(10px);
}

.mobile-nav a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-nav a:hover::before {
    opacity: 1;
    left: -5px;
}

/* Ensure menu shows on mobile */
@media (max-width: 768px) {
    .mobile-menu-overlay {
        display: none;
    }
    
    .mobile-menu-overlay.active {
        display: block;
    }
}

@media (max-width: 480px) {
    .mobile-menu-content {
        padding: 80px 15px 60px;
    }
    
    .mobile-social-icons {
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
        padding: 15px;
        max-width: 300px;
    }
    
    .mobile-social-icons a {
        width: 45px;
        height: 45px;
    }
    
    .mobile-social-icons svg {
        width: 20px;
        height: 20px;
    }
    
    .mobile-nav {
        padding: 30px 30px;
        gap: 20px;
        max-width: 300px;
    }
    
    .mobile-nav a {
        font-size: 1.4rem;
        padding: 8px 15px;
    }
}

@media (max-width: 360px) {
    .mobile-social-icons {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
        padding: 12px;
    }
    
    .mobile-social-icons a {
        width: 40px;
        height: 40px;
    }
}
/* ============================================
   DESKTOP HEADER SCROLL BEHAVIOR
   ============================================ */

   .site-header {
    transition: padding 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.site-header.scrolled-down {
    padding-bottom: 0;
}

.site-header.scrolled-down .main-nav {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    border-top: none;
    overflow: hidden;
}

.site-header.scrolled-up .main-nav,
.site-header:not(.scrolled-down):not(.scrolled-up) .main-nav {
    max-height: 100px;
    opacity: 1;
    pointer-events: all;
}

.main-nav {
    transition: max-height 0.6s cubic-bezier(0.4, 0.0, 0.2, 1), 
                opacity 0.6s cubic-bezier(0.4, 0.0, 0.2, 1), 
                padding 0.6s cubic-bezier(0.4, 0.0, 0.2, 1), 
                margin 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
    overflow: hidden;
}

/* Optional: Also compact the header top section when scrolled */
.site-header.scrolled-down .header-top {
    padding-bottom: 5px;
}

.header-top {
    transition: padding 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Smooth body scroll */
html {
    scroll-behavior: smooth;
}
/* ============================================
   FOOTER SOCIAL ICONS
   ============================================ */

   .footer-social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.footer-social-icons svg {
    width: 20px;
    height: 20px;
    stroke: var(--dark-text);
    fill: none;
}

.footer-social-icons svg[fill="currentColor"] {
    fill: var(--dark-text);
    stroke: none;
}
/* ============================================
   MOBILE BODY PADDING FIX
   ============================================ */

   @media (max-width: 768px) {
    body {
        /* Padding will be set dynamically by JavaScript */
        transition: padding-top 0.3s ease;
    }
}
/* ============================================
   DEBUG MODE (commented out)
   Uncomment the section below to enable debug mode
   ============================================ */

/*
.debug-mode * {
    outline: 1px solid red;
}

.debug-mode .site-header {
    background-color: rgba(255, 0, 0, 0.1);
}

.debug-mode .hero {
    background-color: rgba(0, 255, 0, 0.1);
}

.debug-mode .reviews-section {
    background-color: rgba(0, 0, 255, 0.1);
}
*/