/* ==========================================
   PLUMAR SpA - Industrial Construction Design
   UPDATED VERSION - MOBILE FIXES INCLUDED
   ========================================== */

:root {
    /* Color Palette - Industrial Construction Theme */
    --primary-orange: #FF6B00;
    --primary-dark: #1A1A1A;
    --concrete-gray: #4A4A4A;
    --light-gray: #E5E5E5;
    --steel-blue: #2C3E50;
    --safety-yellow: #FFB800;
    --white: #FFFFFF;
    --text-dark: #2D2D2D;
    --text-light: #6B6B6B;
    
    /* Typography */
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Work Sans', sans-serif;
    
    /* Spacing */
    --section-padding: 120px;
    --container-width: 1280px;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ==========================================
   RESET & BASE
   ========================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline, .btn-outline-white, 
.btn-primary-large, .btn-outline-white-large {
    display: inline-block;
    padding: 16px 40px;
    font-family: var(--font-display);
    font-size: 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-orange);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 0, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

.btn-outline {
    background-color: transparent;
    color: var(--primary-orange);
    border-color: var(--primary-orange);
}

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

.btn-outline-white {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

.btn-primary-large, .btn-outline-white-large {
    padding: 20px 50px;
    font-size: 20px;
}

/* ==========================================
   NAVIGATION
   ========================================== */

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-smooth);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 42px;
    color: var(--primary-orange);
    line-height: 1;
    letter-spacing: 2px;
}

.logo-tagline {
    font-size: 11px;
    color: var(--light-gray);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 2px;
}

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

.nav-menu a {
    color: var(--white);
    font-weight: 500;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

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

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

/* ==========================================
   HERO SECTION - UPDATED WITH MOBILE FIXES
   ========================================== */

.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--steel-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 200px 40px 120px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 107, 0, 0.03) 10px,
            rgba(255, 107, 0, 0.03) 20px
        );
    animation: movePattern 20s linear infinite;
}

@keyframes movePattern {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(20px) translateY(20px); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 107, 0, 0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1100px;
    padding: 0 40px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    margin-bottom: 30px;
}

.title-line {
    display: block;
    font-size: 120px;
    color: var(--white);
    line-height: 0.9;
    animation: fadeInSlide 0.8s ease-out backwards;
}

.title-line:nth-child(1) {
    animation-delay: 0.2s;
}

.title-line:nth-child(2) {
    animation-delay: 0.4s;
}

.title-line:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.title-line.highlight {
    color: var(--primary-orange);
    font-size: 140px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--light-gray);
    max-width: 700px;
    margin: 0 auto 50px;
    font-weight: 300;
    animation: fadeIn 1s ease-out 0.8s backwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-bottom: 50px;
    animation: fadeIn 1s ease-out 1s backwards;
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 60px;
    color: var(--primary-orange);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: var(--light-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeIn 1s ease-out 1.2s backwards;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: var(--light-gray);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeIn 1s ease-out 1.4s backwards;
}

.scroll-indicator {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary-orange), transparent);
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(15px); opacity: 0.5; }
}

/* ==========================================
   SECTION HEADERS
   ========================================== */

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

.section-tag {
    display: inline-block;
    color: var(--primary-orange);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    position: relative;
    padding: 0 30px;
}

.section-tag::before,
.section-tag::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 2px;
    background-color: var(--primary-orange);
}

.section-tag::before {
    left: 0;
}

.section-tag::after {
    right: 0;
}

.section-title {
    font-size: 72px;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.section-desc {
    font-size: 20px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
}

.section-cta {
    text-align: center;
    margin-top: 60px;
}

/* ==========================================
   SERVICES PREVIEW
   ========================================== */

.services-preview {
    padding: var(--section-padding) 0;
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.service-card {
    padding: 50px 30px;
    background-color: var(--white);
    border: 2px solid var(--light-gray);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-orange), var(--safety-yellow));
    transition: var(--transition-smooth);
}

.service-card:hover {
    border-color: var(--primary-orange);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
    left: 0;
}

.service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    color: var(--primary-orange);
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-title {
    font-size: 32px;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.service-text {
    color: var(--text-light);
    line-height: 1.8;
}

/* ==========================================
   PROJECTS FEATURED
   ========================================== */

.projects-featured {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, var(--primary-dark) 0%, #2D2D2D 100%);
    color: var(--white);
}

.projects-featured .section-title {
    color: var(--white);
}

.projects-showcase {
    margin-bottom: 60px;
}

.project-large {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    align-items: center;
}

.project-image {
    height: 500px;
    background: linear-gradient(135deg, var(--concrete-gray) 0%, var(--steel-blue) 100%);
    position: relative;
    overflow: hidden;
}

.project-category {
    position: absolute;
    top: 30px;
    left: 30px;
    background-color: var(--primary-orange);
    color: var(--white);
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-info h3 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--white);
}

.project-info p {
    font-size: 18px;
    color: var(--light-gray);
    margin-bottom: 30px;
    line-height: 1.8;
}

