/* WordPress-Style Corporate Premium Light Theme for Servifogar */

:root {
    --bg-main: #fafbfc;
    --bg-surface: #ffffff;
    --bg-surface-alt: #f3f7fa;

    --primary: #1e3a8a;
    /* Deep Navy Blue */
    --primary-blue: #2563eb;
    /* Primary Accent Blue */
    --primary-blue-light: #eff6ff;
    /* Soft Blue Tint */
    --primary-blue-dark: #1d4ed8;

    --accent-green: #10b981;
    /* Emerald/Mint Green */
    --accent-green-light: #ecfdf5;
    /* Soft Green Tint */
    --accent-green-dark: #047857;

    --accent-teal: #0d9488;
    /* Teal Accent */
    --accent-teal-light: #f0fdfa;
    /* Soft Teal Tint */
    --accent-teal-dark: #0f766e;

    --accent-sky: #0ea5e9;
    /* Sky Blue */
    --accent-sky-light: #f0f9ff;
    --accent-sky-dark: #0369a1;

    --violet-detail: #8b5cf6;
    /* Lavender Violet - ONLY for tiny details/bullets */

    --text-main: #1e293b;
    --text-muted: #515f72;
    --text-light: #94a3b8;
    --text-white: #ffffff;

    --border-color: #e6edf4;
    --border-field: #d8e2ed;
    --border-focus: #3b82f6;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --font-heading: 'Lora', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    --shadow-sm: 0 2px 8px rgba(30, 58, 138, 0.03);
    --shadow-md: 0 10px 30px rgba(30, 58, 138, 0.05);
    --shadow-lg: 0 20px 45px rgba(30, 58, 138, 0.07);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 700;
}

p,
span,
a,
input,
select,
textarea,
button,
label {
    font-family: var(--font-body);
}

/* Top Banner */
.top-banner {
    background-color: #f1f5f9;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

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

.top-banner-email {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.top-banner-email:hover {
    color: var(--primary);
}

/* Header */
.main-header {
    background-color: var(--bg-surface);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

/* Mobile Menu Hamburger and Helper CSS */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 19px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 105;
}

.hamburger-bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left center;
}

.mobile-only-cta {
    display: none;
}

/* Mobile logo text hidden by default on desktop */
.logo-text-mobile {
    display: none;
    font-family: var(--font-body);
    /* Modern, clean, and highly corporate sans-serif */
    font-weight: 800;
    font-size: 1.25rem;
    margin-left: 0.6rem;
    letter-spacing: 2px;
    /* Elegant tracking for premium branding */
    align-self: center;
    color: var(--primary);
    /* Solid, stable deep navy blue of high corporate caliber */
    opacity: 0;
}

@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateX(-5px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
}


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

.logo-img {
    height: 48px;
    width: auto;
    display: block;
    object-fit: contain;
}

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

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

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    transition: color 0.25s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: width 0.25s ease;
}

.nav-link:hover {
    color: var(--primary-blue);
}

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

/* Custom header action button to look bespoke outline style */
.main-header .btn-primary {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    border-radius: var(--radius-full);
    padding: 0.55rem 1.25rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: none;
}

.main-header .btn-primary:hover {
    background-color: var(--primary-blue);
    color: var(--text-white);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--text-white);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.btn-primary:hover {
    background-color: var(--primary-blue-dark);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
    transform: translateY(-1px);
}

.btn-accent {
    background-color: var(--accent-green);
    color: var(--text-white);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.btn-accent:hover {
    background-color: var(--accent-green-dark);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.25);
    transform: translateY(-1px);
}

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

.btn-outline:hover {
    background-color: var(--text-white);
    color: var(--primary);
}

.btn-large {
    padding: 0.9rem 2.2rem;
    font-size: 1rem;
    border-radius: var(--radius-sm);
}

.btn-full {
    width: 100%;
}

