/* ============================================
   Variables & Reset
   ============================================ */
:root {
    /* Colors from assets/colors.md */
    --gray-lines: #DCE0E2;
    --gray-navigation: #303F47;
    --gray-text: #5A6F77;
    --lava-primary: #FF3621;
    --navy-800: #1B3139;
    --oat-light: #F9F7F4;
    --oat-medium: #EEEDE9;
    --white: #FFFFFF;
    --black: #000000;
    --dark-gray: #333333;
    --light-gray: #DDDDDD;
    
    /* Light theme colors */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --bg-tertiary: #F9F7F4;
    --bg-card: #FFFFFF;
    --border-color: #E5E7EB;
    --text-primary: #1A1A1A;
    --text-secondary: #4A5568;
    --text-muted: #6B7280;
    --accent-primary: #FF3621;
    --accent-hover: #E62E1C;
    --accent-secondary: #00A972;
    --accent-blue: #00A9E0;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    /* Typography */
    --font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    /* Transitions */
    --transition-fast: 0.15s ease-out;
    --transition-base: 0.25s ease-out;
    --transition-slow: 0.4s ease-out;
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Shadows for light theme */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-family);
    line-height: var(--line-height-base);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

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

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

strong {
    font-weight: 700;
    color: var(--text-primary);
}

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

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
}

/* ============================================
   Language Selector
   ============================================ */
.language-selector-wrapper {
    position: fixed;
    top: var(--spacing-md);
    right: var(--spacing-lg);
    z-index: 1000;
}

.language-selector {
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-card);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.language-selector:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
}

.language-selector:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .language-selector-wrapper {
        top: var(--spacing-sm);
        right: var(--spacing-sm);
    }
    
    .language-selector {
        font-size: 0.8rem;
        padding: 0.4rem 0.7rem;
    }
}

/* ============================================
   Buttons
   ============================================ */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    text-align: center;
    text-decoration: none;
}

.cta-button.primary {
    background-color: var(--accent-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.cta-button.primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-button.primary:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .cta-button {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-logo {
    margin-bottom: var(--spacing-xl);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    justify-content: center;
}

.databricks-logo {
    max-width: 300px;
    height: auto;
}

.consulting-text {
    font-size: 3.4rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    text-transform: lowercase;
}

.hero-title {
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

.hero-trust-indicators {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.trust-icon {
    color: var(--accent-secondary);
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .hero {
        padding: var(--spacing-2xl) 0;
    }
    
    .databricks-logo {
        max-width: 200px;
    }
    
    .consulting-text {
        font-size: 2.4rem;
    }
    
    .hero-trust-indicators {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
    }
}

/* ============================================
   Section Styles
   ============================================ */
section {
    padding: var(--spacing-3xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.section-intro {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
    line-height: 1.7;
}

@media (max-width: 768px) {
    section {
        padding: var(--spacing-2xl) 0;
    }
}

/* ============================================
   Why Choose Us Section
   ============================================ */
.why-section {
    background-color: var(--bg-primary);
}

.differentiators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.diff-card {
    background-color: var(--bg-card);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.diff-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.diff-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.diff-card h3 {
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.diff-card ul {
    list-style: none;
    padding-left: 0;
}

.diff-card li {
    padding: var(--spacing-xs) 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
}

.diff-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: 700;
}

@media (max-width: 768px) {
    .differentiators-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

/* ============================================
   Services Section
   ============================================ */
.services-section {
    background-color: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.service-card {
    background-color: var(--bg-card);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.service-number {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    font-size: 3rem;
    font-weight: 700;
    color: var(--border-color);
    line-height: 1;
}

.service-card h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    padding-right: 3rem;
}

.service-tagline {
    font-size: 1.05rem;
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.service-features {
    list-style: none;
    padding-left: 0;
    margin-bottom: var(--spacing-md);
}

.service-features li {
    padding: var(--spacing-xs) 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.service-features li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

.service-ideal {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

/* ============================================
   Results Section
   ============================================ */
.results-section {
    background-color: var(--bg-primary);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.result-card {
    text-align: center;
    padding: var(--spacing-xl);
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.result-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1;
    margin-bottom: var(--spacing-md);
}

.result-card h4 {
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.result-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
    background-color: var(--bg-secondary);
}

.contact-header {
    margin-bottom: var(--spacing-2xl);
}

.contact-form {
    max-width: 800px;
    margin: 0 auto var(--spacing-2xl);
    background-color: var(--bg-card);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group:last-of-type {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 1rem;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: all var(--transition-base);
}

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

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

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-sm);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    cursor: pointer;
    font-weight: 400;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.submit-button {
    width: 100%;
    margin-top: var(--spacing-lg);
}

.form-privacy {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: var(--spacing-lg);
    margin-bottom: 0;
}

.form-message {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-top: var(--spacing-lg);
    text-align: center;
}

.form-message.success {
    background-color: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.form-message.error {
    background-color: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

.form-message.hidden {
    display: none;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-info h3 {
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.next-steps {
    text-align: left;
    padding-left: 1.5rem;
}

.next-steps li {
    padding: var(--spacing-sm) 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .contact-form {
        padding: var(--spacing-xl);
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: var(--bg-tertiary);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.footer-branding {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 600px;
}

.footer-logo-link {
    display: inline-block;
    margin-bottom: var(--spacing-md);
}

.footer-logo {
    max-width: 180px;
    height: auto;
    transition: opacity var(--transition-base);
}

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

.footer-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .footer-branding {
        align-items: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.hidden {
    display: none !important;
}

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

/* ============================================
   Accessibility
   ============================================ */
:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

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

