/* ==========================================================================
   DESIGN SYSTEM & VARIABLES (Dark Industrial, Creative Spirit)
   ========================================================================== */
:root {
    --bg-dark: #121416;         /* Deep industrial charcoal */
    --bg-surface: #1a1d20;      /* Card and structural panel background */
    --bg-accent: #22262a;       /* Dynamic component background */
    --text-primary: #f1f3f5;    /* Premium clean high-contrast off-white */
    --text-secondary: #909a9e;  /* Cool industrial slate/grey */
    --brand-gold: #d4af37;      /* Creative gold accent punctuation */
    --border-color: #2a2f35;    /* Crisp low-opacity grid borders */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --transition-smooth: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

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

/* ==========================================================================
   TYPOGRAPHY & UI CONTROLS
   ========================================================================== */
h1, h2, h3, h4 {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

p {
    color: var(--text-secondary);
    font-weight: 300;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-gold);
    margin-bottom: 0.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-dark);
}
.btn-primary:hover {
    background-color: var(--brand-gold);
    color: var(--bg-dark);
}

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

/* ==========================================================================
   HEADER & DYNAMIC MODULAR SLIDE-OUT MENU
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(18, 20, 22, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.site-logo {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.03em;
}
.site-logo span {
    color: var(--brand-gold);
}

/* Menu Hidden state compressed to the right icon position */
.nav-menu-container {
    opacity: 0;
    visibility: hidden;
    transform: translateX(50px) scaleX(0.8);
    transform-origin: right center;
    transition: var(--transition-smooth);
    position: absolute;
    right: 90px;
    top: 0;
    height: 70px;
    display: flex;
    align-items: center;
}

/* Active Menu slides out filling middle layout space left-to-right */
.nav-menu-container.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scaleX(1);
    position: relative;
    right: auto;
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    transition: var(--transition-smooth);
}
.nav-link:hover {
    color: var(--brand-gold);
}

/* Menu Icon Button */
.menu-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1010;
}

.bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
    transform-origin: right center;
}

/* Morphing Trigger States */
.menu-toggle.active .bar-1 {
    transform: rotate(-45deg) scaleX(1.1);
}
.menu-toggle.active .bar-2 {
    transform: rotate(45deg) scaleX(1.1);
}

/* ==========================================================================
   LANDER MAIN ELEMENTS
   ========================================================================== */
.hero-section {
    padding: 160px 0 100px 0;
    display: flex;
    align-items: center;
    min-height: 75vh;
}
.hero-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}
.hero-subtitle {
    display: block;
    color: var(--brand-gold);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}
.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}
.hero-lead {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}
.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* Portfolio Cards */
.portfolio-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}
.section-header {
    margin-bottom: 4rem;
}
.section-header h2 {
    font-size: 2.2rem;
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}
.portfolio-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}
.portfolio-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-gold);
}
.card-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--brand-gold);
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}
.portfolio-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}
.portfolio-card p {
    font-size: 0.95rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}
.card-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.tag {
    font-size: 0.75rem;
    background-color: var(--bg-accent);
    color: var(--text-secondary);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}
.card-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Capabilities & Form Layouts */
.capabilities-section {
    padding: 100px 0;
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
}
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}
.capabilities-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}
.capability-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.cta-section {
    padding: 120px 0;
    border-top: 1px solid var(--border-color);
}
.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.cta-section p {
    max-width: 600px;
    margin: 0 auto 3rem auto;
}
.contact-form {
    max-width: 550px;
    margin: 0 auto;
    text-align: left;
}
.form-group {
    margin-bottom: 1.5rem;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    border-radius: 4px;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--brand-gold);
}
.form-response {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}

/* ==========================================================================
   FOOTER & GDPR COOKIE COMPLIANCE BANNER
   ========================================================================== */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    background-color: var(--bg-dark);
}
.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    font-size: 0.85rem;
}
.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 1.5rem;
}
.footer-links a:hover {
    color: var(--text-primary);
}

