/* =========================================================
   LIKESTAR PUBLICATIONS
   PUBLIC SERVICES PAGE
   service.css
========================================================= */

/* =========================================================
   ROOT VARIABLES
========================================================= */

:root {
    --blue: #0057b8;
    --blue-dark: #003b7a;
    --blue-light: #eaf4ff;
    --orange: #ff7a00;
    --orange-dark: #df6500;
    --orange-light: #fff1e3;
    --white: #ffffff;
    --black: #0b1728;
    --text: #26364a;
    --muted: #718096;
    --border: #e6ebf2;
    --light: #f7f9fc;
    --success: #16803c;
    --success-light: #eaf8ef;
    --danger: #c62828;
    --danger-light: #fff0f0;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 30px;
    --shadow-sm: 0 4px 14px rgba(11, 23, 40, 0.06);
    --shadow-md: 0 12px 35px rgba(11, 23, 40, 0.09);
    --shadow-lg: 0 22px 60px rgba(11, 23, 40, 0.13);
    --container: 1180px;
    --transition: 0.25s ease;
}

/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    min-height: 100vh;
    background: var(--white);
    color: var(--text);
    font-family: "DM Sans", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    border: 0;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin: 0 auto;
}

.hidden {
    display: none !important;
}

/* =========================================================
   TYPOGRAPHY
========================================================= */

h1,
h2,
h3,
h4 {
    color: var(--black);
    font-family: "Plus Jakarta Sans", sans-serif;
    line-height: 1.15;
}

h1,
h2 {
    letter-spacing: -0.03em;
}

p {
    color: var(--text);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-label::before {
    width: 22px;
    height: 2px;
    background: var(--orange);
    content: "";
}

/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(14px);
    transition:
        background var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.site-header.scrolled {
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-logo {
    width: auto;
    height: 46px;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 15px;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition:
        color var(--transition),
        background var(--transition);
}

.main-nav a:hover {
    color: var(--blue);
    background: var(--blue-light);
}

.main-nav a.active {
    color: var(--blue);
}

.main-nav a.active::after {
    position: absolute;
    right: 15px;
    bottom: 3px;
    left: 15px;
    height: 2px;
    background: var(--orange);
    content: "";
}

.main-nav .nav-cta {
    margin-left: 8px;
    padding: 0 20px;
    color: var(--white);
    background: var(--blue);
    border-radius: 999px;
}

.main-nav .nav-cta:hover {
    color: var(--white);
    background: var(--blue-dark);
}

.main-nav .nav-cta::after {
    display: none;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 23px;
    height: 2px;
    background: var(--black);
    border-radius: 10px;
    transition:
        transform var(--transition),
        opacity var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   BUTTONS
========================================================= */

.primary-button,
.secondary-button {
    min-height: 48px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform var(--transition),
        background var(--transition),
        color var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.primary-button {
    color: var(--white);
    background: var(--blue);
    box-shadow: 0 8px 20px rgba(0, 87, 184, 0.18);
}

.primary-button:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 87, 184, 0.24);
}

.secondary-button {
    color: var(--blue);
    background: var(--white);
    border: 1px solid var(--border);
}

.secondary-button:hover {
    color: var(--blue-dark);
    border-color: var(--blue);
    transform: translateY(-2px);
}

/* =========================================================
   HERO
========================================================= */

.services-hero {
    position: relative;
    overflow: hidden;
    padding: 82px 0 90px;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(0, 87, 184, 0.08),
            transparent 32%
        ),
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8fbff 100%
        );
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
    align-items: center;
    gap: 70px;
}

.hero-content {
    max-width: 620px;
}

.hero-content h1 {
    margin-bottom: 24px;
    font-size: clamp(2.6rem, 5vw, 4.5rem);
}

.hero-content h1 span {
    color: var(--blue);
}

.hero-content > p {
    max-width: 590px;
    margin-bottom: 32px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-image {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--light);
    box-shadow: var(--shadow-lg);
}

.hero-image::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 35%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.15),
        transparent
    );
    content: "";
    pointer-events: none;
}

.hero-image img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

/* =========================================================
   INTRO
========================================================= */

.services-intro {
    padding: 90px 0 55px;
}

.intro-content {
    max-width: 760px;
}

.intro-content h2 {
    margin-bottom: 20px;
    font-size: clamp(2rem, 4vw, 3rem);
}

.intro-content h2 span {
    color: var(--blue);
}

.intro-content p {
    max-width: 720px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.8;
}

/* =========================================================
   CATEGORY NAVIGATION
========================================================= */

