:root {
    --c-primary: #e65100;
    --c-primary-dark: #b94200;
    --c-secondary: #263238;
    --c-secondary-light: #4f5b62;
    --c-text-main: #212121;
    --c-text-light: #757575;
    --c-white: #ffffff;
    --c-bg-light: #f5f5f5;
    --c-error: #d32f2f;
    --c-success: #388e3c;
    
    --f-main: 'Roboto', sans-serif;
    --f-heading: 'Montserrat', sans-serif;
    
    --s-container: 1200px;
    --s-gutter: 1rem;
    --s-header-h: 70px;
    
    --sh-card: 0 4px 6px rgba(0,0,0,0.1);
    --sh-card-hover: 0 10px 20px rgba(0,0,0,0.15);
    
    --tr-fast: 0.3s ease;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Roboto:wght@300;400;500&display=swap');

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

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

ul {
    list-style: none;
}

.x-container {
    width: 100%;
    max-width: var(--s-container);
    margin: 0 auto;
    padding: 0 var(--s-gutter);
}

.hidden {
    display: none !important;
}

/* Header */
.x-nav-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--s-header-h);
    background-color: var(--c-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.x-nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.x-logo {
    font-family: var(--f-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--c-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.x-logo-sub {
    color: var(--c-secondary);
    font-weight: 600;
}

.x-desktop-menu {
    display: none;
}

.x-menu-list {
    display: flex;
    gap: 2rem;
}

.x-menu-list a {
    font-weight: 500;
    color: var(--c-secondary);
    position: relative;
}

.x-menu-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--c-primary);
    transition: var(--tr-fast);
}

.x-menu-list a:hover::after {
    width: 100%;
}

.x-burger-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.x-bar {
    width: 25px;
    height: 3px;
    background-color: var(--c-secondary);
    transition: var(--tr-fast);
}

.x-mobile-menu {
    position: absolute;
    top: var(--s-header-h);
    left: 0;
    width: 100%;
    background-color: var(--c-white);
    border-top: 1px solid #eee;
    transform: translateY(-150%);
    transition: transform var(--tr-fast);
    z-index: 999;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.x-mobile-menu.active {
    transform: translateY(0);
}

.x-mobile-list {
    display: flex;
    flex-direction: column;
}

.x-mobile-list li a {
    display: block;
    padding: 1rem var(--s-gutter);
    border-bottom: 1px solid #f0f0f0;
    font-weight: 500;
    color: var(--c-secondary);
}

/* Hero Section */
.h-hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--c-white);
    padding-top: var(--s-header-h);
}

.h-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.h-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(38, 50, 56, 0.7), rgba(38, 50, 56, 0.5));
    z-index: -1;
}

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

.h-title {
    font-family: var(--f-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.h-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Buttons */
.x-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--c-primary);
    color: var(--c-white);
    padding: 0 2rem;
    min-height: 54px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.x-btn-primary:hover {
    background-color: var(--c-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 81, 0, 0.3);
}

.x-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: 2px solid var(--c-secondary);
    color: var(--c-secondary);
    padding: 0 1.5rem;
    min-height: 40px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--tr-fast);
}

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

.x-btn-text {
    background: none;
    border: none;
    color: var(--c-primary);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.x-btn-text:hover {
    color: var(--c-primary-dark);
    gap: 0.8rem;
}

/* Services */
.s-services-wrapper {
    padding: 5rem 0;
    background-color: var(--c-bg-light);
}

.s-header {
    text-align: center;
    margin-bottom: 3rem;
}

.s-header h2 {
    font-family: var(--f-heading);
    font-size: 2rem;
    color: var(--c-secondary);
    margin-bottom: 0.5rem;
}

.s-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.s-card {
    background: var(--c-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--sh-card);
    transition: var(--tr-fast);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
}

.s-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sh-card-hover);
}

.s-icon {
    font-size: 2.5rem;
    color: var(--c-primary);
    margin-bottom: 1.5rem;
}

.s-card h3 {
    font-family: var(--f-heading);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--c-secondary);
}

