/* ============================================
   MATTHIES MALERMEISTER - Premium Theme
   ============================================ */

:root {
    /* Brand Colors - Sophisticated Painter Palette */
    --color-primary: #1a1a2e;
    --color-secondary: #c4a265;
    --color-accent: #d4956a;
    --color-dark: #0f0f1a;
    --color-light: #f8f6f1;
    --color-cream: #f0ebe1;
    --color-text: #2d2d3a;
    --color-text-light: #6b6b7b;
    --color-white: #ffffff;
    --color-gold: #c4a265;
    --color-gold-light: #d4b87a;
    --color-warm: #e8ddd0;

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;

    /* Spacing */
    --section-padding: clamp(80px, 10vw, 140px);
    --container-width: 1200px;
    --container-narrow: 900px;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.container--narrow {
    max-width: var(--container-narrow);
}

/* ---- LOADING SCREEN ---- */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader__brush {
    width: 60px;
    height: 60px;
    position: relative;
}

.loader__brush::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 40px;
    background: var(--color-gold);
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: brushPaint 1.2s ease-in-out infinite;
}

.loader__brush::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 8px;
    background: var(--color-secondary);
    border-radius: 0 0 4px 4px;
    animation: brushPaint 1.2s ease-in-out infinite;
}

@keyframes brushPaint {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* ---- CURSOR PAINT EFFECT ---- */
.paint-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    background: var(--color-gold);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.paint-cursor.visible {
    opacity: 0.6;
}

.paint-cursor.hovering {
    width: 50px;
    height: 50px;
}

/* ---- NAVIGATION ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav.scrolled {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.nav__logo {
    display: flex;
    align-items: center;
}

.nav__logo-img {
    height: 38px;
    width: auto;
    transition: height 0.3s ease;
}

.nav.scrolled .nav__logo-img {
    height: 30px;
}

@media (max-width: 768px) {
    .nav__logo-img {
        height: 28px;
    }
    .nav.scrolled .nav__logo-img {
        height: 24px;
    }
}

.nav__links {
    display: flex;
    gap: 35px;
    list-style: none;
}

.nav__links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    position: relative;
    padding-bottom: 4px;
}

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

.nav__links a:hover {
    color: var(--color-white);
}

.nav__links a:hover::after {
    width: 100%;
}

/* Mobile menu toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    z-index: 1001;
}

.nav__toggle span {
    width: 28px;
    height: 2px;
    background: var(--color-white);
    transition: all 0.3s ease;
    display: block;
}

.nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ---- HERO SECTION ---- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--color-primary);
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero__bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(196, 162, 101, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(212, 149, 106, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(196, 162, 101, 0.08) 0%, transparent 40%),
        linear-gradient(180deg, var(--color-dark) 0%, var(--color-primary) 50%, rgba(26, 26, 46, 0.95) 100%);
    z-index: 1;
}

/* Animated paint strokes in hero */
.hero__paint-strokes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.paint-stroke {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0;
    animation: paintFloat 8s ease-in-out infinite;
}

.paint-stroke:nth-child(1) {
    width: 400px;
    height: 400px;
    background: rgba(196, 162, 101, 0.12);
    top: 10%;
    right: -5%;
    animation-delay: 0s;
}

.paint-stroke:nth-child(2) {
    width: 300px;
    height: 300px;
    background: rgba(212, 149, 106, 0.1);
    bottom: 20%;
    left: -5%;
    animation-delay: 2s;
}

.paint-stroke:nth-child(3) {
    width: 250px;
    height: 250px;
    background: rgba(196, 162, 101, 0.08);
    top: 50%;
    left: 40%;
    animation-delay: 4s;
}

@keyframes paintFloat {
    0%, 100% { opacity: 0; transform: scale(0.8) translate(0, 0); }
    50% { opacity: 1; transform: scale(1.2) translate(20px, -20px); }
}

.hero__content {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--color-gold);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease 0.5s forwards;
}

.hero__tag::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--color-gold);
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.05;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1s ease 0.7s forwards;
}

.hero__title em {
    font-style: italic;
    color: var(--color-gold);
    position: relative;
}

