@charset "UTF-8";

/* =========================================
   1. Variables & Reset
   ========================================= */
:root {
    /* Color Palette - Authority & Trust (Red/Dark Grey/White) */
    --color-primary: #C62828;
    /* Deep Red (Trustworthy, serious) */
    --color-primary-dark: #B91C1C;
    /* Darker Red */
    --color-secondary: #1F2937;
    /* Dark Slate (Authoritative text) */
    --color-text: #374151;
    /* Charcoal for body text */
    --color-text-light: #6B7280;
    /* Gray for subtitles */
    --color-text-lighter: #9CA3AF;
    /* Light gray for muted text */
    --color-bg-alt: #F9FAFB;
    /* Very light gray background */
    --color-bg-soft: #F3F4F6;
    /* Soft gray background */
    --color-white: #FFFFFF;
    --color-border: #E5E7EB;

    /* Typography */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Layout */
    --container-width: 1200px;
    --header-height: 88px;
    --radius: 8px;
    --radius-lg: 16px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition: all 0.3s ease;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    line-height: 1.25;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* 2. Typography Guidelines */
h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-sm {
    margin-bottom: var(--spacing-sm);
}

.mb-md {
    margin-bottom: var(--spacing-md);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.mt-md {
    margin-top: var(--spacing-md);
}

.mt-lg {
    margin-top: var(--spacing-lg);
}


/* 3. Layout Utilities */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}

/* Section Colors - Differentiating Sections */
.section-alt {
    background-color: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.grid {
    display: grid;
    gap: var(--spacing-md);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .section {
        padding: var(--spacing-lg) 0;
    }

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.875rem;
    }
}

/* 4. Navbar & Header */
.navbar {
    background: #FFFFFF !important;
    border-bottom: none !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.nav-logo:focus {
    outline: none;
}

.nav-logo:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
    border-radius: 4px;
}

.nav-logo img {
    height: auto;
    width: auto;
    max-height: 64px;
    max-width: min(280px, 52vw);
    object-fit: contain;
    object-position: left center;
    border: none;
    background: transparent;
    box-shadow: none;
}

@media (max-width: 768px) {
    .nav-logo img {
        max-height: 52px;
        max-width: min(240px, 58vw);
    }
}

@media (max-width: 480px) {
    .nav-logo img {
        max-height: 44px;
        max-width: min(200px, 68vw);
    }
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text);
    background: none;
    border: none;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        -webkit-tap-highlight-color: transparent;
    }

    .btn-nav-contact {
        min-height: 44px;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-white);
        border-bottom: 1px solid var(--color-border);
        padding: var(--spacing-md);
        box-shadow: var(--shadow-lg);
        text-align: center;
        gap: 1.5rem;
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease-out forwards;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 5. Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    /* Pill shape */
    font-weight: 600;
    text-align: center;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-transform: capitalize;
}

.btn-primary {
    background: #DC2626;
    /* Stronger Red */
    box-shadow: 0 4px 14px 0 rgba(220, 38, 38, 0.39);
    color: var(--color-white);
}

.btn-primary:hover {
    background: #B91C1C;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.23);
    color: var(--color-white);
}

.btn-secondary-outline {
    background: transparent;
    border: 2px solid #6B7280;
    color: #FFFFFF;
}

.btn-secondary-outline:hover {
    border-color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

.btn-nav-contact {
    background: #DC2626;
    color: #FFFFFF;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 9999px;
    box-shadow: 0 4px 6px rgba(220, 38, 38, 0.2);
    transition: all 0.3s ease;
}

.btn-nav-contact:hover {
    background: #B91C1C;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px rgba(220, 38, 38, 0.3);
    color: #FFF;
}

.btn-text-official {
    display: inline-block;
    background: transparent;
    border: none;
    padding: 0;
    color: #1F2937;
    /* Dark Gray */
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    margin-top: 1.5rem;
    transition: color 0.2s;
}

.btn-text-official:hover {
    color: #DC2626;
    /* Red on hover */
    text-decoration: underline;
    background: transparent;
    box-shadow: none;
    transform: none;
}

/* 6. Hero Component (Legacy - keeping for compatibility if needed, but updated hero-home is preferred) */
.hero {
    background-color: var(--color-bg-alt);
    padding: calc(var(--header-height) + 4rem) 0 6rem;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--color-text);
}

.hero-with-bg {
    color: var(--color-white);
}

.hero-with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8));
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-with-bg h1 {
    color: var(--color-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
}

.hero-with-bg p {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 1.35rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-weight: 400;
}

/* 7. Components: Cards & Features */
.card {
    background: var(--color-white);
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 8. FAQ Accordion */
.accordion {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid var(--color-border);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--color-white);
    font-weight: 600;
    color: var(--color-secondary);
    transition: background-color 0.2s;
    width: 100%;
    border: none;
    text-align: left;
    font-family: inherit;
    font-size: 1rem;
}

.accordion-header:hover {
    background-color: var(--color-bg-alt);
    color: var(--color-primary);
}

.accordion-content {
    display: none;
    padding: 1.5rem;
    background-color: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    color: var(--color-text-light);
    line-height: 1.7;
}

.accordion-item.active .accordion-content {
    display: block;
}

.accordion-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.8rem;
    color: var(--color-text-lighter);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
    color: var(--color-primary);
}

