/* ===== CSS Variables / Theme ===== */
:root {
    --navy: #003972;
    --navy-dark: #002550;
    --navy-mid: #345372;
    --blue-accent: #1a80b6;
    --blue-light: #2196d4;
    --white: #ffffff;
    --off-white: #f6f6f6;
    --light-gray: #e8e8e8;
    --gray: #747474;
    --dark-gray: #374151;
    --text: #333333;
    --text-light: #555555;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
    background: var(--white);
}

h1, h2, h3, h4, h5 {
    font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
    line-height: 1.3;
    color: var(--navy);
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-line {
    width: 60px;
    height: 3px;
    background: var(--blue-accent);
    margin: 0 auto 20px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    font-style: italic;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Source Sans 3', sans-serif;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--blue-accent);
    color: var(--white);
    border-color: var(--blue-accent);
}

.btn-primary:hover {
    background: var(--blue-light);
    border-color: var(--blue-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 128, 182, 0.4);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* ===== Top Bar ===== */
.top-bar {
    background: var(--navy-dark);
    color: var(--white);
    font-size: 0.85rem;
    padding: 8px 0;
}

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

.top-bar-contact {
    display: flex;
    gap: 8px;
    align-items: center;
}

.top-bar-contact a {
    color: rgba(255, 255, 255, 0.85);
}

.top-bar-contact a:hover {
    color: var(--blue-accent);
}

.top-bar-contact i {
    margin-right: 5px;
}

.top-bar-divider {
    color: rgba(255, 255, 255, 0.4);
    margin: 0 6px;
}

.top-bar-social {
    display: flex;
    gap: 15px;
}

.top-bar-social a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.top-bar-social a:hover {
    color: var(--blue-accent);
}

/* ===== Header / Navigation ===== */
.header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
}

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

.nav {
    display: flex;
    gap: 5px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--blue-accent);
    transition: var(--transition);
}

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

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

.nav-link.active {
    color: var(--blue-accent);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--navy);
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-dark);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 37, 80, 0.7);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 20px;
}

.hero-logo {
    max-width: 300px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

/* ===== Intro Cards (WHO/WHAT/WHERE) ===== */
.intro {
    padding: 70px 0;
    background: var(--off-white);
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.intro-card {
    background: var(--white);
    padding: 40px 30px;
    text-align: center;
    border-radius: 0;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.intro-card i {
    font-size: 2.5rem;
    color: var(--blue-accent);
    margin-bottom: 20px;
}

.intro-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.intro-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===== CTA Banners ===== */
.cta-banner,
.teamup-banner {
    position: relative;
    padding: 70px 0;
    background: var(--navy-dark);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    overflow: hidden;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, #345372, #003972);
    opacity: 0.92;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto 30px;
}

/* ===== Why Choose Us ===== */
.why-choose {
    background: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.why-card {
    text-align: center;
    padding: 20px 15px;
    transition: var(--transition);
}

.why-card:hover {
    transform: translateY(-5px);
}

.why-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.why-card:hover .why-icon {
    background: var(--blue-accent);
}

.why-card:hover .why-icon i {
    color: var(--white);
}

.why-icon i {
    font-size: 1.8rem;
    color: var(--blue-accent);
    transition: var(--transition);
}

.why-card h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 12px;
}

.why-card p {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ===== Areas of Law ===== */
.areas-of-law {
    background: var(--off-white);
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.area-card {
    background: var(--white);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.area-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.area-card:hover .area-icon {
    background: var(--blue-accent);
}

.area-card:hover .area-icon i {
    color: var(--white);
}

.area-icon i {
    font-size: 1.8rem;
    color: var(--blue-accent);
    transition: var(--transition);
}

.area-card h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 12px;
}

.area-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== Contact Section ===== */
.contact {
    background: var(--white);
}

.contact-form-centered {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 0;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1rem;
    color: var(--text);
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue-accent);
    box-shadow: 0 0 0 3px rgba(26, 128, 182, 0.15);
}

.form-group textarea {
    resize: vertical;
}

/* ===== Footer ===== */
.footer {
    background: #363839;
    color: rgba(255, 255, 255, 0.75);
    padding: 30px 0;
}

.footer-bottom {
    text-align: center;
    margin-bottom: 15px;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
}

.footer-credit {
    font-size: 0.8rem !important;
    color: rgba(255, 255, 255, 0.4) !important;
}

.footer-credit a {
    color: rgba(255, 255, 255, 0.5);
}

.footer-credit a:hover {
    color: var(--blue-accent);
}

.footer-social-bottom {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer-social-bottom a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-social-bottom a:hover {
    color: var(--blue-accent);
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--blue-accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--blue-light);
    transform: translateY(-3px);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .top-bar-contact {
        flex-direction: column;
        gap: 5px;
        align-items: center;
    }

    .top-bar-divider {
        display: none;
    }

    .top-bar-inner {
        flex-direction: column;
        gap: 8px;
        padding: 5px 20px;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        gap: 0;
    }

    .nav.open {
        display: flex;
    }

    .nav-link {
        padding: 12px 16px;
        border-bottom: 1px solid var(--light-gray);
    }

    .nav-link::after {
        display: none;
    }

    .hero {
        min-height: 400px;
    }

    .hero-logo {
        max-width: 200px;
    }

    .section {
        padding: 50px 0;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

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

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

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

    .cta-content h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        max-width: 160px;
    }

    .btn {
        padding: 12px 28px;
        font-size: 0.9rem;
    }

    .section-header h2 {
        font-size: 1.4rem;
    }

    .header-inner {
        height: 70px;
    }

    html {
        scroll-padding-top: 70px;
    }
}
