/* ===================================
   Amos Don Bosco & Partners Law Firm CSS
   =================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #C3984C;
    --color-primary-light: #F2E0A2;
    --color-primary-dark: #a07830;
    --color-primary-gradient: linear-gradient(135deg, #F2E0A2, #C3984C);
    --color-secondary: #1B2A3A;
    --color-secondary-light: #243548;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg: #ffffff;
    --color-bg-light: #f5f0e8;
    --color-border: #dddddd;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-secondary);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--color-primary-gradient);
    color: var(--color-secondary) !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e8d080, #a07830);
    color: var(--color-secondary) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(195, 152, 76, 0.45);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--color-secondary);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background-color: rgba(27, 42, 58, 0.95);
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.navbar-brand .logo {
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--color-secondary);
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.navbar-menu a {
    color: white;
    font-weight: 500;
    padding: 0.5rem;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    color: var(--color-primary);
}

/* Navbar btn-primary - outline by default, fill on hover */
.navbar-menu a.btn-primary {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary) !important;
}

.navbar-menu a.btn-primary:hover,
.navbar-menu a.btn-primary.active {
    background: var(--color-primary-gradient);
    color: var(--color-secondary) !important;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: white;
    margin-top: 72px;
    overflow: hidden;
}

/* Hero Slideshow */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transform: translateX(100%);
    transition: transform 1s ease-in-out;
}

.hero-slide.active {
    transform: translateX(0);
}

.hero-slide.prev {
    transform: translateX(-100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(27, 42, 58, 0.80), rgba(27, 42, 58, 0.50));
    z-index: -1;
}

.hero-content {
    max-width: 700px;
}

.hero-subtitle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle::before {
    content: '';
    width: 50px;
    height: 4px;
    background-color: var(--color-primary);
}

.hero-subtitle span {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 1rem;
}

.hero h1 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 3.5rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    color: #CCCCCC;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.section-subtitle::before,
.section-subtitle::after {
    content: '';
    width: 50px;
    height: 4px;
    background-color: var(--color-primary);
}

.section-subtitle span {
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    margin-bottom: 1rem;
}

.section-description {
    color: var(--color-text-light);
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Stats Section */
.stats-section {
    background: var(--color-primary-gradient);
    color: var(--color-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
}

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-weight: 600;
    font-size: 1.125rem;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
}

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

/* Card Styles */
.card {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid var(--color-border);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.card-icon {
    width: 64px;
    height: 64px;
    background: var(--color-primary-gradient);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    transition: var(--transition);
}

.card:hover .card-icon {
    transform: scale(1.1);
}

.card-title {
    margin-bottom: 1rem;
    color: var(--color-secondary);
    transition: var(--transition);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    font-size: 1.35rem;
    line-height: 1.3;
}

.card:hover .card-title {
    color: var(--color-primary);
}

.card-description {
    color: var(--color-text-light);
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-weight: 600;
    transition: var(--transition);
}

.card-link:hover {
    gap: 1rem;
}

/* Team Section */
.team-member {
    background-color: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.team-member:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.team-photo {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(27, 42, 58, 0.92), transparent);
    padding: 2rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.team-member:hover .team-overlay {
    transform: translateY(0);
}

.team-social {
    display: flex;
    gap: 0.75rem;
}

.team-social a {
    width: 40px;
    height: 40px;
    background: var(--color-primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
}

.team-social a:hover {
    background: linear-gradient(135deg, #e8d080, #a07830);
    transform: scale(1.1);
}

.team-info {
    padding: 1.5rem;
}

.team-badge {
    display: inline-block;
    background: var(--color-primary-gradient);
    color: var(--color-secondary);
    padding: 0.25rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.team-specialty {
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background-color: var(--color-secondary);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-section p {
    color: #CCCCCC;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #CCCCCC;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-left: 0.5rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-item {
    display: flex;
    gap: 1rem;
    color: #CCCCCC;
}

.footer-contact-icon {
    color: var(--color-primary);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: var(--color-secondary-light);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--color-primary-gradient);
    color: var(--color-secondary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-secondary-light);
    color: #999999;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-secondary);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(195, 152, 76, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Enhanced Form Inputs */
#contactForm input:focus,
#contactForm select:focus,
#contactForm textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(195, 152, 76, 0.25);
    background: white;
}

#contactForm input:hover,
#contactForm select:hover,
#contactForm textarea:hover {
    border-color: #CCCCCC;
}

#contactForm button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(195, 152, 76, 0.5);
}

/* Responsive Form Grid */
@media (max-width: 640px) {
    #contactForm [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    #contactForm [style*="display: flex"][style*="gap: 1rem"][style*="justify-content: center"] {
        flex-direction: column;
        align-items: center;
    }
}

/* Alert Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.alert-success {
    background-color: #d1fae5;
    border: 1px solid #10b981;
    color: #065f46;
}

/* Background Colors */
.bg-white { background-color: white; }
.bg-light { background-color: var(--color-bg-light); }
.bg-dark { background-color: var(--color-secondary); }
.bg-primary { background-color: var(--color-primary); }

/* Text Colors */
.text-white { color: white; }
.text-dark { color: var(--color-secondary); }
.text-primary { color: var(--color-primary); }
.text-muted { color: var(--color-text-light); }

/* Spacing Utilities */
.py-1 { padding-top: 1rem; padding-bottom: 1rem; }
.py-2 { padding-top: 2rem; padding-bottom: 2rem; }
.py-3 { padding-top: 3rem; padding-bottom: 3rem; }
.py-4 { padding-top: 4rem; padding-bottom: 4rem; }
.py-5 { padding-top: 5rem; padding-bottom: 5rem; }

.my-1 { margin-top: 1rem; margin-bottom: 1rem; }
.my-2 { margin-top: 2rem; margin-bottom: 2rem; }
.my-3 { margin-top: 3rem; margin-bottom: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* Icon Styles */
.icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
}

.icon-lg {
    width: 32px;
    height: 32px;
}

/* Checkmark List */
.check-list {
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.check-list li::before {
    content: '✓';
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-item {
    position: relative;
    padding-left: 8rem;
    padding-bottom: 3rem;
    border-left: 2px solid rgba(195, 152, 76, 0.4);
}

.timeline-item:last-child {
    border-left-color: transparent;
}

.timeline-year {
    position: absolute;
    left: 0;
    top: 0;
    background: var(--color-primary-gradient);
    color: var(--color-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 1.5rem;
}

.timeline-dot {
    position: absolute;
    left: -9px;
    top: 0;
    width: 16px;
    height: 16px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

.timeline-content h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: #CCCCCC;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-menu {
        position: fixed;
        top: 72px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 72px);
        background-color: var(--color-secondary);
        flex-direction: column;
        justify-content: start;
        padding: 2rem;
        transition: var(--transition);
    }
    
    .navbar-menu.active {
        left: 0;
    }
    
    .navbar-toggle {
        display: flex;
    }
    
    .navbar-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .navbar-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .navbar-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        padding-left: 6rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(195, 152, 76, 0.4);
    border-top: 3px solid var(--color-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-center { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.rounded { border-radius: 0.5rem; }
.rounded-lg { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

.shadow { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); }
.shadow-xl { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); }

.overflow-hidden { overflow: hidden; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.relative { position: relative; }
.absolute { position: absolute; }
