/* ============================================
   AG Epoxy Golv Stockholm - Stylesheet
   Warm, premium, and professional design
   ============================================ */

/* CSS Variables - Color Palette */
:root {
    /* Background Colors */
    --bg-primary: #F4F4F2;      /* Cool light gray */
    --bg-secondary: #EAEAEA;    /* Slightly darker gray */
    --bg-card: #FFFFFF;         /* Pure white */
    --bg-dark: #1A1A1A;         /* Coal */

    /* Text Colors */
    --text-primary: #1C1C1C;    /* Near black */
    --text-secondary: #4A4848;  /* Dark gray */
    --text-light: #787878;      /* Medium gray */
    --text-on-dark: #F0EDE8;    /* Warm white */

    /* Accent Colors */
    --accent-primary: #2C2C2C;  /* Charcoal */
    --accent-secondary: #1A1A1A;/* Coal */
    --accent-tertiary: #4A4848; /* Dark gray */

    /* Additional */
    --white: #FFFFFF;
    --border: #D5D5D3;
    --shadow: rgba(0, 0, 0, 0.06);
    --shadow-hover: rgba(0, 0, 0, 0.12);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

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

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 { font-size: clamp(1.75rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.45rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 3vw, 1.5rem); }
h4 { font-size: 1.0625rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

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

a:hover {
    color: var(--accent-tertiary);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(0, 0, 0, 0.2);
    outline-offset: 3px;
}

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

.skip-link {
    position: absolute;
    top: -48px;
    left: var(--spacing-md);
    z-index: 1100;
    background: var(--text-primary);
    color: var(--white);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
}

.skip-link:focus {
    top: var(--spacing-sm);
    color: var(--white);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(252, 251, 250, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.logo-subtext {
    font-size: 0.75rem;
    color: var(--text-light);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.logo-image {
    height: 120px;
    width: auto;
    display: block;
}

.hero-logo {
    height: 300px;
    width: auto;
    display: block;
    opacity: 0.12;
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.nav {
    display: none;
}

.legal-nav {
    display: block;
}

@media (max-width: 639px) {
    .legal-nav {
        display: none;
    }
}

.nav-list {
    display: flex;
    gap: var(--spacing-lg);
    list-style: none;
}

.legal-nav .nav-list {
    gap: var(--spacing-md);
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-list a {
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--text-secondary);
    padding: var(--spacing-xs) 0;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: var(--transition);
}

.nav-list a:hover::after {
    width: 100%;
}

.nav-list a.active::after,
.nav-list a.active {
    color: var(--accent-primary);
}

.nav-list a.active::after {
    width: 100%;
}

.nav-list a:hover {
    color: var(--accent-primary);
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

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

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

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

/* Mobile Menu */
.nav.active {
    display: block;
    position: fixed;
    top: 78px;
    left: var(--spacing-md);
    right: var(--spacing-md);
    bottom: auto;
    background: rgba(255, 255, 255, 0.97);
    padding: var(--spacing-lg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.10);
    backdrop-filter: blur(12px);
}

.nav.active .nav-list {
    flex-direction: column;
    gap: 0.35rem;
}

.nav.active .nav-list a {
    display: block;
    padding: 0.85rem 0;
    font-size: 1.125rem;
    border-bottom: 1px solid rgba(47, 40, 35, 0.08);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    min-height: 48px;
}

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

.btn-primary:hover {
    background: var(--accent-secondary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(47, 40, 35, 0.12);
}

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
    box-shadow: 0 10px 20px rgba(47, 40, 35, 0.06);
}

.btn-header {
    display: none;
    padding: 0.7rem 1.35rem;
    font-size: 0.82rem;
}


.btn-large {
    padding: 1rem 2.1rem;
    font-size: 0.95rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--spacing-xl) * 1.15) var(--spacing-md) var(--spacing-xl);
    margin-top: 70px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(20, 15, 12, 0.52);
    z-index: -1;
}

.hero-content {
    max-width: 700px;
    text-align: center;
    padding: clamp(1.25rem, 4vw, 2rem);
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.hero-eyebrow {
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.hero-content h1 {
    margin-bottom: var(--spacing-md);
    max-width: 11ch;
    color: #faf6f1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.0625rem;
    margin-bottom: var(--spacing-lg);
    color: rgba(250, 244, 236, 0.92);
    text-shadow: 0 1px 4px rgba(0,0,0,0.45);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
}

.hero-buttons .btn {
    width: 100%;
}

.hero-buttons .btn-secondary {
    color: #faf6f1;
    border-color: rgba(250, 240, 225, 0.5);
}

.hero-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.8);
    color: #ffffff;
}

.hero-highlights {
    list-style: none;
    display: grid;
    gap: 0.75rem;
    margin: 0 0 var(--spacing-lg);
    text-align: left;
}

.hero-highlights li {
    position: relative;
    padding-left: 1.5rem;
    color: rgba(248, 242, 234, 0.9);
    text-shadow: 0 1px 4px rgba(0,0,0,0.45);
}

.hero-highlights li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
    line-height: 1;
}

/* ============================================
   SECTION STYLES
   ============================================ */
section {
    padding: clamp(3.5rem, 8vw, 4rem) 0;
}

.services,
.gallery,
.use-cases,
.about,
.process,
.faq,
.trust,
.contact,
.legal-note {
    content-visibility: auto;
    contain-intrinsic-size: 1px 900px;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    margin-bottom: var(--spacing-sm);
}

.section-header p {
    font-size: 1rem;
    max-width: 580px;
    margin: 0 auto;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    background: var(--bg-primary);
}

.services .section-header h2,
.services .section-header p {
    color: var(--text-primary);
}

.services-grid {
    display: grid;
    gap: var(--spacing-lg);
}

.service-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 12px 30px var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--shadow-hover);
}

.service-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.service-content {
    padding: var(--spacing-md);
}

.service-content h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.service-content p {
    font-size: 0.9375rem;
    margin-bottom: var(--spacing-md);
}

.service-features {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.service-features li {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.05);
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--bg-secondary);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20,15,12,0.55) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ============================================
   USE CASES SECTION
   ============================================ */
.use-cases {
    background: var(--bg-primary);
}

.use-cases-grid {
    display: grid;
    gap: var(--spacing-md);
}

.use-case-card {
    padding: var(--spacing-lg);
    background: var(--bg-card);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 28px rgba(47, 40, 35, 0.07);
}

.use-case-card summary {
    list-style: none;
    position: relative;
    cursor: pointer;
    padding-right: 2rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-primary);
}

