﻿/* app.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --color-primary: #043e75;
    --color-accent: #6ec2ea;
    --color-accent-soft: #e9f6fd;
    --color-bg: #f5f7fb;
    --color-surface: #ffffff;
    --color-text: #1f2a37;
    --color-muted: #4b5563;
    --color-border: #d8e2ee;
}

/* Light Mode (Default) */
body {
    font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 18px;
}

/* Dark Mode Variables */
body[data-theme="dark"] {
    background-color: #121212;
    color: #E0E0E0;
}

body[data-theme="dark"] .wireframe {
    background-color: #1E1E1E;
}

body[data-theme="dark"] .section:nth-child(even) {
    background-color: #2A2A2A;
}

body[data-theme="dark"] .service-card,
body[data-theme="dark"] .project-card,
body[data-theme="dark"] .about-text {
    background-color: #2A2A2A;
    border-color: #404040;
}

body[data-theme="dark"] .service-card:hover,
body[data-theme="dark"] .project-card:hover {
    border-color: var(--color-accent);
    background-color: #333333;
}

body[data-theme="dark"] .service-title,
body[data-theme="dark"] .project-title,
body[data-theme="dark"] .section-title,
body[data-theme="dark"] .about-text {
    color: #E0E0E0;
}

body[data-theme="dark"] .service-desc,
body[data-theme="dark"] .project-desc {
    color: #B0B0B0;
}

body[data-theme="dark"] .form-field input,
body[data-theme="dark"] .form-field textarea {
    background-color: #2A2A2A;
    border-color: #404040;
    color: #E0E0E0;
}

body[data-theme="dark"] .form-field input::placeholder,
body[data-theme="dark"] .form-field textarea::placeholder {
    color: #888888;
}

body[data-theme="dark"] .form-field label {
    color: #E0E0E0;
}

body[data-theme="dark"] .icon-placeholder {
    background-color: #333333;
}

.wireframe {
    width: 100%;
    margin: 0;
    background-color: var(--color-surface);
    transition: background-color 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 10px;
    padding: 12px 18px;
    background-color: var(--color-primary);
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    z-index: 2000;
}

.skip-link:focus {
    left: 10px;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px 20px 20px;
    background-color: var(--color-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow-x: hidden;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.logo {
    width: auto;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.logo img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border: 2px solid #ffffff;
    border-radius: 12px;
    padding: 6px;
    background-color: #ffffff;
}


.logo-placeholder {
    border: 2px solid var(--color-accent);
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--color-accent);
    font-weight: bold;
    letter-spacing: 2px;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 2px solid #FFFFFF;
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    transform: scale(1.05);
}

body[data-theme="light"] .moon-icon {
    display: none;
}

body[data-theme="dark"] .sun-icon {
    display: none;
}

.nav {
    display: flex;
    gap: 10px;
    max-width: 100%;
    position: static;
}

.nav-item {
    padding: 12px 24px;
    border: 2px solid #FFFFFF;
    font-size: 16px;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
}

.nav-item:hover,
.nav-item:focus {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.nav-contact {
    background-color: #ffffff;
    color: var(--color-primary);
}

.nav-contact:hover,
.nav-contact:focus {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #ffffff;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
    z-index: 1301;
}

.hamburger span {
    width: 26px;
    height: 2px;
    background-color: #ffffff;
    display: block;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--color-primary) 0%, #0b5b95 100%);
    padding: 60px 20px;
}

.hero-content {
    text-align: center;
    max-width: 760px;
}

.hero-kicker {
    color: #ffffff;
    text-transform: none;
    letter-spacing: 0.6px;
    font-size: 13px;
    margin-bottom: 14px;
    opacity: 0.85;
}

.hero-heading {
    margin-bottom: 20px;
    color: white;
    font-size: 50px;
    font-weight: 900;
    letter-spacing: 0.5px;
    font-family: 'Merriweather', serif;
    line-height: 1.2;
}

.hero-text {
    margin-bottom: 30px;
    color: white;
    font-size: 20px;
    line-height: 1.6;
    opacity: 0.9;
}

.hero-banner {
    width: min(70%, 640px);
    margin: 0 auto 12px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.14);
}

