/* ── Reset & Base ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: "Poppins", sans-serif;
    background: #f7f8fa;
    color: #111;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.services-section img {
    max-width: 100%;
    height: auto;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}
main {
    flex: 1;
}

/* ── Variables ── */
:root {
    --green: #6ab04c;
    --green-dark: #3d7a2a;
    --green-light: #f0f7eb;
    --red: #e84040;
    --red-dark: #b71c1c;
    --red-light: #fdf0f0;
    --blue: #1976d2;
    --blue-dark: #0d47a1;
    --blue-light: #e8f1fb;
    --purple: #7c4dff;
    --purple-light: #f3eeff;
    --orange: #f57c00;
    --orange-light: #fff3e0;
    --teal: #00897b;
    --teal-light: #e0f2f1;
    --bg: #f7f8fa;
    --radius: 16px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ══════════════════════════════════
   HEADER
══════════════════════════════════ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 40px;
}
.header-logo {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}
.logo-seo {
    font-family: "Poppins", sans-serif;
    font-size: 1.7rem;
    color: var(--green);
    letter-spacing: -1px;
    line-height: 1;
}
.logo-ad {
    font-family: "Poppins", sans-serif;
    font-size: 1.7rem;
    color: var(--red);
    letter-spacing: -1px;
    line-height: 1;
}
.logo-berry {
    font-size: 1.4rem;
    animation: wobble 3s ease-in-out infinite;
}
@keyframes wobble {
    0%,
    100% {
        transform: rotate(-4deg) scale(1);
    }
    50% {
        transform: rotate(6deg) scale(1.12);
    }
}
.header-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 1;
}
.header-nav a {
    font-size: 0.92rem;
    font-weight: 500;
    color: #555;
    transition: color 0.18s;
    position: relative;
}
.header-nav a::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    border-radius: 2px;
    transition: width 0.22s;
}
.header-nav a:hover,
.header-nav a.active {
    color: #111;
}
.header-nav a:hover::after,
.header-nav a.active::after {
    width: 100%;
}

.header-cta {
    margin-left: auto;
    background: var(--red);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 10px;
    transition:
        opacity 0.18s,
        transform 0.18s;
    flex-shrink: 0;
}
.header-cta:hover {
    opacity: 0.88;
    transform: scale(0.98);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #111;
    border-radius: 2px;
    transition: 0.2s;
}

/* ══════════════════════════════════
   SERVICES SECTION
══════════════════════════════════ */
.services-section {
    padding: 72px 0 80px;
}

/* Eyebrow */
.eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--red);
}
.eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
    opacity: 0.4;
}

/* Title */
.sec-title {
    text-align: center;
    font-family: "Poppins", sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #86b413;
    line-height: 1.15;
    margin-bottom: 10px;
}
.sec-title span {
    color: var(--red);
}
.sec-sub {
    text-align: center;
    font-size: 1rem;
    color: #666;
    margin-bottom: 48px;
}

/* ── Tab Nav ── */
/* ── Tab Nav ── */
.tab-nav-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 42px;
    width: 100%;
}
.tab-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    padding: 6px 8px;
    box-shadow: var(--shadow);
}
.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: "Poppins", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    padding: 10px 20px;
    border-radius: 50px;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.tab-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}
.tab-btn.active {
    background: var(--red);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(232, 64, 64, 0.3);
}
.tab-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tab-icon svg {
    width: 100%;
    height: 100%;
}

/* ── Responsive Category Filter for Mobile/Tablet ── */
@media (max-width: 768px) {
    .services-section {
        padding: 24px 0 60px;
    }
    .tab-nav-wrap {
        margin-bottom: 24px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 4px 12px 14px;
        justify-content: flex-start;
        box-sizing: border-box;
    }
    .tab-nav-wrap::-webkit-scrollbar {
        display: none;
    }
    .tab-nav {
        display: inline-flex !important;
        flex-wrap: nowrap !important;
        width: max-content !important;
        gap: 6px !important;
        padding: 5px !important;
        border-radius: 50px !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
        margin: 0 auto;
    }
    .tab-btn {
        padding: 8px 14px !important;
        font-size: 13px !important;
        border-radius: 50px !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }
    .tab-btn .tab-icon {
        width: 16px !important;
        height: 16px !important;
    }
}

/* ── Cards Grid ── */
/* Increased minmax from 200px → 280px for wider cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

/* ── Service Card ── */
.svc-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, 0.07);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        opacity 0.25s ease;
    cursor: pointer;
}
.svc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.13);
}
.svc-card.hidden {
    display: none;
}
.svc-card.visible {
    display: block;
    animation: fadeIn 0.3s ease forwards;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card image — always fills full card width & height */
.card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eee;
    display: block;
}
.card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center;
    display: block;
    transition: transform 0.4s ease;
}
.svc-card:hover .card-img img {
    transform: scale(1.06);
}

/* Badge icon — slightly larger */
.card-badge {
    position: absolute;
    bottom: 14px;
    left: 14px;
    width: 42px;
    height: 42px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
}
.card-badge svg {
    width: 22px;
    height: 22px;
    stroke: var(--red);
}

/* Category tag */
.cat-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 11px;
    border-radius: 20px;
}
.seo-tag {
    background: var(--green-light);
    color: var(--green-dark);
}
.smm-tag {
    background: var(--blue-light);
    color: var(--blue-dark);
}
.ppc-tag {
    background: var(--orange-light);
    color: var(--orange);
}
.mkt-tag {
    background: var(--purple-light);
    color: var(--purple);
}
.oth-tag {
    background: var(--teal-light);
    color: var(--teal);
}

/* Card body — more breathing room */
.card-body {
    padding: 18px 20px 22px;
}
.card-body h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111;
    line-height: 1.35;
    margin-bottom: 6px;
}

/* Optional: add a subtle description line if needed */
.card-body p {
    font-size: 0.85rem;
    color: #777;
    line-height: 1.5;
    margin-top: 6px;
}

/* ── Section CTA ── */
.section-cta {
    text-align: center;
    margin-top: 52px;
}
.cta-btn {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 14px 40px;
    border-radius: 12px;
    letter-spacing: 0.3px;
    transition:
        opacity 0.18s,
        transform 0.18s;
    box-shadow: 0 6px 20px rgba(232, 64, 64, 0.28);
}
.cta-btn:hover {
    opacity: 0.88;
    transform: scale(0.98);
}

/* ════════════════════════════════
   PAGE HERO SECTION — Contact
   Brand: #E3362E (red) | #86B413 (green)
════════════════════════════════ */

.page-hero-section {
    width: 100%;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: 80px;

    /* gradient: soft peach-left → soft pink-right matching reference */
    background: linear-gradient(
        120deg,
        #fde8e8 0%,
        #fce4f0 40%,
        #f8e0f5 70%,
        #f0e4fc 100%
    );
}

/* dotted pattern overlay — top right like reference */
.page-hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 35%;
    height: 100%;
    background-image: radial-gradient(
        circle,
        rgba(227, 54, 46, 0.15) 1.2px,
        transparent 1.2px
    );
    background-size: 18px 18px;
    pointer-events: none;
    z-index: 0;
}

/* red accent bar — right edge like reference */
.page-hero-section::after {
    content: "";
    position: absolute;
    right: 0;
    top: 15%;
    width: 5px;
    height: 70%;
    background: #e3362e;
    border-radius: 4px 0 0 4px;
    z-index: 1;
}

.page-hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 48px 24px;
}

.page-hero-title {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    color: #86b413;
    line-height: 1.15;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.page-hero-title span {
    color: #e3362e;
}