.use-case-card summary::-webkit-details-marker {
    display: none;
}

.use-case-card summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    color: var(--accent-primary);
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.use-case-card[open] summary::after {
    content: '−';
}

.use-case-body {
    margin-top: 0.75rem;
}

.use-case-body p {
    margin-bottom: 0;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    background: var(--bg-primary);
}

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

.about-text h2 {
    margin-bottom: var(--spacing-md);
}

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

.about-values {
    display: grid;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.value-item {
    padding: var(--spacing-md);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--accent-primary);
    box-shadow: 0 8px 22px rgba(47, 40, 35, 0.06);
}

.value-item summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    position: relative;
    cursor: pointer;
    padding-right: 1.6rem;
}

.value-item summary::-webkit-details-marker {
    display: none;
}

.value-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-primary);
    font-size: 1.25rem;
    line-height: 1;
}

.value-item[open] summary::after {
    content: '−';
}

.value-icon {
    color: var(--accent-primary);
    font-size: 1.25rem;
    display: inline-flex;
}

.value-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.value-body {
    margin-top: 0.5rem;
}

.value-body p {
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* ============================================
   PROCESS SECTION
   ============================================ */
.process {
    background: var(--bg-primary);
}

.process-steps {
    display: grid;
    gap: var(--spacing-lg);
}

.process-step {
    position: relative;
    padding: var(--spacing-md);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 24px var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.process-step summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    position: relative;
    cursor: pointer;
    padding-right: 1.8rem;
}

.process-step summary::-webkit-details-marker {
    display: none;
}

.process-step summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-primary);
    font-size: 1.4rem;
    line-height: 1;
}

.process-step[open] summary::after {
    content: '−';
}

.step-number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-primary);
    color: var(--white);
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    border-radius: 50%;
    flex-shrink: 0;
}

.process-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    color: var(--text-primary);
}

.process-body {
    margin-top: var(--spacing-sm);
}