.hero-banner img {
    display: block;
    width: 100%;
    height: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.trust-list {
    list-style: none;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    color: #ffffff;
    font-size: 14px;
    margin-top: 6px;
}

.trust-list li {
    background-color: transparent;
    padding: 0;
}

.trust-list li::after {
    content: "•";
    margin-left: 10px;
    opacity: 0.6;
}

.trust-list li:last-child::after {
    content: "";
    margin: 0;
}

.cta-button {
    padding: 18px 56px;
    border: 2px solid var(--color-accent);
    background-color: var(--color-accent);
    color: white;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    border-radius: 999px;
}

.contact-form .cta-button {
    padding: 18px 64px;
    font-size: 19px;
}

.cta-button:hover,
.cta-button:focus {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(4, 62, 117, 0.35);
}

/* Section Styles */
.section {
    padding: 90px 24px;
    transition: background-color 0.3s ease;
}

.section:nth-child(even) {
    background-color: var(--color-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--color-primary);
    font-size: 36px;
    font-weight: bold;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 20px;
    font-family: 'Merriweather', serif;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--color-accent);
}

.section-intro {
    max-width: 680px;
    margin: 0 auto 32px;
    text-align: center;
    color: var(--color-muted);
    font-size: 18px;
}

/* Services Grid - Centered */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    max-width: 1040px;
    margin: 0 auto;
}

.service-card {
    border: 2px solid var(--color-border);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    background-color: var(--color-surface);
    transition: all 0.3s ease;
    cursor: pointer;
    width: calc(33.333% - 20px);
    min-width: 250px;
    max-width: 440px;
}

.service-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(4, 62, 117, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.icon-placeholder {
    border: 3px solid var(--color-accent);
    border-radius: 50%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--color-accent);
    background-color: var(--color-accent-soft);
    font-weight: bold;
}

.service-title {
    margin-bottom: 15px;
    color: var(--color-primary);
    font-size: 20px;
    font-weight: bold;
}

.service-desc {
    color: var(--color-muted);
    font-size: 16px;
    line-height: 1.6;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    max-width: 1040px;
    margin: 0 auto;
}

@media (min-width: 1025px) {
    .projects-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        max-width: 1200px;
    }

    .projects-grid > .project-card {
        grid-column: span 2;
    }

    .projects-grid > .project-card:nth-child(4) {
        grid-column: 2 / span 2;
    }

    .projects-grid > .project-card:nth-child(5) {
        grid-column: 4 / span 2;
    }
}

.project-card {
    background-color: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(4, 62, 117, 0.18);
    border-color: var(--color-accent);
}

.project-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
    background-color: #f0f4f8;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.project-info {
    padding: 25px;
}

.project-title {
    color: var(--color-primary);
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    font-family: 'Merriweather', serif;
}

.project-desc {
    color: var(--color-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* Project Detail Pages */
.project-detail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1040px;
    margin: 0 auto 32px;
}

.project-photo {
    background-color: transparent;
    border: none;
    border-radius: 12px;
    padding: 0;
}

.project-photo h3 {
    color: var(--color-primary);
    font-size: 18px;
    margin-bottom: 12px;
    font-family: 'Merriweather', serif;
}

.project-photo img {
    display: block;
    width: 100%;
    height: auto;
    border: none;
    border-radius: 8px;
}

.project-description {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: 12px;
    padding: 28px;
}

.project-description h2 {
    color: var(--color-primary);
    font-family: 'Merriweather', serif;
    margin-bottom: 12px;
}

.project-description p {
    color: var(--color-muted);
    font-size: 18px;
    line-height: 1.7;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    align-items: center;
    max-width: 1040px;
    margin: 0 auto;
}

.about-image {
    min-height: 0;
    width: fit-content;
    max-width: 100%;
    max-height: 560px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image img {
    display: block;
    width: auto;
    max-width: 560px;
    height: auto;
    max-height: 560px;
    object-fit: contain;
}

.about-image .image-placeholder {
    min-height: 350px;
    border: 2px solid var(--color-primary);
}

.about-text {
    color: var(--color-muted);
    font-size: 17px;
    line-height: 1.8;
    padding: 20px;
}

.about-text p {
    margin-bottom: 15px;
}

/* Contact Form */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-field {
    margin-bottom: 25px;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-primary);
    font-weight: bold;
    font-size: 15px;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--color-border);
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    display: flex;
    justify-content: center;
}

