/* 
   Edilizia Rossi SRL - Pixel Perfect Recreation
   Source: https://grey-caterpillar-867791.hostingersite.com/
*/

:root {
    --primary: #FFBC13;
    --primary-dark: #E6A800;
    --dark: #121212;
    --dark-alt: #1E1E1E;
    --light: #FFFFFF;
    --off-white: #F9F9F9;
    --text: #333333;
    --text-muted: #666666;
    --border: #EEEEEE;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Visibility Classes */
.pc-only {
    display: flex;
}

.mobile-only {
    display: none;
}

@media (max-width: 1024px) {
    .pc-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    .mobile-only-flex {
        display: flex !important;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.8;
    background-color: var(--light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--dark);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

p {
    margin-bottom: 20px;
}

a {
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header & Nav */
.site-header {
    background: white;
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.logo img {
    height: 50px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li {
    margin: 0 18px;
}

.main-nav ul li a {
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    color: var(--dark);
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-cta .btn {
    padding: 12px 25px;
    font-size: 13px;
    border-radius: 4px;
}

.language-switcher select {
    padding: 8px 15px;
    border: 1px solid var(--border);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    cursor: pointer;
    background: white;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23333' d='M0 3l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
    border-radius: 4px;
    transition: var(--transition);
    display: inline-block;
    vertical-align: middle;
    line-height: normal;
    height: 40px;
}

.language-switcher select:hover {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(255, 188, 19, 0.1);
}

/* Buttons */
.btn {
    padding: 18px 40px;
    background: var(--primary);
    color: var(--dark);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1.5px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background: var(--dark);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Hero Section */
.hero-v2 {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    background-color: var(--dark);
    color: white;
    padding: 160px 5% 100px;
    overflow: hidden;
}

.hero-v2.main-hero {
    height: 100vh;
    min-height: 700px;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    z-index: 1;
}

.hero-v2 .container {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin-left: 0;
}

.hero-v2 span {
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: block;
}

.hero-v2 h1 {
    font-size: clamp(40px, 8vw, 90px);
    color: white;
    margin-bottom: 30px;
}

.hero-v2 h1 span {
    color: var(--primary);
    display: inline;
    letter-spacing: inherit;
    text-transform: inherit;
}

.hero-v2 p {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

/* Sections */
.section-padding {
    padding: 120px 0;
}

.section-head {
    margin-bottom: 80px;
    text-align: center;
}

.section-head span {
    color: var(--primary);
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 15px;
}

.section-head h2 {
    font-size: clamp(28px, 4vw, 42px);
}

/* Grid System */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.service-box {
    background: var(--off-white);
    padding: 50px 40px;
    border-radius: 4px;
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
}

.service-box:hover {
    background: var(--light);
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.service-box i {
    font-size: 50px;
    color: var(--primary);
    margin-bottom: 30px;
    display: block;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.portfolio-item {
    position: relative;
    height: 450px;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, var(--dark), transparent);
    color: white;
    transition: var(--transition);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
    bottom: 0;
}

/* FAQ */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    margin-bottom: 10px;
}

.faq-question {
    padding: 25px 0;
    font-weight: 800;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question i {
    transition: var(--transition);
}

.faq-answer {
    padding-bottom: 25px;
    color: var(--text-muted);
    display: none;
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active i {
    transform: rotate(180deg);
}

/* Footer */
.site-footer {
    background: var(--dark);
    color: white;
    padding: 100px 0 40px;
}

.footer-brand .logo img {
    height: 60px;
    margin-bottom: 25px;
}

.footer-links-row {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-menu {
    list-style: none;
    display: flex;
    gap: 30px;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 700;
}

.footer-menu a:hover {
    color: var(--primary);
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark);
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        padding: 40px 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 1900;
        overflow-y: auto;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .main-nav ul li {
        margin: 15px 0;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 80px 0;
    }

    .hero-v2 {
        text-align: center;
        padding-top: 140px;
    }

    .hero-v2 h1 {
        font-size: 36px;
        line-height: 1.1;
    }

    .section-head h2 {
        font-size: 32px;
    }

    .logo img {
        height: 40px;
    }

    .site-header {
        padding: 10px 5%;
    }

    .hero-v2 p {
        font-size: 16px;
    }

    .hero-v2 .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .hero-v2 .hero-btns .btn {
        width: 100%;
        margin-left: 0 !important;
    }

    .hero-v2 .container {
        margin: 0 auto;
    }

    .footer-links-row {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Vacancy Cards */
.vacancy-card {
    background: white;
    padding: 30px;
    border: 1px solid var(--border);
    transition: var(--transition);
    text-align: center;
}

.vacancy-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.vacancy-card i {
    font-size: 30px;
    color: var(--primary);
    margin-bottom: 20px;
}

.btn-small {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary);
    margin-top: 15px;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.gallery-item.large {
    grid-row: span 2;
    grid-column: span 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    font-weight: 700;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }

    .gallery-item.large {
        grid-row: span 1;
    }
}

/* Contact Form Styles */
.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    box-shadow: var(--shadow);
    border-radius: 8px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 12px;
    color: var(--dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border);
    font-family: var(--font-body);
    font-size: 15px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(255, 188, 19, 0.1);
}

#form-status {
    margin-top: 20px;
    padding: 15px;
    display: none;
    font-weight: 700;
    text-align: center;
}

#form-status.success {
    display: block;
    background: #d4edda;
    color: #155724;
}

#form-status.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
}