/* ==========================================================================
   Ayar Legal - Root Variables & Base Styles
   ========================================================================== */
:root {
    /* Color Palette */
    --color-primary: #1d4e89;
    /* Logo Blue */
    --color-primary-light: #2868b4;
    --color-secondary: #d4af37;
    /* Gold / Brass */
    --color-secondary-hover: #b8962d;
    --color-dark: #121212;
    --color-dark-deep: #05101f;
    --color-text: #4a4a4a;
    --color-heading: #1a1a1a;
    --color-bg: #ffffff;
    --color-bg-light: #f8f9fa;
    --color-border: #e2e8f0;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Transition & Shadows */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease-in-out;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

p {
    margin-bottom: 1.5rem;
}

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

ul {
    list-style: none;
}

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

.img-fluid {
    width: 100%;
    height: auto;
}

.rounded {
    border-radius: 8px;
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.pt-120 {
    padding-top: 120px;
}

.pb-120 {
    padding-bottom: 120px;
}

.pt-80 {
    padding-top: 80px;
}

.pb-40 {
    padding-bottom: 40px;
}

.pt-20 {
    padding-top: 20px;
}

.pb-20 {
    padding-bottom: 20px;
}

.mt-4 {
    margin-top: 1.5rem;
}

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

.text-white {
    color: #ffffff !important;
}

.text-gold {
    color: var(--color-secondary) !important;
}

.bg-light {
    background-color: var(--color-bg-light);
}

.bg-dark {
    background-color: var(--color-primary);
}

.bg-dark-deep {
    background-color: var(--color-dark-deep);
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--color-heading);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #ffffff !important;
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

.btn-block {
    width: 100%;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
#header {
    position: relative;
    width: 100%;
    z-index: 1000;
    background-color: #ffffff;
    box-shadow: var(--shadow-sm);
    padding: 16px 0;
    transition: padding var(--transition-normal);
}

#header.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    padding: 12px 0;
    animation: slideDown 0.3s ease-in-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-flex;
    align-items: center;
    transition: opacity var(--transition-normal);
}

.logo img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.logo:hover {
    opacity: 0.85;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--color-heading);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
}

#header.scrolled .nav-link {
    color: var(--color-heading);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-primary);
    transition: width var(--transition-normal);
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-links .btn-primary {
    color: #ffffff !important;
    padding: 10px 20px;
    font-size: 0.9rem;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-heading);
    font-size: 2rem;
    cursor: pointer;
}

#header.scrolled .mobile-toggle {
    color: var(--color-primary);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    height: calc(100vh - 100px);
    /* Adjust for header height */
    min-height: 500px;
    display: flex;
    align-items: center;
    color: #ffffff;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/hero_image.jpg') center/cover no-repeat;
    z-index: -1;
}

.hero-content {
    padding-top: 80px;
    /* Offset for header */
}

.hero-text-box {
    max-width: 500px;
    animation: fadeInUp 1s ease-out;
}

.hero-text-box h1 {
    color: var(--color-primary);
    font-size: 3.5rem;
    margin-bottom: 24px;
}

.hero-text-box p {
    color: var(--color-primary);
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-subtitle {
    display: inline-block;
    color: var(--color-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.section-subtitle.accent-gold {
    color: var(--color-secondary);
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header .header-desc {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--color-text);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 4px;
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background-color: var(--color-primary);
    color: #ffffff;
    padding: 30px;
    border-radius: 4px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    max-width: 250px;
}

.experience-badge .text {
    font-weight: 500;
    font-size: 1.1rem;
    line-height: 1.4;
    text-transform: capitalize;
}

.feature-list {
    margin-top: 30px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-heading);
}

.feature-list i {
    font-size: 1.5rem;
}

/* ==========================================================================
   Vision & Mission Section
   ========================================================================== */
.vision-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

.vision-card {
    background: #ffffff;
    padding: 50px 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform var(--transition-normal);
}

.vision-card:hover {
    transform: translateY(-10px);
}

.card-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 24px;
}

.vision-card h3 {
    font-size: 1.75rem;
    margin-bottom: 16px;
}

/* ==========================================================================
   Team Section (2-Column Cards Layout)
   ========================================================================== */
.team-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 50px;
}

@media (min-width: 992px) {
    .team-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.litigation-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 50px;
}

.litigation-profile-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

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

@media (min-width: 992px) {
    .litigation-profile-card {
        flex-direction: row;
    }
    
    .litigation-profile-card .profile-sidebar {
        width: 30%;
        border-bottom: none;
        border-right: 1px solid var(--color-border);
    }
    
    .litigation-profile-card .profile-body {
        width: 70%;
    }
}

.team-profile-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

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

@media (min-width: 768px) {
    .team-profile-card {
        flex-direction: row;
    }
}

.profile-sidebar {
    background: var(--color-bg-light);
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .profile-sidebar {
        width: 40%;
        border-bottom: none;
        border-right: 1px solid var(--color-border);
    }
}

