/* ============================================
   FIRMA ARBEIDSKAR1 AS - Industrial Nordic Craft
   A website that feels like a firm handshake
   ============================================ */

/* CSS Custom Properties */
:root {
    /* Primary Palette - Arctic Industrial */
    --arctic-blue: #1E3A5F;
    --arctic-blue-deep: #152840;
    --arctic-blue-light: #2A4A73;
    --timber: #C17F59;
    --timber-light: #D4956F;
    --timber-dark: #A66B48;
    --birch: #E8DED1;
    --birch-warm: #F0E6D9;
    --charcoal: #2D3436;
    --charcoal-soft: #3D4446;
    --warm-white: #F5F3F0;
    --golden-wood: #D4A574;
    --snow: #FAFAF8;

    /* Functional Colors */
    --text-primary: #1A1A1A;
    --text-secondary: #4A4A4A;
    --text-muted: #6B6B6B;
    --text-on-dark: #F5F3F0;
    --border-light: rgba(45, 52, 54, 0.1);
    --border-medium: rgba(45, 52, 54, 0.2);

    /* Typography Scale */
    --font-display: 'Bricolage Grotesque', 'Work Sans', sans-serif;
    --font-body: 'Source Sans 3', 'DM Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing System */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    /* Layout */
    --container-max: 1400px;
    --container-narrow: 900px;
    --header-height: 80px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(30, 58, 95, 0.06);
    --shadow-md: 0 4px 20px rgba(30, 58, 95, 0.1);
    --shadow-lg: 0 8px 40px rgba(30, 58, 95, 0.15);
    --shadow-timber: 0 4px 20px rgba(193, 127, 89, 0.2);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
}

/* ============================================
   Reset & Base Styles
   ============================================ */

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

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

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--warm-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    color: var(--charcoal);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
    margin-bottom: 1em;
}

p:last-child {
    margin-bottom: 0;
}

.text-lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.text-small {
    font-size: 0.875rem;
}

.text-mono {
    font-family: var(--font-mono);
    font-size: 0.85em;
    letter-spacing: 0.02em;
}

.text-timber {
    color: var(--timber);
}

.text-arctic {
    color: var(--arctic-blue);
}

/* Label Style */
.label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--timber);
}

/* ============================================
   Layout Utilities
   ============================================ */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

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

.section {
    padding: var(--space-5xl) 0;
}

.section--compact {
    padding: var(--space-4xl) 0;
}

.section--dark {
    background-color: var(--arctic-blue-deep);
    color: var(--text-on-dark);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
    color: var(--warm-white);
}

.section--birch {
    background-color: var(--birch);
}

.section--charcoal {
    background-color: var(--charcoal);
    color: var(--text-on-dark);
}

.grid {
    display: grid;
    gap: var(--space-xl);
}

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

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

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

@media (max-width: 1024px) {
    .grid--3, .grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid--2, .grid--3, .grid--4 {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 var(--space-lg);
    }

    .section {
        padding: var(--space-4xl) 0;
    }
}

