/* --- GLOBAL RESET & VARIABLES --- */
:root {
    --primary-color: #0f172a; /* Slate Dark / Corporate */
    --accent-color: #2563eb;  /* Premium Professional Blue */
    --text-color: #334155;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

/* ==========================================================================
   GLOBAL RESETS & CORE THEME VARIABLES
   ========================================================================== */
:root {
    --primary-color: #0f172a;       /* Deep Slate/Navy */
    --accent-gold: #bf9456;         /* Elegant Legal Gold */
    --brand-blue: #2563eb;          /* Trust Blue for CTAs/Links */
    --text-main: #334155;           /* Readability Charcoal */
    --text-muted: #64748b;          /* Soft Gray for secondary text */
    --bg-light: #f8fafc;            /* Clean off-white background */
    --border-color: #e2e8f0;        /* Subdued borders */
    --font-stack: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--font-stack);
    background-color: #ffffff;
    color: var(--text-main);
    line-height: 1.5;
}

html {
    scroll-behavior: smooth;
}

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

/* --- REUSABLE UTILITIES --- */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    color: var(--primary-color);
    margin-bottom: 50px;
    font-weight: 700;
}

.grid-container {
    display: grid;
    gap: 30px;
}

.card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
}

/* --- BUTTONS --- */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
    text-align: center;
    cursor: pointer;
    border: none;
}

/* --- HERO & MAIN BUTTON VISIBILITY UPGRADE --- */
.hero-section .btn-primary {
    background-color: #38bdf8; /* Switched to the vibrant electric cyan from your metrics */
    color: #0f172a;            /* Dark text for perfect, accessible contrast against the bright button */
    font-size: 1.1rem;
    padding: 16px 36px;        /* Slightly larger padding to give it a commanding presence */
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.25); /* Subtle glow effect */
    transition: all 0.25s ease;
}

.hero-section .btn-primary:hover {
    background-color: var(--white); /* Shifts smoothly to crisp white on hover */
    color: var(--accent-color);     /* Text transitions to professional blue */
    transform: translateY(-2px);    /* Interactive micro-movement */
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

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

.btn-primary:hover {
    background-color: #1d4ed8;
}

.btn-secondary {
    background-color: var(--bg-light);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
}

/* --- NAVIGATION BAR --- */
.site-header {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo span {
    color: var(--accent-color);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.2s;
    font-size: 1rem;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-color);
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-trigger i {
    font-size: 0.75rem;
    margin-left: 4px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    list-style: none;
    min-width: 240px;
    padding: 10px 0;
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 0.95rem;
    color: var(--text-color);
}

.dropdown-menu a:hover {
    background-color: var(--bg-light);
    color: var(--accent-color);
}

/* Social Icon Blocks */
.nav-socials {
    display: flex;
    align-items: center;
    gap: 16px;
    border-left: 1px solid var(--border-color);
    padding-left: 24px;
}

.social-icon {
    font-size: 1.25rem;
    color: #64748b;
    transition: color 0.2s, transform 0.2s;
}

.social-icon:hover {
    transform: scale(1.1);
}

.social-icon.whatsapp:hover { color: #25D366; }
.social-icon.telegram:hover { color: #0088cc; }
.social-icon.email:hover { color: var(--accent-color); }

/* --- LANGUAGE DROPDOWN STYLES --- */
.lang-dropdown {
    position: relative; /* Anchors the absolute dropdown menu to this exact button */
    display: inline-block;
}

.lang-trigger {
    background: none;
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.lang-trigger:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.lang-trigger i {
    font-size: 0.7rem;
}

.lang-menu {
    position: absolute;
    top: 100%;
    left: -5%;                     /* 1. Push the left side to the exact middle of the button */
    right: auto;                   /* 2. Break the right alignment constraint */
    transform: translateY(5px); /* 3. Pull it back left by exactly half its own width */
    
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    list-style: none;
    min-width: 110px;
    padding: 8px 0;
    margin-top: 8px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 1010;
}

/* Show menu on hover */
.lang-dropdown:hover .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--text-color);
    text-align: left;
    font-weight: 600;
}

.lang-menu a:hover, .lang-menu a.active {
    background-color: var(--bg-light);
    color: var(--accent-color);
}

/* --- RESPONSIVE COLLAPSE FOR TABLETS & PHONES --- */
@media (max-width: 900px) {
    .service-image-container {
        width: 100%;
        height: 200px; /* Shifting to horizontal landscape box for stacking */
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .card-badge {
        right: 35px; /* Resets positioning parameters when pricing panel falls below */
    }
}

/* --- RESPONSIVE ADAPTABILITY OVERRIDES (CRITICAL FOR HORIZONTAL RESTRUCTURING) --- */
@media (max-width: 900px) {
    .directory-card {
        flex-direction: column; /* Safely collapses complex row architecture back down on tablet views */
    }
    
    .card-pricing-footer {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--border-color);
        flex-direction: row; /* Sideways distribution on tablet/mobile screens */
        justify-content: space-between;
        padding: 20px 35px;
        gap: 15px;
    }
    
    .card-cta {
        width: auto;
    }

    .card-badge {
        right: 35px;
    }
}

@media (max-width: 650px) {
    .directory-features {
        grid-template-columns: 1fr; /* One column checklist on standard mobile devices */
    }
    
    .meta-specs-grid {
        flex-direction: column;
        gap: 10px;
    }

    .card-badge {
        position: static;
        display: inline-block;
        margin-bottom: 12px;
        align-self: flex-start;
    }
}

@media (max-width: 400px) {
    .card-pricing-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .card-cta {
        width: 100%;
    }
}

/* Mobile Tweak for Language Selector */
@media (max-width: 768px) {
    .lang-dropdown {
        margin-left: 0;
        margin-top: 5px;
    }
    .lang-menu {
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(5px);
    }
    .lang-dropdown:hover .lang-menu {
        transform: translateX(-50%) translateY(0);
    }
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}


/* --- HERO SECTION WITH MATCHING BLUE TBILISI BACKDROP --- */
.hero-section {
    position: relative;
    /* High-quality aerial view of Tbilisi at dusk/night to match the dark blue aesthetic */
    background-image: url('/assets/images/article.jpg'); 
    background-size: cover;
    background-position: center 20%;
    background-attachment: scroll; /* Keeps it smooth on all browsers */
    padding: 80px 20px;
    text-align: center;
    overflow: hidden;
}

/* Matching Blue/Slate Overlay Tint to guarantee text visibility */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Reuses the exact corporate blue-to-slate tone from your banner and metrics */
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.85) 0%, rgba(15, 23, 42, 0.9) 100%);
    z-index: 1;
}