.member-img-wrapper {
    position: relative;
    overflow: hidden;
    margin: 0 auto 20px;
    width: 160px;
    height: 180px;
    border-radius: 8px;
    border: 3px solid #ffffff;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal);
}

.member-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 4px;
    transition: transform var(--transition-normal);
    background-color: #f8f9fa;
}

.team-profile-card:hover .member-img-wrapper img {
    transform: scale(1.05);
}

.member-info h3 {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 6px;
    font-weight: 700;
}

.member-info .designation {
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.profile-body {
    padding: 30px;
    flex: 1;
}

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

.detail-title {
    font-size: 1rem;
    color: var(--color-heading);
    margin-top: 24px;
    margin-bottom: 10px;
    font-weight: 700;
    border-left: 3px solid var(--color-secondary);
    padding-left: 10px;
}

.profile-details .detail-title:first-child {
    margin-top: 0;
}

.profile-details p {
    font-size: 0.95rem;
    color: var(--color-text);
    margin-bottom: 0;
    line-height: 1.6;
}

/* ==========================================================================
   Milestones Section (Timeline)
   ========================================================================== */
.milestones-section h2 {
    color: #ffffff;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: rgba(212, 175, 55, 0.3);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 40px 40px 0;
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding: 0 0 40px 40px;
}

.timeline-dot {
    position: absolute;
    top: 0;
    right: -10px;
    width: 20px;
    height: 20px;
    background-color: var(--color-secondary);
    border: 4px solid var(--color-primary);
    border-radius: 50%;
    z-index: 2;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 8px;
    border-left: 3px solid var(--color-secondary);
    transition: transform var(--transition-fast);
}

.timeline-item:nth-child(even) .timeline-content {
    border-left: none;
    border-right: 3px solid var(--color-secondary);
    text-align: right;
}

.timeline-content:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.08);
}

.timeline-content .year {
    display: inline-block;
    color: var(--color-secondary);
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 8px;
}

.timeline-content h3 {
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.timeline-content p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
    align-items: start;
}

.contact-column {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    height: 100%;
}

.contact-column.highlight {
    background-color: var(--color-bg-light);
    box-shadow: none;
    border: 1px solid var(--color-border);
}

.contact-col-title {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
    font-family: var(--font-heading);
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-card:last-child {
    margin-bottom: 0;
}

.contact-card .icon-box {
    width: 50px;
    height: 50px;
    background-color: rgba(29, 78, 137, 0.05);
    /* very light primary blue */
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-card-content h4 {
    font-size: 1.2rem;
    color: var(--color-heading);
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.contact-card-content p {
    color: var(--color-text);
    margin-bottom: 0;
    line-height: 1.6;
}

.contact-card-content a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.contact-card-content a:hover {
    color: var(--color-secondary);
}

.info-blocks {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(11, 37, 69, 0.05);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.info-item h4 {
    margin-bottom: 4px;
    font-size: 1.1rem;
}

.info-item span {
    color: var(--color-text);
}

.contact-form-wrapper {
    background-color: #ffffff;
    padding: 40px;
    border-top: 4px solid var(--color-secondary);
}

.contact-form h3 {
    font-size: 1.75rem;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
    background-color: var(--color-bg-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: #ffffff;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer ul li {
    margin-bottom: 12px;
}

.site-footer ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.site-footer ul li a:hover {
    color: var(--color-secondary);
    padding-left: 5px;
}

.site-footer h4 {
    color: #ffffff;
    margin-bottom: 24px;
    font-size: 1.25rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 400px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.25rem;
}

.footer-social a:hover {
    color: var(--color-secondary);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Media Queries (Responsive)
   ========================================================================== */
@media screen and (max-width: 992px) {

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .experience-badge {
        right: 0;
        bottom: -20px;
    }

    .hero-text-box h1 {
        font-size: 3rem;
    }

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

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .logo img {
        height: 50px;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--color-primary);
        padding: 100px 40px;
        flex-direction: column;
        transition: right var(--transition-normal);
        box-shadow: -10px 0 20px rgba(0, 0, 0, 0.2);
    }

    .main-nav.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        width: 100%;
    }

    .nav-link {
        color: #ffffff !important;
        font-size: 1.25rem;
    }

    .nav-links .btn-primary {
        margin-top: 20px;
        text-align: center;
        width: 100%;
    }

    .hero-text-box {
        background: rgba(255, 255, 255, 0.88);
        padding: 24px;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    }

    .hero-text-box h1 {
        font-size: 2.25rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .vision-card-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding: 0 0 40px 60px;
        left: 0 !important;
    }

    .timeline-item:nth-child(even) {
        text-align: left;
    }

    .timeline-dot {
        left: 20px !important;
    }

    .timeline-item:nth-child(even) .timeline-content {
        border-right: none;
        border-left: 3px solid var(--color-secondary);
        text-align: left;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}