/* 10. Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-secondary);
    font-size: 0.95rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background-color: var(--color-bg-soft);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: var(--color-white);
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1);
    /* Focus ring */
}

/* 11. Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    background-color: var(--color-white);
    color: var(--color-text);
    padding: 1.5rem;
    z-index: 2000;
    display: none;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--color-border);
    animation: slideUp 0.5s ease-out;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.cookie-text h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--color-secondary);
}

.cookie-text p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--color-text-light);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* 15. Dark Hero Section */
.hero-home {
    background-color: #111827;
    background-image:
        linear-gradient(105deg, rgba(17, 24, 39, 0.94) 0%, rgba(17, 24, 39, 0.72) 42%, rgba(17, 24, 39, 0.4) 100%),
        url('../img/hero-regulatory-consultancy-malaysia-home.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #FFFFFF;
    padding: 8rem 0 6rem;
    text-align: left;
    /* Left align */
    position: relative;
    overflow: hidden;
}

.hero-home h1 {
    color: #FFFFFF;
    font-size: 3.75rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-home h1 span {
    color: #EF4444;
    /* Bright Red */
}

.hero-home p {
    color: #9CA3AF;
    /* Muted gray text */
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 0 2.5rem 0;
    /* Left align margin */
    line-height: 1.6;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    /* Glassy dark */
    color: #F3F4F6;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-pill::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background-color: #EF4444;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}


/* 17. Feature Section (Introduction) */
.feature-section {
    padding: 6rem 0;
    background: #FFFFFF;
}

.feature-img-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    left: -20px;
    background: #DC2626;
    color: #FFF;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.4);
    z-index: 10;
}

.experience-badge h3 {
    color: #FFF;
    font-size: 2.5rem;
    margin: 0;
    line-height: 1;
}

.experience-badge p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 0.9rem;
}

.feature-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: var(--color-text);
}

.feature-check {
    width: 24px;
    height: 24px;
    background: rgba(220, 38, 38, 0.1);
    color: #DC2626;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* 18. New Service Grid Cards */
.bg-light-gray {
    background-color: #F8FAFC;
    /* Light slate bg for service section */
}

.service-card-new {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #F1F5F9;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card-new:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.service-card-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.service-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card-new h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #1F2937;
}

.service-card-new p {
    color: #6B7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.link-learn-more {
    color: #DC2626;
    /* Red Link */
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    padding-bottom: 2px;
}

.link-learn-more:hover {
    color: #B91C1C;
    gap: 0.75rem;
    /* Slight movement */
}

/* 19. Dark Footer Refinement */
.footer-dark {
    background: #111827;
    /* Tailwind Gray 900 */
    color: #9CA3AF;
    padding: 5rem 0 3rem;
}

.footer-heading {
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.footer-link {
    display: block;
    color: #9CA3AF;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #FFFFFF;
    text-decoration: none;
}

.role-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 0.95rem;
    color: var(--color-text);
}

.role-item:last-child {
    border-bottom: none;
}

.role-item::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    background-color: #DEF7EC;
    /* Light Green */
    color: #03543F;
    /* Dark Green text */
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: bold;
    margin-top: 2px;
}

.role-item-icon {
    /* For cases where we want a specific icon instead of checkmark */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    background-color: var(--color-bg-alt);
    color: var(--color-primary);
    border-radius: 50%;
    font-size: 0.9rem;
    margin-top: 2px;
}

/* 20. Contact Page Enhancements */
.contact-hero {
    background-color: #111827;
    /* Fallback */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #FFFFFF;
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Dark Overlay for Hero Images */
.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(17, 24, 39, 0.85), rgba(17, 24, 39, 0.95));
    z-index: 1;
}

.contact-hero .container {
    position: relative;
    z-index: 2;
}