/* ============================================
   Header & Navigation
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: all var(--transition-base);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--warm-white);
    opacity: 0;
    transition: opacity var(--transition-base);
    box-shadow: var(--shadow-md);
}

.header.scrolled::before {
    opacity: 0.98;
}

.header__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    z-index: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.logo__mark {
    width: 48px;
    height: 48px;
    background: var(--arctic-blue);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-bounce);
}

.logo__mark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--timber) 0%, var(--timber-dark) 100%);
    clip-path: polygon(0 50%, 50% 100%, 100% 50%, 50% 0);
    transform: scale(0.5);
}

.logo__mark span {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--warm-white);
    position: relative;
    z-index: 1;
}

.logo:hover .logo__mark {
    transform: rotate(-5deg) scale(1.05);
}

.logo__text {
    display: flex;
    flex-direction: column;
}

.logo__name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--charcoal);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.logo__tagline {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--timber);
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

.nav__list {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav__link {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--charcoal);
    position: relative;
    padding: var(--space-sm) 0;
    transition: color var(--transition-fast);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--timber);
    transition: width var(--transition-base);
}

.nav__link:hover,
.nav__link.active {
    color: var(--timber);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    margin-right: -10px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    transition: all var(--transition-fast);
}

.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(5px, -5px);
}

@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--warm-white);
        flex-direction: column;
        justify-content: flex-start;
        padding: var(--space-3xl) var(--space-xl);
        gap: var(--space-xl);
        transform: translateX(100%);
        transition: transform var(--transition-base);
    }

    .nav.open {
        transform: translateX(0);
    }

    .nav__list {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .nav__link {
        font-size: 1.5rem;
        padding: var(--space-md) 0;
    }
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 1rem 2rem;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: var(--timber);
    color: var(--warm-white);
    box-shadow: var(--shadow-timber);
}

.btn--primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn--primary:hover {
    background: var(--timber-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(193, 127, 89, 0.35);
}

.btn--primary:hover::before {
    left: 100%;
}

.btn--secondary {
    background: transparent;
    color: var(--charcoal);
    border: 2px solid var(--charcoal);
}

.btn--secondary:hover {
    background: var(--charcoal);
    color: var(--warm-white);
}

.btn--outline-light {
    background: transparent;
    color: var(--warm-white);
    border: 2px solid var(--warm-white);
}

.btn--outline-light:hover {
    background: var(--warm-white);
    color: var(--charcoal);
}

.btn--large {
    padding: 1.25rem 2.5rem;
    font-size: 1rem;
}

.btn--small {
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
}

.btn__icon {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-fast);
}

.btn:hover .btn__icon {
    transform: translateX(3px);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero__bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
}

.hero__bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        var(--warm-white) 0%,
        rgba(232, 222, 209, 0.95) 50%,
        rgba(30, 58, 95, 0.1) 100%
    );
}

/* Arctic Aurora Effect */
.hero__aurora {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
    background:
        radial-gradient(ellipse 80% 50% at 70% 20%, rgba(30, 58, 95, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(193, 127, 89, 0.1), transparent);
    filter: blur(60px);
    animation: aurora 20s ease-in-out infinite;
}

@keyframes aurora {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-5%, 5%) scale(1.1); }
}

.hero__content {
    max-width: 700px;
    animation: fadeInUp 0.8s ease-out;
}

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

.hero__label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    padding: var(--space-sm) var(--space-md);
    background: rgba(30, 58, 95, 0.08);
    border-radius: var(--radius-sm);
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero__label-dot {
    width: 8px;
    height: 8px;
    background: var(--timber);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

.hero__title {
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero__title-line {
    display: block;
}

.hero__title-accent {
    color: var(--timber);
    position: relative;
}

.hero__title-accent::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: 0;
    width: 100%;
    height: 0.15em;
    background: var(--timber);
    opacity: 0.2;
    transform: skewX(-12deg);
}

.hero__text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    max-width: 540px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero__scroll {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--timber), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.5; }
}

/* Side Stats */
.hero__stats {
    position: absolute;
    right: var(--space-xl);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.hero__stat {
    text-align: right;
}

.hero__stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: var(--arctic-blue);
    line-height: 1;
}

.hero__stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

@media (max-width: 1200px) {
    .hero__stats {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: calc(var(--header-height) + var(--space-4xl)) 0 var(--space-4xl);
    }

    .hero__scroll {
        display: none;
    }

    .hero__text {
        font-size: 1.1rem;
    }
}

/* ============================================
   Services Section
   ============================================ */

.services__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-4xl);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.service-card {
    background: var(--warm-white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
    border: 1px solid var(--border-light);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--timber), var(--golden-wood));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

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

.service-card__icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--arctic-blue) 0%, var(--arctic-blue-light) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    transition: transform var(--transition-bounce);
}

.service-card:hover .service-card__icon {
    transform: scale(1.1) rotate(-5deg);
}

