/* Common styles for ArtOfYou pages */

/* Base styles */
body {
    font-family: 'Libre Baskerville', serif;
    font-size: 18px;
    line-height: 1.75;
    color: #2b2b2b;
    background-color: #fdf9f4;
    margin: 0;
    padding: 0;
}

/* All images get rounded edges */
img {
    border-radius: 6px;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    line-height: 1.3;
    color: #1b1b1b;
}

h1 {
    font-size: 2.5rem;
}

/* Call to action buttons */
a.cta, button.cta {
    display: inline-block;
    background: #E94A4A;
    color: white;
    padding: 0.8em 1.5em;
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    border-radius: 6px;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

a.cta:hover, button.cta:hover {
    background: #cc3f3f;
}
.small-text {
    font-size: 0.8rem;
    color: #6a6a6a;
    margin-top: 0.5rem;
}

/* Header */
header {
    max-width: 1100px;
    margin: auto;
    padding: 2rem 1rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e6ddd2;
}

header img {
    max-height: 80px;
}

/* Main content */
main {
    max-width: 900px;
    margin: auto;
    padding: 0 1rem;
}

section {
    margin-bottom: 4rem;
}

/* Layout grids */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.intro-grid img {
    width: 100%;
    border-radius: 6px;
}

/* Carousel styles */
.carousel-container {
    position: relative;
    width: 100%;
    margin-top: 2rem;
}

.carousel {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: 6px;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-image.active {
    opacity: 1;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.control-text {
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: #6a6a6a;
}

.control-text:hover {
    color: #E94A4A;
    background-color: #fff9f7;
}

.control-text.active {
    color: #E94A4A;
    font-weight: bold;
    background-color: #fff9f7;
    border: 1px solid #E94A4A;
}

.grid-break {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 2rem;
    align-items: start;
}

/* Special components */
.johnson-box {
    background: #fff9f7;
    border: 2px solid #E94A4A;
    padding: 1.5rem;
    margin: 2rem 0;
    font-size: 1.1rem;
}

.pullquote {
    font-size: 1.4rem;
    color: #E94A4A;
    font-style: italic;
    margin: 2.5rem 0;
    padding-left: 2rem;
    border-left: 3px solid #E94A4A;
}

.wide-image img {
    width: 100%;
    display: block;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}
.small-image {
    width: 200px;
    /*display: inline;*/
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

/* Overlay a red cross icon in the top-right of specific images */
.image-with-cross {
    width: 200px;
    position: relative;
    display: inline-block;
    margin-right: 20px;
}

.image-with-cross img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.image-with-cross::after {
    content: "";
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    background-image: url('img/redx.png');
    background-size: cover;
    background-repeat: no-repeat;
    pointer-events: none;
}

/* Lists and steps */
ul {
    padding-left: 1.2rem;
}

.steps {
    list-style: none;
    padding: 0;
}

.steps li {
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonial {
    font-style: italic;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    padding: 2rem 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: #6a6a6a;
    border-top: 1px solid #e6ddd2;
}

/* Process Carousel styles */
.process-carousel-container {
    margin: 2rem 0;
    text-align: center;
    overflow: hidden;
}

.process-carousel {
    display: flex;
    gap: 1rem;
    animation: scroll-left 20s linear infinite;
    width: max-content;
}

.process-image {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 0.5rem));
    }
}

/* Pause animation on hover */
.process-carousel-container:hover .process-carousel {
    animation-play-state: paused;
}

/* Before/After Slider Styles */
.before-after-slider {
    margin: 2rem 0;
}

.slider-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 400px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.before-image,
.after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.after-image {
    clip-path: polygon(75% 0, 100% 0, 100% 100%, 75% 100%);
    transition: clip-path 0.1s ease;
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 75%;
    width: 4px;
    height: 100%;
    background: white;
    cursor: ew-resize;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.slider-handle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border: 3px solid #333;
}

.slider-handle::after {
    content: '◀▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    color: #333;
    font-weight: bold;
}

.slider-label {
    position: absolute;
    top: 20px;
    padding: 8px 16px;
    background: rgba(0,0,0,0.7);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    z-index: 5;
}

.before-label {
    left: 20px;
}

.after-label {
    right: 20px;
}

/* Responsive design */
@media (max-width: 768px) {
    .intro-grid {
        grid-template-columns: 1fr;
    }
    
    .grid-break {
        grid-template-columns: 1fr;
    }
    
    .process-image {
        width: 250px;
        height: 250px;
    }
    
    .process-carousel {
        height: 250px;
    }
    
    .slider-container {
        height: 300px;
    }
    
    .slider-label {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* Gallery Grid Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-item {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

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

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

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 20px;
}

.modal-content img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.close:hover {
    color: #E94A4A;
}

/* Navigation Styles */
header nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

header nav a {
    text-decoration: none;
    color: #2b2b2b;
    font-weight: 500;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: #E94A4A;
}

header nav a.active {
    color: #E94A4A;
    font-weight: bold;
}

/* Home icon styling */
header nav a.home-icon {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

header nav a.home-icon svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

header nav a.home-icon:hover svg {
    transform: scale(1.1);
    stroke: #E94A4A;
}

/* CTA Section Styles */
.cta-section {
    text-align: center;
    margin: 4rem 0;
    padding: 3rem;
    background: #fff9f7;
    border-radius: 12px;
    border: 2px solid #E94A4A;
}

/* Process Page Styles */
.process-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.process-intro h1 {
    margin-bottom: 1rem;
}

.process-intro p {
    font-size: 1.2rem;
    color: #6a6a6a;
}

.process-steps {
    margin-bottom: 4rem;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.step {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    background: #fff9f7;
    border-radius: 8px;
    border-left: 3px solid #E94A4A;
    flex: 1;
    min-width: 200px;
}

.step-number {
    background: #E94A4A;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    flex-shrink: 0;
}

.step p {
    margin: 0;
    color: #4a4a4a;
    font-size: 0.95rem;
    line-height: 1.3;
}

.email-form-section {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem;
    background: #fff9f7;
    border-radius: 12px;
    border: 2px solid #E94A4A;
}

.email-form-section h2 {
    margin-bottom: 1rem;
}

.email-form-section p {
    margin-bottom: 2rem;
    color: #6a6a6a;
}

.email-form {
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2b2b2b;
}

.form-group input {
    width: 100%;
    padding: 0.8em;
    border: 2px solid #e6ddd2;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #E94A4A;
}

.email-form .cta {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
}

.success-message {
    text-align: center;
    padding: 2rem;
}

.success-message h3 {
    color: #2d5a2d;
    margin-bottom: 1rem;
}

.success-message p {
    color: #6a6a6a;
}

.what-to-expect {
    margin-bottom: 4rem;
}

.what-to-expect p {
    text-align: center;
    margin-bottom: 2rem;
    color: #6a6a6a;
}

.expectation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.expectation {
    text-align: center;
    padding: 2rem;
    background: #fff9f7;
    border-radius: 12px;
}

.expectation h3 {
    color: #E94A4A;
    margin-bottom: 1rem;
}

.expectation p {
    margin: 0;
    color: #4a4a4a;
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    header nav {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-end;
    }
    
    .cta-section {
        padding: 2rem 1rem;
        margin: 2rem 0;
    }
    
    /* Process page responsive */
    .steps-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step {
        padding: 1rem;
        gap: 0.8rem;
        min-width: auto;
    }
    
    .email-form-section {
        padding: 2rem 1rem;
    }
    
    .expectation-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item img {
        height: 250px;
    }
    
    /* Process page responsive */
    .step {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .step-number {
        align-self: center;
    }
    
    .email-form {
        max-width: 100%;
    }
} 