/*
Theme Name: Skala Gruppen x Kapture
Theme URI: https://skalagruppen.dk
Author: Skala Gruppen & Kapture
Author URI: https://kapture.dk
Description: Håndværker-tema med craftsman-industrial æstetik. Designet til tømrere, tagdækkere og håndværksvirksomheder. Inkluderer kontaktformular, scroll-animationer og responsivt design.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: skala-gruppen-x-kapture
Tags: one-column, custom-colors, custom-menu, featured-images, full-width-template, theme-options
*/

:root {
    /* Primary Colors - Slate */
    --slate-dark: #1c1f26;
    --slate-mid: #2d323d;
    --slate-light: #4a5568;

    /* Accent Colors - Copper */
    --copper: #c77d4a;
    --copper-light: #e09a6a;
    --copper-dark: #a65f2e;

    /* Neutral Colors */
    --cream: #f5f0e8;
    --cream-dark: #e8e0d4;
    --wood: #3d2814;

    /* Text Colors */
    --text-light: #f5f0e8;
    --text-muted: #9ca3af;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Archivo', sans-serif;
    background: var(--slate-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Noise texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1000;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    line-height: 1.1;
}

/* ==================== NAVIGATION ==================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(28, 31, 38, 0.95), transparent);
    transition: background 0.4s ease;
}

nav.scrolled {
    background: rgba(28, 31, 38, 0.98);
    backdrop-filter: blur(10px);
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cream);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    fill: var(--copper);
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--copper-light);
}

.nav-cta {
    background: var(--copper);
    color: var(--slate-dark);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
}

.nav-cta:hover {
    background: var(--copper-light);
    transform: translateY(-2px);
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 8rem 4rem 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, var(--slate-dark) 0%, transparent 50%),
        linear-gradient(225deg, rgba(199, 125, 74, 0.1) 0%, transparent 50%);
}

/* Roof line decorative element */
.roof-line {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    overflow: hidden;
}

.roof-line::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -20%;
    width: 120%;
    height: 60%;
    background: linear-gradient(165deg, var(--slate-mid) 0%, transparent 40%);
    transform: rotate(-15deg);
}

.roof-line::after {
    content: '';
    position: absolute;
    top: 5%;
    right: -10%;
    width: 100%;
    height: 50%;
    background: linear-gradient(165deg, rgba(199, 125, 74, 0.15) 0%, transparent 30%);
    transform: rotate(-15deg);
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 2;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--copper);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-tag::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--copper);
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--cream);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero h1 span {
    color: var(--copper);
    display: block;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--copper);
    color: var(--slate-dark);
    padding: 1.25rem 2.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.4s ease;
    clip-path: polygon(0 0, 100% 0, 96% 100%, 4% 100%);
    animation: fadeInUp 0.8s ease 0.8s backwards;
}

.hero-cta:hover {
    background: var(--copper-light);
    gap: 1.5rem;
}

.hero-cta svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.hero-cta:hover svg {
    transform: translateX(4px);
}

.hero-stats {
    display: flex;
    gap: 4rem;
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid var(--slate-mid);
    animation: fadeInUp 0.8s ease 1s backwards;
}

.stat {
    text-align: left;
}

.stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--copper);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}

/* ==================== SERVICES SECTION ==================== */
.services {
    padding: 8rem 4rem;
    background: var(--slate-mid);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, var(--slate-dark), transparent);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
    z-index: 2;
}

.section-tag {
    color: var(--copper);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--cream);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.service-card {
    background: var(--slate-dark);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--copper), var(--copper-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.service-icon {
    width: 60px;
    height: 60px;
    fill: var(--copper);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.75rem;
    color: var(--cream);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--copper);
    text-decoration: none;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 1rem;
}

.service-link svg {
    width: 16px;
    height: 16px;
}