.service-card__icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--warm-white);
    stroke-width: 1.5;
    fill: none;
}

.service-card__title {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.service-card__text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-lg);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--timber);
    transition: gap var(--transition-fast);
}

.service-card__link:hover {
    gap: var(--space-sm);
}

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

@media (max-width: 640px) {
    .services__grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Why Choose Us Section
   ============================================ */

.why-us {
    position: relative;
}

.why-us__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.why-us__image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.why-us__image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.why-us__image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-2xl);
    background: linear-gradient(to top, rgba(30, 58, 95, 0.9), transparent);
    color: var(--warm-white);
}

.why-us__image-stat {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.why-us__content {
    max-width: 540px;
}

.why-us__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.why-us__item {
    display: flex;
    gap: var(--space-lg);
}

.why-us__item-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--birch);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-us__item-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--timber);
    stroke-width: 2;
    fill: none;
}

.why-us__item-title {
    font-size: 1.1rem;
    margin-bottom: var(--space-xs);
}

.why-us__item-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .why-us__wrapper {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .why-us__image {
        order: -1;
    }

    .why-us__image img {
        height: 350px;
    }
}

/* ============================================
   Area Coverage Section
   ============================================ */

.coverage {
    background: var(--arctic-blue-deep);
    position: relative;
    overflow: hidden;
}

.coverage::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.coverage__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
    position: relative;
}

.coverage__content {
    color: var(--text-on-dark);
}

.coverage__content h2 {
    color: var(--warm-white);
    margin-bottom: var(--space-lg);
}

.coverage__content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-2xl);
}

.coverage__areas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.coverage__area {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-fast);
}

.coverage__area:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.coverage__area-dot {
    width: 8px;
    height: 8px;
    background: var(--timber);
    border-radius: 50%;
}

.coverage__map {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.coverage__map-placeholder {
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.coverage__map-icon {
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-lg);
    stroke: var(--timber);
    stroke-width: 1.5;
    fill: none;
}

@media (max-width: 900px) {
    .coverage__wrapper {
        grid-template-columns: 1fr;
    }

    .coverage__map {
        display: none;
    }
}

/* ============================================
   CTA Section
   ============================================ */

.cta {
    background: linear-gradient(135deg, var(--timber) 0%, var(--timber-dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.1), transparent);
    pointer-events: none;
}

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

.cta__content h2 {
    color: var(--warm-white);
    margin-bottom: var(--space-md);
}

.cta__content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
}

.cta__actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.cta .btn--primary {
    background: var(--warm-white);
    color: var(--timber-dark);
    box-shadow: var(--shadow-md);
}

.cta .btn--primary:hover {
    background: var(--snow);
    transform: translateY(-2px);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--charcoal);
    color: var(--text-on-dark);
    padding: var(--space-4xl) 0 var(--space-2xl);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer__brand {
    max-width: 300px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.footer__logo-mark {
    width: 40px;
    height: 40px;
    background: var(--arctic-blue);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer__logo-mark span {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--warm-white);
}

.footer__logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--warm-white);
}

.footer__brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer__column h4 {
    color: var(--warm-white);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-lg);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer__link:hover {
    color: var(--timber);
}

