/* ================================
   RESET & BASE STYLES
   ================================ */
html {
    box-sizing: border-box;
    font-size: 16px;
}
*, *:before, *:after {
    box-sizing: inherit;
}
body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #f9f7f4;
}

/* ================================
   TYPOGRAPHY
   ================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: #222;
    margin-top: 1em;
    margin-bottom: 0.5em;
}
h1, h2, h3 {
    color: #0d0d0d;
}
a {
    text-decoration: none;
    color: #A00000;
    transition: color 0.3s;
}
a:hover { color: #800000; }

/* ================================
   CONTAINER
   ================================ */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 30px 8px;
    }
}

/* ================================
   HEADER & NAVIGATION
   ================================ */
.site-header {
    background: #fff;
    padding: 4px 0; /* Reduced header height */
    box-shadow: 0 2px 5px rgba(0,0,0,.09);
    border-bottom: 3px solid #A00000;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}
.site-header .container {
    align-items: center;
    min-height: 56px; /* for sticky/overlay consistency */
}
.site-header .logo {
    display: flex;
    align-items: center;
}
.site-header .logo img {
    height: 78px; /* 60px + 30% = 78px */
    width: auto;
    display: block;
    /* no right margin, logo is larger and more prominent */
}
.site-header .logo .firm-name { display: none; }

/* Navigation */
.site-nav {
    position: relative;
}
.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}
.site-nav li { margin-left: 30px; }
.site-nav a {
    color: #555;
    font-weight: 600;
    font-size: 1.1em;
    padding: 5px 0;
    transition: color 0.3s, border 0.3s;
}
.site-nav a:hover,
.site-nav a.active {
    color: #A00000;
    border-bottom: 2px solid #A00000;
}

/* Burger menu */
.menu-toggle {
    display: none;
    font-size: 2.2em;
    background: none;
    border: none;
    color: #A00000;
    cursor: pointer;
    padding: 0 10px;
}

/* Responsive Nav */
@media (max-width: 900px) {
    .site-header .container {
        flex-direction: row;
        padding: 10px 10px;
    }
    .site-nav ul {
        gap: 0;
    }
    .site-nav li {
        margin-left: 18px;
    }
}
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: row;
        padding: 6px 10px;
        min-height: 52px;
    }
    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100vw;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.09);
        display: none;
        z-index: 1010;
    }
    .site-nav.active { display: block; }
    .site-nav ul {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 0;
        gap: 0;
    }
    .site-nav li {
        margin: 0;
        border-bottom: 1px solid #eee;
    }
    .site-nav li:last-child { border-bottom: none; }
    .site-nav a {
        display: block;
        padding: 18px 0;
        font-size: 1.15em;
    }
    .menu-toggle { display: block; }
}

/* Header Contact Info */
.header-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: auto;
    padding-right: 20px;
    gap: 2px;
}
.header-contact a {
    color: #333;
    font-size: 0.9em;
    padding: 2px 0;
    white-space: nowrap;
}
.header-contact a:hover { color: #A00000; text-decoration: underline; }
@media (max-width: 768px) {
    .header-contact {
        flex-direction: row;
        align-items: center;
        gap: 15px;
        margin-left: 0;
        padding-right: 0;
        margin-top: 2px;
        width: 100%;
        justify-content: flex-end;
    }
    .header-contact a { font-size: 0.82em; padding: 4px 0; }
    .header-contact a[href^="tel:"]::before { content: "📞 "; }
    .header-contact a[href^="mailto:"]::before { content: "✉ "; }
}

/* ================================
   HERO SLIDER
   ================================ */
.hero-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}
.hero-slider .slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0; z-index: 1;
    transition: opacity 1s;
}
.hero-slider .slide.active { opacity: 1; z-index: 2; }
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.52);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    z-index: 3;
    padding: 0 18px;
}
.hero-overlay h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4em;
    margin-bottom: 22px;
    color: #fff;
    text-shadow: 2px 2px 9px rgba(0,0,0,0.67);
}
.hero-overlay p {
    font-size: 1.8em;
    font-weight: 300;
    max-width: 800px;
    line-height: 1.4;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.67);
}
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 4;
}
.slider-dot {
    width: 12px; height: 12px;
    background: rgba(255,255,255,0.56);
    border-radius: 50%;
    margin: 0 8px;
    cursor: pointer;
    transition: background 0.3s;
}
.slider-dot.active {
    background: #A00000;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.82);
}

