/* ATTA Professional Website Styles - Modern Accounting Theme */
/* Inspired by ai_omisol design patterns, adapted for professional accounting services */

/* ===== ROOT VARIABLES ===== */
:root {
    /* Professional Accounting Color Palette - Using Odoo's default colors */
    --primary-blue: #007bff;
    --primary-blue-light: #4dabf7;
    --primary-blue-dark: #0056b3;
    --primary-blue-darker: #003d82;

    /* Secondary Colors - Professional Gold/Orange */
    --secondary-orange: #2f496e;
    --secondary-orange-light: #3b82f6;
    --secondary-orange-dark: #1e3a8a;

    /* Neutral Colors */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;

    /* 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), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-blue: 0 10px 25px rgba(0, 123, 255, 0.3);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

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

    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}
    --atta-font-5xl: 3rem;      /* 48px */
    
    /* Spacing */
    --atta-space-1: 0.25rem;    /* 4px */
    --atta-space-2: 0.5rem;     /* 8px */
    --atta-space-3: 0.75rem;    /* 12px */
    --atta-space-4: 1rem;       /* 16px */
    --atta-space-5: 1.25rem;    /* 20px */
    --atta-space-6: 1.5rem;     /* 24px */
    --atta-space-8: 2rem;       /* 32px */
    --atta-space-10: 2.5rem;    /* 40px */
    --atta-space-12: 3rem;      /* 48px */
    --atta-space-16: 4rem;      /* 64px */
    --atta-space-20: 5rem;      /* 80px */
    --atta-space-24: 6rem;      /* 96px */
    
    /* Border Radius */
    --atta-radius-sm: 0.25rem;  /* 4px */
    --atta-radius: 0.5rem;      /* 8px */
    --atta-radius-lg: 0.75rem;  /* 12px */
    --atta-radius-xl: 1rem;     /* 16px */
    
    /* Shadows */
    --atta-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --atta-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --atta-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
    --atta-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --atta-shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --atta-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --atta-transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --atta-transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE STYLES ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--atta-font-primary);
    font-size: var(--atta-font-base);
    font-weight: 400;
    line-height: 1.6;
    color: var(--atta-text-primary) !important;
    background: var(--atta-light) !important;
    background-image: radial-gradient(circle, rgba(113, 75, 103, 0.08) 1px, transparent 1px);
    background-size: 12px 12px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    cursor: auto;
    position: relative;
    min-height: 100vh;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--atta-font-primary);
    font-weight: 700;
    line-height: 1.2;
    color: var(--atta-text-primary) !important;
    margin-bottom: var(--atta-space-4);
    letter-spacing: -0.025em;
}

h1 {
    font-size: var(--atta-font-5xl);
    font-weight: 800;
    color: var(--atta-text-primary) !important;
}
h2 {
    font-size: var(--atta-font-4xl);
    font-weight: 700;
    color: var(--atta-text-primary) !important;
}
h3 {
    font-size: var(--atta-font-3xl);
    font-weight: 600;
    color: var(--atta-text-primary) !important;
}
h4 { font-size: var(--atta-font-2xl); }
h5 { font-size: var(--atta-font-xl); }
h6 { font-size: var(--atta-font-lg); }

p {
    color: var(--atta-text-primary) !important;
    margin-bottom: var(--atta-space-4);
    line-height: 1.7;
}

.lead {
    font-size: var(--atta-font-xl);
    font-weight: 400;
    line-height: 1.7;
    color: var(--atta-gray);
}

.text-muted {
    color: var(--atta-gray) !important;
}

.text-primary {
    color: var(--atta-primary) !important;
}

.text-accent {
    color: var(--atta-accent) !important;
}

/* ===== LAYOUT COMPONENTS ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--atta-space-4);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--atta-space-4);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 calc(-1 * var(--atta-space-3));
}

.col {
    flex: 1;
    padding: 0 var(--atta-space-3);
}

/* Grid System */
.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }

/* ===== HERO SECTION - COMMENTED OUT (NOT WORKING) ===== */
/*
.atta-hero {
    background: linear-gradient(135deg, var(--atta-primary) 0%, var(--atta-primary-dark) 70%, var(--atta-secondary-dark) 100%);
    color: var(--atta-text-white);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

.atta-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0.5px, transparent 0.5px);
    background-size: 15px 15px;
    opacity: 0.6;
    z-index: 1;
}

.atta-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--atta-secondary);
    z-index: 2;
}

.atta-hero .container {
    position: relative;
    z-index: 3;
}

.atta-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white !important;
    font-family: var(--atta-font-primary);
}

.atta-hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    color: #e9ecef !important;
    max-width: 700px;
    font-family: var(--atta-font-secondary);
}
*/