/* Testimonials */
.testimonial-slider {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 16px;
    max-width: 980px;
    margin: 0 auto 18px;
}

.testimonial-track {
    position: relative;
    overflow: hidden;
    min-height: 320px;
}

.testimonial-slide {
    position: absolute;
    inset: 0;
    min-height: 320px;
    opacity: 0;
    transform: translateX(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    background-color: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 24px rgba(4, 62, 117, 0.08);
}

.testimonial-slide.is-active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

.testimonial-text {
    font-size: 18px;
    color: var(--color-text);
    margin-bottom: 16px;
}

.testimonial-name {
    font-weight: 700;
    color: var(--color-primary);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.testimonial-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dots .dot.is-active {
    background-color: var(--color-primary);
}

/* WhatsApp */
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: #25d366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    z-index: 1500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: pulseWhatsApp 2.4s ease-in-out infinite;
}

.whatsapp-float:hover,
.whatsapp-float:focus {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
}

.whatsapp-float svg {
    width: 40px;
    height: 40px;
    fill: currentColor;
}

@keyframes pulseWhatsApp {
    0% {
        transform: scale(1);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.06);
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    }
}

/* Simple animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.section-title,
.section-intro,
.about-content,
.contact-form {
    animation: fadeUp 0.6s ease both;
}

.service-card,
.project-card,
.testimonial-card {
    animation: fadeUp 0.5s ease both;
}

.service-card:nth-child(2),
.project-card:nth-child(2),
.testimonial-card:nth-child(2) {
    animation-delay: 0.05s;
}

.service-card:nth-child(3),
.project-card:nth-child(3),
.testimonial-card:nth-child(3) {
    animation-delay: 0.1s;
}

.service-card:nth-child(4),
.project-card:nth-child(4) {
    animation-delay: 0.15s;
}

.service-card:nth-child(5),
.project-card:nth-child(5) {
    animation-delay: 0.2s;
}

.service-card:nth-child(6),
.project-card:nth-child(6) {
    animation-delay: 0.25s;
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: white;
    padding: 20px 40px 0;
    margin-top: auto;
    transform: translateY(40px);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
}

.footer-section {
    padding: 20px;
    text-align: center;
}

.footer-section h3 {
    color: var(--color-accent);
    margin-bottom: 15px;
    font-size: 20px;
}

.footer-section p {
    margin-bottom: 10px;
    font-size: 17px;
    line-height: 1.6;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    max-width: 1040px;
    margin: 0 auto;
}

/* Focus and Reduced Motion */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
        gap: 12px;
        overflow: visible;
    }

    .logo {
        width: auto;
        height: 64px;
        flex-shrink: 0;
    }

    .header-right {
        gap: 10px;
        flex: 1;
        justify-content: flex-end;
        position: static;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 20px;
        left: 20px;
        width: auto;
        flex-direction: column;
        gap: 0;
        background-color: var(--color-primary);
        border-radius: 0 0 12px 12px;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
        overflow: hidden;
        min-width: 220px;
        max-width: none;
        z-index: 1200;
    }

    .nav.active {
        display: flex;
    }

    .header-right.open .nav {
        display: flex;
    }


    .nav-item {
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        margin: 0;
        padding: 14px 18px;
        text-align: center;
        font-size: 15px;
    }

    .hamburger {
        display: flex;
    }
    
    .hero-heading {
        font-size: 32px;
    }
    
    .hero-text {
        font-size: 16px;
    }
    
    .section {
        padding: 50px 20px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .services-grid {
        flex-direction: column;
        align-items: center;
    }

    .service-card {
        width: 100%;
        max-width: 400px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .testimonial-track {
        min-height: 220px;
    }
}

@media (max-width: 650px) {
    .logo {
        width: auto;
        height: 60px;
    }

    .nav {
        gap: 4px;
    }

    .nav-item {
        padding: 7px 9px;
        font-size: 12px;
    }

    .hero-banner {
        width: 78%;
        margin-bottom: 18px;
        border-radius: 12px;
    }
    .service-card {
        width: 100%;
        max-width: 520px;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        width: 86%;
    }

.hero-heading {
        font-size: 24px;
    }
    
    .cta-button {
        padding: 14px 32px;
        font-size: 14px;
    }

    .theme-toggle {
        padding: 6px 12px;
        font-size: 18px;
    }

    .service-card {
        padding: 26px 18px;
    }
}

@media (max-width: 350px) {
    .logo {
        width: auto;
        height: 56px;
    }

    .nav-item {
        padding: 6px 8px;
        font-size: 12px;
    }

    .hero-heading {
        font-size: 22px;
    }

    .hero-text {
        font-size: 15px;
    }

    .section-title {
        font-size: 24px;
    }

    .section {
        padding: 44px 16px;
    }

    .service-card {
        padding: 28px 20px;
    }

    .project-image {
        height: 200px;
    }
}

/* Contact Form 7 Integration */
.contact-form .wpcf7 form > p {
    margin-bottom: 25px;
}

.contact-form .wpcf7 label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-primary);
    font-weight: bold;
    font-size: 15px;
}

