/* 
HERO LOGO CUSTOMIZATION VARIABLES
==================================
You can experiment with these values by adding them to the :root selector below:

--logo-width: 450px;                    (Desktop logo width)
--logo-padding: 2rem;                   (Desktop logo container padding)
--logo-margin-bottom: 3rem;             (Space below logo)
--logo-border-radius: 15px;             (Logo container corner roundness)
--logo-max-width: 600px;                (Desktop logo container max width)

--logo-width-tablet: 350px;             (Tablet logo width)
--logo-padding-tablet: 1.5rem;          (Tablet logo container padding)
--logo-margin-bottom-tablet: 2rem;      (Tablet space below logo)
--logo-max-width-tablet: 450px;         (Tablet logo container max width)

--logo-width-mobile: 280px;             (Mobile logo width)
--logo-padding-mobile: 1rem;            (Mobile logo container padding)
--logo-margin-bottom-mobile: 1.5rem;    (Mobile space below logo)
--logo-max-width-mobile: 350px;         (Mobile logo container max width)

NAVIGATION LOGO CUSTOMIZATION VARIABLES
=======================================
--nav-logo-height: 50px;                (Desktop navigation logo height)
--nav-logo-height-mobile: 35px;         (Mobile navigation logo height)

Example usage:
:root {
    --logo-width: 500px;
    --logo-padding: 3rem;
    --logo-margin-bottom: 4rem;
    --nav-logo-height: 60px;
    --nav-logo-height-mobile: 40px;
}
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

section {
    width: 100%;
    max-width: 100%;
    display: block;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Crimson Text', serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    color: #1a365d;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1rem;
    color: #666;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #2d5a87 0%, #1a365d 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1a365d 0%, #0f2a44 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(29, 90, 135, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #2d5a87;
    border: 2px solid #2d5a87;
}

.btn-secondary:hover {
    background: #2d5a87;
    color: white;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    border: 2px solid #25d366;
}

.btn-whatsapp:hover {
    background: #128c7e;
    border-color: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-submit {
    background: rgba(255, 255, 255, 0.95);
    color: #2d5a87;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 15px 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-submit:hover {
    background: white;
    color: #1a365d;
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

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

.logo-nav {
    height: var(--nav-logo-height, 50px);
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #2d5a87;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2d5a87;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #2d5a87;
    font-weight: 600;
}

.nav-contact i {
    font-size: 1.2rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 2rem 2rem;
}

.hero-logo-top {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--logo-padding, 2rem);
    margin-bottom: var(--logo-margin-bottom, 3rem);
    border-radius: var(--logo-border-radius, 15px);
    max-width: var(--logo-max-width, 600px);
    width: 100%;
}

.hero-full-logo {
    width: var(--logo-width, 450px);
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

.hero h1 {
    color: #1a365d;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 2rem;
}

.hero-stats {
    margin: 2rem 0;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: #2d5a87;
    font-family: 'Crimson Text', serif;
}

.stat-label {
    font-size: 1.1rem;
    color: #666;
    font-style: italic;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Legacy shield styles for reference */
.hero-shield {
    width: 200px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

/* Legacy placeholder styles for fallback */
.hero-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #2d5a87 0%, #1a365d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(29, 90, 135, 0.3);
}

