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

:root {
    /* Colors */
    --color-primary: #1b2817;
    /* Dark Green */
    --color-primary-light: #24361f;
    --color-primary-dark: #0f180d;
    --color-accent: #d4cfa2;
    /* Gold/Beige */
    --color-accent-dark: #b8b388;

    --color-surface-light: #f2f2f2;
    --color-surface-white: #ffffff;
    --color-surface-dark: #111111;
    --color-bg-dark: #1b2817;

    --color-text-main: #000000;
    --color-text-light: #ffffff;
    --color-text-muted: #666666;
    --color-text-muted-light: #b3b3b3;

    /* Typography */
    --font-heading: 'Lora', serif;
    --font-body: 'Lora', serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Layout */
    --container-max-width: 1200px;
    --container-padding: 2rem;
    --border-radius: 4px;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: inherit;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
    object-fit: cover;
}

/* Utilities */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

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

.text-white {
    color: var(--color-text-light);
}

.text-muted-light {
    color: var(--color-text-muted-light);
}

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

.bg-accent-light {
    background-color: #f9f9f5;
}

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

.mt-lg {
    margin-top: var(--spacing-lg);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--color-accent);
    color: var(--color-primary-dark);
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid var(--color-accent);
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn:hover {
    background-color: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    transform: translateY(-2px);
}

.btn-outline-light {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-text-light);
    padding: 0.8rem 2rem;
}

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

/* Team Section Background */
#team {
    position: relative;
    background-color: var(--color-bg-dark);
    overflow: hidden;
}

#team::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('public/team-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    /* Reduced opacity */
    z-index: 0;
}

#team .container {
    position: relative;
    z-index: 1;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(15, 24, 13, 0.85);
    /* Darker green tint */
    backdrop-filter: blur(12px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.logo-img {
    height: 32px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.btn-schedule {
    font-family: var(--font-body);
    /* Serif match */
    background-color: rgba(40, 75, 40, 0.6);
    border: 1px solid #3e6b3b;
    color: #fff;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    /* Pill shape */
    font-size: 0.85rem;
    text-transform: capitalize;
    letter-spacing: normal;
    transition: all 0.3s ease;
}

.btn-schedule:hover {
    background-color: #3e6b3b;
    border-color: #3e6b3b;
    transform: translateY(0);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: flex-end;
    /* Align content to bottom */
    justify-content: flex-start;
    background-image: url('public/hero-bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding-bottom: 8rem;
    /* Space from bottom */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
        /* Better performance on mobile */
    }
}

.hero-bg-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    color: var(--color-text-light);
    width: 100%;
}

.hero-text-wrapper {
    max-width: 100%;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Subtle shadow for legibility */
}

.hero-logo-wrapper {
    margin-bottom: 0.5rem;
    /* Reduced further to bring logo very close to text */
}

.hero-logo-main {
    height: 200px;
    /* Large size for H1 prominence */
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@media (max-width: 768px) {
    .hero-logo-main {
        height: 80px;
        margin: 0 auto;
    }
}

.hero-firm-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: #ffffff;
    /* Pure white */
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-style: normal;
}

@media (max-width: 768px) {
    .hero-title-large {
        font-size: 4rem;
    }

    .hero-bg-overlay {
        background: rgba(0, 0, 0, 0.6);
    }

    .hero {
        padding-bottom: 4rem;
        align-items: center;
        justify-content: center;
    }

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

    .hero-title-large {
        justify-content: center;
    }
}

/* About/Intro Section */
.about-section {
    background-color: #f5f5f5;
}

.intro-grid {
    display: grid;
    grid-template-columns: 45% 55%;
    /* Give more space to image */
    gap: 3rem;
    align-items: center;
}

.intro-text {
    padding-right: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 2.5rem;
    color: #1a1a1a;
    font-weight: 400;
    line-height: 1.2;
}

.about-paragraph {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.8;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    text-align: left;
    font-weight: 500;
    /* Lora Medium */
}

.about-paragraph-emphasized {
    margin-top: 1rem;
    font-weight: 500;
    /* Lora Medium */
}

.intro-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.intro-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
}

/* Legacy styles for other sections */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--color-primary);
}

.section-title.text-white {
    color: var(--color-text-light);
}

.lead-text {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 992px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .intro-text {
        padding-right: 0;
    }

    .about-title {
        font-size: 2.2rem;
    }
}

/* Expertise Section */
.expertise-main-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    margin-bottom: 0;
    font-weight: 400;
}

.section-subtitle {
    margin-top: 1rem;
}

/* Expertise Cards */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.expertise-card {
    background: #ffffff;
    border: 10px solid #f5f5f5;
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.expertise-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.expertise-card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background-color: #ddd;
}

.expertise-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.expertise-card-content {
    padding: 2rem 1.8rem;
    background: #ffffff;
}

.expertise-card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-weight: 500;
}

.expertise-card-content p {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .expertise-card-image {
        height: 200px;
    }
}

/* Services / Mission & Vision Section */

/* Quote at Top */
.services-quote-block {
    margin-bottom: 3rem;
}

.services-quote-text {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: #3e6b3b;
    /* Green color matching the design */
    font-style: normal;
    font-weight: 400;
    line-height: 1.3;
    max-width: 1000px;
    margin: 0 auto;
}

/* Service Description Paragraphs */
.services-description {
    max-width: 900px;
    margin: 0 auto 4rem;
}

.services-para {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.7;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.services-para-emphasized {
    margin-top: 2rem;
    font-weight: 500;
}

/* Mission and Vision Heading */
.mv-heading {
    margin-bottom: 3rem;
}

.mv-heading h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: #1a1a1a;
    font-weight: 400;
}