.category-navigation {
    position: sticky;
    top: 78px;
    z-index: 50;
    padding: 14px 0;
    background: rgba(255, 255, 255, 0.94);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.category-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.category-nav a {
    flex: 0 0 auto;
    padding: 9px 16px;
    color: var(--muted);
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    transition:
        color var(--transition),
        background var(--transition),
        border-color var(--transition);
}

.category-nav a:hover,
.category-nav a.active {
    color: var(--white);
    background: var(--blue);
    border-color: var(--blue);
}

/* =========================================================
   SERVICES SECTION
========================================================= */

.services-section {
    padding: 65px 0 80px;
}

.services-container {
    display: flex;
    flex-direction: column;
    gap: 78px;
}

.service-category-section {
    scroll-margin-top: 155px;
}

.service-category-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 28px;
}

.service-category-heading {
    max-width: 720px;
}

.service-category-heading h2 {
    margin-bottom: 9px;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.service-category-heading p {
    color: var(--muted);
    font-size: 0.95rem;
}

.service-category-number {
    color: var(--orange);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

/* =========================================================
   SERVICE GRID
========================================================= */

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

/* =========================================================
   SERVICE CARD
========================================================= */

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.service-card:hover {
    border-color: rgba(0, 87, 184, 0.2);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* =========================================================
   SERVICE CARD IMAGE
========================================================= */

.service-image {
    position: relative;
    height: 210px;
    overflow: hidden;
    background: var(--light);
}

.service-image img {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition:
        opacity 0.35s ease,
        transform 0.5s ease;
}

.service-image.image-loaded img {
    opacity: 1;
}

.service-card:hover .service-image.image-loaded img {
    transform: scale(1.045);
}

/* =========================================================
   SERVICE IMAGE LOADING SHIMMER
========================================================= */

.service-image-loader {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            90deg,
            #eef2f7 0%,
            #f8fafc 35%,
            #eef2f7 65%,
            #f8fafc 100%
        );
    background-size: 400% 100%;
    animation: serviceSkeletonShimmer 1.45s ease-in-out infinite;
}

.service-image.image-loaded .service-image-loader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.service-image::after {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(
        180deg,
        transparent 60%,
        rgba(0, 0, 0, 0.1)
    );
    content: "";
    pointer-events: none;
}

.service-image.image-error::after {
    display: none;
}

/* =========================================================
   SERVICE IMAGE FALLBACK
========================================================= */

.service-image.image-error .service-image-loader {
    display: none;
}

.service-image-fallback {
    position: absolute;
    inset: 0;
    z-index: 4;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    color: var(--white);
    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(255, 255, 255, 0.14),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            var(--blue),
            var(--blue-dark)
        );
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    text-align: center;
}

/* =========================================================
   SERVICE CONTENT
========================================================= */

.service-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 23px;
}