.hero__title em::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(196, 162, 101, 0.2);
    z-index: -1;
}

.hero__subtitle {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.6);
    max-width: 550px;
    line-height: 1.8;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1s ease 0.9s forwards;
}

.hero__actions {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1s ease 1.1s forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: var(--color-gold);
    color: var(--color-primary);
}

.btn--primary:hover {
    background: var(--color-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(196, 162, 101, 0.3);
}

.btn--outline {
    background: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn--outline:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

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

.btn--dark:hover {
    background: var(--color-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Hero scroll indicator */
.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: fadeUp 1s ease 1.5s forwards;
    opacity: 0;
}

.hero__scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, var(--color-gold), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---- SECTION COMMON ---- */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section__header {
    text-align: center;
    margin-bottom: 70px;
}

.section__tag {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--color-gold);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 20px;
}

.section__tag::before,
.section__tag::after {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--color-gold);
}

.section__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 20px;
}

.section__subtitle {
    font-size: 1.05rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ---- ABOUT SECTION ---- */
.about {
    background: var(--color-white);
}

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

.about__image-wrapper {
    position: relative;
}

.about__image {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.about__image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about__image:hover img {
    transform: scale(1.05);
}

.about__image-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    border: 2px solid var(--color-gold);
    z-index: -1;
}

.about__image-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--color-gold);
    color: var(--color-primary);
    padding: 20px 25px;
    text-align: center;
    z-index: 2;
}

.about__image-badge .number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    display: block;
}

.about__image-badge .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    margin-top: 4px;
    display: block;
}

.about__content {
    padding-right: 20px;
}

.about__content .section__tag {
    justify-content: flex-start;
}

.about__content .section__tag::after {
    display: none;
}

.about__content .section__title {
    text-align: left;
}

.about__text {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.9;
    margin-bottom: 30px;
}

.about__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.about__stat .number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.about__stat .label {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-top: 5px;
    display: block;
}

/* ---- SERVICES SECTION ---- */
.services {
    background: var(--color-light);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--color-white);
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card__icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--color-gold);
    font-size: 2rem;
}

.service-card__icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--color-gold);
    fill: none;
    stroke-width: 1.5;
}

.service-card__number {
    position: absolute;
    top: 20px;
    right: 25px;
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.03);
    line-height: 1;
}

.service-card__title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.service-card__text {
    font-size: 0.92rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ---- GALLERY / PORTFOLIO ---- */
.portfolio {
    background: var(--color-primary);
    padding: var(--section-padding) 0;
    overflow: hidden;
}

.portfolio .section__title {
    color: var(--color-white);
}

.portfolio .section__subtitle {
    color: rgba(255, 255, 255, 0.5);
}

.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 280px);
    gap: 15px;
}

.portfolio__item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 4px;
}

.portfolio__item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.portfolio__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio__item:hover img {
    transform: scale(1.1);
}

.portfolio__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(26, 26, 46, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio__item:hover .portfolio__overlay {
    opacity: 1;
}

.portfolio__overlay h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-white);
    margin-bottom: 5px;
}

.portfolio__overlay p {
    font-size: 0.8rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ---- PROCESS / WORKFLOW SECTION ---- */
.process {
    background: var(--color-white);
}

.process__timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
}

.process__timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-accent));
    z-index: 0;
}

.process__step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.process__step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--color-light);
    border: 2px solid var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gold);
    transition: all 0.3s ease;
}

.process__step:hover .process__step-number {
    background: var(--color-gold);
    color: var(--color-white);
    transform: scale(1.1);
}

.process__step h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.process__step p {
    font-size: 0.88rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ---- TESTIMONIALS ---- */
.testimonials {
    background: var(--color-cream);
    overflow: hidden;
}

.testimonials__slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    text-align: center;
    padding: 0 40px;
}

.testimonial__quote {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 500;
    font-style: italic;
    color: var(--color-primary);
    line-height: 1.6;
    margin-bottom: 30px;
    position: relative;
}