/* Mission and Vision Cards */
.mission-vision-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.mv-card {
    background-color: #d4cfa2;
    /* Beige/cream color */
    padding: 3rem 2.5rem;
    text-align: center;
}

.mv-card h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.mv-card p {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: #1a1a1a;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .services-quote-text {
        font-size: 2rem;
    }

    .mission-vision-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Founders */
.founders-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    /* Spacing between the two photos */
    margin-top: 3rem;
    flex-wrap: wrap;
}

.founder-card {
    text-align: center;
    max-width: 400px;
    /* Limit width to keep portrait aspect ratio nice */
    width: 100%;
}

.founder-image {
    width: 100%;
    aspect-ratio: 3/4;
    /* Vertical portrait */
    overflow: hidden;
    margin-bottom: 2rem;
    background-color: #222;
    border: 8px solid #f2f2f2;
    /* The thick white frame */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    /* Depth */
}

.founder-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.founder-card:hover .founder-image img {
    transform: scale(1.03);
    /* Subtle zoom */
}

.founder-card h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 0.8rem;
    color: var(--color-text-light);
    font-weight: 400;
}

.founder-role {
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-body);
    /* Or Heading if preferred, but usually body */
    font-size: 1rem;
    letter-spacing: 0.5px;
    font-weight: 300;
}

/* Senior Counsel / Expert Team */
.expert-team-section {
    background-color: #fdfbf5;
    /* Cream background */
    padding: 6rem 0;
}

.expert-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
    max-width: 1100px;
    margin: 3rem auto 0;
}

.expert-image-col {
    text-align: center;
}

.expert-image {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border-radius: 2px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.expert-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.expert-image:hover img {
    transform: scale(1.02);
}

.expert-name {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
}

.expert-role {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: 1rem;
}

.expert-bio {
    color: #333;
    font-size: 1.05rem;
    line-height: 1.8;
}

.expert-bio p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

@media (max-width: 900px) {
    .expert-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Trust Banner Section */
.trust-banner {
    background-color: #fcfcf9;
    /* Light cream background matching top half */
}

.trust-content {
    padding: 6rem 2rem;
    text-align: center;
}

.trust-title {
    font-family: var(--font-heading);
    color: #3e6b3b;
    /* A lighter, fresher green as seen in image */
    font-size: 3.5rem;
    line-height: 1.2;
    margin: 0;
    font-weight: 400;
}

.trust-image {
    width: 100%;
    height: 400px;
    /* Fixed height for the banner look */
    overflow: hidden;
}

.trust-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 768px) {
    .trust-title {
        font-size: 2.5rem;
    }

    .trust-image {
        height: 250px;
    }
}

/* Footer */
.footer {
    padding: 6rem 0 2rem;
    font-size: 0.95rem;
    border-top: none;
    /* Removed border as per new design */
}

/* New Footer Grid Layout */
.footer-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5rem;
    gap: 4rem;
    flex-wrap: wrap;
}

.footer-brand-col {
    flex: 1;
    min-width: 300px;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    margin-bottom: 1.5rem;
    display: block;
    mix-blend-mode: screen;
}

.footer-brand-text {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-top: 1rem;
    letter-spacing: 0.5px;
}

.footer-newsletter-col {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.footer-tagline {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.footer-newsletter-text {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
}

.newsletter-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    color: #fff;
    font-family: var(--font-body);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #00e676;
    /* Bright green arrow button */
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.newsletter-btn:hover {
    transform: scale(1.1);
}

/* Footer Bottom Grid */
.footer-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    padding-top: 2rem;
}

.footer-bottom-col h4 {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.footer-link {
    display: block;
    color: #fff;
    margin-bottom: 0.8rem;
    text-decoration: none;
    font-weight: 500;
}

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

.footer-contact-info p {
    color: #fff;
    margin-bottom: 0.5rem;
}

.footer-contact-info .contact-email {
    margin-top: 1rem;
    display: block;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

@media (max-width: 768px) {

    .footer-top-row,
    .footer-bottom-grid {
        flex-direction: column;
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Responsive */
@media (max-width: 991px) {

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

    .hero-title {
        font-size: 2.8rem;
    }

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

    .mv-divider {
        width: 100px;
        height: 1px;
        margin: 2rem 0;
    }

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

    .nav-links {
        display: none;
    }

    /* Simplified mobile handling */
}

/* Update for Intro Section Image */
.intro-image {
    padding-left: 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    border-left: 1px solid #ddd;
}

.intro-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 991px) {

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

    .intro-image {
        padding-left: 0;
        border-left: none;
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 1px solid #ddd;
    }
}

/* Update for Intro Section Image */
.intro-image {
    padding-left: 4rem;
    height: 100%;
    display: flex;
    align-items: center;
    border-left: 1px solid #d4cfa2;
    /* Using the accent color for the divider */
}

/* Legal Structure Section */
.legal-structure-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.legal-box {
    border: 3px solid var(--color-accent);
    background-color: #fcfcfc;
    color: var(--color-primary-light);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    text-align: center;
    padding: 1.5rem 1rem;
    font-weight: 400;
}

.legal-intro {
    max-width: 800px;
    margin: 0 auto 3.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-text-main);
}

.legal-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.legal-item {
    background-color: #24361f;
    /* Matching the dark green bars */
    color: var(--color-text-light);
    padding: 1.5rem;
    text-align: center;
    font-size: 1.2rem;
    font-family: var(--font-heading);
    /* Serif font for the formal look */
    font-weight: 400;
    width: 100%;
}

@media (max-width: 768px) {
    .legal-structure-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .legal-box {
        font-size: 1.5rem;
    }

    .legal-item {
        font-size: 1rem;
        padding: 1.2rem;
    }
}