/* Brings the content safely above the background image overlay */
.hero-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3rem;
    color: var(--white); /* Swapped to crisp white for dark backdrop contrast */
    line-height: 1.2;
    margin-bottom: 24px;
    font-weight: 800;
    text-shadow: 0 4px 8px rgba(15, 23, 42, 0.6), 
                 0 1px 2px rgba(15, 23, 42, 0.8);
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: #cbd5e1; /* Swapped to high-visibility soft gray/white matching your metrics */
    text-align: center;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(15, 23, 42, 0.6);
}

/* --- FOOTER & CONTACT FORM --- */
.site-footer {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 80px 20px 40px 20px;
    text-align: center;
}

.footer-form-wrapper h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.footer-form-wrapper p {
    margin-bottom: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-stack);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent-color);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: #64748b;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 30px 20px;
        gap: 30px;
        border-bottom: 1px solid var(--border-color);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    }

    .main-nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    /* Mobile Dropdown Reset */
    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        display: none; /* Hide completely by default on mobile */
        transform: none;
        box-shadow: none;
        border: none;
        background-color: var(--bg-light);
        margin-top: 10px;
        text-align: center;
        width: 100%;
        padding: 5px 0;
        transition: all 0.3s ease;
    }

    /* This class will be toggled via JavaScript when tapped */
    .dropdown.open .dropdown-menu {
        opacity: 1;
        visibility: visible;
        display: block; /* Show cleanly when parent is tapped */
    }
    
    /* Rotate the little arrow icon when open */
    .dropdown.open .dropdown-trigger i {
        transform: rotate(180deg);
    }
    
    .dropdown-trigger i {
        transition: transform 0.2s ease;
    }

    .nav-socials {
        border-left: none;
        padding-left: 0;
        width: 100%;
        justify-content: center;
    }

    .hero-section h1 {
        font-size: 2.25rem;
    }
}


/* --- PREMIUM FOUR-COLUMN FOOTER (ALIGNMENT & SPACING FIX) --- */
.site-footer {
    background-color: #0f172a; 
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 70px 0 0 0;
    color: #cbd5e1;
    font-family: system-ui, -apple-system, sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 50px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Aligns all columns strictly to the top edge line */
    gap: 50px; /* Generous separation gap to stop drifting text collisions */
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Forces all elements inside the column to snap left */
    text-align: left;        /* Absolute left-alignment override */
    flex: 1;
}

.footer-column.brand-column {
    flex: 1.4; /* Gives the description slightly more layout breathing room */
}

.footer-logo {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-align: left;
    width: 100%;
}

.logo-accent {
    color: #004aad; 
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #94a3b8;
    margin-bottom: 25px;
    text-align: left; /* Fixes the center-drifting text bug from image_b58f7a.png */
    width: 100%;
}