/* ===== PROFESSIONAL SECTIONS - AI_OMISOL PATTERN ===== */
.atta-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.atta-section-light {
    background: var(--atta-white);
    position: relative;
}

/* Subtle dotted grid pattern */
.atta-section-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(113, 75, 103, 0.06) 0.8px, transparent 0.8px);
    background-size: 8px 8px;
    z-index: 1;
}

.atta-section-light .container {
    position: relative;
    z-index: 2;
}

.atta-section-primary {
    background: linear-gradient(135deg, var(--atta-primary) 0%, var(--atta-primary-dark) 100%);
    color: white;
    position: relative;
}

/* Subtle grid pattern for primary sections */
.atta-section-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0.5px, transparent 0.5px);
    background-size: 10px 10px;
    z-index: 1;
}

.atta-section-primary .container {
    position: relative;
    z-index: 2;
}

.atta-section-title {
    text-align: center;
    margin-bottom: var(--atta-space-16);
}

.atta-section-title h2 {
    font-size: var(--atta-font-4xl);
    font-weight: 700;
    color: var(--atta-primary);
    margin-bottom: var(--atta-space-4);
}

.atta-section-title p {
    font-size: var(--atta-font-lg);
    color: var(--atta-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== PROFESSIONAL CARDS - AI_OMISOL PATTERN ===== */
.atta-card {
    background: var(--atta-white);
    border: 4px solid var(--atta-primary);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* Orange accent bar - ai_omisol style */
.atta-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--atta-secondary);
    z-index: 1;
}

.atta-card:hover {
    border-color: #007bff;
    box-shadow: 0 0 25px rgba(0, 123, 255, 0.25);
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.02) 0%, rgba(47, 73, 110, 0.02) 100%);
    transform: translateY(-5px);
}

.atta-card-icon {
    width: 60px;
    height: 60px;
    background: var(--atta-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
}

/* Icon hover effect - ai_omisol style */
.atta-card:hover .atta-card-icon {
    background: var(--atta-secondary);
    transform: scale(1.05);
}

.atta-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--atta-text-primary) !important;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.atta-card-text {
    color: var(--atta-text-secondary) !important;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* ===== PROFESSIONAL BUTTONS - AI_OMISOL PATTERN ===== */
.atta-btn {
    background: var(--atta-primary) !important;
    border: 3px solid var(--atta-primary-dark) !important;
    color: #ffffff !important;
    padding: 16px 40px !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
    font-family: var(--atta-font-primary) !important;
    text-transform: none !important;
    letter-spacing: 0.5px !important;
}

.atta-btn:hover {
    background: var(--atta-primary-dark) !important;
    color: #ffffff !important;
    border-color: var(--atta-primary-darker) !important;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
}

.atta-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3);
}

/* Button icon animation */
.atta-btn i {
    transition: transform 0.3s ease;
}

.atta-btn:hover i {
    transform: translateX(3px);
}

.atta-btn-outline {
    background: white !important;
    border: 3px solid var(--atta-secondary) !important;
    color: var(--atta-secondary) !important;
    padding: 14px 38px !important;
}

.atta-btn-outline:hover {
    background: var(--atta-secondary) !important;
    color: white !important;
    border-color: var(--atta-secondary-dark) !important;
    box-shadow: 0 0 20px rgba(47, 73, 110, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.atta-btn-large {
    padding: 18px 45px !important;
    font-size: 1.1rem !important;
}

.atta-btn-small {
    padding: 12px 25px !important;
    font-size: 0.9rem !important;
}

/* ===== GRID SYSTEM ===== */
.atta-grid {
    display: grid;
    gap: var(--atta-space-8);
}

.atta-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.atta-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.atta-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ===== STATS ===== */
.atta-stats {
    text-align: center;
    padding: var(--atta-space-4);
}

.atta-stat-number {
    font-size: var(--atta-font-4xl);
    font-weight: 800;
    color: var(--atta-primary);
    margin-bottom: var(--atta-space-2);
    line-height: 1;
    display: block;
}

.atta-stat-label {
    color: var(--atta-gray);
    font-weight: 500;
    font-size: var(--atta-font-base);
    margin: 0;
}

/* ===== IMAGES ===== */
.atta-image {
    border-radius: var(--atta-radius-lg);
    box-shadow: var(--atta-shadow-md);
    transition: var(--atta-transition);
    max-width: 100%;
    height: auto;
}

.atta-image:hover {
    transform: scale(1.02);
    box-shadow: var(--atta-shadow-xl);
}

/* ===== ANIMATIONS ===== */
.atta-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--atta-transition-slow);
}