.contact-form .wpcf7 input:not([type="submit"]),
.contact-form .wpcf7 textarea,
.contact-form .wpcf7 select {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--color-border);
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.contact-form .wpcf7 input:focus,
.contact-form .wpcf7 textarea:focus,
.contact-form .wpcf7 select:focus {
    outline: none;
    border-color: var(--color-accent);
}

.contact-form .wpcf7 textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .wpcf7 .wpcf7-submit {
    display: block;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    padding: 16px 28px;
    border-radius: 999px;
    border: none;
    background-color: var(--color-primary);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    margin-left: auto;
    margin-right: auto;
}

.contact-form .wpcf7 .wpcf7-submit:hover,
.contact-form .wpcf7 .wpcf7 .wpcf7-submit:focus {
    background-color: #032f59;
    transform: translateY(-1px);
}

.contact-form .wpcf7 .form-actions {
    display: block;
    text-align: center;
}

.contact-form .wpcf7 .form-actions p {
    margin: 0;
    display: block;
    width: 100%;
    text-align: center;
}

.contact-form .wpcf7 form .wpcf7-response-output {
    margin: 14px 0 0;
    border-radius: 8px;
    padding: 12px;
}


.contact-form .wpcf7 form.invalid .wpcf7-response-output {
    display: none;
}
.contact-form .wpcf7-spinner {
    margin-top: 8px;
}










.contact-form .wpcf7 label .label-text.has-missing-required::after {
    content: " *";
    color: #c62828;
    font-weight: 700;
}

.contact-form .wpcf7 input.is-missing,
.contact-form .wpcf7 textarea.is-missing,
.contact-form .wpcf7 select.is-missing {
    border-color: #c62828;
}

.contact-form .wpcf7 label .label-text {
    display: inline-block;
}


.image-placeholder {
    display: none !important;
}


/* Project gallery height balancing (Projects 2-5) */
.project-page.project-project2 .project-photo,
.project-page.project-project3 .project-photo,
.project-page.project-project4 .project-photo,
.project-page.project-project5 .project-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}

