/*
Theme Name: Uniway Custom
Theme URI: https://uniway.com
Author: Uniway Team
Author URI: https://uniway.com
Description: A modern, professional WordPress theme with Bootstrap 5
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: uniway-custom
*/

/* === CSS Variables === */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --border-color: #e5e7eb;
}

/* === Global Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* === Navigation === */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-shrink: 0;
}

.site-header .navbar {
    padding-top: 10px;
    padding-bottom: 10px;
    min-height: auto;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    padding: 1.25rem 0;
    margin: 0;
    line-height: 1;
}

.navbar-brand img {
    margin: 0;
    padding: 0;
    display: block;
    max-height: 55px;
    width: auto;
}

.custom-logo-link {
    padding: 0;
    margin: 0;
    line-height: 1;
    display: block;
}

.custom-logo-link img {
    max-height: 40px;
    width: auto;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    text-transform: uppercase;
    position: relative;
}

.nav-link:hover {
    color: #1a4878 !important;
}

/* Active menu item styling */
.nav-item.current-menu-item .nav-link,
.nav-item.current_page_item .nav-link,
.nav-item.current-menu-parent .nav-link,
.nav-item.current_page_parent .nav-link {
    color: #1a4878 !important;
}

/* Underline for active menu item */
.nav-item.current-menu-item .nav-link::after,
.nav-item.current_page_item .nav-link::after,
.nav-item.current-menu-parent .nav-link::after,
.nav-item.current_page_parent .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: #1a4878;
}

/* Navigation wrapper for menu + button */
.navbar-nav-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    justify-content: flex-end;
}

/* Apply Now Button */
.btn-apply-now {
    background: linear-gradient(135deg, #1a4878 0%, #3d7fc5 100%);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-apply-now:hover {
    background: linear-gradient(135deg, #3d7fc5 0%, #1a4878 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 72, 120, 0.4);
    color: #fff !important;
}

/* Mobile responsive */
@media (max-width: 991px) {
    .navbar-nav-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-apply-now {
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }
}

/* === Hero Section === */
.hero-section {
    background: linear-gradient(135deg, #1a4878 20%, #0dcaf0 100%);
    color: var(--white);
    padding: 40px 0;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-icon {
    margin-bottom: -0.5rem;
    animation: fadeInUp 1s ease;
}

.hero-icon-img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.5));
}

.hero-content h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.1s;
    animation-fill-mode: both;
}