.footer-column h3 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: left;
    width: 100%;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Mandates straight link stacking lines */
    gap: 12px;
    width: 100%;
}

.footer-links-list li {
    text-align: left;
    width: 100%;
}

.footer-links-list a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-block; /* Formats boundaries correctly for horizontal scaling */
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links-list a:hover {
    color: #38bdf8;
    transform: translateX(4px); /* Clean left-to-right micro-interaction shift */
}

/* Office Column Cleanup */
.office-address {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #94a3b8;
    margin-bottom: 25px;
    text-align: left;
    width: 100%;
}

.office-address i {
    color: #38bdf8;
    flex-shrink: 0; /* Prevents the pin point icon from warping shape */
}

/* Round Outline Circles Alignment */
.footer-social-circles {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    width: 100%;
}

.footer-social-circles a {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-social-circles a:hover {
    border-color: #38bdf8;
    color: #38bdf8;
    background-color: rgba(56, 189, 248, 0.05);
}

/* Social Flat Links Alignment (Far Right Column) */
.footer-social-text-links {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    width: 100%;
    margin-top: 5px;
}

.footer-social-text-links a {
    color: #94a3b8;
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-social-text-links a:hover {
    color: #38bdf8;
    transform: translateY(-2px);
}

/* Bottom Bar Realignment */
.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 25px 0;
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 20px;
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-legal-links {
    display: flex;
    gap: 24px;
}

.footer-legal-links a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal-links a:hover {
    color: #38bdf8;
}

/* Office Address and Text Icons Column Styles */
.office-address {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 25px;
}

.office-address i {
    color: #38bdf8;
    margin-top: 3px;
}

/* Round Outline Circles under the brand description */
.footer-social-circles {
    display: flex;
    gap: 12px;
}

.footer-social-circles a {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-social-circles a:hover {
    border-color: #38bdf8;
    color: #38bdf8;
    background-color: rgba(56, 189, 248, 0.05);
}

/* Standard flat text icons underneath the address info block */
.footer-social-text-links {
    display: flex;
    gap: 18px;
    margin-top: 15px;
}

.footer-social-text-links a {
    color: #94a3b8;
    font-size: 1.05rem;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-social-text-links a:hover {
    color: #38bdf8;
    transform: translateY(-2px);
}

/* Bottom Sub-bar Layout rules */
.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 25px 0;
    font-size: 0.85rem;
    color: #64748b;
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-legal-links {
    display: flex;
    gap: 20px;
}

.footer-legal-links a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal-links a:hover {
    color: #38bdf8;
}

/* Mobile Responsive Shift */
@media (max-width: 900px) {
    .contact-card-container {
        flex-direction: column;
    }
    
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .contact-info-panel,
    .contact-form-panel {
        padding: 35px 25px;
    }

    .footer-container {
        flex-direction: column;
        gap: 35px;
    }

    .footer-column.brand-column, 
    .footer-column {
        flex: none;
        width: 100%;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}


/* Revealed active state */
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.lang-trigger img, 
.lang-menu img {
    display: inline-block;
    border-radius: 2px; /* Gives the flags a subtle, premium rounded corner */
    box-shadow: 0 1px 2px rgba(0,0,0,0.15); /* Adds a crisp edge separation */
    vertical-align: middle;
}

/* --- COMPREHENSIVE RESPONSIVE LAYOUT PATCHES --- */

@media (max-width: 900px) {
    /* 1. Stack the image panel neatly on top of the text details */
    .directory-card {
        flex-direction: column !important; /* Forces the flex row into a clear block stack */
        align-items: stretch;
    }

/* 2. Format the image viewport ratio for tablet scaling */
    .service-image-container {
        width: 100% !important;
        height: 200px !important;
        min-height: 200px !important; /* Forces the container to ignore text density */
        max-height: 200px !important; /* Strict ceiling clamp */
        border-right: none !important;
        border-bottom: 1px solid var(--border-color);
    }

/* Force the image inside to behave like a clean, uniform banner */
    .service-image-container img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* 3. Re-anchor the category badge to prevent overlapping the card content */
    .card-badge {
        position: absolute;
        top: 245px; /* Pushes the badge down exactly below the new image panel border line */
        right: 25px !important;
    }

    /* 4. Allow text area full breathing room */
    .card-main-content {
        padding: 30px 25px !important;
    }

    .directory-card h2, 
    .card-extended-desc {
        max-width: 100% !important; /* Frees horizontal space since the price block shifted down */
    }

    /* 5. Clean layout for the bottom pricing bar */
    .card-pricing-footer {
        width: 100% !important;
        border-left: none !important;
        border-top: 1px solid var(--border-color);
        flex-direction: row !important; /* Distributes price and CTA side-by-side on wide mobile screens */
        justify-content: space-between;
        padding: 20px 25px !important;
        gap: 15px;
    }

    .card-cta {
        width: auto !important;
        padding: 12px 25px !important;
    }
}

@media (max-width: 650px) {
    /* 1. Collapse checklists into a single column on compact phone viewports */
    .directory-features {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    /* 2. Cleanly reset specs from a grid line down into clear single blocks */
    .meta-specs-grid {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px !important;
        padding: 15px 0 !important;
    }

    /* 3. Drop badge down inline into standard document flow to safely avoid header text collisions */
    .card-badge {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        align-self: flex-start;
        margin-bottom: 15px;
    }
}

@media (max-width: 450px) {
    /* 1. Stacks the pricing and action button on ultra-narrow viewports to prevent compression */
    .card-pricing-footer {
        flex-direction: column !important;
        align-items: center;
        text-align: center;
        gap: 20px !important;
    }

    .price-block {
        align-items: center;
    }

    .card-cta {
        width: 100% !important; /* Button turns full-width for effortless thumb tapping */
    }
}

/* Mobile Responsive Shift */
@media (max-width: 900px) {
    .contact-card-container {
        flex-direction: column;
    }
    
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .contact-info-panel,
    .contact-form-panel {
        padding: 35px 25px;
    }

    .footer-container {
        flex-direction: column;
        gap: 35px;
    }

    .footer-column.brand-column, 
    .footer-column {
        flex: none;
        width: 100%;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

/* --- SCROLL REVEAL ANIMATION SYSTEM --- */
.directory-card {
    /* Existing card styling remains intact, just add/verify these transition properties */
    opacity: 0;
    transform: translateX(-40px); /* Starts shifted 40px to the left */
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1),
                box-shadow 0.2s ease; /* Keeps your crisp hover effect fast */
    will-change: opacity, transform; /* Optimizes hardware rendering */
}

/* When this class is injected by JavaScript, the card smoothly slides right to normal */
.directory-card.reveal-active {
    opacity: 1;
    transform: translateX(0);
}

.logo-wrapper {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    height: 35px; /* Adjust this value to perfectly match your navbar height */
    transition: transform 0.2s ease;
}

.logo-wrapper:hover {
    transform: scale(1.02);
}

.navbar-logo-img {
    height: 100%;       /* Instantly locks to the height of the parent wrapper */
    width: auto;        /* Preserves the original aspect ratio so it doesn't stretch */
    display: block;
    object-fit: contain;
}

/* Tightens the layout footprint on smartphones */
@media (max-width: 768px) {
    .logo-wrapper {
        height: 35px; 
    }
}

/* Custom footer layout tweak */
.footer-logo-wrapper {
    height: 50px;          /* Feel free to increase or decrease this to fit your footer scale */
    margin-bottom: 1.5rem; /* Creates a clean breathing space between the logo and text */
    display: inline-block;
}

/* ==========================================================================
   MAGAZINE CONTENT FEED (STRICT VERTICAL FLOW)
   ========================================================================== */
.article-vertical-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 35px;
    width: 100%;
}

/* The Unified Structural Card Rule */
.article-grid-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between;
    height: 100%;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    text-decoration: none !important;
    color: inherit !important;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.article-grid-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.article-card-top {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
}

/* Featured Header Media */
.article-image-wrapper {
    width: 100%;
    height: 210px;
    position: relative;
    overflow: hidden;
    background-color: #f1f5f9;
}

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

.article-grid-card:hover .article-image-wrapper img {
    transform: scale(1.04);
}

.article-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 6px;
    z-index: 2;
}

/* Context Text Engine */
.article-card-body {
    display: flex !important;
    flex-direction: column !important;
    padding: 25px 24px 15px 24px;
    width: 100% !important;
}

.article-icon {
    font-size: 1.4rem;
    color: var(--brand-blue);
    margin-bottom: 14px;
}

.article-card-body h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.4;
    margin: 0 0 12px 0 !important;
    display: block !important;
}

.article-card-body p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 !important;
    display: block !important;
}

/* Card Metadata Stamp */
.article-card-bottom {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    margin-top: auto;
}

.article-meta {
    padding: 0 24px 20px 24px;
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
}

.article-meta i {
    color: var(--brand-blue);
}

/* Premium Bottom Anchored Footer Bar */
.article-footer-bar {
    background-color: var(--bg-light);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-footer-info {
    display: flex;
    flex-direction: column;
}

.footer-info-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.footer-info-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.article-cta-btn {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--brand-blue);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.article-grid-card:hover .article-cta-btn {
    color: var(--primary-color);
}