/* =========================================
   biotti.cloud - Main Stylesheet
   Modern, trust-building automation consulting website
   ========================================= */

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

/* =========================================
   CSS Variables
   ========================================= */
:root {
    /* Dark Green/Red Theme */
    --primary-green: #10B981;      /* Vibrant emerald */
    --primary-green-dark: #059669;
    --primary-green-light: #34D399;

    --secondary-teal: #14B8A6;     /* Bright teal */
    --secondary-teal-dark: #0D9488;

    --accent-red: #EF4444;         /* Vibrant red */
    --accent-red-dark: #DC2626;
    --accent-red-light: #F87171;

    --accent-coral: #F97316;       /* Coral/orange-red */
    --accent-lime: #84CC16;        /* Lime green accent */

    /* Dark Theme Neutrals */
    --text-white: #F9FAFB;
    --text-light: #E5E7EB;
    --text-medium: #D1D5DB;
    --text-muted: #9CA3AF;

    --background-dark: #0A0F0A;    /* Almost black with green tint */
    --background-card: #1C2E1C;    /* Dark green card */
    --background-elevated: #2D4A2D; /* Elevated elements */
    --background-light: #3A5A3A;   /* Light sections */
    --border-color: #2D4A2D;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    --line-height-tight: 1.2;

    /* Font Sizes */
    --text-xs: 0.75rem;    /* 12px */
    --text-sm: 0.875rem;   /* 14px */
    --text-base: 1rem;     /* 16px */
    --text-lg: 1.125rem;   /* 18px */
    --text-xl: 1.25rem;    /* 20px */
    --text-2xl: 1.5rem;    /* 24px */
    --text-3xl: 1.875rem;  /* 30px */
    --text-4xl: 2.25rem;   /* 36px */
    --text-5xl: 3rem;      /* 48px */

    /* Spacing System */
    --spacing-xs: 0.5rem;   /* 8px */
    --spacing-sm: 1rem;     /* 16px */
    --spacing-md: 2rem;     /* 32px */
    --spacing-lg: 3rem;     /* 48px */
    --spacing-xl: 4rem;     /* 64px */
    --spacing-2xl: 6rem;    /* 96px */

    /* Container */
    --container-max: 1200px;
    --container-padding: 2rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 1rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
}

/* =========================================
   Base Styles
   ========================================= */
html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    line-height: var(--line-height-base);
    color: var(--text-light);
    background: var(--background-dark);
    min-height: 100vh;
}

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

h1 {
    font-size: var(--text-5xl);
    letter-spacing: -0.02em;
}

h2 {
    font-size: var(--text-4xl);
    letter-spacing: -0.01em;
}

h3 {
    font-size: var(--text-3xl);
}

h4 {
    font-size: var(--text-2xl);
}

h5 {
    font-size: var(--text-xl);
}

h6 {
    font-size: var(--text-lg);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-medium);
    line-height: 1.7;
}

a {
    color: var(--primary-green-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

a:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

strong, b {
    font-weight: 600;
    color: var(--text-white);
}

/* =========================================
   Layout
   ========================================= */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

.section {
    padding: var(--spacing-2xl) 0;
}

.section-light {
    background: var(--background-card);
}

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

.section-subtitle {
    text-align: center;
    font-size: var(--text-lg);
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
}

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

.btn:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-red) 100%);
    color: white;
    box-shadow: 0 4px 12px -2px rgba(16, 185, 129, 0.5);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-green-dark) 0%, var(--accent-red-dark) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(16, 185, 129, 0.6);
    color: white;
}

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

.btn-secondary {
    background: transparent;
    color: var(--primary-green-light);
    border: 2px solid var(--primary-green);
    padding: 0.75rem 1.625rem; /* Adjust for border */
}

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

.btn-large {
    padding: 1rem 2rem;
    font-size: var(--text-lg);
}

.btn-group {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* =========================================
   Cards
   ========================================= */
.card {
    background: var(--background-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
}

.card:hover {
    box-shadow: 0 12px 24px -8px rgba(16, 185, 129, 0.4);
    transform: translateY(-4px);
    border-color: var(--primary-green);
}

.card-title {
    font-size: var(--text-xl);
    margin-bottom: var(--spacing-xs);
    color: var(--text-white);
}

.card-text {
    color: var(--text-medium);
    line-height: 1.7;
}

/* =========================================
   Grid Systems
   ========================================= */
.grid {
    display: grid;
    gap: var(--spacing-md);
}

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

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

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

/* =========================================
   Utility Classes
   ========================================= */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

.hidden {
    display: none;
}

.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;
}

/* =========================================
   Tablet Adjustments
   ========================================= */
@media (max-width: 1024px) {
    :root {
        --container-padding: 1.5rem;
        --spacing-2xl: 4rem;
    }

    h1 {
        font-size: var(--text-4xl);
    }

    h2 {
        font-size: var(--text-3xl);
    }

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

/* =========================================
   Mobile Adjustments
   ========================================= */
@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
        --spacing-lg: 2rem;
        --spacing-xl: 2.5rem;
        --spacing-2xl: 3rem;
    }

    h1 {
        font-size: var(--text-3xl);
    }

    h2 {
        font-size: var(--text-2xl);
    }

    h3 {
        font-size: var(--text-xl);
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-group .btn {
        width: 100%;
    }
}