/* Hero Section */
.hero-section {
    background-color: #0c1a30;
    /* Base dark color for background blending */
    background-image: url('../images/hero_bg.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: clamp(5rem, 12vw, 9rem) 2rem;
    color: var(--text-white);
    text-align: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Soft overlay with increased opacity to make the background image slightly more transparent/dimmed */
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.73) 20%, rgba(13, 148, 136, 0.53) 80%);
    z-index: 1;
}

.hero-container {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.hero-tagline {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-green);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.4rem 1.25rem;
    border-radius: var(--radius-full);
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    color: var(--text-white);
    line-height: 1.15;
    font-weight: 800;
}

.slogan-animate {
    display: inline-block;
    color: var(--text-white);
    border-bottom: 3px solid var(--accent-green);
    padding-bottom: 2px;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    opacity: 1;
}

.hero-desc {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    max-width: 750px;
    text-align: center;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Trust Badges Section */
.badges-section {
    background-color: var(--bg-surface);
    padding: 3.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.badges-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3.5rem;
}

.badge-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.badge-icon {
    font-size: 2.25rem;
    /* Clean gradient with light blue and green */
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-green) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
}

.badge-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.badge-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* About Us Section */
.about-section {
    padding: clamp(3rem, 8vw, 6rem) 2rem;
    background-color: var(--bg-surface-alt);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4.5rem;
    align-items: center;
}

.about-content h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-bottom: 1rem;
    line-height: 1.25;
}

.about-divider {
    width: 50px;
    height: 4px;
    background-color: var(--accent-green);
    border-radius: var(--radius-full);
    margin-bottom: 1.75rem;
}

.about-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    text-align: justify;
}

.about-points {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.point-item {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.point-item strong {
    color: var(--accent-green);
    font-size: 1.15rem;
}

.about-image-wrapper {
    position: relative;
    padding: 10px;
}

/* Beautiful WordPress offset border effect */
.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: 25px;
    left: -10px;
    right: 30px;
    bottom: -10px;
    border: 3px solid var(--primary-blue);
    border-radius: var(--radius-md);
    opacity: 0.2;
    z-index: 0;
}

.about-image {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 6px solid var(--bg-surface);
    position: relative;
    z-index: 1;
}

/* Services Grid Section - WordPress Improved Style */
.services-section {
    padding: clamp(3rem, 8vw, 6rem) 2rem;
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
}

.section-title-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

.section-title-container h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-bottom: 0.5rem;
}

.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.service-card-wp {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card-wp:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.15);
}

.service-card-image-wrapper {
    height: 200px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.service-card-img-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-wp:hover .service-card-img-element {
    transform: scale(1.06);
}

/* Service Category Badges */
.service-badge-cat {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.9rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.badge-blue {
    background-color: var(--primary-blue-light);
    color: var(--primary-blue-dark);
}

.badge-green {
    background-color: var(--accent-green-light);
    color: var(--accent-green-dark);
}

.badge-teal {
    background-color: var(--accent-teal-light);
    color: var(--accent-teal-dark);
}

.badge-sky {
    background-color: var(--accent-sky-light);
    color: var(--accent-sky-dark);
}

.service-card-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 0.75rem;
}

.service-card-content h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
}

.service-card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
    text-align: justify;
}

.service-card-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
    margin-top: auto;
    width: 100%;
}

.service-rate {
    font-weight: 800;
    font-size: 0.85rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    background-color: var(--accent-sky-light);
    color: var(--accent-sky-dark);
    display: inline-block;
    text-align: left;
}

.service-card-wp:nth-child(2n) .service-rate {
    background-color: var(--accent-green-light);
    color: var(--accent-green-dark);
}

.service-link {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 0.9rem;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.service-link:hover {
    color: var(--accent-green-dark);
}

/* Secure Contact Section */
.contact-section {
    padding: clamp(3rem, 8vw, 6rem) 2rem;
    background-color: var(--bg-surface-alt);
    border-top: 1px solid var(--border-color);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 4.5rem;
    align-items: start;
}

.contact-info-panel h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-bottom: 1rem;
}