.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer__contact-item svg {
    width: 18px;
    height: 18px;
    stroke: var(--timber);
    stroke-width: 2;
    fill: none;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer__bottom {
    padding-top: var(--space-2xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer__copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer__org {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-family: var(--font-mono);
}

@media (max-width: 900px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer__brand {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .footer__grid {
        grid-template-columns: 1fr;
    }

    .footer__brand {
        grid-column: span 1;
    }

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

/* ============================================
   Services Page
   ============================================ */

.page-hero {
    padding: calc(var(--header-height) + var(--space-4xl)) 0 var(--space-4xl);
    background: var(--birch);
    position: relative;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--warm-white));
}

.page-hero__content {
    max-width: 700px;
}

.page-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.page-hero__breadcrumb a {
    color: var(--timber);
    transition: color var(--transition-fast);
}

.page-hero__breadcrumb a:hover {
    color: var(--timber-dark);
}

.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
    padding: var(--space-4xl) 0;
    border-bottom: 1px solid var(--border-light);
}

.service-detail:nth-child(even) {
    direction: rtl;
}

.service-detail:nth-child(even) > * {
    direction: ltr;
}

.service-detail:last-child {
    border-bottom: none;
}

.service-detail__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.service-detail__image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.service-detail__image:hover img {
    transform: scale(1.05);
}

.service-detail__number {
    position: absolute;
    top: var(--space-lg);
    left: var(--space-lg);
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 800;
    color: var(--warm-white);
    opacity: 0.3;
    line-height: 1;
}

.service-detail__content h3 {
    margin-bottom: var(--space-md);
}

.service-detail__content p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.service-detail__features {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.service-detail__feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.95rem;
}

.service-detail__feature svg {
    width: 20px;
    height: 20px;
    stroke: var(--timber);
    stroke-width: 2;
    fill: none;
}

@media (max-width: 900px) {
    .service-detail,
    .service-detail:nth-child(even) {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .service-detail__image {
        order: -1;
    }
}

/* ============================================
   About Page
   ============================================ */

.about-intro {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.about-intro__image {
    position: relative;
}

.about-intro__image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.about-intro__badge {
    position: absolute;
    bottom: var(--space-xl);
    right: var(--space-xl);
    background: var(--timber);
    color: var(--warm-white);
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-md);
    text-align: center;
}

.about-intro__badge-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.about-intro__badge-text {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 900px) {
    .about-intro {
        grid-template-columns: 1fr;
    }

    .about-intro__image img {
        height: 350px;
    }
}

.values {
    background: var(--birch);
}

.values__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.value-card {
    background: var(--warm-white);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform var(--transition-base);
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    background: linear-gradient(135deg, var(--arctic-blue) 0%, var(--arctic-blue-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-card__icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--warm-white);
    stroke-width: 1.5;
    fill: none;
}

.value-card__title {
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
}

.value-card__text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

@media (max-width: 640px) {
    .values__grid {
        grid-template-columns: 1fr;
    }
}

/* Team Section */
.team__card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--space-3xl);
    background: var(--warm-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.team__image img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
}

.team__content {
    padding: var(--space-3xl) var(--space-3xl) var(--space-3xl) 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team__role {
    display: inline-block;
    margin-bottom: var(--space-sm);
}

.team__name {
    margin-bottom: var(--space-lg);
}

.team__bio {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.team__quote {
    position: relative;
    padding-left: var(--space-xl);
    border-left: 3px solid var(--timber);
    font-style: italic;
    color: var(--text-secondary);
}

@media (max-width: 800px) {
    .team__card {
        grid-template-columns: 1fr;
    }

    .team__image img {
        min-height: 300px;
    }

    .team__content {
        padding: var(--space-2xl);
    }
}

/* ============================================
   Projects Page
   ============================================ */

.projects-filter {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-3xl);
    flex-wrap: wrap;
}

.filter-btn {
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--arctic-blue);
    color: var(--warm-white);
    border-color: var(--arctic-blue);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.project-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--charcoal);
    aspect-ratio: 4/3;
    cursor: pointer;
}

.project-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow), opacity var(--transition-base);
}

.project-card:hover .project-card__image {
    transform: scale(1.1);
    opacity: 0.6;
}

.project-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(45, 52, 54, 0.95) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-xl);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.project-card:hover .project-card__overlay {
    opacity: 1;
}

.project-card__category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--timber);
    margin-bottom: var(--space-xs);
}