.contact-hero h1 {
    color: #FFFFFF;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.contact-hero p {
    color: #D1D5DB;
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form-card {
    background: #FFFFFF;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #F3F4F6;
}

.contact-info-card {
    background: #111827 !important;
    /* Dark card for contrast */
    color: #FFFFFF !important;
    padding: 2.5rem;
    border-radius: 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-card h3 {
    color: #FFFFFF !important;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-icon {
    min-width: 24px;
    color: #EF4444;
    /* Red accent */
    margin-top: 3px;
}

.contact-info-text strong {
    color: #F3F4F6;
    display: block;
    margin-bottom: 0.25rem;
}

.contact-info-text {
    color: #9CA3AF;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 21. AEO / Direct Answer Block */
.aeo-block {
    background-color: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-left: 5px solid #DC2626;
    /* Primary color accent */
    padding: 2.5rem;
    margin: 3rem auto;
    border-radius: 8px;
    max-width: 1200px;
    /* Aligned with container */
    width: 90%;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.aeo-block h2 {
    font-size: 1.1rem;
    text-transform: uppercase;
    color: #4B5563;
    /* Label color */
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.aeo-block p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #1F2937;
    /* Strong reading color */
    margin-bottom: 0;
    max-width: 900px;
}

/* =========================================
   22. Responsive Enhancements & Refinements
   ========================================= */

/* Force 4-column Grid */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* Tablet & Smaller Desktop Adjustments */
@media (max-width: 1024px) {
    :root {
        --container-width: 95%;
        --spacing-xl: 4rem;
        --spacing-lg: 3rem;
    }

    h1 {
        font-size: 2.75rem;
    }

    .hero-home h1 {
        font-size: 3rem;
    }

    /* Footer Grid Collapse */
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    :root {
        --spacing-md: 1.5rem;
        --spacing-sm: 0.75rem;
    }

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero-home {
        padding: 5rem 0 3rem;
        text-align: center;
        /* Center align on mobile for better balance */
    }

    .hero-home h1 {
        font-size: 2.5rem;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-home p {
        margin-left: auto;
        margin-right: auto;
        font-size: 1rem;
    }

    .hero-home .badge-pill {
        margin-left: auto;
        margin-right: auto;
    }

    /* Center CTA buttons on mobile */
    .hero-home div[style*="d-flex"],
    .hero-home div[style*="display: flex"] {
        justify-content: center !important;
    }

    /* Grid Collapse */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        /* Stack vertically */
        gap: 2rem;
    }

    /* Footer Adjustments */
    .footer-dark {
        padding: 3rem 0;
        text-align: center;
    }

    .footer-dark .grid {
        display: block;
        /* Stack footer cols */
    }

    .footer-dark .grid>div {
        margin-bottom: 2.5rem;
        /* Spacing between footer sections */
    }

    .footer-heading {
        margin-bottom: 0.75rem;
        font-size: 1.1rem;
        /* Slightly larger on mobile */
    }

    /* Footer Bottom Stack */
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        text-align: center !important;
        margin-top: 1.5rem !important;
        padding-top: 1.5rem !important;
    }

    .footer-bottom div {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .footer-brand-lockup {
        justify-content: center;
    }

    /* Process Steps (Services Page - targeting inline styles via parent) */
    .section .grid-2>div[style*="d-flex"],
    .section .grid-2>div .d-flex-step {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    h1 {
        font-size: 1.85rem;
    }

    .contact-hero h1 {
        font-size: 2rem;
    }

    .aeo-block {
        padding: 1.5rem;
        border-left-width: 4px;
    }

    .btn {
        width: 100%;
        /* Full width buttons on very small screens */
        justify-content: center;
        margin-bottom: 0.5rem;
    }

    .hero-home div[style*="display: flex"] {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem !important;
    }
}

/* Footer Bottom Base Styles */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    text-align: left;
    border-top: 1px solid #1F2937;
    padding-top: 2rem;
    margin-top: 3rem;
}

/* New Utility Classes to Replace Inline Styles */

.gap-lg {
    gap: var(--spacing-lg);
}

@media (max-width: 768px) {
    .gap-lg {
        gap: var(--spacing-md);
    }
}

.d-flex-center {
    display: flex;
    align-items: center;
}

.footer-brand-lockup {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    line-height: 0;
    max-width: 100%;
}

.footer-logo-img {
    height: auto;
    width: auto;
    max-height: 80px;
    max-width: min(360px, 92vw);
    object-fit: contain;
    object-position: left center;
    display: block;
}

/* Light footer: dark strip so white logo (arcisolutions-logo-white.png) is visible */
.footer:not(.footer-dark) .footer-brand-bar {
    background: #111827;
    border-bottom: none;
    padding: 1.75rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
}

.footer:not(.footer-dark) .footer-brand-bar,
.footer:not(.footer-dark) .footer-brand-bar .footer-logo-link {
    display: flex;
    justify-content: center;
    width: 100%;
}

.footer:not(.footer-dark) .footer-logo-img {
    max-height: 84px;
    max-width: min(380px, 94vw);
}

.footer-dark .footer-logo-img {
    max-height: 82px;
    max-width: min(360px, 92vw);
}

@media (max-width: 768px) {
    .footer-logo-img {
        max-height: 72px;
    }

    .footer:not(.footer-dark) .footer-logo-img {
        max-height: 76px;
    }

    .footer-dark .footer-logo-img {
        max-height: 72px;
    }

    .footer-brand-lockup {
        justify-content: center;
    }

    .footer-dark .footer-brand-lockup {
        align-items: center;
    }
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-icon {
    width: 32px;
    height: 32px;
    border: 1px solid #4B5563;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    text-decoration: none;
}

.social-icon:hover {
    background: white;
    color: black;
    border-color: white;
}