/* ==================== ABOUT SECTION ==================== */
.about {
    padding: 8rem 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image-main {
    width: 100%;
    aspect-ratio: 4/5;
    background: var(--slate-mid);
    position: relative;
    overflow: hidden;
}

.about-image-main::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(45deg, var(--slate-dark) 25%, transparent 25%),
        linear-gradient(-45deg, var(--slate-dark) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--slate-mid) 75%),
        linear-gradient(-45deg, transparent 75%, var(--slate-mid) 75%);
    background-size: 20px 20px;
    opacity: 0.3;
}

.about-image-main::after {
    content: 'Siden 1998';
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--copper);
    opacity: 0.3;
}

.about-accent {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    width: 200px;
    height: 200px;
    border: 3px solid var(--copper);
    z-index: -1;
}

.about-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--cream);
    margin-bottom: 1.5rem;
}

.about-content h2 span {
    color: var(--copper);
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.0625rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.about-feature svg {
    width: 24px;
    height: 24px;
    fill: var(--copper);
    flex-shrink: 0;
    margin-top: 2px;
}

.about-feature span {
    color: var(--cream);
    font-size: 0.9375rem;
}

.about-cta {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: transparent;
    color: var(--copper);
    padding: 1rem 0;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 2px solid var(--copper);
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.about-cta:hover {
    gap: 1.5rem;
    color: var(--copper-light);
    border-color: var(--copper-light);
}

/* ==================== TESTIMONIALS SECTION ==================== */
.testimonials {
    padding: 8rem 4rem;
    background: linear-gradient(135deg, var(--slate-mid) 0%, var(--slate-dark) 100%);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '"';
    position: absolute;
    top: 2rem;
    left: 4rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 20rem;
    color: var(--copper);
    opacity: 0.05;
    line-height: 1;
}

.testimonials-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.testimonial-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    color: var(--cream);
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.testimonial-name {
    color: var(--copper);
    font-weight: 600;
    font-size: 1rem;
}

.testimonial-location {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.testimonial-stars {
    display: flex;
    gap: 0.25rem;
    margin-top: 1rem;
}

.testimonial-stars svg {
    width: 20px;
    height: 20px;
    fill: var(--copper);
}

/* ==================== CONTACT SECTION ==================== */
.contact {
    padding: 8rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
}

.contact-info h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--cream);
    margin-bottom: 1.5rem;
}

.contact-info h2 span {
    color: var(--copper);
}

.contact-info > p {
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.0625rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item svg {
    width: 24px;
    height: 24px;
    fill: var(--copper);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item-content {
    display: flex;
    flex-direction: column;
}

.contact-item-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.contact-item-value {
    color: var(--cream);
    font-size: 1.0625rem;
}

.contact-form-container {
    background: var(--slate-mid);
    padding: 3rem;
    position: relative;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--copper), var(--copper-light), var(--copper));
}

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

.form-group label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    background: var(--slate-dark);
    border: 1px solid var(--slate-light);
    color: var(--cream);
    font-family: 'Archivo', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--copper);
    box-shadow: 0 0 0 3px rgba(199, 125, 74, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c77d4a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-submit {
    width: 100%;
    padding: 1.25rem 2rem;
    background: var(--copper);
    color: var(--slate-dark);
    border: none;
    font-family: 'Archivo', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    clip-path: polygon(0 0, 100% 0, 97% 100%, 3% 100%);
    margin-top: 1rem;
}

.form-submit:hover {
    background: var(--copper-light);
    transform: translateY(-2px);
}

/* ==================== FOOTER ==================== */
footer {
    padding: 4rem;
    background: var(--wood);
    text-align: center;
}

.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 1.5rem;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

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

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    nav {
        padding: 1rem 2rem;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 6rem 2rem 4rem;
    }

    .hero-stats {
        gap: 2rem;
        flex-wrap: wrap;
    }

    .services {
        padding: 6rem 2rem;
    }

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

    .about {
        grid-template-columns: 1fr;
        padding: 6rem 2rem;
        gap: 4rem;
    }

    .about-image {
        order: -1;
    }

    .contact {
        grid-template-columns: 1fr;
        padding: 6rem 2rem;
        gap: 4rem;
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
}
