/*
Theme Name: Haraya Solutions
Description: Custom WordPress theme for Haraya Solutions
Version: 1.0
Author: Haraya Solutions
*/

:root {
    --primary-navy: #001f51;
    --primary-container: #15356f;
    --accent-gold: #ffce58;
    --secondary-blue: #3b82f6;
    --neutral-surface: #f9f9f7;
    --surface-container: #eeeeec;
    --on-surface: #1a1c1b;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--neutral-surface);
    color: var(--on-surface);
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    color: var(--primary-navy);
    margin: 0;
}

/* Header */
.site-header {
    background: var(--white);
    padding: 4px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-navy);
    font-weight: 800;
    font-size: 1.5rem;
}

.site-logo img {
    height: 50px;
    margin-right: 12px;
}

.main-navigation {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
}

.main-navigation a {
    text-decoration: none;
    color: var(--on-surface);
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: var(--primary-navy);
}

/* Hero Section */
.hero-section {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center; /* vertically align text with infographic */
    justify-content: space-between;
    background: #0A2E63;
    color: white;
    padding: 0;
    text-align: left;
    overflow: hidden;
}

.hero-infographic {
    order: 2; /* keep infographic on the right */
    width: 50%;
    height: auto;
    align-self: center;
    opacity: 0.4;
    object-fit: contain;
    object-position: center;
    z-index: 0;
}

.hero-section > .container {
    order: 1;
    flex: 0 0 50%;
    max-width: none; /* override global .container max-width for consistent hero columns */
    margin: 0;
    padding: 0 32px;
    display: flex;
    align-items: center; /* vertical centering for the text */
    justify-content: center; /* center the text block in the left half */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    font-weight: 600;
    color: var(--white);
}

.hero-description {
    font-size: 1.1rem;
    max-width: 100%;
    margin: 0 0 2rem;
    opacity: 0.8;
    color: var(--white);
    line-height: 1.6;
}

.hero-cta {
    display: inline-block;
    background: var(--accent-gold);
    color: var(--primary-navy);
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-gold);
}

.hero-cta:hover {
    background: transparent;
    color: var(--accent-gold);
}

@media (max-width: 1500px) and (min-width: 769px) {
    .hero-section > .container {
        padding: 1.25rem 32px 2rem;
    }

    .hero-content {
        padding-bottom: 1rem;
    }
}

/* Responsive Adjustments for Hero */
@media (max-width: 768px) {
    .hero-section {
        padding: 1.5rem 0;
        text-align: center;
        flex-direction: column;
        min-height: unset;
    }

    .hero-section > .container {
        justify-content: center;
        padding: 1rem 1.25rem 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-content {
        max-width: 800px;
        margin: 0;
        padding: 0 0.25rem 1rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 1rem;
        padding: 0 15px;
    }

    .hero-cta {
        margin-bottom: 0.75rem;
    }

    .hero-infographic {
        display: none; /* avoid overlap/fading issues on small screens */
    }
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, #f4f8ff 0%, #ffffff 100%);
    padding: 72px 0;
    text-align: center;
}

.featured-quote {
    max-width: 860px;
    margin: 0 auto 1.25rem;
    font-size: 2rem;
    line-height: 1.4;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    color: var(--primary-navy);
    position: relative;
    padding: 0 1.2rem;
}

.featured-quote::before,
.featured-quote::after {
    content: '"';
    color: var(--accent-gold);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.quote-attribution {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-container);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.stat-description {
    font-size: 1.1rem;
    color: var(--on-surface);
    max-width: 760px;
    margin: 0 auto;
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background: var(--surface-container);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-navy);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--surface-container);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary-navy);
}

.service-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-navy);
}

.service-description {
    color: var(--on-surface);
    line-height: 1.6;
}

/* Portfolio Section */
.portfolio-section {
    padding: 100px 0;
    background: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.portfolio-item {
    background: var(--surface-container);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-item:hover {
    transform: scale(1.02);
}

.portfolio-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.portfolio-image-link {
    display: block;
    cursor: zoom-in;
}

.portfolio-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    padding: 1.5rem;
    z-index: 9999;
}

.portfolio-lightbox.is-open {
    display: flex;
}

.portfolio-lightbox-image {
    max-width: min(1100px, 95vw);
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.portfolio-lightbox-close {
    position: absolute;
    top: 16px;
    right: 22px;
    border: 0;
    background: transparent;
    color: var(--white);
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-navy);
}

.portfolio-description {
    color: var(--on-surface);
    font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: var(--surface-container);
}

.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-navy);
    font-weight: 600;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--surface-container);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-navy);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    background: var(--primary-navy);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background: var(--primary-container);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary-navy);
    color: var(--white);
    text-decoration: none;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-gold);
    color: var(--primary-navy);
}

/* Footer */
.site-footer {
    background: var(--primary-navy);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

.footer-text {
    opacity: 0.8;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .featured-quote {
        font-size: 1.5rem;
    }

    .quote-attribution {
        font-size: 0.95rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .main-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }

    .portfolio-lightbox {
        padding: 1rem;
    }

    .portfolio-lightbox-close {
        top: 10px;
        right: 14px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    .hero-section {
        padding: 1.25rem 0;
    }

    .hero-section > .container {
        padding: 0.75rem 1rem 1.25rem;
    }

    .hero-cta {
        margin-bottom: 1rem;
    }

    .hero-content {
        padding-bottom: 1.25rem;
    }
    
    .services-section,
    .portfolio-section,
    .contact-section {
        padding: 60px 0;
    }
    
    .service-card,
    .portfolio-item,
    .contact-form {
        padding: 1.5rem;
    }
}

.contact-wrapper .wpcf7 {
    max-width: 720px;
    margin: 0 auto;
}

.contact-wrapper .wpcf7-form {
    background: var(--white);
    padding: 2.25rem;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 31, 81, 0.12);
}

.contact-wrapper .wpcf7-form p {
    margin: 0 0 1rem;
}

.contact-wrapper .wpcf7-form p:last-of-type {
    margin-bottom: 0;
}

.contact-wrapper .wpcf7-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-navy);
    font-weight: 600;
}

.contact-wrapper .wpcf7-form-control-wrap {
    display: block;
}

.contact-wrapper .wpcf7-form-control {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid #d9e1ef;
    border-radius: 10px;
    background: #fbfcff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-wrapper .wpcf7 input[type="text"],
.contact-wrapper .wpcf7 input[type="email"],
.contact-wrapper .wpcf7 textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid #d9e1ef;
    border-radius: 10px;
    background: #fbfcff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.contact-wrapper .wpcf7-form-control:focus {
    outline: none;
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.contact-wrapper textarea.wpcf7-form-control {
    min-height: 130px;
    resize: vertical;
}

.contact-wrapper .wpcf7-submit {
    background: var(--primary-navy);
    color: var(--white);
    border: none;
    padding: 0.95rem 1.25rem;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    font-weight: 700;
    font-size: 1rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.contact-wrapper .wpcf7-submit:hover {
    background: var(--primary-container);
    transform: translateY(-1px);
}

.contact-wrapper .wpcf7-submit:active {
    transform: translateY(0);
}

.contact-wrapper .wpcf7-response-output {
    margin: 1rem 0 0;
    border-radius: 10px;
    text-align: center;
}