.atta-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    /* .atta-hero-title {
        font-size: var(--atta-font-4xl);
    } */
    
    .atta-section-title h2 {
        font-size: var(--atta-font-3xl);
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    /* .atta-hero {
        padding: var(--atta-space-16) 0;
        min-height: 400px;
    }

    .atta-hero-title {
        font-size: var(--atta-font-3xl);
    }

    .atta-hero-subtitle {
        font-size: var(--atta-font-lg);
    } */
    
    .atta-section {
        padding: var(--atta-space-16) 0;
    }
    
    .atta-section-title h2 {
        font-size: var(--atta-font-2xl);
    }
    
    .atta-card {
        padding: var(--atta-space-6);
    }
    
    .atta-grid {
        gap: var(--atta-space-6);
    }
    
    .row {
        margin: 0 calc(-1 * var(--atta-space-2));
    }
    
    .col {
        padding: 0 var(--atta-space-2);
    }
}

@media (max-width: 576px) {
    /* .atta-hero-title {
        font-size: var(--atta-font-2xl);
    } */
    
    .atta-section-title h2 {
        font-size: var(--atta-font-xl);
    }
    
    .atta-card {
        padding: var(--atta-space-4);
    }
    
    .atta-stat-number {
        font-size: var(--atta-font-3xl);
    }
    
    .atta-btn {
        padding: var(--atta-space-3) var(--atta-space-5);
        font-size: var(--atta-font-sm);
    }
    
    .atta-btn-large {
        padding: var(--atta-space-3) var(--atta-space-6);
        font-size: var(--atta-font-base);
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

.d-flex { display: flex !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-none { display: none !important; }

.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-around { justify-content: space-around !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }

.flex-wrap { flex-wrap: wrap !important; }
.flex-column { flex-direction: column !important; }

.gap-1 { gap: var(--atta-space-1) !important; }
.gap-2 { gap: var(--atta-space-2) !important; }
.gap-3 { gap: var(--atta-space-3) !important; }
.gap-4 { gap: var(--atta-space-4) !important; }
.gap-5 { gap: var(--atta-space-5) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--atta-space-1) !important; }
.mb-2 { margin-bottom: var(--atta-space-2) !important; }
.mb-3 { margin-bottom: var(--atta-space-3) !important; }
.mb-4 { margin-bottom: var(--atta-space-4) !important; }
.mb-5 { margin-bottom: var(--atta-space-5) !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: var(--atta-space-1) !important; }
.mt-2 { margin-top: var(--atta-space-2) !important; }
.mt-3 { margin-top: var(--atta-space-3) !important; }
.mt-4 { margin-top: var(--atta-space-4) !important; }
.mt-5 { margin-top: var(--atta-space-5) !important; }

/* ===== ODOO OVERRIDES ===== */
/* .oe_structure .atta-hero, */
.oe_structure .atta-section,
.oe_structure .atta-card {
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.oe_structure .atta-section {
    padding-top: var(--atta-space-20) !important;
    padding-bottom: var(--atta-space-20) !important;
}

/* .oe_structure .atta-hero {
    padding-top: var(--atta-space-20) !important;
    padding-bottom: var(--atta-space-20) !important;
} */

/* Ensure content is always visible */
.oe_structure .atta-fade-in {
    opacity: 1 !important;
    transform: none !important;
}

/* Override any conflicting Odoo styles */
.oe_structure * {
    box-sizing: border-box;
}

/* ===== PRINT STYLES ===== */
@media print {
    /* .atta-hero {
        background: var(--atta-white) !important;
        color: var(--atta-dark) !important;
    } */
    
    .atta-card {
        border: 1px solid var(--atta-gray) !important;
        box-shadow: none !important;
    }
    
    .atta-btn {
        display: none !important;
    }
}