.project-page.project-project2 .project-photo img,
.project-page.project-project3 .project-photo img,
.project-page.project-project4 .project-photo img,
.project-page.project-project5 .project-photo img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 320px;
}

/* Project 2: balanced gallery sizing */
.project-page.project-project2 .project-photo {
    min-height: 360px;
}

.project-page.project-project2 .project-photo img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 360px;
    object-fit: contain;
}

/* Project 3: increase image size by ~50px */
.project-page.project-project3 .project-photo {
    min-height: 370px;
}

.project-page.project-project3 .project-photo img {
    max-height: 370px;
}

/* Project 4: enforce equal image sizing */
.project-page.project-project4 .project-photo {
    min-height: 370px;
}

.project-page.project-project4 .project-photo img {
    width: 100%;
    height: 370px;
    max-height: none;
    object-fit: cover;
}

/* Project 5: slightly larger images with compact spacing */
.project-page.project-project5 .project-detail {
    gap: 24px;
    grid-template-columns: repeat(2, max-content);
    justify-content: center;
}

.project-page.project-project5 .project-photo {
    min-height: 0;
}

.project-page.project-project5 .project-photo img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 380px;
    object-fit: contain;
}

.project-page.project-project3 .project-detail,
.project-page.project-project4 .project-detail {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
}

.project-page.project-project3 .project-photo:last-child:nth-child(odd),
.project-page.project-project4 .project-photo:last-child:nth-child(odd),
.project-page.project-project5 .project-photo:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    max-width: 560px;
}

@media (max-width: 768px) {
    .project-page.project-project3 .project-detail,
    .project-page.project-project4 .project-detail,
    .project-page.project-project5 .project-detail {
        grid-template-columns: 1fr;
    }

    .project-page.project-project3 .project-photo:last-child:nth-child(odd),
    .project-page.project-project4 .project-photo:last-child:nth-child(odd),
    .project-page.project-project5 .project-photo:last-child:nth-child(odd) {
        max-width: none;
    }

    .project-page.project-project2 .project-photo {
        min-height: 300px;
    }

    .project-page.project-project2 .project-photo img {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 300px;
        object-fit: contain;
    }

    .project-page.project-project4 .project-photo {
        min-height: 300px;
    }

    .project-page.project-project4 .project-photo img {
        width: 100%;
        height: 300px;
    }

    .project-page.project-project5 .project-photo {
        min-height: 0;
    }

    .project-page.project-project5 .project-photo img {
        max-height: 320px;
    }
}

/* Project 2: three-across equal-height layout */
.project-page.project-project2 .project-detail {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
}

.project-page.project-project2 .project-photo {
    min-height: 0;
    flex: 0 0 auto;
    border-radius: 14px !important;
    overflow: hidden !important;
}

.project-page.project-project2 .project-photo img {
    width: auto;
    height: 340px;
    max-width: none;
    max-height: none;
    object-fit: contain;
    border-radius: 14px !important;
}

@media (max-width: 992px) {
    .project-page.project-project2 .project-detail {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .project-page.project-project2 .project-detail {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .project-page.project-project2 .project-photo {
        min-height: 300px;
    }

    .project-page.project-project2 .project-photo img {
        width: auto;
        height: 300px;
    }
}





/* Project 1: match Project 3 spacing behavior */
.project-page.project-project1 .project-detail {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    column-gap: 24px;
    row-gap: 24px;
}

.project-page.project-project1 .project-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
}

.project-page.project-project1 .project-photo img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: 14px;
}

@media (max-width: 768px) {
    .project-page.project-project1 .project-detail {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .project-page.project-project1 .project-photo {
        min-height: 320px;
    }

    .project-page.project-project1 .project-photo img {
        max-height: 320px;
    }
}

/* Project description centering */
.project-description {
    text-align: center;
}

.project-description h2,
.project-description p {
    text-align: center;
}

.project-description h2 {
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
}