/* Hero Responsive */
@media (max-width: 992px) {
    .hero-slider { height: 420px; }
    .hero-overlay h1 { font-size: 2.3em; }
    .hero-overlay p { font-size: 1.25em; }
}
@media (max-width: 768px) {
    .hero-slider { height: 260px; }
    .hero-overlay h1 { font-size: 1.6em; }
    .hero-overlay p { font-size: 1em; }
}
@media (max-width: 480px) {
    .hero-slider { height: 180px; }
    .slider-dot { width: 10px; height: 10px; margin: 0 6px; }
    .hero-overlay { padding: 0 8px; }
}

 /* ================================
    ABOUT US SECTION
   ================================ */
.about-us-section {
    padding: 60px 0;
    background: #fff;
}
.about-us-section .section-title {
    text-align: center;
    font-size: 2.2em;
    color: #A00000;
    margin-bottom: 38px;
    position: relative;
    padding-bottom: 14px;
}
.about-us-section .section-title::after {
    content: '';
    display: block;
    width: 58px;
    height: 3px;
    background: #A00000;
    margin: 10px auto 0;
    border-radius: 2px;
}
.about-intro {
    max-width: 700px;
    margin: 0 auto 30px;
    text-align: center;
    font-size: 1.10em;
    color: #555;
    line-height: 1.7;
}
.about-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    align-items: start;
}
.about-block {
    background: #f9f9f9;
    padding: 22px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.about-block .block-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.27em;
    color: #333;
    margin: 0 0 14px 0;
    text-align: left;
    border-bottom: 2px solid #eee;
    padding-bottom: 6px;
}
.legal-affiliations {
    list-style: none;
    padding: 0;
    margin-top: 8px;
}
.legal-affiliations li {
    margin-bottom: 8px;
    font-size: 0.98em;
    color: #444;
    position: relative;
    padding-left: 25px;
}
.legal-affiliations li .icon-check {
    position: absolute;
    left: 0; top: 0;
    color: #A00000;
    font-size: 1em;
    font-weight: bold;
}
@media (max-width: 992px) {
    .about-us-section { padding: 38px 0; }
    .about-us-section .section-title { font-size: 1.65em; margin-bottom: 20px; }
    .about-intro { font-size: 1em; margin-bottom: 18px; }
    .about-content-grid { gap: 16px; }
    .about-block { padding: 15px; }
}
@media (max-width: 768px) {
    .about-content-grid { grid-template-columns: 1fr; gap: 12px; }
    .about-block .block-title { font-size: 1em; }
}
@media (max-width: 480px) {
    .about-us-section { padding: 18px 0; }
    .about-us-section .section-title { font-size: 1.1em; }
    .about-block { padding: 9px; }
}

/* ================================
   STATS / COUNTERS
   ================================ */