.process-body p {
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq {
    background: var(--bg-primary);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: var(--spacing-md);
}

.faq-item {
    padding: var(--spacing-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 24px var(--shadow);
}

.faq-item summary {
    list-style: none;
    position: relative;
    cursor: pointer;
    padding-right: 2rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.1rem, 2.7vw, 1.35rem);
    color: var(--text-primary);
    line-height: 1.35;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-primary);
    font-size: 1.4rem;
    line-height: 1;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-body {
    margin-top: 0.6rem;
}

.faq-body p {
    margin-bottom: 0;
}

/* ============================================
   TRUST SECTION
   ============================================ */
.trust {
    background: var(--bg-secondary);
}

.trust-grid {
    display: grid;
    gap: var(--spacing-md);
}

.trust-card {
    padding: var(--spacing-lg);
    background: var(--bg-card);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 22px rgba(47, 40, 35, 0.06);
}

.trust-card h3 {
    margin-bottom: 0.75rem;
}

.trust-card p {
    margin-bottom: 0;
}

/* ============================================
   CTA BAND
   ============================================ */
.cta-band {
    padding: calc(var(--spacing-xl) * 0.85) 0;
    background: #1C1C1C;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cta-band-content {
    display: grid;
    gap: var(--spacing-md);
    align-items: center;
    padding: clamp(1.25rem, 4vw, 1.75rem);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.cta-band h2,
.cta-band p {
    color: var(--text-on-dark);
}

.cta-band h2 {
    max-width: 12ch;
}

.cta-band p {
    margin-bottom: 0;
    max-width: 640px;
    color: rgba(244, 238, 231, 0.82);
}

.cta-band-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.cta-band-actions .btn {
    width: 100%;
}

.cta-band .btn-secondary {
    color: var(--text-on-dark);
    background: transparent;
    border-color: rgba(244, 238, 231, 0.22);
}

.cta-band .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.35);
    color: var(--text-on-dark);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    background: var(--bg-primary);
}

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

.contact-info {
    display: grid;
    gap: 0.75rem;
    margin-bottom: var(--spacing-lg);
}

