/*
Theme Name: FALMCO
Theme URI: https://falmco.com
Author: Your Company
Author URI: https://falmco.com
Description: A professional industrial contracting theme for FALMCO. Ultra-modern, trustworthy design.
Version: 2.5
License: GPL v2 or later
Text Domain: falmco
*/

/* ---------- CSS reset & variables ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #0b1f2e;
    --primary: #1a4b6d;
    --primary-light: #2d6a95;
    --accent: #c9a959;
    --gray-100: #f4f7fb;
    --gray-200: #e6ecf3;
    --gray-300: #cbd5e1;
    --gray-600: #475569;
    --gray-800: #1e293b;
    --white: #ffffff;
    --shadow-sm: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-md: 0 20px 40px -10px rgba(0,30,50,0.2);
    --shadow-lg: 0 30px 60px -15px rgba(0,20,40,0.3);
    --border-radius-card: 2.5rem;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--gray-800);
    background-color: var(--white);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--gray-600);
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    font-weight: 600;
    padding: 1rem 2.8rem;
    border-radius: 60px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 1.1rem;
    cursor: pointer;
}

.btn:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    box-shadow: none;
}

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

/* ---------- New Header Design ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 0.8rem 0;
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.header-logo {
    flex-shrink: 0;
}

.logo-text {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(145deg, var(--primary-dark), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.site-logo img {
    max-height: 50px;
    width: auto;
    display: block;
}

/* Desktop Navigation */
.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0 2rem;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
    padding: 0;
}

.nav-menu a {
    font-weight: 600;
    color: var(--gray-800);
    text-decoration: none;
    font-size: 1.05rem;
    transition: color 0.2s;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.2s;
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item a::after {
    width: 100%;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.btn-contact {
    background: var(--primary);
    color: white !important;
    padding: 0.6rem 2rem;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-contact:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Mobile Toggle (Hamburger) */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--gray-800);
    border-radius: 3px;
    transition: all 0.3s;
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 30, 50, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    overflow-y: auto;
}

.mobile-menu.show {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-close {
    width: 30px;
    height: 30px;
    position: relative;
    cursor: pointer;
}

.mobile-close span {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: transform 0.3s;
}

.mobile-close span:first-child {
    transform: rotate(45deg);
}

.mobile-close span:last-child {
    transform: rotate(-45deg);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 2rem;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: center;
}

.mobile-nav-menu li {
    margin: 1.5rem 0;
}

.mobile-nav-menu a {
    color: white;
    font-size: 2rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-block;
    padding: 0.5rem 1rem;
}

.mobile-nav-menu a:hover {
    color: var(--accent);
    transform: scale(1.05);
}

.mobile-contact-btn {
    display: inline-block;
    background: var(--accent);
    color: var(--primary-dark) !important;
    font-size: 1.8rem !important;
    padding: 0.8rem 2.5rem !important;
    border-radius: 50px;
    font-weight: 600;
    margin-top: 2rem;
    text-decoration: none;
    transition: all 0.3s;
}

.mobile-contact-btn:hover {
    background: white;
    color: var(--primary-dark) !important;
    transform: translateY(-3px);
}

/* Hero */
.hero {
    min-height: 90vh;
    background: linear-gradient(135deg, rgba(0,20,35,0.9), rgba(10,45,70,0.85)), url('https://images.unsplash.com/photo-1581094794329-c8112c89d12e?q=80&w=2070&auto=format&fit=crop') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: white;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero h1 span {
    background: linear-gradient(145deg, #ffffff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 700px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem 3.5rem;
    margin-top: 2.5rem;
}

.stat-item h3 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-item p {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin: 0;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.8rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.about-highlight {
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.about-stats-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.about-stat {
    background: var(--gray-100);
    padding: 1.2rem;
    border-radius: 1.5rem;
    text-align: center;
}

.about-stat h4 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.about-image {
    background: url('https://images.unsplash.com/photo-1541971874-364eede1c540?q=80&w=2069&auto=format&fit=crop') center/cover;
    height: 500px;
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-lg);
}

/* Services grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.service-card p {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.service-card ul {
    list-style: none;
}

.service-card li {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--gray-600);
    font-size: 0.95rem;
}

.service-card li i {
    color: var(--accent);
    font-size: 0.9rem;
}

.hidden-service {
    display: none;
}

.hidden-service.show {
    display: block;
}

.show-more-container {
    text-align: center;
    margin-top: 3rem;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    height: 300px;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
}

.gallery-overlay h4 {
    font-size: 1.6rem;
    margin-bottom: 0.2rem;
}

/* Sustainability */
.sustainability-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--gray-100);
    border-radius: var(--border-radius-card);
    padding: 3rem;
}

.cert-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.9rem;
    margin: 0.3rem 0.3rem 0 0;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    background: var(--white);
    border-radius: var(--border-radius-card);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.contact-detail i {
    width: 2rem;
    font-size: 1.4rem;
    color: var(--primary);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 60px;
    border: 1px solid var(--gray-300);
    margin-bottom: 1.2rem;
    font-family: inherit;
    background: var(--gray-100);
}

.contact-form textarea {
    border-radius: 30px;
    resize: vertical;
}

.contact-form button {
    width: 100%;
}

/* ---------- Modern Footer Design (Logo Removed) ---------- */
.site-footer {
    background: var(--primary-dark);
    color: #a0b8cc;
    padding: 4rem 0 0;
    margin-top: 5rem;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-description {
    color: #a0b8cc;
    line-height: 1.6;
    max-width: 260px;
}

.footer-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 0.6rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--accent);
}

/* Footer menus */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 0.7rem;
}

.footer-menu a {
    color: #a0b8cc;
    text-decoration: none;
    transition: color 0.2s, padding-left 0.2s;
    display: inline-block;
}

.footer-menu a:hover {
    color: white;
    padding-left: 5px;
}

/* Contact list */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    color: #a0b8cc;
    font-size: 0.95rem;
}

.footer-contact i {
    color: var(--accent);
    font-size: 1.1rem;
    width: 1.3rem;
    text-align: center;
}

/* Social icons */
.footer-social {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    transition: all 0.2s;
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

/* Bottom bar */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.8rem 0;
    text-align: center;
    color: #a0b8cc;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .header-nav {
        display: none;
    }
    .btn-contact {
        display: none;
    }
    .mobile-toggle {
        display: flex;
    }
    .about-grid, .sustainability-grid, .contact-grid, .gallery-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 1.2rem;
    }
    .section {
        padding: 4rem 0;
    }
    .header-container {
        padding: 0 1rem;
    }
    .logo-text {
        font-size: 1.8rem;
    }
    .site-logo img {
        max-height: 40px;
    }
    .mobile-nav-menu a {
        font-size: 1.8rem;
    }
    .mobile-contact-btn {
        font-size: 1.5rem !important;
        padding: 0.6rem 2rem !important;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-col {
        text-align: center;
        align-items: center;
    }
    .footer-description {
        max-width: 100%;
    }
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-contact li {
        justify-content: center;
    }
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .mobile-nav-menu a {
        font-size: 1.6rem;
    }
    .mobile-contact-btn {
        font-size: 1.5rem !important;
        padding: 0.6rem 2rem !important;
    }
}

/* ---------- Hide page title on all pages ---------- */
.page .entry-title,
.single .entry-title {
    display: none;
}