/* 
   Hamilton BC Law Firm - Styles
   Premium, Elegant, Trustworthy
*/

:root {
    --primary-color: #1a3c34;
    /* Deep Forest Green */
    --secondary-color: #445c58;
    /* Muted Slate Green */
    --accent-color: #c5a059;
    /* Muted Gold */
    --text-color: #2c2c2c;
    --light-bg: #f4f6f5;
    /* Very subtle green tint */
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.underline {
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
    margin-left: 20px;
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.full-width {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(26, 60, 52, 0.95);
    padding: 15px 0;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--white);
    font-weight: 700;
}

.logo .accent {
    color: var(--accent-color);
    font-weight: 400;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--white);
    font-weight: 400;
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

.btn-nav {
    border: 1px solid var(--accent-color);
    padding: 8px 20px;
    border-radius: 4px;
    color: var(--accent-color) !important;
}

.btn-nav:hover {
    background-color: var(--accent-color);
    color: var(--white) !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--white);
    transition: var(--transition);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('assets/images/hero_bg.png') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: -70px;
    /* Offset fixed nav */
    padding-top: 70px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(26, 60, 52, 0.8), rgba(26, 60, 52, 0.5));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeIn Up 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.subheadline {
    font-size: 1.25rem;
    margin-bottom: 40px;
    font-weight: 300;
    opacity: 0.9;
}

/* Page Header */
.page-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 140px 0 80px;
    /* Account for fixed nav + spacing */
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 20px;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.about-text p {
    margin-bottom: 20px;
}

/* Practice Areas */
.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.practice-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border-top: 3px solid transparent;
}

.practice-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-top-color: var(--accent-color);
}

.practice-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.practice-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

/* Attorneys Section */
.attorneys-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.attorney-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.attorney-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.attorney-img-container {
    height: 350px;
    overflow: hidden;
    position: relative;
}

.attorney-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
}

.attorney-card:hover .attorney-img-container img {
    transform: scale(1.05);
}

.attorney-info {
    padding: 25px;
    text-align: center;
}

.attorney-info h3 {
    margin-bottom: 5px;
    font-size: 1.4rem;
}

.attorney-info .title {
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.attorney-info .bio {
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.attorney-info .focus {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.email-link {
    font-size: 0.9rem;
    color: var(--secondary-color);
    text-decoration: underline;
}

.email-link:hover {
    color: var(--accent-color);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: rgba(197, 160, 89, 0.2);
    position: absolute;
    top: 10px;
    left: 20px;
}

.testimonial-card .quote {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimonial-card .author {
    font-weight: 700;
    color: var(--primary-color);
    text-align: right;
}

/* Contact Section */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    background: var(--white);
    padding: 50px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-info,
.contact-form-container {
    flex: 1;
    min-width: 300px;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.info-item .icon {
    font-size: 1.5rem;
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

input,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(197, 160, 89, 0.1);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ccc;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
}

.social-icons a {
    color: var(--white);
    margin-right: 15px;
    font-size: 1.1rem;
}

.social-icons a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    color: #ccc;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Media Queries */
/* Mission Section */
.mission-statement {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-style: italic;
    color: var(--primary-color);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Story Section */
.story-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.story-image {
    flex: 1;
}

.story-text {
    flex: 1;
    font-size: 1.05rem;
    color: var(--secondary-color);
}

.story-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.story-text p {
    margin-bottom: 15px;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-bottom: 3px solid var(--accent-color);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.value-card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.value-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.value-card p {
    font-size: 0.95rem;
    color: var(--secondary-color);
}

/* Why Choose Us - Reasons */
.reasons-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.reason-item {
    text-align: center;
    max-width: 300px;
}

.reason-item h4 {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.center-text {
    text-align: center;
}

/* Media Queries */
@media (max-width: 992px) {
    .container {
        max-width: 960px;
    }

    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 720px;
    }

    .section {
        padding: 50px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    /* Navigation */
    .nav-links {
        position: fixed;
        top: 60px;
        /* Adjusted for potentially smaller nav height if needed, but keeping standard */
        right: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: var(--primary-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        padding-bottom: 60px;
        /* Space for bottom interaction */
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        /* Larger touch targets */
    }

    .nav-toggle {
        display: block;
    }

    /* Hero */
    .hero {
        margin-top: -60px;
        padding-top: 60px;
    }

    .hero h1 {
        font-size: 2.2rem;
        padding: 0 10px;
    }

    .subheadline {
        font-size: 1rem;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .btn-secondary {
        margin-left: 0;
    }

    /* Page Header */
    .page-header {
        padding: 120px 0 50px;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    /* Components */
    .contact-wrapper {
        padding: 30px 20px;
        flex-direction: column;
    }

    .story-container {
        flex-direction: column;
        gap: 30px;
    }

    .reasons-grid {
        flex-direction: column;
        gap: 30px;
    }

    .testimonial-card::before {
        font-size: 3rem;
        top: 0;
        left: 10px;
    }

    .attorney-img-container {
        height: 300px;
        /* Slightly shorter on mobile/tablet */
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-col {
        width: 100%;
    }

    .nav-container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .practice-card,
    .attorney-card,
    .testimonial-card {
        margin: 0 10px;
        /* Add side margin on very small screens */
    }

    .practice-grid,
    .attorneys-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        /* Force single column */
    }
}