/* ===== CSS Variables & Design Tokens ===== */
:root {
    /* Color Palette */
    --clr-primary: #0F172A; /* Deep slate / navy */
    --clr-secondary: #C89933; /* Copper / Gold accent representing premium Argus */
    --clr-secondary-hover: #D4A373;
    --clr-bg-light: #F8FAFC; /* Very light slate for backgrounds */
    --clr-white: #FFFFFF;
    --clr-text-main: #334155;
    --clr-text-muted: #64748B;
    --clr-border: #E2E8F0;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --section-padding: 6rem 0;
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.05), 0 8px 10px -6px rgb(0 0 0 / 0.05);
}

/* ===== Resets & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--clr-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: var(--section-padding);
}

.text-center {
    text-align: center;
}

.subtitle {
    display: block;
    color: var(--clr-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

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

.btn-primary:hover {
    background-color: var(--clr-secondary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--clr-white);
    color: var(--clr-white);
}

.btn-secondary:hover {
    background-color: var(--clr-white);
    color: var(--clr-primary);
}

/* ===== Header & Nav ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--clr-primary);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    z-index: 1000;
    transition: var(--transition);
}

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

.logo img {
    height: 120px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu ul {
    display: flex;
    gap: 2.5rem;
}

.nav-menu ul li a {
    color: var(--clr-white);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.nav-menu ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--clr-secondary);
    transition: var(--transition);
}

.nav-menu ul li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--clr-white);
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    height: 100vh;
    min-height: 600px;
    background-image: url('assets/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-text {
    max-width: 600px;
    color: var(--clr-white);
}

.hero-text h1 {
    color: var(--clr-white);
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
}

.hero-text h1 .accent {
    color: var(--clr-secondary);
}

.hero-text p {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* ===== Trust Strip ===== */
.trust-strip {
    background-color: var(--clr-white);
    border-bottom: 1px solid var(--clr-border);
    padding: 2rem 0;
}

.trust-strip .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.trust-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--clr-text-muted);
    font-weight: 600;
    white-space: nowrap;
}

.trust-logos {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.trust-logos img {
    height: 64px;
    width: auto;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.trust-logos img:hover {
    opacity: 1;
}

.trust-divider {
    width: 1px;
    height: 48px;
    background: var(--clr-border);
}

@media (max-width: 480px) {
    .trust-strip .container { gap: 1.5rem; }
    .trust-logos img { height: 48px; }
    .trust-logos { gap: 1.5rem; }
}

/* ===== Services Section ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    background-color: var(--clr-white);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--clr-border);
    position: relative;
    overflow: hidden;
}

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

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

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

.icon-wrapper {
    width: 64px;
    height: 64px;
    background-color: rgba(200, 153, 51, 0.1);
    color: var(--clr-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

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

.read-more {
    color: var(--clr-secondary);
    font-weight: 600;
    font-family: var(--font-heading);
}

.read-more:hover {
    color: var(--clr-primary);
}


/* ===== About Section ===== */
.about {
    background-color: var(--clr-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.stats {
    display: flex;
    gap: 3rem;
    margin-top: 2.5rem;
    border-top: 1px solid var(--clr-border);
    padding-top: 2.5rem;
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--clr-secondary);
    margin-bottom: 0.25rem;
}

.stat-item p {
    font-family: var(--font-heading);
    font-weight: 500;
    margin: 0;
    color: var(--clr-primary);
}

.image-placeholder {
    width: 100%;
    height: 500px;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, var(--clr-primary) 0%, #1e293b 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at center, rgba(200, 153, 51, 0.15) 0%, transparent 70%);
}

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    color: var(--clr-white);
    position: relative;
    z-index: 2;
}

.glass-card h3 {
    color: var(--clr-white);
    margin-bottom: 0.5rem;
}

/* ===== About Image ===== */
.about-img-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.about-photo {
    width: 100%;
    height: 460px;
    object-fit: cover;
    object-position: center top;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.about-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: var(--clr-white);
    border-radius: var(--border-radius);
    padding: 1.25rem 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--clr-border);
}

.about-badges img {
    height: 56px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .about-photo { height: 320px; }
}

/* ===== Contact Section ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-details {
    margin-top: 3rem;
}

.detail-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.detail-item .icon {
    width: 48px;
    height: 48px;
    background-color: var(--clr-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-secondary);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.detail-item h5 {
    margin-bottom: 0.25rem;
    font-size: 1.125rem;
}

.detail-item p {
    color: var(--clr-text-muted);
}

.contact-form-wrapper {
    background-color: var(--clr-white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--clr-border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: var(--clr-bg-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--clr-secondary);
    background-color: var(--clr-white);
}

/* ===== Footer ===== */
.footer {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    padding: 2rem 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    font-size: 0.875rem;
    color: #94A3B8;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a:hover {
    color: var(--clr-white);
}

/* ===== Animations & Utilities ===== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .about-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    /* Reduce section padding on mobile */
    :root {
        --section-padding: 4rem 0;
    }

    /* Prevent iOS auto-zoom on inputs */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
    }

    /* Logo smaller on mobile */
    .logo img {
        height: 50px;
    }

    /* Tighter header padding on mobile */
    .header {
        padding: 0.6rem 0;
    }

    /* Disable parallax on mobile (broken on iOS Safari) */
    .hero {
        background-attachment: scroll;
        height: 100svh;
        height: 100vh; /* fallback for older iOS */
        min-height: 500px;
        /* Offset fixed header so content isn't hidden behind it */
        padding-top: 80px;
        padding-bottom: 2rem;
        align-items: center;
        box-sizing: border-box;
    }

    .hero-text h1 {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        text-align: center;
    }

    /* Mobile Menu */
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--clr-primary);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        padding: 2rem;
    }

    .nav-menu.active {
        right: 0;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .nav-menu ul li a {
        color: var(--clr-white) !important;
        font-size: 1.25rem;
    }

    .nav-menu .btn {
        margin-left: 0 !important;
    }

    /* Hamburger Animation */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    .menu-toggle.active span {
        background-color: var(--clr-white);
    }

    /* About */
    .image-placeholder {
        height: 280px;
    }

    .stats {
        gap: 1.5rem;
    }

    .stat-item h4 {
        font-size: 2rem;
    }

    /* Contact form */
    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }

    /* Footer */
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    :root {
        --section-padding: 3rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    .hero-text h1 {
        font-size: clamp(1.75rem, 9vw, 2.25rem);
    }

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

    .service-card {
        padding: 2rem 1.5rem;
    }

    /* Ensure buttons have large enough touch targets */
    .btn {
        padding: 0.875rem 1.25rem;
        min-height: 44px;
    }

    .btn-large {
        padding: 0.875rem 1.5rem;
    }

    .section-header h2 {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    .about-text p {
        font-size: 1rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem 1rem;
    }
}

/* ===== Pricing Page Styles ===== */
.page-hero {
    padding: 12rem 0 5rem; 
    background-color: var(--clr-primary);
    color: var(--clr-white);
    text-align: center;
}

.page-hero h1 {
    color: var(--clr-white);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 1.5rem;
}

.page-hero .intro-text {
    max-width: 800px;
    margin: 0 auto;
    color: #94A3B8;
    font-size: 1.125rem;
    line-height: 1.8;
}

.pricing-section {
    background-color: var(--clr-bg-light);
}

.pricing-category {
    max-width: 900px;
    margin: 0 auto 6rem;
    background-color: var(--clr-white);
    padding: 3.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.pricing-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--clr-secondary);
}

