/* AUDATU Global Styles */
/* Design system based on offground.solutions */
:root {
    --color-bg: #191919;
    --color-bg-alt: #0e0e0e;
    --color-text: #ffffff;
    --color-text-secondary: #dbe6ec;
    --color-text-opposite: #121212;
    --color-accent: #0e4134;
    --color-accent-hover: #1a6b55;
    --color-focus: #4a9f8a;
    --font-main: 'DM Sans', sans-serif;
    --section-padding: 100px;
    --panel-gap: 5vw;
    --border-radius: 12px;
    --max-width: 1240px;
    --touch-target: 44px;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

html {
    scroll-behavior: smooth;
}

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

/* Skip to content link for accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-accent);
    color: var(--color-text);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    z-index: 9999;
    text-decoration: none;
    font-weight: 500;
}

.skip-link:focus {
    top: 20px;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 3px;
}

/* Screen reader only utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    line-height: 1.2;
}

p {
    color: var(--color-text-secondary);
    line-height: 1.8;
}

a {
    color: var(--color-accent-hover);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-text);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

header.scrolled {
    background-color: rgba(25, 25, 25, 0.95);
    backdrop-filter: blur(20px);
}

.logo {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-text);
    text-decoration: none;
}

nav {
    display: flex;
    gap: 40px;
    align-items: center;
}

nav a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--color-text);
}

/* Buttons - minimum touch target 44px */
.btn {
    display: inline-block;
    padding: 14px 32px;
    min-height: var(--touch-target);
    background-color: var(--color-accent);
    color: var(--color-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    color: var(--color-text);
}

.btn:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 3px;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
    background-color: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    margin-left: 15px;
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
}

.text-link {
    color: var(--color-accent-hover);
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.text-link:hover {
    color: var(--color-text);
}

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

/* Sections */
section {
    padding: var(--section-padding) 50px;
}

.section-dark {
    background-color: var(--color-bg-alt);
}

.section-label {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent-hover);
    margin-bottom: 20px;
    font-weight: 500;
}

.section-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 30px;
    color: var(--color-text);
}

.section-subtitle {
    font-size: 20px;
    color: var(--color-text-secondary);
    max-width: 700px;
    line-height: 1.7;
    margin-bottom: 50px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 150px 50px 100px;
    position: relative;
    overflow: hidden;
}

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

.hero-tagline {
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent-hover);
    margin-bottom: 30px;
    font-weight: 500;
}

.hero h1 {
    font-size: clamp(48px, 7vw, 80px);
    font-weight: 400;
    line-height: 1.05;
    margin-bottom: 30px;
    letter-spacing: -2px;
}

.hero-description {
    font-size: 20px;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    margin-top: 40px;
}

.hero-visual {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at center, var(--color-accent) 0%, transparent 70%);
    opacity: 0.3;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

/* Content Sections */
.content-section {
    padding: 100px 50px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.content-section h2 {
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.content-section p {
    font-size: 18px;
    margin-bottom: 25px;
    max-width: 800px;
}

/* Callout Box */
.callout-box {
    background-color: rgba(14, 65, 52, 0.2);
    border-left: 4px solid var(--color-accent-hover);
    padding: 30px 40px;
    margin: 40px 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.callout-box p {
    font-size: 18px;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 10px;
}

.callout-box cite {
    font-size: 14px;
    color: var(--color-text-secondary);
    font-style: normal;
}

/* Pull Quote */
.pull-quote {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-text);
    border-left: 4px solid var(--color-accent-hover);
    padding-left: 30px;
    margin: 60px 0;
    max-width: 700px;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.card {
    background-color: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--border-radius);
    padding: 40px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.15);
}

.card h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--color-text);
}

.card p {
    font-size: 16px;
    line-height: 1.7;
}

/* Case Study Cards */
.case-study-card {
    background-color: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--border-radius);
    padding: 50px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    display: block;
}

.case-study-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent-hover);
}

.case-study-card h3 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--color-text);
}

.case-study-card .subtitle {
    font-size: 16px;
    color: var(--color-accent-hover);
    margin-bottom: 20px;
}

.case-study-card .client {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

.case-study-card .value {
    font-size: 14px;
    color: var(--color-text-secondary);
}

/* FAQ Accordion */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 25px 0;
    font-size: 18px;
    font-weight: 500;
    color: var(--color-text);
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-main);
}

