/* Reset & Variables */
:root {
    --bg-color: #f0f0f0; /* Light grey */
    --text-color: #222222;
    --footer-bg: #2b2b2f;
    --accent-grey: #333333;
    --font-main: 'Inter', sans-serif;
    --spacing-lg: clamp(72px, 8vw, 112px);
    --spacing-md: clamp(48px, 5vw, 72px);
    --spacing-sm: clamp(24px, 3vw, 36px);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

button,
input,
textarea {
    font: inherit;
}

:focus-visible {
    outline: 3px solid #666;
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--text-color);
    color: #fff;
    font-weight: 600;
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

ul {
    list-style: none;
}

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

/* Header */
.header {
    --header-padding-y: 30px;
    padding: var(--header-padding-y) 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(240, 240, 240, 0.9);
    backdrop-filter: blur(5px);
    transition: padding 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.header.is-scrolled {
    --header-padding-y: 18px;
    background: rgba(240, 240, 240, 0.97);
    box-shadow: 0 8px 24px rgba(34, 34, 34, 0.08);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: inline-flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.nav-list {
    display: flex;
    gap: 40px;
    font-size: 0.9rem;
}

.nav-link {
    position: relative;
    padding: 8px 0;
}

.nav-link:hover {
    color: #666;
}

.nav-link::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.25s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link[aria-current="page"]::after {
    transform: scaleX(1);
    transform-origin: left;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-color);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle:focus-visible {
    border-radius: 50%;
}

.menu-toggle-line {
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero Section */
.hero {
    height: 100svh;
    min-height: 680px;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden; /* Prevent parallax image from overlapping */
}

.hero-content {
    text-align: left; /* Keep text left aligned */
    z-index: 2;
    position: relative;
    max-width: 800px;
    margin: 0 auto; /* Center the block itself */
    width: 100%;
    margin-top: 40px;
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
    display: inline-block;
}

.title {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-wrap: balance;
}

.hero-decorative-line {
    width: 60px;
    height: 4px;
    background-color: var(--text-color);
    margin: 30px 0;
    display: block; /* Changed to block for left alignment */
}

.hero-description {
    max-width: 500px;
    font-size: 1rem;
    color: #444;
}

.hero-image-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    z-index: 1;
    opacity: 0.8;
}

.hero-image-wrapper > picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
}

.logo-badge {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
}

.badge-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Dark Sections (Offer & Partners) */
.dark-section {
    background-color: var(--footer-bg);
    color: #fff;
    padding: var(--spacing-lg) 0;
}

.dark-section-inner {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
}

.dark-section-title-wrapper {
    flex: 1;
    min-width: 300px;
}

.dark-section-title {
    font-size: 3.5rem;
    line-height: 1.1;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.dark-decorative-line {
    width: 60px;
    height: 6px;
    background-color: #fff;
    margin-top: 40px;
}

.dark-section-intro {
    max-width: 420px;
    margin-top: 15px;
    color: #ccc;
}

/* What We Offer Content */
.offer-content {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.offer-item {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.offer-icon-wrapper {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.offer-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.offer-text h3 {
    font-size: 1.2rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.offer-text p {
    font-size: 0.95rem;
    color: #ccc;
}

/* Partners Content */
.partners-content {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 30px;
    justify-content: center;
    align-items: flex-end; /* Move logos to the right slightly */
    padding-right: 50px;
}

.partner-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(94.12%);
}

.partner-logo-img.large-logo {
    height: 75px; /* Bigger size for Carhartt and Nike */
}

.partner-logo-img.carhartt-logo {
    height: 68px;
}

.partner-logo-img.champion-logo {
    height: 58px;
}

/* Latest Projects (Shop) */
.latest-projects {
    padding: var(--spacing-lg) 0;
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
    gap: 30px;
}

.section-title {
    font-size: 3.5rem;
    line-height: 1.1;
    letter-spacing: -1px;
}

.sunburst-icon {
    width: 80px;
    height: 80px;
}

.sunburst-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.spinner {
    animation: spin 15s linear infinite;
    transform-origin: center;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.projects-desc {
    max-width: 560px;
    font-size: 0.95rem;
    color: #444;
}

.projects-actions,
.shop-links {
    margin-top: 20px;
    display: flex;
    align-items: stretch;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    border: 2px solid var(--text-color);
    border-radius: 12px;
    background-color: transparent;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: background-color 0.25s ease, color 0.25s ease,
                border-color 0.25s ease, box-shadow 0.25s ease,
                transform 0.25s ease;
}

.projects-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    gap: 6px;
    padding: 10px 16px;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.btn-icon {
    width: auto;
    height: 24px;
    object-fit: contain;
}

.btn:hover {
    background-color: var(--text-color);
    color: #fff;
    border-color: var(--text-color);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
}

.btn-icon {
    transition: filter 0.25s ease;
}

.btn:hover .btn-icon {
    filter: brightness(0) invert(1);
}

.btn:focus-visible {
    outline: 3px solid #777;
    outline-offset: 3px;
}

.btn:active {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
    transform: translateY(0);
}

.projects-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    height: 600px;
}

.project-item {
    overflow: hidden;
    position: relative;
    border-radius: 8px;
}

.project-item picture {
    display: block;
    width: 100%;
    height: 100%;
}

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

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

.item-main {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.item-secondary {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.item-tertiary {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

/* Contact Section */
.contact-section {
    padding: var(--spacing-lg) 0;
    border-top: 1px solid #ddd;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px;
}

.contact-content {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

.contact-desc {
    margin: 20px 0 40px;
    font-size: 0.95rem;
    color: #555;
}

.contact-decorative-line {
    width: 60px;
    height: 10px;
    background-color: var(--text-color);
}

.contact-form-wrapper {
    flex: 1;
    min-width: 300px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #444;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid transparent;
    border-radius: 8px;
    background-color: #f8f8f8;
    font-family: inherit;
    font-size: 1rem;
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-form textarea {
    min-height: 130px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    background-color: #fff;
    border-color: var(--text-color);
    box-shadow: 0 0 0 2px rgba(34, 34, 34, 0.12);
}

.btn-submit {
    background-color: var(--accent-grey);
    color: #fff;
    border: 2px solid var(--accent-grey);
    border-radius: 10px;
    padding: 15px 40px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease,
                box-shadow 0.25s ease, transform 0.25s ease;
    display: block;
    margin-left: auto;
}

.btn-submit:hover {
    background-color: #111;
    border-color: #111;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    transform: translateY(-2px);
}

.btn-submit:active {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.16);
    transform: translateY(0);
}

.btn-submit:disabled {
    cursor: wait;
    opacity: 0.7;
}

.btn-submit-inline {
    display: inline-block;
    margin: 0;
}

.form-actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.form-privacy-notice {
    flex: 1;
    font-size: 0.72rem;
    line-height: 1.5;
    color: #666;
}

.form-privacy-notice a {
    color: var(--text-color);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.form-privacy-notice a:hover {
    color: #555;
}

.form-status {
    margin-top: 15px;
    font-size: 0.9rem;
    text-align: right;
}

.form-status[data-state="success"] {
    color: #246b3c;
}

.form-status[data-state="error"] {
    color: #9f2525;
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    color: #fff;
    padding: var(--spacing-md) 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-logo {
    border: none;
}

.footer-logo-img {
    filter: invert(1);
}

.footer-info {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
    flex: 1;
    justify-content: flex-end;
}

.footer-block {
    max-width: 300px;
}

.footer-heading {
    font-size: 1rem;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.footer-block p {
    font-size: 0.85rem;
    color: #bbb;
    margin-bottom: 8px;
    line-height: 1.5;
}

.footer-block p a:hover,
.footer-block p a:focus-visible {
    color: #fff;
    text-decoration: underline;
}

.footer-copyright {
    margin-top: 15px;
}

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

.footer-links a {
    display: block;
    font-size: 0.85rem;
    color: #bbb;
    margin-bottom: 8px;
    text-decoration: underline;
}

.footer-links a:hover {
    color: #fff;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    display: block;
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-3px);
}

.social-icons img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Responsive Design */
@media (min-width: 601px) and (max-width: 900px) {
    .nav-list {
        gap: 20px;
        font-size: 0.82rem;
    }
}

@media (max-width: 768px) {
    .title {
        font-size: clamp(2.65rem, 8vw, 3.5rem);
    }

    .section-title {
        font-size: 2.5rem;
    }
    
    .hero-image-wrapper {
        width: 300px;
        height: 300px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        height: auto;
    }
    
    .item-main, .item-secondary, .item-tertiary {
        grid-column: 1 / 2;
        grid-row: auto;
        height: 300px;
    }

    .projects-actions {
        width: 100%;
        max-width: 100%;
        gap: 8px;
    }

    .projects-desc {
        width: 100%;
        min-width: 0;
    }

    .projects-actions .btn {
        gap: 4px;
        padding: 10px 6px;
        font-size: 0.62rem;
        letter-spacing: 0.25px;
        overflow: hidden;
    }

    .projects-actions .btn-icon {
        height: 16px;
        max-width: 32px;
    }

    .partners-content {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
        align-items: center;
        padding-right: 0;
    }

    .partner-logo-img {
        max-width: 100%;
    }
    
    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-info {
        gap: 40px;
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
        width: max-content;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 600px) {
    .header {
        --header-padding-y: 22px;
    }

    .header.is-scrolled {
        --header-padding-y: 14px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav {
        display: none;
        position: absolute;
        top: calc(100% + var(--header-padding-y));
        right: 0;
        width: min(260px, 90vw);
        background: var(--bg-color);
        border: 2px solid var(--text-color);
        border-radius: 12px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
        overflow: hidden;
    }

    .nav.is-open {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        font-size: 0.95rem;
    }

    .nav-list li + li {
        border-top: 1px solid rgba(34, 34, 34, 0.18);
    }

    .nav-link {
        display: block;
        padding: 14px 18px;
    }

    .nav-link:hover,
    .nav-link:focus-visible {
        background: rgba(34, 34, 34, 0.08);
        color: var(--text-color);
    }

    .nav-link::after {
        display: none;
    }

    .hero {
        height: auto;
        min-height: 100svh;
        padding-top: 126px;
        padding-bottom: 72px;
    }

    .hero-image-wrapper {
        width: min(300px, calc(100vw - 56px));
        height: min(300px, calc(100vw - 56px));
    }

    .hero-content {
        margin-top: 0;
    }

    .subtitle {
        font-size: 1rem;
        letter-spacing: 1.6px;
    }

    .title {
        font-size: clamp(2.25rem, 12vw, 3rem);
        line-height: 1.08;
        letter-spacing: -1.25px;
    }

    .hero-description {
        max-width: 32ch;
        font-size: 0.95rem;
    }

    .dark-section-title-wrapper,
    .contact-content,
    .contact-form-wrapper {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
    }

    .offer-content {
        flex: 1 1 100%;
    }

    .form-actions {
        gap: 12px;
    }

    .form-privacy-notice {
        font-size: 0.68rem;
    }

    .btn-submit {
        padding: 13px 24px;
        font-size: 0.9rem;
    }

    .about-page,
    .privacy-page {
        padding-top: 122px;
        padding-bottom: 72px;
    }
}

.about-page {
    padding-top: 150px;
    padding-bottom: 100px;
    min-height: calc(100vh - 200px);
}

.about-content-wrapper {
    max-width: 800px;
    margin: 40px 0;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Privacy Page */
.privacy-page {
    padding-top: 150px;
    padding-bottom: 100px;
    min-height: calc(100vh - 200px);
}

.privacy-content {
    max-width: 800px;
    margin: 40px 0;
    font-size: 1rem;
    line-height: 1.8;
}

.privacy-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.privacy-content h3 {
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.privacy-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
    list-style-type: disc;
}

.privacy-content p {
    margin-bottom: 15px;
}

.text-link {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.privacy-title {
    font-size: 3rem;
}

.privacy-updated {
    margin-top: 40px;
    color: #777;
}

@media (max-width: 600px) {
    .about-page,
    .privacy-page {
        padding-top: 122px;
        padding-bottom: 72px;
    }

    .privacy-title {
        font-size: clamp(2.25rem, 12vw, 3rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .spinner {
        animation: none;
    }
}