.pricing-header svg {
    color: var(--clr-secondary);
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.pricing-header h2 {
    margin: 0;
    color: var(--clr-primary);
    font-size: 2.25rem;
}

.category-subtitle {
    font-size: 1.25rem;
    color: var(--clr-text-muted);
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background-color: var(--clr-bg-light);
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.price-item:hover {
    border-color: var(--clr-secondary);
    box-shadow: var(--shadow-sm);
    transform: translateX(5px);
}

.price-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--clr-primary);
    font-size: 1.125rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.price-info p {
    margin: 0;
    color: var(--clr-text-muted);
    font-size: 0.9rem;
    max-width: 450px;
    line-height: 1.4;
}

.price-value {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--clr-primary);
    white-space: nowrap;
    padding-left: 2rem;
    text-align: right;
}

.tillegg-list {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--clr-white);
    padding: 3.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--clr-secondary);
    box-shadow: var(--shadow-sm);
}

.tillegg-list h3 {
    margin-bottom: 2rem;
    font-size: 1.75rem;
}

.tillegg-list ul {
    list-style: none;
}

.tillegg-list ul li {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--clr-border);
    font-size: 1.05rem;
}

.tillegg-list ul li:last-child {
    border-bottom: none;
}

.tillegg-list ul li span:last-child {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--clr-primary);
}

.cta-section {
    padding: 7rem 0;
    text-align: center;
    background-color: var(--clr-primary);
}

.cta-section h2 {
    color: var(--clr-white);
    margin-bottom: 2.5rem;
    font-size: 2.5rem;
}

@media (max-width: 768px) {
    .page-hero {
        padding: 8rem 0 3rem;
    }

    .page-hero h1 {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }

    .page-hero .intro-text {
        font-size: 1rem;
    }

    .pricing-category,
    .tillegg-list {
        padding: 2rem 1.25rem;
    }

    .pricing-header h2 {
        font-size: 1.75rem;
    }

    .price-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1.25rem;
    }

    .price-value {
        padding-left: 0;
        text-align: left;
        font-size: 1.1rem;
    }

    .cta-section {
        padding: 4rem 0;
    }

    .cta-section h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    /* Dashboard */
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .case-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .pricing-category,
    .tillegg-list {
        padding: 1.5rem 1rem;
    }

    .pricing-header {
        gap: 0.75rem;
    }

    .pricing-header h2 {
        font-size: 1.5rem;
    }

    .tillegg-list ul li {
        flex-direction: column;
        gap: 0.25rem;
    }

    .auth-container {
        padding: 2rem 1.25rem;
    }
}

/* ===== Min Side / Auth & Dashboard ===== */
.auth-section, .dashboard-section {
    padding: 10rem 0 5rem;
    min-height: calc(100vh - 80px);
    background-color: var(--clr-bg-light);
}

.auth-container {
    max-width: 450px;
    margin: 0 auto;
    background: var(--clr-white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.auth-container h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
}

.auth-container .form-group {
    text-align: left;
}

.auth-switch {
    margin-top: 1.5rem;
    color: var(--clr-text-muted);
}

.auth-switch a {
    color: var(--clr-secondary);
    font-weight: 600;
    cursor: pointer;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--clr-border);
}

.dashboard-header h1 {
    margin: 0;
}

.case-card {
    background: var(--clr-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    border-left: 5px solid var(--clr-secondary);
}

.case-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.case-card-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    background-color: var(--clr-border);
    color: var(--clr-text-main);
}
.status-badge.status-ny { background-color: #DBEAFE; color: #1E40AF; }
.status-badge.status-befaring { background-color: #FEF3C7; color: #92400E; }
.status-badge.status-ferdig { background-color: #D1FAE5; color: #065F46; }

.case-details p {
    margin-bottom: 0.5rem;
    color: var(--clr-text-muted);
}
.case-details strong {
    color: var(--clr-primary);
}
