/* Service card call button */
.service-call-btn {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 12px 18px;
    border: 2px solid #0e2b5c;
    border-radius: 12px;
    background: transparent;
    color: #0e2b5c;
    text-align: center;
    font-weight: 600;
    line-height: 1.2;
    transition: all 0.2s ease-in-out;
}

.service-call-btn:hover,
.service-call-btn:focus {
    background: #0e2b5c;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(14, 43, 92, 0.2);
    outline: none;
}

.service-card .service-call-btn {
    margin-top: 20px;
}
/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #f59e0b;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --text-color: #334155;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --gradient-1: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --gradient-2: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --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);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.65;
    color: var(--text-color);
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--primary-color);
    z-index: 2000;
    box-shadow: 0 1px 8px rgba(37, 99, 235, 0.35);
    transition: width 0.15s ease-out;
}

/* Headings use a friendly display font */
h1, h2, h3 {
    font-family: 'Poppins', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    letter-spacing: 0.2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Account for fixed navbar when jumping to anchors */
section {
    scroll-margin-top: 110px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right:  0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Make navbar content full-width so brand sits at the left edge */
.navbar .container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 8px;
}

.navbar.scrolled {
    box-shadow: var(--shadow-lg);
}

.nav-wrapper {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    padding: 0.5rem 0.25rem 0.5rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.6rem;
    font-weight: 700;
    font-family: 'Poppins', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--primary-color);
}

.logo span {
    font-size: 1.5rem;
    line-height: 1.1;
    margin-left: 40px;
}

.logo i {
    font-size: 1.8rem;
}