.project-details {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.detail-item {
    font-size: 15px;
    color: var(--light-gray);
}

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

.project-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.project-image-small {
    height: 200px;
    background: linear-gradient(135deg, var(--concrete-gray) 0%, var(--steel-blue) 100%);
    margin-bottom: 20px;
}

.project-item h4 {
    font-size: 24px;
    color: var(--white);
    margin-bottom: 10px;
}

.project-item p {
    font-size: 14px;
    color: var(--light-gray);
}

/* ==========================================
   WHY US
   ========================================== */

.why-us {
    padding: var(--section-padding) 0;
    background-color: var(--white);
}

.why-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.why-text .section-title {
    text-align: left;
    margin-bottom: 30px;
}

.large-text {
    font-size: 22px;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 40px;
    font-weight: 300;
}

.benefits-list {
    margin-bottom: 40px;
}

.benefits-list li {
    padding: 20px 0;
    border-bottom: 1px solid var(--light-gray);
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
}

.benefits-list li:first-child {
    border-top: 1px solid var(--light-gray);
}

.benefits-list strong {
    color: var(--primary-orange);
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.why-visual {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--safety-yellow) 100%);
    padding: 60px 40px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.stat-large {
    font-family: var(--font-display);
    font-size: 80px;
    line-height: 1;
    margin-bottom: 15px;
}

.stat-label-large {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.certification-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.badge {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 25px 15px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--primary-orange);
}

/* ==========================================
   CLIENTS
   ========================================== */

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

.clients-title {
    font-size: 42px;
    text-align: center;
    margin-bottom: 60px;
    color: var(--primary-dark);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    align-items: center;
}

.client-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 32px;
    color: var(--concrete-gray);
    background-color: var(--white);
    padding: 20px;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.client-logo:hover {
    color: var(--primary-orange);
    border-color: var(--primary-orange);
    transform: translateY(-5px);
}

/* ==========================================
   CTA SECTION
   ========================================== */

.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--safety-yellow) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 20px,
            rgba(0, 0, 0, 0.05) 20px,
            rgba(0, 0, 0, 0.05) 40px
        );
}

.cta-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
}

.cta-title {
    font-size: 64px;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 22px;
    margin-bottom: 40px;
    font-weight: 300;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* ==========================================
   FOOTER
   ========================================== */

.site-footer {
    background-color: var(--primary-dark);
    color: var(--light-gray);
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-title {
    font-size: 42px;
    color: var(--primary-orange);
    margin-bottom: 20px;
}

.footer-text {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.social-link {
    color: var(--light-gray);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
}

.social-link:hover {
    color: var(--primary-orange);
}

.footer-subtitle {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--light-gray);
    font-size: 15px;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--primary-orange);
    padding-left: 10px;
}

.footer-contact li {
    font-size: 14px;
    line-height: 1.8;
}

.footer-contact strong {
    color: var(--white);
    display: block;
    margin-bottom: 5px;
}

.footer-contact a {
    color: var(--primary-orange);
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

.footer-note {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-light);
}

/* ==========================================
   RESPONSIVE - TABLET
   ========================================== */

@media (max-width: 968px) {
    .container {
        padding: 0 30px;
    }
    
    .nav-container {
        padding: 0 30px;
    }
    
    .hero {
        min-height: auto;
        padding: 160px 30px 100px;
    }
    
    .title-line {
        font-size: 80px !important;
    }
    
    .title-line.highlight {
        font-size: 100px !important;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-stats {
        gap: 40px;
        flex-wrap: wrap;
    }
    
    .stat-number {
        font-size: 50px;
    }
    
    .section-title {
        font-size: 56px;
    }
    
    .section-desc {
        font-size: 18px;
    }
    
    .project-large {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .project-info h3 {
        font-size: 38px;
    }
    
    .why-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .why-text .section-title {
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .cta-title {
        font-size: 52px;
    }
    
    .cta-text {
        font-size: 20px;
    }
}

/* ==========================================
   RESPONSIVE - MOBILE
   ========================================== */

@media (max-width: 640px) {
    .container {
        padding: 0 20px;
    }
    
    .nav-container {
        padding: 0 20px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-cta {
        display: none;
    }
    
    .logo-text {
        font-size: 36px;
    }
    
    .logo-tagline {
        font-size: 9px;
    }
    
    .hero {
        padding: 140px 20px 80px;
    }
    
    .hero-content {
        padding: 0 20px;
    }
    
    .title-line {
        font-size: 60px !important;
        line-height: 1.1;
    }
    
    .title-line.highlight {
        font-size: 70px !important;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .stat-number {
        font-size: 48px;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta a {
        width: 100%;
        text-align: center;
    }
    
    .hero-scroll {
        display: none;
    }
    
    .section-title {
        font-size: 48px;
    }
    
    .section-desc {
        font-size: 16px;
    }
    
    .section-tag {
        font-size: 11px;
        padding: 0 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .service-card {
        padding: 40px 25px;
    }
    
    .service-title {
        font-size: 28px;
    }
    
    .project-image {
        height: 300px;
    }
    
    .project-info h3 {
        font-size: 32px;
    }
    
    .project-info p {
        font-size: 16px;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .large-text {
        font-size: 18px;
    }
    
    .stat-large {
        font-size: 64px;
    }
    
    .certification-badges {
        grid-template-columns: 1fr;
    }
    
    .clients-title {
        font-size: 32px;
    }
    
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .client-logo {
        font-size: 24px;
        height: 60px;
    }
    
    .cta-section {
        padding: 80px 0;
    }
    
    .cta-title {
        font-size: 42px;
    }
    
    .cta-text {
        font-size: 18px;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons a {
        width: 100%;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-title {
        font-size: 36px;
    }
    
    .btn-primary, .btn-secondary, .btn-outline {
        padding: 14px 30px;
        font-size: 16px;
    }
    
    .btn-primary-large, .btn-outline-white-large {
        padding: 16px 35px;
        font-size: 18px;
    }
}

/* ==========================================
   RESPONSIVE - VERY SMALL MOBILE
   ========================================== */

@media (max-width: 400px) {
    .hero {
        padding: 130px 15px 70px;
    }
    
    .title-line {
        font-size: 48px !important;
    }
    
    .title-line.highlight {
        font-size: 56px !important;
    }
    
    .hero-subtitle {
        font-size: 15px;
    }
    
    .main-nav {
        padding: 15px 0;
    }
    
    .logo-text {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 40px;
    }
    
    .cta-title {
        font-size: 36px;
    }
}
