/*
Theme Name: MattyTrans Theme
Theme URI: https://mattytrans.eu
Author: MattyTrans
Author URI: https://mattytrans.eu
Description: Custom theme for MattyTrans based on static landing page.
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mattytrans
*/

/* Reset & Base Styles */
:root {
    --primary-color: #003366;
    --secondary-color: #0055a5;
    --accent-color: #ff6b00;
    --text-color: #333;
    --light-bg: #f9f9f9;
    --dark-bg: #1a1a1a;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    font-size: 14px;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #e65c00;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    margin-left: 10px;
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-block {
    display: block;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.section-header p {
    color: #666;
    margin-top: 10px;
}

/* Navigation */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 35px;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo img {
    height: 80px;
    width: auto;
}

.logo span {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-link {
    margin-left: 30px;
    font-weight: 500;
    color: var(--text-color);
    position: relative;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link.btn-contact {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 4px;
}

.nav-link.btn-contact:hover {
    background-color: var(--secondary-color);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px auto;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: url('images/1000008798.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    /* text-align: center; Removed to allow left alignment */
    margin-top: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 102, 0.7);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 600px;
    text-align: center;
    margin-left: 5%;
    padding-top: 50px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: -50px;
    position: relative;
    z-index: 2;
    margin-bottom: 80px;
}

.feature-box {
    background: var(--white);
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-10px);
}

.feature-box i {
    font-size: 40px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text {
    text-align: center;
}

.about-text h2 {
    color: var(--primary-color);
    font-size: 32px;
}

.about-list {
    margin-top: 20px;
}

.about-list li {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
}

.about-list li i {
    color: var(--accent-color);
    margin-right: 10px;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Services Section */
.services {
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border: 1px solid #eee;
    padding: 30px;
    border-radius: 8px;
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 28px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: var(--white);
}

.career {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.career-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.career-card {
    background: var(--white);
    border: 1px solid #eee;
    padding: 30px;
    border-radius: 8px;
    transition: var(--transition);
}

.career-card h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.career-card p {
    margin-bottom: 15px;
    color: #555;
}

.career-card ul {
    margin-left: 18px;
    margin-bottom: 10px;
}

.career-card ul li {
    margin-bottom: 6px;
    list-style: disc;
}

.career-card a {
    color: var(--accent-color);
    font-weight: 500;
}

.career-card .career-apply-btn {
    color: #ffffff;
}

.career-card a:hover {
    text-decoration: underline;
}

/* Fleet Section */
.fleet {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.fleet-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.fleet-item {
    overflow: hidden;
    border-radius: 8px;
    height: auto; /* Changed from fixed height to auto to accommodate text */
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.fleet-item img {
    width: 100%;
    height: 250px; /* Keep image height fixed */
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.fleet-caption {
    padding: 15px;
    text-align: center;
}

.fleet-caption h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.fleet-caption p {
    font-size: 14px;
    color: #666;
}

/* Stats Section */
.stats {
    background: var(--primary-color);
    padding: 60px 0;
    color: var(--white);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px 15px;
}

.stat-item .count {
    font-family: 'Montserrat', sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: var(--accent-color);
    display: block;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.stat-item p {
    font-size: 15px;
    margin-top: 8px;
    opacity: 0.9;
}

.hidden-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Contact Section */
.contact {
    padding: 80px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.contact-info {
    background: var(--primary-color);
    color: var(--white);
    padding: 40px;
}

.info-item {
    display: flex;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 24px;
    color: var(--accent-color);
    margin-right: 20px;
    margin-top: 5px;
}

.info-item h4 {
    margin-bottom: 5px;
}

.info-item a {
    color: #ddd;
}

.info-item a:hover {
    color: var(--white);
}

.contact-form-container {
    padding: 40px;
    background: var(--white);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 16px;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
}

#formMessage {
    margin-top: 15px;
    text-align: center;
    font-weight: 600;
}

/* Footer */
footer {
    background: #f5f5f5 !important;
    color: #555 !important;
    padding-top: 50px;
    position: relative;
    z-index: 10;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 35px;
    border-bottom: 1px solid #ddd;
}

.footer-col {
    text-align: center;
}

.footer-col h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 1px;
}

.footer-col h3 span {
    color: var(--accent-color);
}

.footer-col p,
.footer-col ul li {
    color: #666;
    font-size: 14px;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.social-links {
    margin-top: 15px;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: #333;
    color: var(--white);
    border-radius: 50%;
    margin-right: 10px;
}

.social-links a:hover {
    background: var(--accent-color);
}

.mt-floating-fb {
    position: fixed !important;
    bottom: 20px !important;
    left: 20px !important;
    z-index: 9999 !important;
    display: block !important;
}

.mt-floating-fb-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    text-decoration: none !important;
}

.mt-floating-fb-btn--facebook {
    background-color: #1877f2;
    color: #fff;
}

.mt-floating-fb-btn--facebook i {
    font-size: 26px;
}

.mt-floating-fb-btn--facebook:hover {
    background-color: #0f5dc0;
}

.footer-bottom {
    text-align: center;
    padding: 15px 0;
    font-size: 13px;
    background: #e8e8e8;
    color: #777;
}

/* Fix horizontal overflow on mobile */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Mobile Responsiveness & Landscape Mode */
@media (max-width: 1024px) {
    .menu-toggle {
        display: block !important;
        z-index: 99999;
        cursor: pointer;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease-in-out;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
        z-index: 99998;
        height: calc(100vh - 80px); /* Fill remaining height */
        overflow-y: auto; /* Allow scrolling if menu is tall */
    }
    
    .nav-menu.active {
        left: 0 !important;
    }
    
    .nav-link {
        margin: 20px 0;
        display: block;
        width: 100%;
    }

    /* Restore hamburger animation */
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 768px) {
    /* Fix hero content for mobile */
    .hero-content {
        margin-left: 0;
        padding-top: 0;
        text-align: center;
        max-width: 100%;
        padding: 0 20px;
        box-sizing: border-box; /* Ensure padding doesn't overflow width */
    }

    .hero h1 {
        font-size: 36px;
    }
    
    .about-container,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .about-list {
        margin-top: 25px;
    }

    .about-list li {
        margin-bottom: 18px;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .about-image {
        order: -1;
    }

    /* Mobile contact info adjustments */
    .contact-info {
        padding: 20px;
    }

    .info-item p {
        font-size: 14px;
        white-space: normal;
        word-break: break-word;
    }

    .info-item i {
        margin-right: 15px;
    }

    /* Adjust logo for mobile */
    .logo {
        font-size: 20px;
    }

    .logo img {
        height: 40px;
    }
}

/* Landscape Mode for Mobile Phones */
@media (max-width: 1024px) and (orientation: landscape) {
    .nav-menu {
        top: 60px; /* Smaller header height for landscape */
        height: calc(100vh - 60px);
        padding: 10px 0;
        overflow-y: scroll; /* Ensure scrolling works */
    }

    .nav-link {
        margin: 10px 0; /* Tighter spacing for links */
        padding: 5px 0;
    }

    .navbar {
        height: 60px; /* Reduce navbar height */
        padding: 0 10px;
    }
    
    .logo img {
        height: 30px; /* Smaller logo */
    }

    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 80px; /* Account for fixed header */
        padding-bottom: 40px;
    }

    .hero-content {
        padding-top: 20px;
    }

    .hero h1 {
        font-size: 28px; /* Smaller title */
        margin-bottom: 10px;
    }

    .hero p {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .hero-buttons {
        margin-top: 15px;
    }
    
    .btn {
        padding: 8px 20px; /* Smaller buttons */
        font-size: 12px;
    }

    /* Ensure modals/overlays don't get cut off */
    .contact-wrapper, .about-container {
        padding-top: 20px;
    }
}

/* Small screens adjustments */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .stats-container {
        gap: 10px;
    }

    .stat-item .count {
        font-size: 32px;
    }

    .stat-item p {
        font-size: 14px;
    }
}