.stats {
    background: #f2f2f2;
    padding: 64px 0;
    text-align: center;
}
.stats .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
}
.stat-box {
    background: #fff;
    padding: 19px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    flex: 1 1 180px;
    min-width: 170px;
    max-width: 250px;
    text-align: center;
    transition: transform 0.3s;
}
.stat-box:hover { transform: translateY(-6px); }
.stat-box h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8em;
    color: #A00000;
    margin: 0 0 6px 0;
    line-height: 1;
}
.stat-box p { font-size: 1.05em; color: #555; margin: 0; }
@media (max-width: 768px) {
    .stats .container { flex-direction: column; gap: 19px; }
    .stat-box { width: 98%; max-width: 330px; }
}
@media (max-width: 480px) {
    .stats { padding: 28px 0; }
    .stat-box h3 { font-size: 1.8em; }
    .stat-box p { font-size: 0.98em; }
}

/* ================================
   TESTIMONIALS
   ================================ */
.testimonials {
    background-color: #fff;
    text-align: center;
    padding: 48px 0;
}
.testimonial-list {
    display: flex;
    flex-direction: row;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
}
.testimonial {
    background: #f2f2f2;
    padding: 22px 18px;
    border-left: 5px solid #800000;
    border-radius: 4px;
    margin-bottom: 12px;
    max-width: 360px;
    flex: 1 1 180px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    text-align: left;
}
.testimonial .author {
    margin-top: 12px;
    font-weight: bold;
    color: #A00000;
    font-size: 1em;
}
@media (max-width: 900px) {
    .testimonial-list { flex-direction: column; gap: 15px; align-items: center; }
    .testimonial { max-width: 95vw; }
}
@media (max-width: 600px) {
    .testimonial { padding: 13px 8px; font-size: 0.99em; }
}

/* ================================
   CONTACT CTA & FORM
   ================================ */
.contact-cta {
    background: #800000;
    color: #fff;
    text-align: center;
    padding: 46px 0;
}
.contact-cta h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 2.1em;
}
.contact-form {
    max-width: 440px;
    margin: 30px auto 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.contact-form input,
.contact-form textarea {
    padding: 11px;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    width: 100%;
    background: #f8f8f8;
    color: #222;
}
.contact-form textarea { min-height: 90px; resize: vertical; }
.contact-form button {
    background: #d4b59e;
    color: #000;
    padding: 11px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}
.contact-form button:hover { background: #fff; }
@media (max-width: 500px) {
    .contact-cta { padding: 22px 0; }
    .contact-form { max-width: 100%; }
}

/* ================================
   AWARDS SECTION
   ================================ */
.awards {
    background: #f4f4f4;
    text-align: center;
    padding: 36px 0;
}
.award-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}
.award-logos img {
    max-height: 76px;
    width: auto;
    margin: 6px 0;
}
@media (max-width: 600px) {
    .award-logos { gap: 10px; }
    .award-logos img { max-height: 49px; }
}

/* ================================
   TEAM IMAGES
   ================================ */
.team-img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

/* ================================
   CONTACT PAGE LAYOUT
   ================================ */
.contact-page h2 {
    text-align: center;
    margin-bottom: 20px;
}
.contact-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 36px;
}
.contact-details,
.contact-form-wrapper {
    flex: 1 1 45%;
    min-width: 220px;
}
.contact-details p {
    margin-bottom: 12px;
    line-height: 1.6;
}
.contact-details a {
    color: #800000;
    text-decoration: none;
}
.contact-details a:hover { text-decoration: underline; }
@media (max-width: 768px) {
    .contact-content { flex-direction: column; gap: 18px; }
    .contact-details,
    .contact-form-wrapper { flex: 1 1 100%; }
}

/* ================================
   FOOTER
   ================================ */
.site-footer {
    background: #0d0d0d;
    color: #eee;
    padding: 30px 0 16px;
    font-size: 0.95rem;
    border-top: 3px solid #800000;
}
.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 18px;
}
.footer-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.17rem;
    margin-bottom: 10px;
    color: #fff;
}
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #d4b59e; transition: color 0.3s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
    text-align: center;
    margin-top: 20px;
    color: #aaa;
    font-size: 0.85rem;
}
@media (max-width: 768px) {
    .footer-container { flex-direction: column; text-align: center; }
    .footer-links ul { justify-content: center; }
}
@media (max-width: 480px) {
    .footer-links ul { flex-direction: column; gap: 10px; }
}

/* ================================
   BACK TO TOP BUTTON
   ================================ */
#backToTop {
    display: none;
    position: fixed;
    bottom: 23px; right: 23px;
    z-index: 999;
    font-size: 19px;
    background: #800000;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: background 0.3s;
}
#backToTop:hover { background: #a52a2a; }
@media (max-width: 480px) {
    #backToTop { bottom: 12px; right: 12px; width: 34px; height: 34px; font-size: 15px; }
}

/* ================================
   GOOGLE MAP
   ================================ */
.google-map {
    margin-top: 29px;
    border: 3px solid #800000;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ================================
   UTILITY CLASSES (for spacing)
   ================================ */
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.pt-1 { padding-top: 8px !important; }
.pt-2 { padding-top: 16px !important; }
.pb-1 { padding-bottom: 8px !important; }
.pb-2 { padding-bottom: 16px !important; }
@media (max-width: 600px) {
    .mt-2, .mb-2, .pt-2, .pb-2 { margin: 10px !important; padding: 10px !important; }
}