/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --primary-dark: #1a252f;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --accent-hover: #2980b9;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --light-gray: #f8f9fa;
    --medium-gray: #ecf0f1;
    --border-color: #e1e8ed;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: #ffffff;
    min-height: 100vh;
    font-weight: 400;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--white);
    color: var(--text-color);
    padding: 20px 0;
    box-shadow: 0 1px 0 var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
}

.language-switch {
    font-size: 0.875rem;
    display: flex;
    gap: 4px;
    align-items: center;
    background: var(--light-gray);
    padding: 4px;
    border-radius: 6px;
}

.language-switch a {
    color: var(--text-light);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.language-switch a.active {
    background-color: var(--white);
    color: var(--primary-color);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.language-switch a:hover {
    color: var(--primary-color);
}

/* Main Content */
main {
    padding: 48px 24px;
}

section {
    margin-bottom: 64px;
}

h2 {
    font-size: 2.25rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

h4 {
    font-size: 1.125rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 600;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 40px;
    background: var(--white);
    margin-bottom: 60px;
}

.tagline {
    font-size: 1.125rem;
    color: var(--text-light);
    font-weight: 400;
    margin-top: 8px;
}

.personal-story {
    background: var(--light-gray);
    padding: 24px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid var(--accent-color);
}

.personal-story p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
}

.disclosure-list {
    list-style: none;
    padding-left: 0;
    margin-top: 16px;
}

.disclosure-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.disclosure-list li:last-child {
    border-bottom: none;
}

/* Photo Gallery */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.photo-placeholder {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    position: relative;
    background: var(--light-gray);
    border: 1px solid var(--border-color);
}

.photo-placeholder:hover {
    box-shadow: var(--shadow-md);
}

.photo-placeholder img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4/3;
}

/* Make white repair receipt thumbnails easier to distinguish */
.repairs-history .photo-placeholder {
    background: #f6f6f6;
}
.repairs-history .photo-placeholder::after {
    content: "";
    position: absolute;
    inset: 0;
    /* Subtle vignette to define edges on white images */
    background: radial-gradient(ellipse at center, rgba(0,0,0,0) 55%, rgba(0,0,0,0.10) 100%),
                linear-gradient(to bottom, rgba(0,0,0,0.18), rgba(0,0,0,0.04) 40%, rgba(0,0,0,0.22));
    pointer-events: none;
}
.repairs-history .photo-placeholder:hover::after {
    background: radial-gradient(ellipse at center, rgba(0,0,0,0) 50%, rgba(0,0,0,0.14) 100%),
                linear-gradient(to bottom, rgba(0,0,0,0.24), rgba(0,0,0,0.06) 40%, rgba(0,0,0,0.28));
}
.repairs-history .thumb-label {
    position: absolute;
    left: 10px;
    bottom: 10px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.2;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    max-width: calc(100% - 20px);
    white-space: normal;
    overflow: hidden;
}

/* Details Section */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    background: var(--light-gray);
    padding: 32px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    background: var(--white);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.detail-item:hover {
    box-shadow: var(--shadow-sm);
}

.detail-item strong {
    color: var(--text-light);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.detail-item span {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
}

/* Features Section */
.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    background: var(--light-gray);
    padding: 32px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.features-list li {
    font-size: 0.9375rem;
    padding: 14px 16px;
    background-color: var(--white);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    line-height: 1.5;
}

.features-list li:hover {
    box-shadow: var(--shadow-sm);
}

/* Description Section */
.description p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 16px;
    color: var(--text-color);
    text-align: left;
}

/* Price CTA Section */
.price-cta {
    text-align: center;
    padding: 60px 0;
}

.price-box {
    background: var(--white);
    color: var(--text-color);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
}

.price-box h3 {
    color: var(--primary-color);
    margin-bottom: 16px;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    margin: 20px 0;
    letter-spacing: -1px;
    color: var(--primary-color);
}

.price-note {
    font-size: 1rem;
    margin-bottom: 28px;
    color: var(--text-light);
    font-weight: 400;
}

/* CTA Buttons */
.cta-button {
    display: inline-block;
    padding: 12px 32px;
    background-color: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.cta-button:hover {
    background-color: var(--accent-hover);
    box-shadow: var(--shadow-md);
}

.cta-button.secondary {
    background-color: var(--white);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.cta-button.secondary:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

/* FAQ Section */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Additional sections */
.additional-photos,
.condition-disclosure {
    margin-bottom: 64px;
}

.condition-disclosure p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-color);
}

.condition-disclosure h4 {
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--text-color);
    font-size: 1.25rem;
}