.service-category-tag {
    align-self: flex-start;
    display: inline-flex;
    margin-bottom: 11px;
    padding: 6px 10px;
    color: var(--blue);
    background: var(--blue-light);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.service-content h3 {
    margin-bottom: 10px;
    font-size: 1.18rem;
}

.service-description {
    margin-bottom: 19px;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.7;
}

/* =========================================================
   SERVICE PRICING
========================================================= */

.service-pricing {
    margin-top: auto;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.service-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.service-price-label {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-price {
    color: var(--blue);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: right;
}

.service-unit {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.service-pricing-note {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.5;
}

.service-minimum {
    margin-top: 7px;
    color: var(--text);
    font-size: 0.75rem;
    font-weight: 600;
}

/* =========================================================
   DISCOUNT BADGE
========================================================= */

.service-discount {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 6px 9px;
    color: var(--success);
    background: var(--success-light);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
}

.service-discount::before {
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    content: "";
}

/* =========================================================
   TIERED PRICING
========================================================= */

.service-tier-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 11px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.service-tier {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 0.72rem;
}

.service-tier-range {
    font-weight: 600;
}

.service-tier-price {
    color: var(--text);
    font-weight: 800;
}

/* =========================================================
   SERVICE FOOTER
========================================================= */

.service-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 4px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--blue);
    font-size: 0.85rem;
    font-weight: 800;
    transition:
        gap var(--transition),
        color var(--transition);
}

.service-link::after {
    content: "→";
    font-size: 1rem;
}

.service-link:hover {
    gap: 10px;
    color: var(--orange-dark);
}

/* =========================================================
   CUSTOM / NO FIXED PRICE
========================================================= */

.service-custom-price {
    color: var(--blue);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1rem;
    font-weight: 800;
}

.service-custom-price-description {
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.75rem;
}

/* =========================================================
   SERVICE CARD SKELETON
========================================================= */

.service-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    width: 100%;
}

.service-skeleton-card {
    overflow: hidden;
    min-width: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.service-skeleton-image {
    width: 100%;
    height: 210px;
    background:
        linear-gradient(
            90deg,
            #eef2f7 0%,
            #f8fafc 35%,
            #eef2f7 65%,
            #f8fafc 100%
        );
    background-size: 400% 100%;
    animation: serviceSkeletonShimmer 1.45s ease-in-out infinite;
}

.service-skeleton-content {
    padding: 23px;
}

.service-skeleton-line,
.service-skeleton-price {
    background:
        linear-gradient(
            90deg,
            #eef2f7 0%,
            #f8fafc 35%,
            #eef2f7 65%,
            #f8fafc 100%
        );
    background-size: 400% 100%;
    animation: serviceSkeletonShimmer 1.45s ease-in-out infinite;
}

.service-skeleton-line {
    height: 12px;
    margin-bottom: 12px;
    border-radius: 999px;
}

.service-skeleton-line.short {
    width: 38%;
    height: 10px;
}

.service-skeleton-line.medium {
    width: 68%;
}

.service-skeleton-line.long {
    width: 94%;
}

.service-skeleton-line.description {
    width: 88%;
}

.service-skeleton-price {
    width: 56%;
    height: 43px;
    margin-top: 22px;
    border-radius: var(--radius-md);
}

@keyframes serviceSkeletonShimmer {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

/* =========================================================
   SERVICES DATA STATES
========================================================= */

.services-data-state {
    width: 100%;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.services-data-state h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.services-data-state p {
    max-width: 500px;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 0.88rem;
}

/* =========================================================
   LEGACY LOADING STATE
========================================================= */

#servicesLoadingState {
    display: none !important;
}

.state-spinner {
    width: 40px;
    height: 40px;
    margin-bottom: 18px;
    border: 3px solid var(--border);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: serviceSpinner 0.8s linear infinite;
}

@keyframes serviceSpinner {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================================
   STATE ICON
========================================================= */

.state-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 17px;
    color: var(--blue);
    background: var(--blue-light);
    border-radius: 50%;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
}

.error-state .state-icon {
    color: var(--danger);
    background: var(--danger-light);
}

/* =========================================================
   PRICING INFORMATION
========================================================= */

.pricing-information {
    padding: 10px 0 80px;
}

.pricing-information-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 30px;
    background: var(--blue-light);
    border: 1px solid rgba(0, 87, 184, 0.12);
    border-radius: var(--radius-lg);
}

.pricing-information-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: var(--blue);
    border-radius: 50%;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
}

.pricing-information-content h2 {
    margin-bottom: 8px;
    font-size: 1.45rem;
}

.pricing-information-content p {
    max-width: 760px;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.7;
}

/* =========================================================
   CTA
========================================================= */

.services-cta {
    padding: 0 0 90px;
}

.cta-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    padding: 48px;
    background: linear-gradient(
        135deg,
        var(--blue-dark),
        var(--blue)
    );
    border-radius: var(--radius-xl);
}

.cta-card::before {
    position: absolute;
    top: -120px;
    right: -80px;
    width: 300px;
    height: 300px;
    border: 60px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    content: "";
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
}

.cta-content .section-label {
    color: var(--white);
}

.cta-content h2 {
    margin-bottom: 13px;
    color: var(--white);
    font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.cta-content p {
    max-width: 600px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
}

.cta-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    flex-shrink: 0;
    gap: 10px;
}

.cta-actions .primary-button {
    color: var(--blue);
    background: var(--white);
    box-shadow: none;
}

.cta-actions .primary-button:hover {
    color: var(--orange-dark);
    background: var(--orange-light);
}

.cta-actions .secondary-button {
    color: var(--white);
    background: transparent;
    border-color: rgba(255, 255, 255, 0.35);
}

.cta-actions .secondary-button:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    padding: 70px 0 25px;
    background: #081426;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    max-width: 360px;
}

.footer-logo {
    display: inline-flex;
    margin-bottom: 20px;
}

.footer-logo img {
    width: auto;
    height: 44px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.88rem;
    line-height: 1.75;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
}

.footer-column h3 {
    margin-bottom: 8px;
    color: var(--white);
    font-size: 0.9rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.82rem;
    transition:
        color var(--transition),
        transform var(--transition);
}