.s-card p {
    color: var(--c-text-light);
    flex-grow: 1;
}

/* Projects Section */
.p-projects-section {
    padding: 5rem 0;
}

.p-row {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.p-image-col img {
    border-radius: 8px;
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: var(--sh-card);
}

.p-text-col h2 {
    font-family: var(--f-heading);
    font-size: 2rem;
    color: var(--c-secondary);
    margin-bottom: 1.5rem;
}

.p-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.p-list li i {
    color: var(--c-primary);
}

/* Stats Section */
.k-stats-section {
    background-color: var(--c-secondary);
    color: var(--c-white);
    padding: 4rem 0;
}

.k-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
}

.k-number {
    display: block;
    font-family: var(--f-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--c-primary);
    margin-bottom: 0.5rem;
}

.k-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Contact Section */
.c-contact-wrapper {
    padding: 5rem 0;
    background-color: var(--c-bg-light);
}

.c-box {
    display: grid;
    grid-template-columns: 1fr;
    background: var(--c-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--sh-card);
}

.c-info {
    padding: 2.5rem;
    background-color: var(--c-primary);
    color: var(--c-white);
}

.c-info h2 {
    font-family: var(--f-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.c-details {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.c-detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.c-form {
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--c-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--f-main);
    font-size: 1rem;
    transition: var(--tr-fast);
}

.form-group input {
    min-height: 48px;
}

.form-group textarea {
    padding-top: 1rem;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(230, 81, 0, 0.1);
}

.form-group input:invalid:not(:placeholder-shown) {
    border-color: var(--c-error);
}

.full-width {
    width: 100%;
}

/* Footer */
.f-footer-wrapper {
    background-color: var(--c-secondary);
    color: #cfd8dc;
    padding: 4rem 0 1rem;
}

.f-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 3rem;
}

.f-col h4 {
    color: var(--c-white);
    margin-bottom: 1.5rem;
    font-family: var(--f-heading);
}

.f-col ul li {
    margin-bottom: 0.8rem;
}

.f-col ul li a:hover,
.f-legal-btn:hover {
    color: var(--c-primary);
}

.f-legal-btn {
    background: none;
    border: none;
    color: inherit;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    text-align: left;
    padding: 0;
}

.f-bottom {
    text-align: center;
    font-size: 0.9rem;
}

/* Modals */
.m-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(5px);
    opacity: 1;
    transition: opacity 0.3s;
}

.m-modal-overlay.hidden {
    pointer-events: none;
    opacity: 0;
    display: flex !important; /* Keep flex for transition but hide via opacity/events */
}

.m-modal-content {
    background: var(--c-white);
    padding: 2.5rem;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.m-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--c-text-light);
}

.m-modal-content h3 {
    font-family: var(--f-heading);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--c-secondary);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(38, 50, 56, 0.95);
    color: var(--c-white);
    padding: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.cookie-text h4 {
    margin-bottom: 0.5rem;
    color: var(--c-primary);
}

.cookie-text p {
    font-size: 0.9rem;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
}

.x-btn-primary.small,
.x-btn-secondary.small {
    min-height: 40px;
    padding: 0 1rem;
    font-size: 0.9rem;
}
.x-btn-secondary.small {
    border-color: var(--c-white);
    color: var(--c-white);
}

/* Media Queries */
@media (min-width: 576px) {
    .h-title { font-size: 3rem; }
    .s-grid { grid-template-columns: repeat(2, 1fr); }
    .cookie-banner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 2rem;
    }
    .cookie-text { max-width: 60%; }
}

@media (min-width: 768px) {
    .x-burger-btn { display: none; }
    .x-desktop-menu { display: block; }
    .k-grid { grid-template-columns: repeat(3, 1fr); }
    .c-box { grid-template-columns: 1fr 1.5fr; }
    .f-top { grid-template-columns: repeat(3, 1fr); }
    .s-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    .p-row {
        flex-direction: row;
        align-items: center;
    }
    .p-image-col, .p-text-col { flex: 1; }
    .h-title { font-size: 4rem; }
}