/* Brand logo image */
.brand-logo {
    height: 72px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    border-radius: 4px;
}
.navbar .brand-logo {
    height: 82px;
    margin-left: 55px;
}
.footer .brand-logo {
    width: 160px;
    height: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap:  2.25rem;
    align-items: center;
    justify-self: end;
    margin-left: 24px;
    margin-right: 100px; /* shift menu left by ~100px */
}
.nav-menu li {
    display: flex;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1.1rem;
    transition:  color 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    line-height: 1;
    padding: 0.35rem 0; /* slightly tighter vertical space */
    letter-spacing: 0.2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width:  0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width:  100%;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Active link state */
.nav-link.active {
    color: var(--primary-color);
}
.nav-link.active::after {
    width: 100%;
}

.nav-cta .btn-call {
    background: var(--gradient-1);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    text-decoration:  none;
    font-weight:  600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-cta .btn-call:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    justify-self: end;
    align-self: center;
}

.hamburger span {
    width:  25px;
    height:  3px;
    background:  var(--dark-color);
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 3px;
    display: block;
    transform-origin: center;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding-top: 140px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left:  0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: bgMove 20s linear infinite;
}

@keyframes bgMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom:  0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-title .highlight {
    display: block;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom:  2rem;
    opacity:  0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: none;
    cursor:  pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.hero-features {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform:  translateX(-50%);
    font-size: 2rem;
    animation: bounce 2s infinite;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation:  fadeIn 1s ease-out 0.3s both;
}

/* Reusable Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

.reveal-visible {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

.animate-fade-in-delay-2 {
    animation:  fadeIn 1s ease-out 0.6s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.6rem;
    font-weight: 700;
    font-family: 'Poppins', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position:  absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* Services Section */
.services {
    background: var(--light-color);
}

.services-grid {
    display: grid;
    /* Show exactly two wider cards per row on desktop */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.service-card {
    background:  white;
    padding: 2rem;
    border-radius:  15px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

/* subtle gradient underline on hover */
.service-card::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 4px;
    background: var(--gradient-1);
    transition: width 0.35s ease;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.service-card:hover::after {
    width: 100%;
}

/* Service card image presentation */
.service-image {
    display: block;
    width: 100%;
    height: 320px; /* larger presence on desktop */
    object-fit: contain; /* show full image without cropping */
    object-position: center;
    padding: 8px; /* neat frame */
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background-color: #fff;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    transition: transform 0.4s ease;
}

.service-card:hover .service-image {
    transform: scale(1.05);
}

.service-card h3 {
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--primary-color);
}

/* Tablet sizing */
@media (max-width: 968px) {
    .logo { font-size: 1.9rem; }
    .brand-logo { height: 70px; }
    .service-image {
        height: 280px;
    }
}

/* Service card image */
.service-image {
    width: 100%;
    /* Show full image without cropping */
    height: 320px;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-family: 'Poppins', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.service-card p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding:  0.5rem 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
}

.service-features i {
    color: var(--success-color);
}

/* Why Us Section */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.why-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.why-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin:  0 auto 1.5rem;
    font-size: 2.5rem;
    color: white;
}

.why-card h3 {
    font-size: 1.3rem;
    margin-bottom:  1rem;
    color:  var(--dark-color);
}

/* Stats Section */
.stats {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Testimonials Section */
.testimonials {
    background: var(--light-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.testimonial-rating {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.testimonial-rating i {
    font-size: 1.2rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-color);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.author-info h4 {
    color: var(--dark-color);
    margin-bottom: 0.2rem;
}

.author-info span {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Contact Section */
.contact-wrapper {
    display: flex;
    justify-content: center;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom:  1rem;
    color:  var(--dark-color);
}

.contact-info > p {
    margin-bottom: 2rem;
    color: var(--text-color);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-item h4 {
    color: var(--dark-color);
    margin-bottom: 0.3rem;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color:  white;
    font-size:  1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group i {
    position: absolute;
    left: 1rem;
    top: 1.2rem;
    color: var(--text-color);
    opacity: 0.5;
}

.form-group textarea + i {
    top: 1.2rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    line-height: 1.2;
    text-align: left;
    white-space: normal;
    word-break: break-word;
}

.footer-brand .brand-name {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    line-height: 1.2;
}

.footer-brand .brand-line {
    display: block;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.8;
}

.footer-section ul {
    list-style:  none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    opacity:  1;
    color: var(--secondary-color);
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 0.8rem 1.5rem;
    background: var(--gradient-1);
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--gradient-2);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Floating Action Buttons */
.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1100;
}

.floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: fabSlideIn 0.6s ease both;
}

.floating-btn i { font-size: 24px; }

.floating-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-xl);
}

.floating-btn.whatsapp { background: #25D366; }
.floating-btn.call { background: var(--primary-color); }
.floating-btn.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

/* gentle pulse attention */
.floating-btn.instagram {
    animation: fabSlideIn 0.6s ease both, pulse 3s ease-in-out 1s infinite;
}
.floating-btn.whatsapp {
    animation: fabSlideIn 0.6s ease both, pulse 3s ease-in-out 1.2s infinite;
}
.floating-btn.call {
    animation: fabSlideIn 0.6s ease 0.1s both, pulse 3s ease-in-out 1.4s infinite;
}

@keyframes fabSlideIn {
    0% { opacity: 0; transform: translateY(20px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pulse {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-1px) scale(1.05); }
    100% { transform: translateY(0) scale(1); }
}

@media (max-width: 640px) {
    .floating-btn { width: 52px; height: 52px; }
    .floating-btn i { font-size: 22px; }
    .floating-buttons { right: 14px; bottom: 14px; gap: 10px; }
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 84px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        margin: 0; /* reset desktop margins to avoid visible sliver */
        z-index: 1100;
    }

    /* Larger touch-friendly nav items on mobile menu */
    .nav-menu .nav-link {
        font-size: 1.25rem;
        padding: 0.5rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
        justify-self: end;
        align-self: center;
        grid-column: 2;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-cta {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .contact-wrapper { justify-content: center; }
}

@media (max-width: 640px) {
    .nav-wrapper { padding: 0.5rem 0; gap: 0.5rem; }
    .logo { font-size: 1.5rem; }
    .brand-logo { height: 52px; }
    .footer .brand-logo { height: 88px; }
    /* Match mobile menu overlay to reduced navbar height */
    .nav-menu { top: 64px; padding: 0.75rem 0; }
    /* Prevent overlap of hero under fixed navbar on small screens */
    .hero { padding-top: 130px; }
    .hero-title {
        font-size:  2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-features {
        gap: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid,
    .why-us-grid,
    .testimonials-grid {
        grid-template-columns:  1fr;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    /* comfortable size on mobile */
    .service-image {
        height: 240px;
        padding: 6px;
    }
    section { scroll-margin-top: 96px; }
}

/* Tiny phones and very small screens */
@media (max-width: 480px) {
    .logo { font-size: 1.35rem; }
    .brand-logo { height: 46px; }
    .footer .brand-logo { height: 76px; }
    .nav-link { font-size: 1rem; padding: 0.3rem 0; }
    .nav-menu { top: 58px; }

    .hero { padding-top: 120px; }
    .hero-title { font-size: 1.75rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .hero-buttons .btn { padding: 0.8rem 1.2rem; font-size: 0.95rem; }
    .hero-features { gap: 1rem; }

    section { padding: 4rem 0; scroll-margin-top: 88px; }

    .service-card { padding: 1.25rem; }
    .service-card h3 { font-size: 1.25rem; }
    .service-image { height: 200px; padding: 6px; }

    .section-title { font-size: 1.6rem; }
    .stat-number { font-size: 2.2rem; }
    .stat-item i { font-size: 2.2rem; }

    .contact-form { padding: 1.5rem; }
    .form-group input,
    .form-group select,
    .form-group textarea { padding: 0.85rem 0.85rem 0.85rem 2.6rem; }
}

/* Brands Section */
.brands {
    background: var(--light-color);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.25rem;
}

.brand-badge {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: var(--dark-color);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
    position: relative;
    overflow: hidden;
    opacity: 0; /* will animate in when section reveals */
    transform: translateY(12px) scale(0.98);
}

.brand-badge:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
    background-color: #fdfefe;
}

/* gradient underline on hover */
.brand-badge::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.brand-badge:hover::after {
    width: 100%;
}

/* entry animation trigger when section is revealed */
.brands.revealed .brand-badge {
    animation: brandFade 0.5s ease forwards;
}

@keyframes brandFade {
    0% { opacity: 0; transform: translateY(12px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* staggered delays for nicer cascade */
.brands.revealed .brand-badge:nth-child(1) { animation-delay: 0.00s; }
.brands.revealed .brand-badge:nth-child(2) { animation-delay: 0.04s; }
.brands.revealed .brand-badge:nth-child(3) { animation-delay: 0.08s; }
.brands.revealed .brand-badge:nth-child(4) { animation-delay: 0.12s; }
.brands.revealed .brand-badge:nth-child(5) { animation-delay: 0.16s; }
.brands.revealed .brand-badge:nth-child(6) { animation-delay: 0.20s; }
.brands.revealed .brand-badge:nth-child(7) { animation-delay: 0.24s; }
.brands.revealed .brand-badge:nth-child(8) { animation-delay: 0.28s; }
.brands.revealed .brand-badge:nth-child(9) { animation-delay: 0.32s; }
.brands.revealed .brand-badge:nth-child(10) { animation-delay: 0.36s; }
.brands.revealed .brand-badge:nth-child(11) { animation-delay: 0.40s; }
.brands.revealed .brand-badge:nth-child(12) { animation-delay: 0.44s; }
.brands.revealed .brand-badge:nth-child(13) { animation-delay: 0.48s; }
.brands.revealed .brand-badge:nth-child(14) { animation-delay: 0.52s; }
.brands.revealed .brand-badge:nth-child(15) { animation-delay: 0.56s; }
.brands.revealed .brand-badge:nth-child(16) { animation-delay: 0.60s; }
.brands.revealed .brand-badge:nth-child(17) { animation-delay: 0.64s; }
.brands.revealed .brand-badge:nth-child(18) { animation-delay: 0.68s; }
.brands.revealed .brand-badge:nth-child(19) { animation-delay: 0.72s; }
.brands.revealed .brand-badge:nth-child(20) { animation-delay: 0.76s; }
.brands.revealed .brand-badge:nth-child(21) { animation-delay: 0.80s; }
.brands.revealed .brand-badge:nth-child(22) { animation-delay: 0.84s; }
.brands.revealed .brand-badge:nth-child(23) { animation-delay: 0.88s; }
.brands.revealed .brand-badge:nth-child(24) { animation-delay: 0.92s; }