.gdpr-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-surface);
    border: 1px solid var(--brand-gold);
    border-radius: 6px;
    padding: 1.5rem;
    z-index: 2000;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    transition: var(--transition-smooth);
}
.gdpr-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.gdpr-banner p {
    font-size: 0.85rem;
    color: var(--text-primary);
}
.gdpr-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}
.hidden {
    display: none !important;
}

/* Mobile responsive fallback logic */
@media (max-width: 768px) {
    .nav-menu-container.active {
        display: none; /* Fallback to drawer architecture if screens drop too narrow */
    }
    .grid-2-col {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .gdpr-container {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   LEGAL PAGES STRUCTURE (Terms of Use & Privacy Policy)
   ========================================================================== */
.legal-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.legal-block {
    animation: fadeInLegal 0.6s ease-out forwards;
}

.legal-block p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.legal-block p strong {
    color: var(--text-primary);
    font-weight: 500;
}

.legal-block h3 {
    margin-bottom: 1rem;
    color: var(--brand-gold);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.legal-block ul {
    list-style-type: square;
    margin-left: 1.5rem;
    margin-top: 0.75rem;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.legal-block ul li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.legal-block a {
    color: var(--brand-gold);
    text-decoration: none;
    border-bottom: 1px dashed transparent;
    transition: var(--transition-smooth);
}

.legal-block a:hover {
    color: var(--text-primary);
    border-bottom-color: var(--brand-gold);
}

/* Smooth presentation animation for heavy text blocks */
@keyframes fadeInLegal {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments for mobile layout scaling */
@media (max-width: 768px) {
    .legal-content {
        gap: 2rem;
    }
    
    .legal-block h3 {
        font-size: 1.2rem;
    }
    
    .legal-block p {
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   FORM INTAKE PIPELINE STATE EXTENSIONS (REVISED)
   ========================================================================== */
.contact-module .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

/* Flex wrapper keeps label on the left and pushes error to the absolute right */
.contact-module .label-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 0.5rem;
    width: 100%;
}

.contact-module label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

/* Compact Validation Feedback Engine */
.contact-module .validation-msg {
    font-weight: 500;
    text-align: right; /* Explicit right alignment for standard flow fallbacks */
}

/* Tailored specification: Smaller text size with a distinct warning red */
.contact-module .validation-msg.error {
    font-size: 0.75rem; 
    color: #ef4444; 
    letter-spacing: 0.02em;
}

.contact-module .field-success-tick {
    color: #10b981; /* High-contrast emerald confirm icon */
    font-size: 1rem;
}

/* Custom Field Textarea & State Control overrides */
.contact-module textarea {
    width: 100%;
    padding: 1rem;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    border-radius: 4px;
    resize: vertical;
    transition: var(--transition-smooth);
}

.contact-module textarea:focus {
    outline: none;
    border-color: var(--brand-gold);
}

.contact-module .input-state-error {
    border-color: #ef4444 !important;
}

/* Checkbox Alignment & Wrapping Layout */
.contact-module .checkbox-group {
    flex-direction: row;
    align-items: center;
    margin-top: 1.75rem;
}

.contact-module .checkbox-label-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    cursor: pointer;
}

.contact-module .checkbox-label-wrapper label {
    text-transform: none;
    font-weight: 300;
    letter-spacing: normal;
    color: var(--text-secondary);
    cursor: pointer;
}

.contact-module input[type="checkbox"] {
    accent-color: var(--brand-gold);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Inline Execution Message Infrastructure beneath button */
.contact-module .submit-container {
    margin-top: 2rem;
}

.contact-module .btn:disabled {
    background-color: var(--bg-accent);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    cursor: not-allowed;
    transform: none !important;
}

.contact-module .execution-msg {
    margin-top: 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-module .execution-msg.processing { color: var(--brand-gold); }
.contact-module .execution-msg.success { color: #10b981; }
.contact-module .execution-msg.error { color: #ef4444; }