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

body {
    font-family: 'Quattrocento', serif;
    line-height: 1.6;
    color: #000000;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Ovo', serif;
    font-weight: normal;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Header */
#website-header {
    background-color: #FFFFFF;
    color: #000000;
    z-index: 2000;
    transition: colors 0.3s;
}

.header-content {
    display: grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
}

.logo a {
    display: block;
    max-width: 100%;
    overflow: hidden;
}

.logo-desktop {
    height: 80px;
    transition: all 0.3s;
    object-fit: contain;
}

.logo-mobile {
    height: 40px;
    display: none;
    transition: all 0.3s;
    object-fit: contain;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(rgba(43, 78, 114, 0.8), rgba(43, 78, 114, 0.8)),
                url('https://images.unsplash.com/photo-1551033406-611cf9a28f67?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwyNjI5NjF8MHwxfHNlYXJjaHw1fHxzb2Z0d2FyZXxlbnwwfHx8fDE2NzQ2ODQ4Njc&ixlib=rb-4.0.3&q=80&w=1080');
    background-size: cover;
    background-position: center center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 3rem 0 8rem;
}

.hero-content {
    max-width: 48rem;
}

.hero-title {
    font-size: 3rem;
    color: #FFFFFF;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.25rem;
    color: #FFFFFF;
    line-height: 1.6;
}

/* Gallery Carousel Section */
.gallery-section {
    padding: 3rem 0;
    background: #FFFFFF;
}

.gallery-carousel {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.gallery-carousel .carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

.gallery-carousel .carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 400%; /* 4 slides * 100% */
}

.gallery-slide {
    flex: 0 0 25%; /* Each slide takes 1/4 of the track width */
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

.gallery-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
    border-radius: 0.5rem;
}

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(43, 78, 114, 0.8);
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: all;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(43, 78, 114, 1);
    transform: scale(1.1);
}

.carousel-btn:focus {
    outline: 2px solid #5BB9E5;
    outline-offset: 2px;
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #2B4E72;
    transform: scale(1.2);
}

.indicator:hover {
    background: #5BB9E5;
}

.indicator:focus {
    outline: 2px solid #5BB9E5;
    outline-offset: 2px;
}

/* Testimonial Section */
.testimonial-section {
    padding: 3rem 0 5rem;
    background: #FFFFFF;
}

.testimonial-content {
    max-width: 64rem;
    margin-left: auto;
    text-align: right;
}

.testimonial-quote {
    font-size: 1.5rem;
    font-style: normal;
    margin-bottom: 1rem;
    color: #000000;
    line-height: 1.4;
}

.testimonial-author {
    font-size: 1.25rem;
    color: #000000;
    font-style: normal;
}

/* Services Section */
.services-section {
    padding: 3rem 0 5rem;
    background: #FFFFFF;
}

.services-title {
    font-size: 2.5rem;
    color: #000000;
    margin-bottom: 1.5rem;
    text-align: right;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-items: end;
}

.service-card {
    max-width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    background: #FFFFFF;
}

.service-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/2;
    border-radius: 0.5rem;
}

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

.service-content {
    padding: 1.5rem 0;
    text-align: right;
}

.service-title {
    font-size: 1.5rem;
    color: #000000;
    margin-bottom: 1rem;
}

.service-description {
    color: #000000;
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    padding: 3rem 0 5rem;
    background: #FFFFFF;
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-info h3 {
    font-size: 1.875rem;
    color: #000000;
    margin-bottom: 1rem;
    white-space: pre-line;
}

.contact-info p {
    color: #000000;
    white-space: pre-line;
}

.contact-form {
    display: block;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    color: #000000;
    margin-bottom: 0.25rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.07);
    color: #000000;
    font-family: inherit;
    font-size: 1rem;
    box-shadow: none;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid #5BB9E5;
    outline-offset: 2px;
}

.form-footer {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 1rem;
}

.submit-btn {
    min-width: 9rem;
    padding: 0.75rem 1.5rem;
    background-color: #2B4E72;
    color: #FFFFFF;
    border: 2px solid #2B4E72;
    border-radius: 6px;
    font-family: 'Quattrocento', serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    background-color: #5BB9E5;
    border-color: #5BB9E5;
}

.recaptcha-notice {
    font-size: 0.75rem;
    color: #000000;
    max-width: 24rem;
    text-align: right;
}

.recaptcha-notice a {
    color: #000000;
    font-weight: bold;
    text-decoration: none;
}

.recaptcha-notice a:hover {
    text-decoration: underline;
}

/* Form Loading and Success States */
.form-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(43, 78, 114, 0.2);
    border-top: 4px solid #2B4E72;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #2B4E72;
    font-size: 1.125rem;
    font-weight: 500;
}

.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    border: 2px solid #5BB9E5;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    animation: successPulse 0.6s ease-out;
}

.success-icon svg {
    width: 30px;
    height: 30px;
    stroke: white;
    stroke-width: 3;
}

@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-title {
    color: #2B4E72;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.success-message {
    color: #374151;
    font-size: 1rem;
    line-height: 1.6;
}

/* About Section */
.about-section {
    padding: 3rem 0 5rem;
    background: #FFFFFF;
}

.about-content {
    max-width: 64rem;
    margin-left: auto;
    text-align: right;
}

.about-content h3 {
    font-size: 1.875rem;
    color: #000000;
    margin-bottom: 1rem;
    white-space: pre-line;
}

.about-content p {
    color: #000000;
    white-space: pre-line;
    line-height: 1.6;
}

/* Responsive Design */
@media (min-width: 768px) {
    .form-row {
        flex-direction: row;
    }
    
    .form-footer {
        flex-direction: row;
        align-items: flex-start;
        padding-top: 1rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-section {
        padding: 8rem 0 10rem;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .services-section {
        padding: 3.5rem 0 5rem;
    }
    
    .carousel-btn {
        width: 60px;
        height: 60px;
    }
    
    .carousel-btn svg {
        width: 28px;
        height: 28px;
    }
    
    .contact-section {
        padding: 3.5rem 0 5rem;
    }
    
    .contact-grid {
        flex-direction: row;
        gap: 5rem;
    }
    
    .contact-info,
    .contact-form-wrapper {
        flex: 1;
    }
    
    .about-section {
        padding: 3.5rem 0 5rem;
    }
}

@media (max-width: 1023px) {
    .logo-desktop {
        display: none;
    }
    
    .logo-mobile {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .carousel-controls {
        padding: 0 0.5rem;
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
    }
    
    .carousel-btn svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 768px) {
    .service-content {
        padding: 1rem;
    }
    
    .service-title {
        font-size: 1.25rem;
    }
    
    .service-description {
        font-size: 0.9rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-slide img {
        height: 250px;
    }
    
    .carousel-controls {
        padding: 0 0.25rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* Additional spacing */
.min-h-150 {
    min-height: 150px;
}