.panel-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 3rem;
    text-align: justify;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-list-item {
    display: flex;
    gap: 1.25rem;
    align-items: start;
}

.info-icon {
    font-size: 1.5rem;
    background: var(--bg-surface);
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    color: var(--primary-blue);
}

.info-list-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.info-list-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-panel-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.contact-panel-link:hover {
    text-decoration: underline;
    color: var(--accent-green-dark);
}

/* Premium Bespoke Contact Form */
.contact-form-panel {
    background-color: var(--bg-surface);
    padding: 3.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    position: relative;
}

/* Clean, non-AI corporate top highlight line using Blue/Green gradient */
.contact-form-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-blue-teal);
    border-top-left-radius: var(--radius-md);
    border-top-right-radius: var(--radius-md);
}

/* Tiny subtle violet detail at the top corner */
.contact-form-panel::after {
    content: '';
    position: absolute;
    top: 0;
    right: 1.5rem;
    width: 10px;
    height: 4px;
    background-color: var(--violet-detail);
    z-index: 2;
}

.contact-form-panel h3 {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    color: var(--primary);
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

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

.form-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Minimalist Clean Inputs */
.form-input,
.form-textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    background-color: #fafbfc;
    border: 1px solid var(--border-field);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    outline: none;
    font-size: 0.95rem;
    transition: all 0.25s ease-in-out;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--primary-blue);
    background-color: var(--bg-surface);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.08);
}

.form-textarea {
    resize: vertical;
}