.contact-item {
    padding: 0.85rem 0.95rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-item h4 {
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.contact-item p {
    font-size: 1rem;
    line-height: 1.45;
    color: var(--text-primary);
    margin-bottom: 0;
}

.contact-item a {
    color: var(--text-primary);
}

.contact-item a:hover {
    color: var(--accent-primary);
}


.contact-form-wrapper {
    padding: var(--spacing-lg);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: 0 14px 34px var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-form-wrapper h3 {
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.contact-form-wrapper .btn-primary {
    align-self: flex-start;
}

.contact-intro {
    margin-bottom: var(--spacing-md);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
}

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

.form-group input,
.form-group textarea {
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.10);
}

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

.form-legal {
    margin-bottom: 0;
    font-size: 0.875rem;
    color: var(--text-light);
}

.form-legal a {
    color: var(--text-secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.form-status {
    min-height: 1.5rem;
    margin-bottom: 0;
    font-size: 0.9375rem;
}

.form-status.is-success {
    color: #2f6b46;
}

.form-status.is-error {
    color: #8b2f2f;
}

.contact-form button[disabled] {
    opacity: 0.7;
    cursor: wait;
}

/* ============================================
   LEGAL NOTE SECTION
   ============================================ */
.legal-note {
    background: var(--bg-secondary);
}

.legal-note-grid {
    display: grid;
    gap: var(--spacing-md);
}

.legal-note-card {
    padding: var(--spacing-lg);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 22px rgba(47, 40, 35, 0.06);
}

.legal-note-card h3 {
    margin-bottom: 0.5rem;
}

.legal-note-card p {
    margin-bottom: 0;
}

/* ============================================
   LEGAL PAGE
   ============================================ */
.legal-page {
    padding-top: 70px;
}

.legal-hero {
    position: relative;
    padding: calc(var(--spacing-xl) * 1.5) 0 var(--spacing-xl);
    background: var(--bg-primary);
    overflow: hidden;
}

.legal-hero-inner {
    max-width: 760px;
}

.legal-hero-content {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.legal-hero-logo {
    height: 200px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

@media (max-width: 639px) {
    .legal-hero-logo {
        display: none;
    }
}

.eyebrow {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.legal-hero h1 {
    margin-bottom: 1rem;
    max-width: none;
}

.legal-hero p {
    max-width: 620px;
    font-size: 1.0625rem;
}

.legal-content {
    padding-top: 0;
    background: var(--bg-primary);
}

.legal-layout {
    display: grid;
    gap: var(--spacing-md);
}

.legal-card {
    padding: var(--spacing-lg);
    background: var(--bg-card);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 22px rgba(47, 40, 35, 0.06);
}

.legal-card h2 {
    margin-bottom: 0.75rem;
}

.legal-card p:last-child {
    margin-bottom: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    padding: calc(var(--spacing-xl) * 1.5) 0 0;
}

.footer-content {
    display: grid;
    gap: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo-text {
    color: var(--white);
    font-size: 1.5rem;
}

.footer-brand .logo-subtext {
    color: rgba(244, 238, 231, 0.62);
}

.footer-brand p {
    margin-top: var(--spacing-sm);
    color: rgba(244, 238, 231, 0.72);
    font-size: 0.9375rem;
}


.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
    font-family: 'Playfair Display', serif;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a,
.footer-contact p,
.footer-contact a {
    color: rgba(244, 238, 231, 0.72);
    font-size: 0.9375rem;
}

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

.footer-bottom {
    text-align: center;
    padding: var(--spacing-md) 0;
}

.footer-bottom p {
    color: rgba(244, 238, 231, 0.48);
    font-size: 0.875rem;
    margin-bottom: 0;
}

.footer-org {
    color: rgba(244, 238, 231, 0.75);
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

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

/* ============================================
   404 PAGE
   ============================================ */
.notfound-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    background:
        radial-gradient(circle at top, rgba(0, 0, 0, 0.06), transparent 40%),
        linear-gradient(180deg, var(--bg-primary), var(--bg-secondary));
}

.notfound-container {
    max-width: 620px;
    padding: clamp(2rem, 5vw, 4rem);
    background: rgba(255, 253, 252, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(47, 40, 35, 0.08);
    text-align: center;
}

.notfound-eyebrow {
    margin-bottom: 0.75rem;
    color: var(--accent-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.notfound-container h1 {
    margin-bottom: 0.5rem;
    font-size: clamp(3.5rem, 10vw, 6rem);
}

.notfound-container p {
    max-width: 42ch;
    margin: 0 auto 1.5rem;
}

.notfound-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
    }
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Tablet */
@media (min-width: 640px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-values {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop */
@media (min-width: 768px) {
    .nav {
        display: block;
    }
    
    .btn-header {
        display: inline-flex;
    }

    .menu-toggle {
        display: none;
    }
    
    .hero-content {
        text-align: left;
        padding: 0;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        backdrop-filter: none;
    }
    
    .hero-buttons {
        justify-content: flex-start;
    }

    .hero-buttons .btn,
    .cta-band-actions .btn {
        width: auto;
    }

    .hero-highlights {
        max-width: 620px;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cta-band-content {
        grid-template-columns: minmax(0, 2fr) auto;
    }
    
    .service-image {
        height: 260px;
    }
    
    .service-content {
        padding: var(--spacing-lg);
    }
    
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }

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

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

/* Large Desktop */
@media (min-width: 1024px) {
    section {
        padding: calc(var(--spacing-xl) * 1.25) 0;
    }
    
    .hero {
        min-height: 90vh;
    }
    
    .service-image {
        height: 300px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .service-card,
    .gallery-item,
    .process-step,
    .faq-item,
    .value-item,
    .btn {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .hero-content {
        animation: fadeInUp 0.8s ease-out;
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .animate {
        animation: fadeInUp 0.6s ease-out both;
    }
}

/* ============================================
   SCROLL-TO-TOP BUTTON
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.25rem;
    z-index: 900;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: var(--bg-card);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(47, 40, 35, 0.14);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.scroll-top:hover {
    background: var(--accent-primary);
    color: var(--white);
    transform: translateY(-3px);
}

.scroll-top[hidden] {
    display: none;
}

/* ============================================
   DESIGN IMPROVEMENTS — Clean & Professional
   ============================================ */

/* Hero overlay - richer gradient */
.hero-overlay {
    background: linear-gradient(
        160deg,
        rgba(0,0,0,0.25) 0%,
        rgba(0,0,0,0.45) 100%
    );
}

/* Hero eyebrow — fix mobile overflow */
@media (max-width: 639px) {
    .hero-eyebrow {
        font-size: 0.7rem;
        letter-spacing: 0.04em;
        white-space: normal;
        word-break: break-word;
    }
}

/* Hero buttons — side by side at 400px+ */
@media (min-width: 400px) {
    .hero-buttons .btn {
        width: auto;
        flex: 1;
        min-width: 0;
    }
}

/* Hero min-height — use dynamic viewport height on mobile */
@supports (min-height: 100dvh) {
    .hero {
        min-height: calc(100dvh - 70px);
    }
}

/* Primary button — white on dark backgrounds (hero, CTA band) */
.hero-buttons .btn-primary,
.cta-band .btn-primary {
    background: var(--white);
    color: var(--text-primary);
    box-shadow: none;
}

.hero-buttons .btn-primary:hover,
.cta-band .btn-primary:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

/* Section backgrounds — alternating rhythm */
.gallery   { background: var(--bg-secondary); }
.about     { background: var(--bg-secondary); }
.faq       { background: var(--bg-secondary); }
.trust     { background: var(--bg-primary);   }

/* Service card — subtle image gradient overlay */
.service-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20,15,12,0.22) 0%, transparent 45%);
    pointer-events: none;
}

/* Gallery — 2 columns at 480px, 3 columns on tablet/desktop */
@media (min-width: 480px) and (max-width: 639px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 640px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Contact info — 2 columns at 420px on mobile */
@media (min-width: 420px) and (max-width: 639px) {
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Section padding — reduce on very small screens */
@media (max-width: 479px) {
    section { padding: 2.5rem 0; }
}

/* Process — horizontal timeline on desktop */
@media (min-width: 640px) {
    .process-steps {
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
        position: relative;
        align-items: start;
    }

    .process-steps::before {
        content: '';
        position: absolute;
        top: 23px;
        left: calc(12.5% + 24px);
        right: calc(12.5% + 24px);
        height: 2px;
        background: var(--border);
        pointer-events: none;
        z-index: 0;
    }

    .process-step {
        background: transparent;
        box-shadow: none;
        border: none;
        padding: 0 var(--spacing-sm);
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .process-step summary {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        padding-right: 0;
        pointer-events: none;
        cursor: default;
    }

    .process-step summary::after { display: none; }

    .step-number {
        position: relative;
        z-index: 1;
        margin-bottom: 0.75rem;
        flex-shrink: 0;
    }

    .process-body { margin-top: 0.5rem; }

    .process-body p {
        font-size: 0.875rem;
        text-align: center;
    }

    .process-title { font-size: 1.05rem; }
}

/* About values — no toggle on desktop */
@media (min-width: 640px) {
    .value-item summary {
        pointer-events: none;
        cursor: default;
        padding-right: 0;
    }
    .value-item summary::after { display: none; }
}

/* Use cases — no toggle on desktop */
@media (min-width: 640px) {
    .use-case-card summary {
        pointer-events: none;
        cursor: default;
        padding-right: 0;
    }
    .use-case-card summary::after { display: none; }
}

/* Footer — better mobile spacing */
@media (max-width: 767px) {
    .footer-content { gap: var(--spacing-lg); }
}

/* --- Section heading decorator --- */
.section-header h2 {
    padding-bottom: var(--spacing-sm);
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 2px;
}

/* --- Remove old +/- pseudo-elements from summaries --- */
.faq-item summary::after,
.use-case-card summary::after,
.value-item summary::after,
.process-step summary::after {
    display: none;
}

/* --- Chevron icon --- */
.chevron-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    transition: transform 0.28s ease;
    flex-shrink: 0;
    margin-left: auto;
}

details[open] > summary .chevron-icon {
    transform: rotate(180deg);
}

.faq-item summary,
.use-case-card summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
    padding-right: 0;
}

/* --- Service CTA --- */
.service-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: var(--spacing-md);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
    transition: gap 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.service-cta:hover {
    gap: 0.6rem;
    border-color: var(--accent-primary);
    color: var(--accent-secondary);
}

/* ============================================
   OM OSS PAGE
   ============================================ */
.om-section {
    padding: clamp(3.5rem, 8vw, 5rem) 0;
}

.om-section--light { background: var(--bg-primary); }
.om-section--gray  { background: var(--bg-secondary); }

.om-cols {
    display: grid;
    gap: var(--spacing-lg);
}

@media (min-width: 768px) {
    .om-cols {
        grid-template-columns: 5fr 7fr;
        gap: var(--spacing-xl);
        align-items: start;
    }
}

.om-col-lead h2 {
    margin-bottom: var(--spacing-md);
}

.om-lead {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.om-cards {
    display: grid;
    gap: var(--spacing-md);
}

@media (min-width: 768px) {
    .om-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.om-cards .legal-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.65rem;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .header,
    .menu-toggle,
    .hero-buttons,
    .contact-cta {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: var(--spacing-md);
    }
    
    body {
        background: white;
        color: black;
    }
}