.hero-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.btn-primary {
    background-color: var(--white);
    color: var(--primary-color);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

.btn-primary:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-hero-gradient {
    background: linear-gradient(135deg, #1a4878 0%, #3d7fc5 100%);
    color: var(--white);
    border: none;
    padding: 14px 40px;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
    display: inline-block;
    text-decoration: none;
}

.btn-hero-gradient:hover {
    background: linear-gradient(135deg, #3d7fc5 0%, #1a4878 100%);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(26, 72, 120, 0.4);
}

.hero-collage {
    animation: fadeInUp 1s ease 0.6s;
    animation-fill-mode: both;
    margin: 0;
    padding: 0;
}

.collage-grid {
    position: relative;
    height: 100%;
    min-height: 450px;
    margin: 0;
    padding: 0;
}

.collage-item {
    position: absolute;
    overflow: hidden;
    border-radius: 12px;
    transition: transform 0.3s ease, z-index 0.3s ease;
}

.collage-item:hover {
    transform: translateY(-10px) scale(1.02);
    z-index: 10 !important;
}

/* First image - front and largest */
.collage-item-1 {
    width: 70%;
    height: 75%;
    top: 0;
    left: 0;
    z-index: 4;
}

/* Second image - behind first, peek from right */
.collage-item-2 {
    width: 65%;
    height: 70%;
    top: 8%;
    right: 0;
    z-index: 3;
}

/* Third image - behind second, peek from bottom */
.collage-item-3 {
    width: 60%;
    height: 65%;
    bottom: 0;
    left: 5%;
    z-index: 2;
}

/* Fourth image - furthest back, peek from corner */
.collage-item-4 {
    width: 55%;
    height: 60%;
    bottom: 5%;
    right: 5%;
    z-index: 1;
}

.collage-image {
    margin-top: 50px;
    width: 90%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Collage with 3 images */
.collage-grid:has(.collage-item:nth-child(3):last-child) .collage-item-1 {
    width: 75%;
    height: 80%;
}

.collage-grid:has(.collage-item:nth-child(3):last-child) .collage-item-2 {
    width: 70%;
    height: 75%;
}

.collage-grid:has(.collage-item:nth-child(3):last-child) .collage-item-3 {
    width: 65%;
    height: 70%;
}

/* Collage with 2 images */
.collage-grid:has(.collage-item:nth-child(2):last-child) .collage-item-1 {
    width: 80%;
    height: 85%;
    top: 0;
    left: 0;
}

.collage-grid:has(.collage-item:nth-child(2):last-child) .collage-item-2 {
    width: 75%;
    height: 80%;
    bottom: 0;
    right: 0;
}

/* Collage with 1 image */
.collage-grid:has(.collage-item:only-child) .collage-item-1 {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/* === Statistics Section === */
.stats-section {
    padding: 0;
    background-color: var(--bg-light);
}

.stats-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.stat-box {
    background-color: #e8eaf6;
    padding: 30px 20px;
    border-radius: 12px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.stat-number {
    color: #1a4878;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.stat-text {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.stat-text b,
.stat-text strong {
    color: #1a4878;
}

/* === Sections === */
.section {
    padding: 20px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.125rem;
    color: var(--text-light);
}

/* === Features/Services === */
.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: #1a4878;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* === About Section === */
.about-section {
    background-color: var(--bg-light);
}

.about-image-wrapper {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

/* === CTA Section === */
.cta-section {
    background: #1a4878;
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.cta-section p {
    color: rgba(255,255,255,0.9);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.cta-section .btn {
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    border: none;
    color: #1a4878;
    padding: 15px 40px;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.cta-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.5);
    background: linear-gradient(135deg, #f5f5f5 0%, #d0d0d0 100%);
    color: #1a4878;
}

/* === Footer === */
.site-footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 20px 0;
    margin-top: auto;
    flex-shrink: 0;
}

.footer-bottom {
    text-align: center;
    color: rgba(255,255,255,0.7);
}

.footer-bottom p {
    margin: 0;
}

/* === WhatsApp Floating Button === */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #1a4878;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(26, 72, 120, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #3d7fc5;
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(26, 72, 120, 0.6);
}

.whatsapp-float i {
    line-height: 1;
}

/* === Animations === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Contact Form 7 Styling === */
.wpcf7 {
    max-width: 800px;
    margin: 0 auto;
}

.wpcf7-form {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.wpcf7-form p {
    margin-bottom: 1.5rem;
}

.wpcf7-form label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form input[type="date"],
.wpcf7-form select,
.wpcf7-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.3s ease;
    background-color: var(--white);
    color: var(--text-dark);
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="url"]:focus,
.wpcf7-form input[type="number"]:focus,
.wpcf7-form input[type="date"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: #1a4878;
    box-shadow: 0 0 0 3px rgba(26, 72, 120, 0.1);
}

.wpcf7-form textarea {
    min-height: 150px;
    resize: vertical;
}

.wpcf7-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a4878' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.wpcf7-form input[type="submit"] {
    background: linear-gradient(135deg, #1a4878 0%, #3d7fc5 100%);
    color: var(--white);
    border: none;
    padding: 14px 40px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    min-width: 200px;
}

.wpcf7-form input[type="submit"]:hover {
    background: linear-gradient(135deg, #3d7fc5 0%, #1a4878 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 72, 120, 0.3);
}

.wpcf7-form input[type="submit"]:active {
    transform: translateY(0);
}

/* Validation Messages */
.wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

.wpcf7-form input.wpcf7-not-valid,
.wpcf7-form select.wpcf7-not-valid,
.wpcf7-form textarea.wpcf7-not-valid {
    border-color: #dc3545;
}

/* Response Messages */
.wpcf7-response-output {
    margin: 1.5rem 0 0;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    border: none;
}

.wpcf7-mail-sent-ok {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.wpcf7-mail-sent-ng,
.wpcf7-validation-errors {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.wpcf7-spam-blocked {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

/* Spinner */
.wpcf7-spinner {
    margin-left: 10px;
    vertical-align: middle;
}

/* Checkbox and Radio Styling */
.wpcf7-form .wpcf7-list-item {
    margin: 0 0 0.5rem 0;
    display: block;
}

.wpcf7-form input[type="checkbox"],
.wpcf7-form input[type="radio"] {
    width: auto;
    margin-right: 8px;
}

.wpcf7-form .wpcf7-list-item-label {
    font-weight: normal;
    cursor: pointer;
}

/* File Upload */
.wpcf7-form input[type="file"] {
    padding: 10px;
    border: 2px dashed var(--border-color);
    background-color: var(--bg-light);
}

.wpcf7-form input[type="file"]:hover {
    border-color: #1a4878;
    background-color: rgba(26, 72, 120, 0.05);
}

/* Acceptance (Privacy Policy) */
.wpcf7-form .wpcf7-acceptance {
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: 8px;
}

/* Two Column Layout Support */
.wpcf7-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .wpcf7-form {
        padding: 30px 20px;
    }

    .wpcf7-form .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .wpcf7-form input[type="submit"] {
        width: 100%;
    }
}

/* === Responsive === */
@media (max-width: 991px) {
    /* Fix hero section: reverse column order on mobile so logo appears first */
    .hero-section .row {
        display: flex !important;
        flex-direction: column-reverse !important;
    }

    /* Ensure hero-content elements are in correct order and centered */
    .hero-section .hero-content {
        display: flex !important;
        flex-direction: column !important;
        text-align: center !important;
        align-items: center !important;
    }

    .hero-section .hero-content .hero-icon {
        order: 1 !important;
        margin-bottom: 1rem !important;
    }

    .hero-section .hero-content h1 {
        font-size: 2.5rem;
        order: 2 !important;
    }

    .hero-section .hero-content p {
        font-size: 1rem;
        order: 3 !important;
    }

    .hero-section .hero-content .hero-buttons {
        order: 4 !important;
    }

    /* Add spacing for logo in collage */
    .hero-section .hero-collage {
        margin-bottom: 2rem !important;
        text-align: center !important;
    }
}

@media (max-width: 768px) {

    .btn-outline-light {
        margin-left: 0;
        margin-top: 1rem;
    }

    h2 {
        font-size: 2rem;
    }

    .collage-grid {
        min-height: 300px;
    }

    .hero-collage {
        margin: 0;
        padding: 0;
    }

    .hero-icon-img {
        width: 100px;
        height: 100px;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 26px;
    }

    .stats-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-box {
        margin-bottom: 1rem;
    }

    .about-image-wrapper {
        height: 300px;
        margin-top: -2rem;
    }

    .about-section .col-lg-6.mb-4 {
        margin-bottom: 1rem !important;
    }
}