/* Alerts */
.success-alert {
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.error-list {
    background-color: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    list-style-position: inside;
}

/* Footer (Cool Dark Corporate Theme) */
footer {
    background-color: #0a0f1d;
    color: #94a3b8;
    padding: 5rem 2rem 2rem 2rem;
    border-top: 3px solid var(--accent-green);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 1.3fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.logo-img-footer {
    height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
}

.footer-about p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #94a3b8;
}

.footer-nav h4,
.footer-contact-info h4 {
    color: var(--text-white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav a {
    text-decoration: none;
    color: #94a3b8;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--accent-green);
}

.footer-contact-info p {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    color: #94a3b8;
}

.footer-schedule {
    margin-top: 1rem;
}

.footer-schedule strong {
    color: var(--text-white);
}



.footer-email-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.footer-email-link:hover {
    color: var(--accent-green);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: #64748b;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

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

.footer-legal a:hover {
    color: var(--primary-blue);
}

/* Full Responsive Adaptation / Retrocompatibility */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: minmax(280px, 1fr);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 0.5rem 1rem 1.5rem 1rem;
        gap: 1.5rem;
        scrollbar-width: thin;
    }

    .service-card-wp {
        scroll-snap-align: start;
        min-width: 280px;
    }

    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-title {
        font-size: 2.75rem;
    }
}

@media (max-width: 768px) {

    /* Hide top banner on mobile for cleaner header */
    .top-banner {
        display: none;
    }

    .nav-container {
        flex-direction: row !important;
        justify-content: space-between;
        align-items: center;
        padding: 0.6rem 1.5rem;
        width: 100%;
        height: 60px;
    }

    .logo-img {
        height: 36px;
    }

    .nav-actions {
        display: none;
        /* Hide desktop CTA */
    }

    /* Mobile toggle icon show */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Hamburger transformation to X */
    .mobile-menu-toggle.active .hamburger-bar:nth-child(1) {
        transform: rotate(45deg) translate(2px, -2px);
    }

    .mobile-menu-toggle.active .hamburger-bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active .hamburger-bar:nth-child(3) {
        transform: rotate(-45deg) translate(2px, 2px);
    }

    /* Drawer Menu styling */
    .nav-menu-wrapper {
        position: absolute;
        top: 60px;
        /* immediately below the header */
        left: 0;
        right: 0;
        background-color: var(--bg-surface);
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 8px 16px rgba(10, 15, 29, 0.08);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
        z-index: 99;
        display: flex;
        flex-direction: column;
        padding: 0;
    }

    .nav-menu-wrapper.active {
        max-height: 350px;
        padding: 1.5rem 2rem;
    }

    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 1.1rem;
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 0.4rem 0;
        font-size: 0.95rem;
        color: var(--text-main);
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    }

    .nav-link::after {
        display: none;
        /* disable hover line effect on mobile */
    }

    .mobile-only-cta {
        display: block;
        width: 100%;
        margin-top: 0.5rem;
    }

    .mobile-only-cta .btn {
        width: 100%;
        font-size: 0.9rem;
        padding: 0.7rem 1rem;
    }

    .logo {
        display: flex;
        align-items: center;
        text-decoration: none;
    }

    .logo-text-mobile {
        display: inline-block;
        animation: logoFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.15s forwards;
    }

    .badges-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .contact-form-panel {
        padding: 2rem 1.25rem;
    }

    .contact-form-panel h3 {
        font-size: 1.35rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .form-input,
    .form-textarea {
        font-size: 16px !important;
        /* Prevents auto-zoom on iOS browsers */
        padding: 0.8rem 1rem;
    }

    .top-banner-container {
        flex-direction: column;
        gap: 0.4rem;
        text-align: center;
    }

    footer {
        padding: 3.5rem 1.5rem 1.5rem 1.5rem !important;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2.25rem !important;
        text-align: center !important;
    }

    .logo-img-footer {
        margin: 0 auto 1.5rem auto !important;
    }

    .footer-bottom {
        flex-direction: column !important;
        text-align: center !important;
        gap: 1.25rem !important;
        padding-top: 1.5rem !important;
    }

    .footer-legal {
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 1rem !important;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 5rem 1.25rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-desc {
        font-size: 0.95rem;
    }

    .btn-large {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .about-section,
    .services-section,
    .contact-section {
        padding: 3rem 1rem;
    }

    .about-image-wrapper::before {
        display: none;
        /* remove background borders on extra small screens */
    }

    .logo-img {
        height: 38px;
    }
}

/* Legal Pages Styles - Premium 2-Column Documentation Style Layout */
.legal-page-container {
    background-color: var(--bg-surface-alt);
    padding: clamp(3rem, 6vw, 5rem) 2rem;
    flex-grow: 1;
}

.legal-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

/* Sticky Sidebar Index Card */
.legal-sidebar {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    position: sticky;
    top: 100px;
    /* immediately below the sticky header */
    box-shadow: var(--shadow-sm);
}

.legal-sidebar h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 700;
}

.legal-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.legal-nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: block;
}

.legal-nav-link:hover {
    color: var(--primary-blue);
    transform: translateX(3px);
}

.legal-nav-link.active {
    color: var(--primary-blue);
    font-weight: 700;
    border-left: 2px solid var(--primary-blue);
    padding-left: 8px;
    margin-left: -10px;
}

.legal-sidebar-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 1.5rem 0;
}

.legal-content {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: clamp(2rem, 5vw, 3.5rem);
    text-align: justify;
}

.legal-content h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.3rem);
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.legal-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-weight: 600;
}

.legal-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
    font-size: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.legal-content p,
.legal-content ul {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.legal-content ul {
    padding-left: 1.5rem;
    list-style-type: disc;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* Mobile Legal Adaptability */
@media (max-width: 900px) {
    .legal-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .legal-sidebar {
        position: relative;
        top: 0;
        padding: 1.5rem;
    }
}

/* Helper classes to eliminate inline styling for strict CSP */
.footer-logo-link {
    margin-bottom: 1rem;
    display: block;
}

.services-title-divider {
    margin: 0.5rem auto 1.5rem auto !important;
}

/* Hidden honeypot wrapper to prevent spam bots */
.form-helper-row {
    display: none !important;
}

/* Contact phone links design */
.phone-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.phone-link:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

.phone-item-main {
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.phone-item-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
}