/* ==========================================================================
   CSS VARIABLES & RESET
   ========================================================================== */
:root {
    --primary-red: #cc0000;
    --dark-bg: #1a1a1a;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --light-gray: #f4f4f4;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.text-red { color: var(--primary-red); }
.text-white { color: var(--white); }
.text-center { text-align: center; }
.bg-red { background-color: var(--primary-red); }
.mt-20 { margin-top: 20px; }

.section-dark {
    background-color: var(--dark-bg);
    color: var(--white);
    position: relative;
    background-size: cover;
    background-position: center;
}

/* Background image placeholders for dark sections */
.hero {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.8)), url('../images/banner-2.png');
}
.cta-banner {
    background-image: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85)), url('https://via.placeholder.com/1920x400/222222/111111?text=Lawyer+Office');
    padding: 80px 0;
}
.contact-column {
    background-image: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('https://via.placeholder.com/960x600/222222/111111?text=Office+Background');
}
.pre-footer {
    background-image: url('../images/cta-bg-img.png');
background-repeat: no-repeat;
background-position: center;
background-size: cover;
}

.pattern-bg {
    background-color: var(--light-gray);
    background-image: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="%23e0e0e0"/></svg>');
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 15px 30px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-red {
    background-color: var(--primary-red);
    color: var(--white);
}

.btn-red:hover {
    background-color: #a30000;
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--dark-bg);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--dark-bg);
}

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

.btn-dark:hover {
    background-color: #000;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    padding: 40px 0px 80px 0px;
}
@media (max-width:768px) {
.hero .container.call-btn {
text-align: center!important;
}
}
@media (min-width:780px) {

.hero.section-dark {
background-color: #ffffff;
    color: var(--white);
}
}


.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.logo {
    margin-bottom: 30px;
}
.logo img {
    max-width: 250px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.hero-subtext {
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.hero-benefits {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px 30px;
    margin-bottom: 30px;
    font-weight: 700;
    font-size: 0.9rem;
}

.hero-benefits .check {
    color: var(--primary-red);
    margin-right: 5px;
    font-size: 1.2rem;
}

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

/* Forms */
.hero-form-wrapper {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 5px;
    width: 100%;
    max-width: 450px;
    position: relative;
    border: 1px solid #ddd;
}

.form-header {
    background-color: var(--primary-red);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    padding: 10px 20px;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    clip-path: polygon(10% 0, 90% 0, 100% 50%, 90% 100%, 10% 100%, 0% 50%);
    white-space: nowrap;
}

.cta-box {
    margin-top: 15px;
}

/* ==========================================================================
   SPLIT SECTIONS
   ========================================================================== */
.split-section {
    padding: 80px 0;
}

.split-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

/* Reverse layout for alternating sections */
.split-layout.reverse {
    flex-direction: row-reverse;
}

.split-content, .split-image {
    flex: 1;
}

.split-content h2 {
    font-size: 2.5rem;
}

.split-content p {
    margin-bottom: 20px;
}

.feature-list p {
    margin-bottom: 15px;
}

/* Red Offset Image Effects */
.image-offset {
    position: relative;
    z-index: 1;
}
.image-offset img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.image-offset::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--primary-red);
    z-index: -1;
}

.offset-bottom-left::before {
    bottom: -20px;
    left: -20px;
}
.offset-bottom-right::before {
    bottom: -20px;
    right: -20px;
}
.offset-top-left::before {
    top: -20px;
    left: -20px;
}

/* Custom Lists */
.custom-list {
    list-style: none;
    margin-bottom: 20px;
}

.custom-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-weight: 600;
}

.custom-list li::before {
    content: '♦';
    color: var(--primary-red);
    position: absolute;
    left: 0;
    top: 0;
}

.icon-list li::before {
    content: '✓';
    font-size: 1.2rem;
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
.testimonials-section {
    padding: 80px 0;
}
.testimonials-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

/* ==========================================================================
   PRE-FOOTER (MAPS & CONTACT)
   ========================================================================== */
.pre-footer .containers {
 display: flex;
}

@media (min-width: 1600px){
.pre-footer .containers {
    max-width: 1200px;
    margin: 0 auto;
}
}

.pre-footer .bg-red {
background-color: rgb(204 0 0 / 43%);
}

.pre-footer .contact-column.section-dark{
    background-color: rgb(26 26 26 / 80%);
}
.map-column, .contact-column {
    flex: 1;
    padding: 60px 40px;
}
.map-container {
    max-width: 500px;
    margin: 0 auto 30px auto;
}
.map-address {
    font-weight: 700;
}
.form-wrapper-dark {
    max-width: 450px;
    margin: 0 auto;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-main {
    background-color: var(--white);
    border-top: 1px solid #eee;
}

.footer-split {
    display: flex;
    align-items: stretch;
    padding: 0;
}

.footer-logo-area {
    flex: 1;
    padding: 40px 20px 40px 0;
}

.footer-logo {
    max-width: 250px;
    margin-bottom: 20px;
}

.social-icons .icon {
    display: inline-block;
    margin-right: 15px;
    margin-top: 15px;
}
.social-icons .icon img {
    width: 32px;
    height: 32px;
}

.footer-cta-area {
    flex: 2;
    padding: 40px;
    color: var(--white);
    clip-path: polygon(5% 0, 100% 0, 100% 100%, 0 100%);
}

.footer-cta-content {
    max-width: 600px;
    margin-left: auto;
}

.footer-cta-content h2 {
    margin-bottom: 10px;
}

.footer-actions {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 20px;
}

.footer-phone strong {
    display: block;
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

.footer-phone span {
    font-size: 0.8rem;
    text-transform: uppercase;
}

.small-disclaimer {
    font-size: 0.8rem;
    margin-top: 15px;
    font-style: italic;
}

.copyright-bar {
    background-color: #000;
    color: #666;
    text-align: center;
    padding: 20px 0;
    font-size: 0.85rem;
}

/* ==========================================================================
   MEDIA QUERIES (MOBILE RESPONSIVE)
   ========================================================================== */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.8rem; }
    
    /* Stack split sections normally on mobile */
    .split-layout, .split-layout.reverse, .pre-footer, .footer-split { 
        flex-direction: column; 
    }
    
    .image-offset::before { 
        bottom: -10px; left: -10px; top: auto; right: auto; 
    }
    
    .footer-cta-area {
        clip-path: none;
        padding: 40px 20px;
    }
    
    .footer-logo-area {
        padding: 40px 20px;
        text-align: center;
    }
    
    .footer-cta-content {
        margin: 0 auto;
        text-align: center;
    }
    
    .footer-actions {
        flex-direction: column;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-container { flex-direction: column; text-align: center; }
    .hero-benefits { justify-content: center; }
    .hero-actions { flex-direction: column; }
    .hero h1 { font-size: 2.2rem; }
    .map-column, .contact-column { padding: 40px 20px; }
    .cta-buttons { flex-direction: column; }
}