.project-card__title {
    color: var(--warm-white);
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.project-card__location {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.project-card__location svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* Featured Project */
.project-card--featured {
    grid-column: span 2;
    aspect-ratio: 2/1;
}

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

    .project-card--featured {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card--featured {
        grid-column: span 1;
        aspect-ratio: 4/3;
    }
}

/* Placeholder for future projects */
.projects-placeholder {
    text-align: center;
    padding: var(--space-4xl);
    background: var(--birch);
    border-radius: var(--radius-xl);
    border: 2px dashed var(--border-medium);
}

.projects-placeholder__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-xl);
    background: var(--warm-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.projects-placeholder__icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--timber);
    stroke-width: 1.5;
    fill: none;
}

/* ============================================
   Contact Page
   ============================================ */

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-4xl);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.contact-info__card {
    background: var(--birch);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
}

.contact-info__item {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.contact-info__item:last-child {
    margin-bottom: 0;
}

.contact-info__icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--arctic-blue);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info__icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--warm-white);
    stroke-width: 2;
    fill: none;
}

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

.contact-info__value {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--charcoal);
}

.contact-info__value a {
    transition: color var(--transition-fast);
}

.contact-info__value a:hover {
    color: var(--timber);
}

.contact-hours {
    background: var(--arctic-blue-deep);
    color: var(--text-on-dark);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
}

.contact-hours h4 {
    color: var(--warm-white);
    margin-bottom: var(--space-lg);
}

.contact-hours__row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
}

.contact-hours__row:last-child {
    border-bottom: none;
}

.contact-hours__day {
    color: rgba(255, 255, 255, 0.7);
}

.contact-hours__time {
    color: var(--warm-white);
    font-weight: 600;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--warm-white);
    padding: var(--space-3xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.contact-form-wrapper h3 {
    margin-bottom: var(--space-sm);
}

.contact-form-wrapper > p {
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group--full {
    grid-column: span 2;
}

.form-label {
    display: block;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--charcoal);
}

.form-label .required {
    color: var(--timber);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--snow);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--timber);
    background: var(--warm-white);
    box-shadow: 0 0 0 4px rgba(193, 127, 89, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232D3436' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-md) center;
    background-size: 18px;
    padding-right: var(--space-3xl);
}

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

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    cursor: pointer;
}

.form-checkbox input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--timber);
}

.form-checkbox span {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.form-submit {
    margin-top: var(--space-xl);
}

.form-submit .btn {
    width: 100%;
}

.form-message {
    margin-top: var(--space-lg);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(46, 160, 67, 0.1);
    color: #2ea043;
    border: 1px solid rgba(46, 160, 67, 0.2);
}

.form-message.error {
    display: block;
    background: rgba(248, 81, 73, 0.1);
    color: #f85149;
    border: 1px solid rgba(248, 81, 73, 0.2);
}

@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

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

    .form-group--full {
        grid-column: span 1;
    }
}

/* ============================================
   Animations & Utilities
   ============================================ */

/* Fade In on Scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
}

.stagger-children.visible > * {
    animation: staggerFadeIn 0.5s ease forwards;
}

.stagger-children.visible > *:nth-child(1) { animation-delay: 0s; }
.stagger-children.visible > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { animation-delay: 0.2s; }
.stagger-children.visible > *:nth-child(4) { animation-delay: 0.3s; }
.stagger-children.visible > *:nth-child(5) { animation-delay: 0.4s; }
.stagger-children.visible > *:nth-child(6) { animation-delay: 0.5s; }

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

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-md); }
.mt-2 { margin-top: var(--space-xl); }
.mt-3 { margin-top: var(--space-2xl); }
.mt-4 { margin-top: var(--space-3xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-md); }
.mb-2 { margin-bottom: var(--space-xl); }
.mb-3 { margin-bottom: var(--space-2xl); }
.mb-4 { margin-bottom: var(--space-3xl); }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Loading State */
.btn.loading {
    pointer-events: none;
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--birch);
}

::-webkit-scrollbar-thumb {
    background: var(--arctic-blue-light);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--arctic-blue);
}

/* Selection */
::selection {
    background: var(--timber);
    color: var(--warm-white);
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cta,
    .btn {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    .section {
        padding: 20pt 0;
    }
}
