
:root {
    --navy: #0a1124;
    --red: #d61e26;
    --text: #3b4555b2;
    --white: #ffffff;
    --border: #dadee7;
    --bg-light: #f8f9fb;

    /* Flair accents */
    --hover-glow: rgba(14, 30, 55, 0.12);
}
.header-spacer {
    height: 95px;
}

.icon-wrap img{
    height: 60px;
    width: 60px;
}

.red-text {
    color: var(--red);
}

/* Page Header */
.services-header {
    text-align: center;
    margin: 1rem auto 2rem auto;
    max-width: 600px;
    animation: fadeIn 0.7s ease forwards;
}

.service-categories-container {
    font-family: 'Inter', sans-serif;
    background: var(--white);
    margin: 0;
    padding: 0;
    color: var(--text);

}

.services-header h1 {
    font-size: clamp(1.4rem, 0.9961rem + 0.1028vw, 2.4rem);
    color: var(--navy);
    font-weight: 700;
    font-style: italic;
    margin-block-start: .4rem;
}

.services-header p {
    color: var(--text);
    font-family: "Lato", Verdana, Geneva, Tahoma, sans-serif;
    font-weight: 300;
}

/* Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    padding: 0 2rem 3rem 2rem;
    max-width: 1200px;
    margin: auto;
}

/* Card */
.service-box {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 16px;
    text-decoration: none;
    color: var(--navy);
    transition: all 0.35s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Gradient sheen on hover */
.service-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: 0.35s;
    z-index: 0;
}

.service-box:hover::before {
    opacity: 0.06;
}

.service-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 20px var(--hover-glow);
    border-color: var(--navy);
}

/* Icons with flair */
.icon-wrap {
    margin-bottom: 1rem;
    padding: 10px;
    display: flex;
    align-items: self-start;
    justify-content: flex-start;
}

.icon-wrap svg {
    width: 100%;
    height: 100%;
    stroke: var(--navy);
    stroke-width: 1.8;
}

/* Text */
.service-box h3 {
    font-size: 1.35rem;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--navy);
    position: relative;
    z-index: 1;
}

.service-box p {
    font-size: 0.96rem;
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

/* Fancy underline animation */
.link-arrow {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
    margin-top: auto;
    width: fit-content;
    position: relative;
    z-index: 1;
}

.link-arrow::after {
    content: "";
    width: 0;
    height: 2px;
    background: var(--red);
    position: absolute;
    left: 0;
    bottom: -2px;
    transition: width 0.3s ease;
}

.service-box:hover .link-arrow::after {
    width: 100%;
}

.service-box:hover .link-arrow {
    color: var(--red);
}

/* Fade-in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile */
@media (max-width: 480px) {
    .service-box {
        padding: 1.6rem;
    }
}
