/*
* File: style.css
* Description: Custom styles for the Business Consulting Website.
* Design System: Corporate with Block UI elements.
* Color Scheme: Tetradic
* Animation: Micro-animations
*/

/* ---------------------------------------------------
   1. CSS Variables (Theme)
   --------------------------------------------------- */
:root {
    /* Color Palette (Tetradic) */
    --color-primary: #0A2463;     /* Deep Corporate Blue */
    --color-secondary: #FF9F1C;   /* Vibrant Orange/Yellow */
    --color-accent1: #5FAD56;      /* Trustworthy Green */
    --color-accent2: #D81E5B;      /* Bold Pink/Red */
    --color-dark: #212529;         /* Near Black for Text */
    --color-light: #F8F9FA;        /* Off-White Background */
    --color-white: #FFFFFF;         /* Pure White */
    --color-gray: #6c757d;         /* Bootstrap Gray */

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'IBM Plex Sans', sans-serif;

    /* Spacing & Borders */
    --border-radius-sm: 8px;
    --border-radius-md: 15px;
    --border-radius-pill: 50px;
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* ---------------------------------------------------
   2. Global & Base Styles
   --------------------------------------------------- */
body {
    font-family: var(--font-secondary);
    background-color: var(--color-light);
    color: var(--color-dark);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.3;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

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

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

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-weight: 800;
    color: #222222;
    margin-bottom: 4rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* ---------------------------------------------------
   3. Global UI Components (Buttons, Forms)
   --------------------------------------------------- */

/* Global Button Styles */
.btn, button, input[type='submit'] {
    padding: 12px 30px;
    border-radius: var(--border-radius-pill);
    font-weight: 500;
    font-family: var(--font-secondary);
    transition: all 0.3s ease-in-out;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-dark);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #e68f00; /* Darker orange */
    border-color: #e68f00;
    color: var(--color-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light {
    color: var(--color-white);
    border-color: var(--color-white);
}
.btn-outline-light:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.btn-outline-primary {
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn-outline-primary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Form Styles */
.form-control {
    border-radius: var(--border-radius-sm);
    padding: 12px 15px;
    border: 1px solid #ced4da;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 0.25rem rgba(255, 159, 28, 0.25);
}

/* ---------------------------------------------------
   4. Header / Navigation
   --------------------------------------------------- */
.navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar-brand {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-secondary) !important;
}

.navbar-toggler {
    border: none;
}
.navbar-toggler:focus {
    box-shadow: none;
}

/* ---------------------------------------------------
   5. Section-Specific Styles
   --------------------------------------------------- */

/* Hero Section */
#hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    text-align: center;
}

#hero h1, #hero p {
    color: var(--color-white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

/* Cards (Services, Webinars, Workshops, etc.) */
.card {
    border: none;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center; /* Center text content */
    background-color: var(--color-white);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area without distortion */
    transition: transform 0.4s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows footer elements in card to stick to bottom */
    padding: 1.5rem;
}

/* Our Process Section */
#process .progress-indicator {
    position: relative;
    padding-left: 50px;
    padding-bottom: 2rem;
    border-left: 3px solid var(--color-secondary);
}
#process .progress-indicator:last-child {
    border-left: 3px solid transparent;
    padding-bottom: 0;
}

#process .progress-indicator::before {
    content: '';
    position: absolute;
    left: -14px;
    top: 0;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: var(--color-secondary);
    border: 4px solid var(--color-white);
    z-index: 1;
}

.progress {
    height: 10px;
    border-radius: var(--border-radius-pill);
}
.progress-bar {
    background-color: var(--color-secondary);
}

/* News Section */
#news article h4 a {
    color: var(--color-primary);
}
#news article a {
    font-weight: bold;
    color: var(--color-secondary);
    text-decoration: none;
}
#news article a:hover {
    text-decoration: underline;
}

/* Events Calendar */
#events .table {
    border-radius: var(--border-radius-md);
    overflow: hidden;
}
#events .table-info {
    background-color: rgba(95, 173, 86, 0.3) !important; /* Accent 1 with opacity */
    font-weight: bold;
}
#events .table-warning {
    background-color: rgba(255, 159, 28, 0.3) !important; /* Secondary with opacity */
    font-weight: bold;
}

/* External Resources Section */
#resources .card {
    background-color: #fff;
    transition: background-color 0.3s ease;
}
#resources .card:hover {
    background-color: var(--color-light);
    transform: translateY(-5px); /* Less dramatic lift */
}
#resources .card a {
    text-decoration: none;
}
#resources .card h5 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}
#resources .card p {
    color: var(--color-dark);
    font-size: 0.95rem;
}

/* Contact Section */
#contact .card {
    box-shadow: var(--shadow-lg);
}

/* ---------------------------------------------------
   6. Footer
   --------------------------------------------------- */
footer {
    background-color: var(--color-primary);
    color: rgba(255, 255, 255, 0.8);
}

footer h5 {
    color: var(--color-secondary);
    font-weight: 800;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--color-white);
    text-decoration: none;
}

/* Footer Social Links (Text-based) */
footer .col-md-4 a {
    display: inline-block;
    padding: 2px 0;
}

/* ---------------------------------------------------
   7. Page-Specific Styles
   --------------------------------------------------- */

/* Success Page */
.page-success-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
    background-color: var(--color-light);
}

.success-card {
    background: var(--color-white);
    padding: 3rem 4rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    max-width: 600px;
}
.success-card .icon {
    width: 80px;
    height: 80px;
    background-color: var(--color-accent1);
    color: var(--color-white);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}


/* Privacy & Terms Pages */
.legal-page-content {
    padding-top: 120px; /* Space for fixed header */
    padding-bottom: 80px;
}

.legal-page-content h2 {
    margin-bottom: 1.5rem;
}
.legal-page-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-dark);
}
.legal-page-content p, .legal-page-content ul {
    margin-bottom: 1.2rem;
}

/* ---------------------------------------------------
   8. Responsive Design
   --------------------------------------------------- */
@media (max-width: 991.98px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .nav-link {
        margin: 5px 0;
        padding: 8px 0;
    }

    .navbar-collapse {
        padding: 20px;
        background: var(--color-white);
        border-radius: var(--border-radius-sm);
        margin-top: 10px;
    }
}

@media (max-width: 767.98px) {
    .section-padding {
        padding: 60px 0;
    }
    .footer {
        text-align: center;
    }
    .footer .text-md-start {
        text-align: center !important;
    }
}