.faq-item {
    background: var(--white);
    padding: 24px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-sm);
}

.faq-item h4 {
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: 1rem;
}

.faq-item p {
    line-height: 1.6;
    color: var(--text-color);
    font-size: 0.9375rem;
}

/* Contact Section */
.contact {
    text-align: center;
    padding: 40px;
    background: var(--light-gray);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.contact p {
    font-size: 1rem;
    margin-bottom: 24px;
    color: var(--text-color);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 32px 0;
    text-align: center;
    margin-top: 80px;
}

footer p {
    margin: 4px 0;
    opacity: 0.9;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.4rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    h3 {
        font-size: 1.6rem;
    }

    .hero {
        padding: 40px 24px;
    }

    .photo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .details-grid,
    .features-list {
        grid-template-columns: 1fr;
        padding: 28px 24px;
    }

    .price {
        font-size: 2.8rem;
    }

    .cta-button {
        padding: 14px 36px;
        font-size: 1rem;
    }

    main {
        padding: 40px 20px;
    }

    section {
        margin-bottom: 60px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    main {
        padding: 32px 16px;
    }

    header h1 {
        font-size: 1.2rem;
    }

    header {
        padding: 20px 0;
    }

    h2 {
        font-size: 1.9rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    .hero {
        padding: 32px 20px;
        border-radius: 16px;
    }

    .price {
        font-size: 2.4rem;
    }

    .price-box {
        padding: 36px 24px;
        border-radius: 20px;
    }

    .details-grid,
    .features-list {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .faq-item {
        padding: 24px;
        border-radius: 12px;
    }

    .contact {
        padding: 36px 24px;
        border-radius: 16px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background-color: var(--accent-color);
    color: var(--white);
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(4px);
    /* Allow scrolling for tall images */
    overflow: auto;
    padding: 40px 20px;
    -webkit-overflow-scrolling: touch;
}

.lightbox-content {
    position: relative;
    margin: 0 auto;
    display: block;
    width: auto;
    height: auto;
    max-width: min(100%, 1600px);
    /* No max-height by default so tall images can scroll */
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background: transparent;
}

/* Fit-to-screen mode (default on open) */
.lightbox.fit .lightbox-content {
    max-height: calc(100vh - 120px);
    max-width: min(95vw, 1200px);
}

/* Zoom cursor hints */
.lightbox.fit #lightbox-img {
    cursor: zoom-in;
}
.lightbox:not(.fit) #lightbox-img {
    cursor: zoom-out;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    user-select: none;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.photo-placeholder {
    cursor: pointer;
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 12px 20px;
    border-radius: 20px;
    font-size: 16px;
    text-align: center;
    backdrop-filter: blur(4px);
}

@media (max-width: 768px) {
    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
    
    .lightbox-nav {
        font-size: 24px;
        width: 40px;
        height: 40px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-caption {
        bottom: 10px;
        font-size: 14px;
        padding: 8px 16px;
    }
}

/* Silly Popup Styles */
.silly-popup {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.silly-popup-content {
    position: relative;
    background: transparent;
    padding: 0;
    border-radius: 16px;
    box-shadow: none;
    text-align: center;
    max-width: 90%;
    max-height: 90%;
    transform: scale(0);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.silly-popup.show .silly-popup-content {
    transform: scale(1);
    opacity: 1;
}

.silly-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--text-light);
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
}

.silly-popup-close:hover {
    background: var(--light-gray);
    color: var(--text-color);
    transform: rotate(90deg);
}

.silly-image {
    max-width: 100%;
    max-height: 60vh;
    width: auto;
    height: auto;
    border-radius: 0;
    margin-bottom: 0;
}

.silly-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

@media (max-width: 768px) {
    .silly-popup-content {
        padding: 30px 20px;
    }
    
    .silly-text {
        font-size: 1.25rem;
    }
    
    .silly-image {
        max-height: 50vh;
    }
}