.faq-question:hover {
    color: var(--color-accent-hover);
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 25px;
}

.faq-answer p {
    font-size: 16px;
    line-height: 1.8;
}

/* CTA Block */
.cta-block {
    text-align: center;
    padding: 100px 50px;
    background: linear-gradient(135deg, rgba(14, 65, 52, 0.3) 0%, var(--color-bg) 100%);
}

.cta-block h2 {
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 20px;
}

.cta-block p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 40px;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

/* Page Header (for inner pages) */
.page-header {
    padding: 180px 50px 80px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.breadcrumb {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
}

.breadcrumb a {
    color: var(--color-text-secondary);
}

.breadcrumb a:hover {
    color: var(--color-text);
}

.page-header h1 {
    font-size: clamp(36px, 5vw, 56px);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.page-header .intro {
    font-size: 20px;
    max-width: 700px;
    line-height: 1.7;
}

/* Project Metadata */
.project-metadata {
    background-color: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--border-radius);
    padding: 40px;
    margin: 50px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.metadata-item {
    border-left: 2px solid var(--color-accent);
    padding-left: 20px;
}

.metadata-item label {
    display: block;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

.metadata-item span {
    font-size: 16px;
    color: var(--color-text);
}

/* Case Study Content */
.case-study-section {
    padding: 60px 50px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.case-study-section h2 {
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent-hover);
    margin-bottom: 30px;
}

.case-study-section p {
    font-size: 18px;
    margin-bottom: 20px;
    max-width: 800px;
}

.case-study-section ul {
    list-style: none;
    margin: 30px 0;
}

.case-study-section ul li {
    font-size: 16px;
    color: var(--color-text-secondary);
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.case-study-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--color-accent);
    border-radius: 50%;
}

/* Contact Options */
.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.contact-option {
    background-color: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--border-radius);
    padding: 40px;
}

.contact-option h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--color-text);
}

.contact-option p {
    font-size: 16px;
    margin-bottom: 25px;
}

/* Footer */
footer {
    padding: 80px 50px 40px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.footer-brand .logo {
    margin-bottom: 20px;
    display: block;
}

.footer-brand p {
    color: var(--color-text-secondary);
    font-size: 14px;
    max-width: 300px;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text);
}

.footer-column a {
    display: block;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 13px;
    color: var(--color-text-secondary);
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    header {
        padding: 20px 25px;
    }

    nav {
        display: none;
    }

    .hero {
        padding: 120px 25px 80px;
    }

    section, .content-section, .case-study-section {
        padding: 60px 25px;
    }

    .page-header {
        padding: 140px 25px 60px;
    }

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

    .project-metadata {
        grid-template-columns: 1fr;
    }

    .cta-block {
        padding: 60px 25px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 50px;
    }

    .footer-links {
        flex-direction: column;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .hero-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-options {
        grid-template-columns: 1fr;
    }
}

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

.animate-in {
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Forms */
.contact-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    min-height: var(--touch-target);
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--border-radius);
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: 16px;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent-hover);
    background-color: rgba(255,255,255,0.08);
}

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

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

/* Honeypot field - hidden from real users */
.ohnohoney {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* Form success message */
.form-success {
    background-color: rgba(14, 65, 52, 0.3);
    border: 1px solid var(--color-accent-hover);
    border-radius: var(--border-radius);
    padding: 30px 40px;
    text-align: center;
}

.form-success h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--color-text);
}

.form-success p {
    color: var(--color-text-secondary);
}

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    min-width: var(--touch-target);
    min-height: var(--touch-target);
}

.mobile-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1002;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        height: 100dvh;
        background-color: var(--color-bg-alt);
        flex-direction: column;
        justify-content: center;
        padding: 50px;
        gap: 30px;
        transition: right 0.3s ease;
        z-index: 1001;
    }

    nav.active {
        right: 0;
        display: flex;
    }

    /* Dark overlay behind mobile nav */
    nav.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: -1;
    }

    nav a {
        font-size: 18px;
        min-height: var(--touch-target);
        display: flex;
        align-items: center;
    }

    /* Hamburger → X animation when active */
    .mobile-nav-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-nav-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .mobile-nav-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}
