/* Professional law firm design system */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --background: hsl(0, 0%, 100%);
    --foreground: hsl(218, 25%, 15%);
    --primary: hsl(206, 84%, 45%);
    --primary-foreground: hsl(0, 0%, 100%);
    --primary-light: hsl(206, 84%, 55%);
    --secondary: hsl(210, 20%, 96%);
    --secondary-foreground: hsl(218, 25%, 15%);
    --muted-foreground: hsl(218, 10%, 45%);
    --border: hsl(214, 20%, 90%);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(206, 84%, 45%), hsl(206, 84%, 55%));
    --gradient-hero: linear-gradient(135deg, hsla(206, 84%, 45%, 0.05), hsl(210, 20%, 96%));
    
    /* Shadows */
    --shadow-card: 0 4px 20px -8px hsla(218, 25%, 15%, 0.1);
    --shadow-elegant: 0 10px 40px -15px hsla(206, 84%, 45%, 0.2);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(214, 220, 234, 0.5);
    z-index: 50;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 80px;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logos {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-link {
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-advokatsamfundet {
    height: 64px;
    width: auto;
}

.logo-peter {
    height: 48px;
    width: auto;
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    color: rgba(35, 47, 73, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--foreground);
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.hamburger {
  position: relative;
  display: block;
  width: 28px;
  height: 20px;
  cursor: pointer;
}

.hamburger span,
.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* top bar */
.hamburger::before {
  top: 0;
}

/* middle bar */
.hamburger span {
  top: 9px;
}

/* bottom bar */
.hamburger::after {
  bottom: 0;
}

/* --- ACTIVE STATE --- */
.hamburger.active::before {
  transform: rotate(45deg);
  top: 9px; /* move to middle */
}

.hamburger.active span {
  opacity: 0; /* hide middle line */
}

.hamburger.active::after {
  transform: rotate(-45deg);
  bottom: 9px; /* move to middle */
}

.nav-mobile {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background-color: var(--background);
    border-bottom: 1px solid rgba(214, 220, 234, 0.5);
    box-shadow: var(--shadow-card);
}

.nav-mobile.active {
    display: block;
}

.nav-mobile-content {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
}

.nav-mobile-link {
    padding: 0.75rem 1rem;
    color: var(--foreground);
    text-decoration: none;
    text-align: left;
    transition: background-color 0.3s ease;
}

.nav-mobile-link:hover {
    background-color: var(--secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    box-shadow: 0 4px 12px -4px hsla(206, 84%, 45%, 0.4);
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px -6px hsla(206, 84%, 45%, 0.5);
}

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

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

/* Cards */
.card-elegant {
    background-color: var(--background);
    border: 1px solid rgba(214, 220, 234, 0.5);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.card-elegant:hover {
    box-shadow: var(--shadow-elegant);
}

/* Hero Section */
.hero {
    padding-top: 80px;
}

.hero-gradient {
    background: var(--gradient-hero);
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

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

@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-title-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--foreground);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-title-accent {
    color: var(--primary);
}

.hero-divider {
    width: 6rem;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

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

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* About Section */
.about {
    padding: 2rem 0;
    background-color: rgba(210, 222, 242, 0.3);
}

.about-card {
    background-color: var(--background);
    border: 1px solid rgba(214, 220, 234, 0.5);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-card);
    padding: 2rem;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 1280px) {
    .about-content {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 2rem;
        align-items: start;
    }
}

.about-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-title {
    font-size: 2rem;
    font-weight: 500;
    color: var(--foreground);
}

@media (min-width: 768px) {
    .about-title {
        font-size: 2.5rem;
    }
}

.about-divider {
    width: 4rem;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.about-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    line-height: 1.7;
    margin-top: 1.5rem;
}

.service-box {
    margin-top: 2rem;
    background-color: #F8F9FA;
    border: 2px solid rgba(206, 151, 191, 0.1);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-box:hover {
    border-color: rgba(206, 151, 191, 0.2);
}

.service-header {
    background: #DBEAF6;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.service-box:hover .service-header {
    background: #C3DCF0;
}

.service-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.1);
}

.service-icon svg {
    color: var(--primary);
}

.service-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
}

.service-content {
    padding: 1.5rem;
}

.service-content p {
    color: var(--muted-foreground);
    line-height: 1.6;
}

.portrait-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 12/16;
    border-radius: 0.5rem;
    margin: 0 auto;
}

@media (min-width: 1280px) {
    .portrait-img {
        margin: 0;
    }
}

/* Privacy Page */
.privacy-page {
    padding-top: 120px;
    padding-bottom: 4rem;
    min-height: calc(100vh - 80px);
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-header {
    margin-bottom: 3rem;
}

.privacy-title {
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.privacy-divider {
    width: 4rem;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.privacy-text {
    color: var(--muted-foreground);
    line-height: 1.7;
}

.privacy-section {
    margin-bottom: 2rem;
}

.privacy-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.privacy-section p {
    margin-bottom: 1rem;
}

.privacy-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.privacy-section li {
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background-color: var(--background);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    margin-top: 4rem;
}

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

.footer-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.footer-contact {
    padding-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .about-title {
        font-size: 1.75rem;
    }
    
    .privacy-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 0.75rem;
    }
}