.testimonial__quote::before {
    content: '\201C';
    font-family: var(--font-heading);
    font-size: 6rem;
    color: var(--color-gold);
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    line-height: 1;
    opacity: 0.3;
}

.testimonial__author {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.95rem;
}

.testimonial__role {
    font-size: 0.82rem;
    color: var(--color-text-light);
    margin-top: 4px;
}

.testimonial__stars {
    color: var(--color-gold);
    font-size: 1.1rem;
    margin-bottom: 20px;
    letter-spacing: 3px;
}

/* ---- CTA SECTION ---- */
.cta {
    background: var(--color-primary);
    position: relative;
    overflow: hidden;
    padding: var(--section-padding) 0;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(196, 162, 101, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 50%, rgba(212, 149, 106, 0.08) 0%, transparent 50%);
}

.cta__inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 20px;
}

.cta__text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.05rem;
    max-width: 550px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.cta__actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- CONTACT SECTION ---- */
.contact {
    background: var(--color-white);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact__info h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.contact__info p {
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact__detail {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact__detail-icon {
    width: 50px;
    height: 50px;
    background: var(--color-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-gold);
}

.contact__detail-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-gold);
    fill: none;
    stroke-width: 2;
}

.contact__detail h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-light);
    margin-bottom: 4px;
}

.contact__detail span,
.contact__detail a {
    font-size: 1rem;
    color: var(--color-primary);
    font-weight: 500;
}

.contact__detail a:hover {
    color: var(--color-gold);
}

/* Contact Form */
.contact__form {
    background: var(--color-light);
    padding: 50px;
    border-radius: 4px;
}

.form__group {
    margin-bottom: 25px;
}

.form__label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text);
    margin-bottom: 8px;
}

.form__input,
.form__textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    background: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.form__input:focus,
.form__textarea:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(196, 162, 101, 0.1);
}

.form__textarea {
    min-height: 140px;
    resize: vertical;
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form__consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 25px;
}

.form__consent input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--color-gold);
}

.form__consent label {
    font-size: 0.82rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

.form__consent a {
    color: var(--color-gold);
    text-decoration: underline;
}

/* ---- FOOTER ---- */
.footer {
    background: var(--color-dark);
    color: rgba(255, 255, 255, 0.5);
    padding: 60px 0 30px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer__brand h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-white);
    margin-bottom: 15px;
}

.footer__brand h3 span {
    color: var(--color-gold);
}

.footer__brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-white);
    margin-bottom: 20px;
}

.footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__links a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
}

.footer__links a:hover {
    color: var(--color-gold);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
}

.footer__bottom a {
    color: var(--color-gold);
}

.footer__legal {
    display: flex;
    gap: 25px;
}

/* ---- SCROLL ANIMATIONS ---- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 250px);
    }

    .portfolio__item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 1;
    }

    .process__timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px 40px;
    }

    .process__timeline::before {
        display: none;
    }

    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav__links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--color-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.4s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    }

    .nav__links.open {
        right: 0;
    }

    .nav__toggle {
        display: flex;
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .portfolio__grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .portfolio__item,
    .portfolio__item:nth-child(1) {
        grid-column: span 1;
        grid-row: span 1;
        height: 250px;
    }

    .contact__grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact__form {
        padding: 30px;
    }

    .form__row {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .cta__actions {
        flex-direction: column;
        align-items: center;
    }

    .process__timeline {
        grid-template-columns: 1fr;
    }

    .hero__title {
        font-size: clamp(2.2rem, 8vw, 3.5rem);
    }

    .paint-cursor {
        display: none;
    }
}

@media (max-width: 480px) {
    .about__stats {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .hero__actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ---- CODLAB CREDIT ---- */
.footer-codlab {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px 0;
    text-align: center;
}

.footer-codlab .container {
    display: flex;
    justify-content: center;
}

.codlab-glass-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.codlab-glass-badge:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.codlab-text {
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease;
}

.codlab-glass-badge:hover .codlab-text {
    color: rgba(255, 255, 255, 0.7);
}

.codlab-logo {
    height: 14px;
    width: auto;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.codlab-glass-badge:hover .codlab-logo {
    opacity: 0.8;
}