.footer-column a:hover {
    color: var(--white);
    transform: translateX(2px);
}

.footer-bottom {
    padding-top: 24px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.76rem;
}

/* =========================================================
   REVEAL ANIMATION
========================================================= */

.reveal {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.65s ease,
        transform 0.65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   SERVICE CARD ANIMATION
========================================================= */

.service-card {
    animation: serviceCardAppear 0.5s ease both;
}

@keyframes serviceCardAppear {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   FOCUS STATES
========================================================= */

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(255, 122, 0, 0.4);
    outline-offset: 3px;
}

/* =========================================================
   LARGE TABLET
========================================================= */

@media (max-width: 1050px) {

    .hero-grid {
        grid-template-columns: 1fr 0.85fr;
        gap: 45px;
    }

    .hero-content h1 {
        font-size: clamp(2.4rem, 5vw, 3.8rem);
    }

    .service-grid,
    .service-skeleton-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1.4fr repeat(3, 1fr);
        gap: 30px;
    }
}

/* =========================================================
   TABLET / MOBILE NAV
========================================================= */

@media (max-width: 850px) {

    .container {
        width: min(calc(100% - 30px), var(--container));
    }

    .header-inner {
        min-height: 70px;
    }

    .brand-logo {
        height: 42px;
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 1px);
        right: 15px;
        left: 15px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 10px;
        background: var(--white);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-md);
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        justify-content: flex-start;
        width: 100%;
        min-height: 46px;
        padding: 0 14px;
    }

    .main-nav a.active::after {
        display: none;
    }

    .main-nav .nav-cta {
        margin: 5px 0 0;
        justify-content: center;
    }

    .category-navigation {
        top: 70px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        max-width: 760px;
    }

    .hero-image {
        min-height: 360px;
    }

    .hero-image img {
        min-height: 360px;
    }

    .service-category-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .cta-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 600px;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    html {
        scroll-padding-top: 125px;
    }

    .container {
        width: min(calc(100% - 24px), var(--container));
    }

    .services-hero {
        padding: 55px 0 60px;
    }

    .hero-content h1 {
        font-size: 2.35rem;
    }

    .hero-content > p {
        font-size: 0.94rem;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .primary-button,
    .hero-actions .secondary-button {
        width: 100%;
    }

    .hero-image {
        min-height: 280px;
        border-radius: var(--radius-lg);
    }

    .hero-image img {
        min-height: 280px;
    }

    .services-intro {
        padding: 65px 0 40px;
    }

    .intro-content h2 {
        font-size: 1.9rem;
    }

    .category-navigation {
        top: 70px;
        padding: 10px 0;
    }

    .category-nav {
        gap: 6px;
    }

    .category-nav a {
        padding: 8px 13px;
        font-size: 0.75rem;
    }

    .services-section {
        padding: 48px 0 60px;
    }

    .services-container {
        gap: 55px;
    }

    .service-grid,
    .service-skeleton-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-image,
    .service-skeleton-image {
        height: 200px;
    }

    .service-content {
        padding: 19px;
    }

    .service-skeleton-content {
        padding: 19px;
    }

    .service-category-heading h2 {
        font-size: 1.55rem;
    }

    .services-data-state {
        min-height: 230px;
        padding: 30px 20px;
    }

    .pricing-information {
        padding-bottom: 60px;
    }

    .pricing-information-card {
        align-items: flex-start;
        padding: 23px;
    }

    .pricing-information-content h2 {
        font-size: 1.2rem;
    }

    .cta-card {
        padding: 30px 23px;
        border-radius: var(--radius-lg);
    }

    .cta-actions {
        width: 100%;
        flex-direction: column;
    }

    .cta-actions a {
        width: 100%;
    }

    .site-footer {
        padding-top: 55px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px 25px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .hero-content h1 {
        font-size: 2.05rem;
    }

    .service-image,
    .service-skeleton-image {
        height: 180px;
    }

    .service-price-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .service-price {
        text-align: left;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* =========================================================
   SERVICE SEARCH
========================================================= */

.service-search {
    width: 100%;
    max-width: 760px;
    margin: 40px auto 0;
}

.service-search-label {
    display: block;
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
}

.service-search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.service-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    color: #64748b;
    pointer-events: none;
    transform: translateY(-50%);
}

.service-search-icon svg {
    width: 20px;
    height: 20px;
}

.service-search-input {
    width: 100%;
    min-height: 58px;
    padding: 0 56px 0 52px;
    border: 1px solid #dbe3ec;
    border-radius: 14px;
    outline: none;
    background: #ffffff;
    color: #0f172a;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.4;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.service-search-input::placeholder {
    color: #94a3b8;
}

.service-search-input:hover {
    border-color: #cbd5e1;
}

.service-search-input:focus {
    border-color: #0057b8;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 87, 184, 0.1);
}

.service-search-clear {
    position: absolute;
    right: 13px;
    top: 50%;
    z-index: 3;
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #eef3f8;
    color: #475569;
    font-family: inherit;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.service-search-clear:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: translateY(-50%) scale(1.05);
}

.service-search-clear:active {
    transform: translateY(-50%) scale(0.95);
}

.service-search-clear.visible {
    display: flex;
}

.service-search-hint {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.5;
}

.service-search-results {
    min-height: 22px;
    margin-top: 8px;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.5;
}

.service-search-results:empty {
    display: none;
}


/* =========================================================
   SEARCH EMPTY STATE
========================================================= */

.search-empty-state {
    width: 100%;
    margin: 30px 0;
    padding: 50px 24px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
    text-align: center;
}

.search-empty-state .empty-state-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #eef5ff;
    color: #0057b8;
}

.search-empty-state .empty-state-icon svg {
    width: 30px;
    height: 30px;
}

.search-empty-state h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 1.2rem;
    font-weight: 700;
}