.hero-placeholder i {
    font-size: 8rem;
    color: white;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Consultation Form */
.hero-consultation {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

.hero-form-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-form-header {
    margin-bottom: 3rem;
}

.hero-form-header h2 {
    color: #1a365d;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-form-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.hero-form-wrapper {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.hero-consultation-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.hero-form-group {
    display: flex;
    flex-direction: column;
}

.hero-form-group-full {
    grid-column: 1 / -1;
}

.hero-form-group label {
    color: #1a365d;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    text-align: left;
}

.hero-form-group input,
.hero-form-group select,
.hero-form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    background: #f8f9fa;
    color: #333;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.hero-form-group input:focus,
.hero-form-group select:focus,
.hero-form-group textarea:focus {
    outline: none;
    border-color: #2d5a87;
    background: white;
    box-shadow: 0 0 0 3px rgba(45, 90, 135, 0.1);
}

.hero-form-group input::placeholder,
.hero-form-group textarea::placeholder {
    color: #999;
}

.hero-phone-input-container {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.hero-country-selector {
    flex: 0 0 auto;
    min-width: 140px;
    max-width: 180px;
    padding: 12px 8px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    background: #f8f9fa;
    color: #333;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-country-selector:focus {
    outline: none;
    border-color: #2d5a87;
    background: white;
    box-shadow: 0 0 0 3px rgba(45, 90, 135, 0.1);
}

.hero-country-selector option {
    background: white;
    color: #333;
    padding: 8px;
}

.hero-phone-input-container input[type="tel"] {
    flex: 1;
    margin: 0;
}

.hero-form-submit {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.btn-hero-submit {
    background: linear-gradient(135deg, #2d5a87 0%, #1a365d 100%);
    color: white;
    border: none;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 15px 50px;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(45, 90, 135, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-hero-submit:hover {
    background: linear-gradient(135deg, #1a365d 0%, #0f2a44 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(45, 90, 135, 0.4);
}

/* Responsive adjustments for hero form */
@media (max-width: 768px) {
    .hero-form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-phone-input-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-country-selector {
        min-width: 100%;
        max-width: 100%;
    }
    
    .hero-form-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .hero-form-header h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-consultation {
        padding: 3rem 0;
    }
    
    .hero-form-wrapper {
        padding: 1.5rem 1rem;
        border-radius: 15px;
    }
    
    .hero-form-header h2 {
        font-size: 1.6rem;
    }
    
    .btn-hero-submit {
        padding: 12px 40px;
        font-size: 1rem;
    }
}

/* About Section */
.about {
    padding: 6rem 0;
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.about-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2d5a87 0%, #1a365d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.about-icon i {
    font-size: 2rem;
    color: white;
}

.about-card h3 {
    color: #1a365d;
    margin-bottom: 1rem;
}

/* Office Locations */
.office-locations {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.office {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    min-width: 250px;
}

.office i {
    color: #2d5a87;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.office strong {
    color: #1a365d;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.office span {
    color: #666;
    font-size: 0.9rem;
}

/* Attorneys Section */
.attorneys {
    padding: 6rem 0;
    background: #f8f9fa;
}

.attorneys-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.attorney-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.attorney-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Enforce a consistent 4:5 portrait aspect ratio for attorney images */
.attorney-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.attorney-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease;
}

/* Special handling for group photos */
.attorney-image img[src*="IMG_0431"] {
    object-position: center center;
    object-fit: cover;
}

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

/* Keep placeholder styles for fallback */
.attorney-placeholder {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #2d5a87 0%, #1a365d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    margin-top: 65px;
}

.attorney-placeholder i {
    font-size: 3rem;
    color: white;
}

.attorney-info {
    padding: 2rem;
}

.attorney-info h3 {
    color: #1a365d;
    margin-bottom: 0.5rem;
}

.attorney-title {
    color: #2d5a87;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.attorney-description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.attorney-credentials {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.attorney-credentials span {
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

/* Practice Areas Section */
.practice-areas {
    padding: 6rem 0;
    background: white;
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.practice-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid #2d5a87;
    transition: all 0.3s ease;
}

.practice-card:hover {
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.practice-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2d5a87 0%, #1a365d 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.practice-icon i {
    font-size: 1.5rem;
    color: white;
}

.practice-card h3 {
    color: #1a365d;
    margin-bottom: 1rem;
}

/* Testimonials Section */
.testimonials {
    padding: 6rem 0;
    background: #f8f9fa;
}

.testimonials-slider {
    overflow: hidden;
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.testimonial-track {
    display: flex;
    gap: 2rem;
    animation: scroll 80s linear infinite;
    width: max-content;
    padding: 1rem 0;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 1rem)); }
}

.testimonial-track:hover {
    animation-play-state: paused;
}

/* Ensure testimonials are responsive */
@media (max-width: 768px) {
    .testimonials-slider {
        padding: 0 1rem;
    }
    
    .testimonial-card {
        min-width: 300px;
        max-width: 300px;
        padding: 1.5rem;
    }
    
    .testimonial-track {
        animation: scroll 60s linear infinite;
    }
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    min-width: 350px;
    max-width: 350px;
    flex-shrink: 0;
}

.testimonial-stars {
    color: #ffd700;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #555;
}

.testimonial-author strong {
    color: #1a365d;
    display: block;
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: #666;
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1a365d 0%, #2d5a87 100%);
    color: white;
    width: 100%;
    max-width: 100%;
    margin: 0;
    display: block;
    box-sizing: border-box;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact h2 {
    color: white;
    margin-bottom: 1rem;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #90cdf4;
    margin-top: 0.25rem;
}

.contact-item h4 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-form h3 {
    color: white;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #90cdf4;
    background: rgba(255, 255, 255, 0.15);
}

.form-group select option {
    background: #1a365d;
    color: white;
}

/* Phone Input Container Styles */
.phone-input-container {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.country-selector {
    flex: 0 0 auto;
    min-width: 140px;
    max-width: 180px;
    padding: 12px 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.country-selector:focus {
    outline: none;
    border-color: #90cdf4;
    background: rgba(255, 255, 255, 0.15);
}

.country-selector option {
    background: #1a365d;
    color: white;
    padding: 8px;
}

.phone-input-container input[type="tel"] {
    flex: 1;
    margin: 0;
}

/* Responsive adjustments for phone input */
@media (max-width: 768px) {
    .phone-input-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .country-selector {
        min-width: 100%;
        max-width: 100%;
    }
}

/* Footer */
.footer {
    background: #0f2a44;
    color: white;
    padding: 4rem 0 2rem;
    width: 100%;
    max-width: 100%;
    margin: 0;
    display: block;
    box-sizing: border-box;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #90cdf4;
}

.footer-section i {
    color: #90cdf4;
    margin-right: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.footer-disclaimer small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-menu.active {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        padding: 1rem;
        gap: 1rem;
        z-index: 1001;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .logo-nav {
        height: 35px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .attorneys-grid {
        grid-template-columns: 1fr;
    }
    
    .practice-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    

    
    .hero-logo-top {
        padding: var(--logo-padding-tablet, 1.5rem);
        margin-bottom: var(--logo-margin-bottom-tablet, 2rem);
        max-width: var(--logo-max-width-tablet, 450px);
    }
    
    .hero-full-logo {
        width: var(--logo-width-tablet, 350px);
    }
    
    .hero-shield {
        width: 150px;
    }
    
    .hero-placeholder {
        width: 200px;
        height: 200px;
    }
    
    .hero-placeholder i {
        font-size: 5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    .hero {
        padding: 80px 1rem 1rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .hero-logo-top {
        padding: var(--logo-padding-mobile, 1rem);
        margin-bottom: var(--logo-margin-bottom-mobile, 1.5rem);
        max-width: var(--logo-max-width-mobile, 350px);
    }
    
    .hero-full-logo {
        width: var(--logo-width-mobile, 280px);
    }
    
    .logo-nav {
        height: var(--nav-logo-height-mobile, 35px);
    }
    
    .faq-cta .btn {
        margin: 0;
    }
    

}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Scroll offset for fixed navigation */
#contact {
    scroll-margin-top: 100px;
}


/* Loading animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content > * {
    animation: fadeInUp 0.8s ease-out;
}

/* Hover effects for cards */
.attorney-card:hover,
.practice-card:hover,
.about-card:hover,
.testimonial-card:hover {
    cursor: default;
}

/* Form validation styles */
.form-group input:invalid,
.form-group textarea:invalid {
    border-color: #ff6b6b;
}

.form-group input:valid,
.form-group textarea:valid {
    border-color: #51cf66;
}

/* Success message styles */
.success-message {
    background: #51cf66;
    color: white;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    text-align: center;
    display: none;
}

.error-message {
    background: #ff6b6b;
    color: white;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    text-align: center;
    display: none;
}

/* Resources Section */
.resources {
    padding: 6rem 0;
    background: white;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.resource-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.resource-card:hover {
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.resource-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #2d5a87 0%, #1a365d 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.resource-icon i {
    font-size: 1.8rem;
    color: white;
}

.resource-card h3 {
    color: #1a365d;
    margin-bottom: 1rem;
}

.resource-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #2d5a87;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: color 0.3s ease;
}

.resource-link:hover {
    color: #1a365d;
}



/* Success Stories Section */
.success-stories {
    padding: 6rem 0;
    background: white;
    overflow: hidden;
}

.stories-slider {
    position: relative;
}

.stories-visible {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    transition: all 0.8s ease;
}

.stories-hidden {
    display: none;
}

.story-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.8s ease;
    border-left: 4px solid #51cf66;
    opacity: 0;
    transform: translateY(30px);
}

.story-card.active {
    opacity: 1;
    transform: translateY(0);
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.story-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: #51cf66;
    margin-bottom: 1rem;
    font-family: 'Crimson Text', serif;
}

.story-card p {
    color: #555;
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.story-author {
    color: #666;
    font-size: 0.9rem;
    font-weight: 600;
}

.stories-cta {
    text-align: center;
    margin-top: 3rem;
}

.stories-cta p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #666;
}

.disclaimer-text {
    margin-top: 1rem;
    color: #999;
    font-style: italic;
}

/* WhatsApp Contact Enhancements */
.whatsapp-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #25d366;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 0.5rem;
    transition: background 0.3s ease;
}

.whatsapp-button:hover {
    background: #128c7e;
}

.whatsapp-button i {
    font-size: 1.2rem;
}

/* FAQ Section */
.faq {
    padding: 6rem 0;
    background: #f8f9fa;
    width: 100%;
    max-width: 100%;
    margin: 0;
    display: block;
    box-sizing: border-box;
    overflow-x: hidden;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.faq-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a365d;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question i {
    color: #2d5a87;
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
    padding: 0 2rem 1.5rem;
    max-height: 200px;
}

.faq-answer p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.faq-cta {
    text-align: center;
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.faq-cta p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #666;
}

.faq-cta .btn {
    margin: 0 0.5rem;
}


/* 
=====================================================
ARVIONNA EDITORIAL OVERRIDES - HIGH END LAW AGENCY 
=====================================================
*/

body, html {
    background-color: #FAF9F6 !important;
    color: #333333;
}

section {
    padding: 8rem 0 !important;
}

/* Typography enhancements */
h1, h2, h3, h4, h5, h6 {
    font-family: "Crimson Text", serif !important;
    color: #111111 !important;
    font-weight: 400 !important;
}

h1 { font-size: 4rem !important; line-height: 1.1 !important; }
h2 { font-size: 2.8rem !important; position: relative; padding-bottom: 1rem; margin-bottom: 2rem !important; }
h2::after { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 1px; background: #111111; }
.hero-form-header h2::after, .contact-content h2::after { display: none; } /* removing line on forms */
.contact-content h2 { text-align: left; }

h3 { font-size: 1.8rem !important; margin-bottom: 1.5rem !important; }
p { font-size: 1.15rem !important; line-height: 1.8 !important; color: #4A4A4A !important; }

/* Remove previous background colors on specific sections */
.hero, .about, .attorneys, .practice-areas, .resources, .faq, .testimonials, .success-stories {
    background: transparent !important;
}

/* Specific section overrides */
.hero {
    min-height: 90vh !important;
    background-color: #F0EBE1 !important; /* Slightly darker beige for the hero */
}
.hero-content {
    max-width: 900px !important;
}

.hero-subtitle {
    color: #111111 !important;
    font-family: "Open Sans", sans-serif !important;
    letter-spacing: 2px !important;
    font-weight: 600 !important;
}

/* Cards (Attorneys, Practice Areas, Resources) */
.about-card, .attorney-card, .practice-card, .resource-card, .faq-item, .story-card, .testimonial-card {
    background: #FFFFFF !important;
    border: 1px solid #E8E5DF !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02) !important;
    border-radius: 0 !important; /* Sharp corners */
    transition: transform 0.4s ease, box-shadow 0.4s ease !important;
}

.about-card:hover, .attorney-card:hover, .practice-card:hover, .resource-card:hover, .story-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.06) !important;
}

.practice-card {
    border-left: 4px solid #111111 !important;
}
.practice-card:hover { border-left-color: #555555 !important; }
.story-card { border-left: 4px solid #333333 !important; }

/* Forms (Crucial that layout isn`t touched, only aesthetics) */
.hero-consultation { background: #FFFFFF !important; padding: 5rem 0 !important; border-top: 1px solid #E8E5DF !important;}
.hero-form-wrapper, .contact-form, .hero-form-container {
    background: #FAF9F6 !important;
    border: 1px solid #E8E5DF !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.hero-form-group label, .form-group label {
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: #666666 !important;
}

.hero-form-group input, .hero-form-group select, .hero-form-group textarea, 
.form-group input, .form-group select, .form-group textarea,
.hero-country-selector, .country-selector {
    border: 1px solid #D5D0C5 !important;
    border-radius: 0 !important;
    background: #FFFFFF !important;
    color: #111111 !important;
    padding: 16px !important;
}

.hero-form-group input:focus, .form-group input:focus, textarea:focus, select:focus {
    border-color: #111111 !important;
    box-shadow: none !important;
}

/* Buttons */
.btn {
    border-radius: 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    border: none !important;
}

.btn-primary, .btn-hero-submit, .btn-submit {
    background: #111111 !important;
    color: #FFFFFF !important;
}

.btn-primary:hover, .btn-hero-submit:hover, .btn-submit:hover {
    background: #333333 !important;
    transform: translateY(-2px) !important;
}

.btn-secondary {
    background: transparent !important;
    color: #111111 !important;
    border: 1px solid #111111 !important;
}

.btn-secondary:hover {
    background: #111111 !important;
    color: #FFFFFF !important;
}

/* Icons */
.about-icon, .practice-icon, .resource-icon {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    width: auto !important; height: auto !important; margin-bottom: 2rem !important;
}

.about-icon i, .practice-icon i, .resource-icon i, .contact-item i {
    color: #111111 !important;
    font-size: 2.5rem !important;
}

.contact-item i { color: #FFFFFF !important; }

/* Navbar */
.navbar {
    background: #FFFFFF !important;
    box-shadow: 0 1px 0 #E8E5DF !important;
}
.nav-menu a {
    color: #111111 !important;
    font-family: "Open Sans", sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-size: 0.85rem !important;
}

.nav-menu a::after {
    background: #111111 !important;
}

.nav-contact, .nav-contact i, .nav-contact span {
    color: #111111 !important;
}

.hamburger span {
    background: #111111 !important;
}

/* Stories / Approach text tweaks */
.story-amount { color: #111111 !important; }
.story-author { font-family: "Open Sans", sans-serif !important; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; }

/* Attorney Cards Details */
.attorney-image {
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}
.attorney-card:hover .attorney-image {
    filter: grayscale(0%);
}
.attorney-title {
    color: #666666 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}
.attorney-credentials span {
    background: transparent !important;
    border: 1px solid #D5D0C5 !important;
    color: #666666 !important;
    border-radius: 0 !important;
}

/* Contact & Footer Areas */
.contact {
    background: #111111 !important;
    color: #FFFFFF !important;
}

.contact h2 { color: #FFFFFF !important; }
.contact h3, .contact h4, .form-group label {
    color: #CCCCCC !important;
}

.contact .form-group input, .contact .form-group select, .contact .form-group textarea, .contact .country-selector {
    background: #1A1A1A !important;
    border: 1px solid #333333 !important;
    color: #FFFFFF !important;
}

.contact .form-group input:focus, .contact .form-group textarea:focus {
    border-color: #FFFFFF !important;
}

.contact-form {
    background: #111111 !important;
    border: 1px solid #333333 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.footer {
    background: #000000 !important;
    border-top: 1px solid #1A1A1A !important;
    color: #999999 !important;
}

.footer-section h3, .footer-section h4 {
    color: #FFFFFF !important;
}

.footer-section a {
    color: #999999 !important;
}

.footer-section a:hover {
    color: #FFFFFF !important;
}

.footer-bottom {
    border-top: 1px solid #1A1A1A !important;
}

/* =====================================================
   ARVIONNA GRAPHICS & ANIMATIONS LAYER
====================================================== */

/* Redefine scroll animation to be incredibly smooth and elegant */
.animate-on-scroll {
    transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1) !important;
    transform: translateY(40px) !important;
}
.animate-on-scroll.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Scroll Indicator in Hero */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: fadeInScroll 2s ease-out forwards 1s;
    z-index: 10;
}

.scroll-indicator .mouse {
    width: 24px;
    height: 38px;
    border: 1px solid #111111;
    border-radius: 12px;
    position: relative;
    margin-bottom: 15px;
}

.scroll-indicator .mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 6px;
    background: #111111;
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

.scroll-indicator .line {
    width: 1px;
    height: 50px;
    background: rgba(17, 17, 17, 0.2);
    position: relative;
    overflow: hidden;
}

.scroll-indicator .line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: #111111;
    animation: scrollDrop 2s infinite cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes scrollWheel { 0% { top: 6px; opacity: 1; } 100% { top: 20px; opacity: 0; } }
@keyframes scrollDrop { 0% { top: -10px; opacity: 0; } 50% { opacity: 1; } 100% { top: 60px; opacity: 0; } }
@keyframes fadeInScroll { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* Graphic Elements in Practice Cards */
.practice-icon {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px !important;
    height: 60px !important;
    margin: 0 auto 2rem auto !important;
}

.animated-square {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(17, 17, 17, 0.1);
    transform: rotate(45deg);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1;
}

.practice-card:hover .animated-square {
    transform: rotate(135deg);
    border-color: rgba(17, 17, 17, 0.3);
}

.practice-icon i {
    position: relative;
    z-index: 2;
    transition: transform 0.4s ease;
}

.practice-card:hover .practice-icon i {
    transform: scale(1.1);
}

/* Elegant Button Hover */
.btn {
    position: relative;
    overflow: hidden;
}
.btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}
.btn:hover::after {
    left: 100%;
}

/* =====================================================
   ADDITIONAL SITE-WIDE DRAWINGS
====================================================== */
.about, .attorneys, .resources, .contact {
    position: relative;
    overflow: hidden;
}

/* About Sketch */
.sketch-squiggle {
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    height: 500px;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: slowDraw 15s linear infinite alternate;
}

/* Attorneys Dots & Plane */
.bg-drawing-dots {
    position: absolute;
    bottom: 0px;
    right: 50px;
    width: 200px;
    height: 200px;
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
    animation: floatDots 10s ease-in-out infinite alternate;
}

.plane-4 {
    width: 150px;
    height: 150px;
    bottom: -50px;
    left: 10%;
    transform: rotate(25deg);
    animation: floatPlane 18s infinite ease-in-out alternate;
}

.plane-5 {
    width: 300px;
    height: 500px;
    top: -100px;
    right: -100px;
    background: #FAF9F6;
    transform: rotate(-35deg);
    animation: floatPlane2 22s infinite ease-in-out alternate-reverse;
}

/* Resources Polygon */
.bg-drawing-polygon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    left: -150px;
    width: 500px;
    height: 500px;
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
    animation: rotateSlowly 80s linear infinite alternate-reverse;
}

/* Contact Background & Wave */
.plane-6 {
    width: 800px;
    height: 200px;
    top: -100px;
    left: 50%;
    transform: translateX(-50%) rotate(5deg);
    background: #1A1A1A;
    border: 1px solid #333333;
    animation: floatPlane 20s infinite ease-in-out alternate;
    z-index: 0;
}

.sketch-wave {
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 60px;
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
    animation: waveFlow 10s linear infinite;
}

@keyframes slowDraw {
    from { stroke-dashoffset: 2000; }
    to { stroke-dashoffset: 0; }
}

@keyframes floatDots {
    from { transform: translateY(0); }
    to { transform: translateY(30px); }
}

@keyframes waveFlow {
    from { stroke-dasharray: 500; stroke-dashoffset: 1000; }
    to { stroke-dasharray: 500; stroke-dashoffset: 0; }
}



/* =====================================================
   PLANES AND DRAWINGS LAYER
====================================================== */

/* Abstract Planes in Hero */
.hero {
    position: relative;
    overflow: hidden; /* Ensure planes don't leak out */
}

.abstract-plane {
    position: absolute;
    background: #FFFFFF;
    border: 1px solid #E8E5DF;
    box-shadow: 0 30px 60px rgba(0,0,0,0.03);
    z-index: 1; /* Behind content (z-index:2) */
    opacity: 0.7;
}

.plane-1 {
    width: 400px;
    height: 600px;
    top: -100px;
    left: -150px;
    transform: rotate(15deg);
    animation: floatPlane 15s infinite ease-in-out alternate;
}

.plane-2 {
    width: 600px;
    height: 400px;
    bottom: -50px;
    right: -200px;
    background: #FAF9F6;
    border: 1px solid #D5D0C5;
    transform: rotate(-10deg);
    animation: floatPlane 20s infinite ease-in-out alternate-reverse;
}

.plane-3 {
    width: 200px;
    height: 200px;
    top: 200px;
    right: 15%;
    transform: rotate(45deg);
    animation: floatPlane2 12s infinite ease-in-out alternate;
}

@keyframes floatPlane {
    from { transform: translateY(0) rotate(15deg); }
    to { transform: translateY(60px) rotate(10deg); }
}
@keyframes floatPlane2 {
    from { transform: translateY(0) rotate(45deg); }
    to { transform: translateY(-40px) rotate(55deg); }
}

/* Paper Plane Drawing Animation */
.paper-plane-drawing {
    position: absolute;
    width: 120px;
    height: 120px;
    z-index: 0;
    animation: flyAcross 25s infinite linear;
    opacity: 0.15;
}

@keyframes flyAcross {
    0% { transform: translate(-100px, 800px) rotate(15deg) scale(0.8); opacity: 0; }
    10% { opacity: 0.15; }
    50% { transform: translate(50vw, 400px) rotate(-5deg) scale(1.2); }
    90% { opacity: 0.15; }
    100% { transform: translate(120vw, 0px) rotate(-15deg) scale(0.8); opacity: 0; }
}

/* Sketch Highlight in Text */
.sketch-highlight {
    position: relative;
    display: inline-block;
}

.sketch-underline {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 12px;
    overflow: visible;
    z-index: -1;
}

.sketch-underline path {
    stroke-dasharray: 250;
    stroke-dashoffset: 250;
    animation: drawLine 2s cubic-bezier(0.22, 1, 0.36, 1) forwards 1.5s;
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

/* Background Drawing in Practice Areas */
.practice-areas { position: relative; overflow: hidden; }
.bg-drawing-circle {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 1200px;
    height: 1200px;
    z-index: 0;
    opacity: 0.2;
    animation: rotateSlowly 90s infinite linear;
    pointer-events: none;
}

@keyframes rotateSlowly {
    from { transform: translateX(-50%) rotate(0deg); }
    to { transform: translateX(-50%) rotate(360deg); }
}

/* =====================================================
   FORM AND MOBILE UI REFINEMENTS
====================================================== */

/* Form fixes */
.hero-form-group label, .form-group label {
    text-transform: capitalize !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    letter-spacing: 0px !important;
    margin-bottom: 0.2rem !important;
    color: #444444 !important;
}

.hero-phone-input-container {
    display: flex !important;
    gap: 0 !important;
}

.hero-country-selector {
    border-right: none !important;
    background-color: #FAF9F6 !important;
}

.hero-phone-input-container input {
    border-left: none !important;
    width: 100% !important;
}

.hero-form-group input, .hero-form-group select, .hero-form-group textarea {
    padding: 12px 14px !important;
}

/* Form Buttons */
.btn-submit, .btn-primary {
    border-radius: 0 !important;
    background: #111111 !important;
    color: #FFFFFF !important;
    transition: transform 0.4s ease, box-shadow 0.4s ease !important;
}
.btn-submit:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* Mobile responsive typography and layout fixes */
@media (max-width: 768px) {
    h1 { font-size: 2.3rem !important; margin-top: 1rem !important; }
    h2 { font-size: 1.8rem !important; }
    .abstract-plane { opacity: 0.1 !important; transform: scale(0.6) !important; }
    .bg-drawing-dots { opacity: 0 !important; }
    .hero { padding: 110px 1rem 4rem !important; }
    .hero-form-wrapper { padding: 1.5rem !important; margin-top: 0 !important; border: 1px solid #E8E5DF !important; box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important; }
    .hero-form-row { display: flex !important; flex-direction: column !important; gap: 1rem !important; margin-bottom: 1rem !important; }
    .scroll-indicator { display: none !important; }
}

/* =====================================================
   FINAL EMERGENCY REFINEMENTS (FOOTER & FORM)
====================================================== */

/* Total Footer Legibility Overhaul */
.footer, .footer-bottom, .footer-content {
    background: #000000 !important;
    border: none !important;
}

.footer p, .footer a, .footer li, .footer-section h3, .footer-section h4, .footer span, .footer-bottom p {
    color: #FFFFFF !important;
    font-size: 1.15rem !important;
    font-family: 'Open Sans', sans-serif !important;
    opacity: 1 !important;
    line-height: 2 !important;
}

.footer a {
    text-decoration: underline !important;
    text-decoration-color: rgba(255,255,255,0.4) !important;
    text-underline-offset: 4px !important;
}

.footer a:hover {
    text-decoration-color: #FFFFFF !important;
}

/* Total Form Overhaul - Crisp and Bold */
.hero-form-wrapper, .contact-form {
    background-color: #FFFFFF !important;
    border: 2px solid #111111 !important; /* Bold, sharp architectural border */
    padding: 3rem !important;
}

.hero-form-group label, .form-group label {
    color: #111111 !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    margin-bottom: 0.5rem !important;
}

.hero-form-group input, .hero-form-group select, .hero-form-group textarea,
.form-group input, .form-group select, .form-group textarea {
    background-color: #FAF9F6 !important;
    border: 1px solid #111111 !important;
    border-radius: 0 !important;
    padding: 16px !important;
    box-shadow: none !important;
    font-size: 1.1rem !important;
}

.hero-phone-input-container {
    display: flex !important;
    border: 1px solid #111111 !important;
    background: #FAF9F6 !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.hero-phone-input-container input, .hero-phone-input-container select {
    border: none !important;
    background: transparent !important;
}

.hero-country-selector {
    border-right: 1px solid #111111 !important;
    margin: 0 !important;
}

.btn-submit {
    font-size: 1.2rem !important;
    padding: 20px !important;
    border: 2px solid #111111 !important;
    font-weight: 700 !important;
}

@media (max-width: 768px) {
    .hero-form-wrapper, .contact-form {
        padding: 1.5rem 1rem !important; /* Huge width recovery */
        border-width: 1px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .hero-form-group input, .hero-form-group select, .hero-form-group textarea,
    .form-group input, .form-group select, .form-group textarea {
        padding: 12px 10px !important;
    }
    .hero-phone-input-container {
        flex-direction: column !important;
        border: none !important;
        background: transparent !important;
    }
    .hero-country-selector {
        border-right: none !important;
        border-bottom: 1px solid #111111 !important;
        width: 100% !important;
        border: 1px solid #111111 !important;
    }
    .hero-phone-input-container input {
        border: 1px solid #111111 !important;
        margin-top: -1px !important; /* overlap border */
    }
    .btn-submit {
        padding: 15px !important;
        width: 100% !important;
    }
}

/* Force Input Strict Width Stretching */
.hero-form-group, .form-group {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
}

.hero-form-group input, .hero-form-group select, .hero-form-group textarea,
.form-group input, .form-group select, .form-group textarea,
.hero-phone-input-container, .hero-phone-input-container input {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
}