.search-empty-state p {
    max-width: 520px;
    margin: 0 auto 22px;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

.search-empty-state button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 10px;
    background: #0057b8;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.search-empty-state button:hover {
    background: #004494;
    box-shadow: 0 6px 16px rgba(0, 87, 184, 0.18);
    transform: translateY(-1px);
}

.search-empty-state button:active {
    transform: translateY(0);
}


/* =========================================================
   SERVICE SKELETON LOADING
========================================================= */

.service-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.service-skeleton-card {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.service-skeleton-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(
        90deg,
        #edf1f5 25%,
        #f8fafc 37%,
        #edf1f5 63%
    );
    background-size: 400% 100%;
    animation: serviceSkeletonShimmer 1.4s ease infinite;
}

.service-skeleton-content {
    padding: 22px;
}

.service-skeleton-line,
.service-skeleton-price,
.service-skeleton-button {
    background: linear-gradient(
        90deg,
        #edf1f5 25%,
        #f8fafc 37%,
        #edf1f5 63%
    );
    background-size: 400% 100%;
    animation: serviceSkeletonShimmer 1.4s ease infinite;
    border-radius: 7px;
}

.service-skeleton-line {
    height: 12px;
    margin-bottom: 12px;
}

.service-skeleton-line.short {
    width: 38%;
}

.service-skeleton-line.title {
    width: 68%;
    height: 20px;
    margin-bottom: 18px;
}

.service-skeleton-line.description {
    width: 92%;
}

.service-skeleton-line.medium {
    width: 72%;
}

.service-skeleton-price {
    width: 52%;
    height: 42px;
    margin-top: 24px;
    border-radius: 10px;
}

.service-skeleton-button {
    width: 44%;
    height: 40px;
    margin-top: 18px;
    border-radius: 10px;
}

@keyframes serviceSkeletonShimmer {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}


/* =========================================================
   HIDDEN UTILITY
========================================================= */

.hidden {
    display: none !important;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {
    .service-skeleton-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {
    .service-search {
        margin-top: 28px;
    }

    .service-search-label {
        font-size: 0.9rem;
    }

    .service-search-input {
        min-height: 54px;
        padding-left: 48px;
        padding-right: 52px;
        border-radius: 12px;
        font-size: 0.95rem;
    }

    .service-search-icon {
        left: 16px;
    }

    .service-search-clear {
        right: 10px;
        width: 34px;
        height: 34px;
    }

    .service-search-hint {
        font-size: 0.82rem;
    }

    .service-search-results {
        font-size: 0.82rem;
    }

    .search-empty-state {
        margin: 24px 0;
        padding: 40px 18px;
        border-radius: 14px;
    }

    .search-empty-state h3 {
        font-size: 1.1rem;
    }

    .search-empty-state p {
        font-size: 0.9rem;
    }

    .service-skeleton-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-skeleton-image {
        height: 200px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
    .service-skeleton-image,
    .service-skeleton-line,
    .service-skeleton-price,
    .service-skeleton-button {
        animation: none;
    }

    .service-search-input,
    .service-search-clear,
    .search-empty-state button {
        transition: none;
    }
}