/* Services page styles — mobile-first, CSS Grid & Flexbox
   Clean, production-ready, and commented for maintainability
*/

:root {
    --bg: #fbf7f2;
    /* warm ivory */
    --card: #ffffff;
    --text: #2b2b2b;
    /* charcoal */
    --muted: #6b6b6b;
    --accent: #b5733a;
    /* muted terracotta / bronze */
    --shadow: 0 10px 30px rgba(33, 33, 33, 0.06);
    --radius: 12px;
    --transition: 0.28s ease;
}

.base-font-override {
    /* intentionally kept for reference */
}

/* Base page layout */
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 0;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--text);
}

/* Hero */
.services-hero {
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
    padding: 140px 0 64px;
    background-image: url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.services-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.35));
}

.services-hero .hero-inner {
    position: relative;
    z-index: 2;
    color: #fff;
}

.hero-title {
    font-size: clamp(1.6rem, 4.5vw, 2.8rem);
    margin: 6px 0 8px;
    letter-spacing: 0.6px;
    color: #fff;
}

.hero-sub {
    font-size: clamp(0.9rem, 2.1vw, 1.15rem);
    opacity: 0.95;
    max-width: 700px;
    color: #fff;
}

.breadcrumb {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

/* Overview */
.services-overview .intro {
    text-align: center;
    max-width: 840px;
    margin: 10px auto 18px;
    color: var(--muted);
    font-size: clamp(0.95rem, 1.6vw, 1.05rem);
}

.divider {
    height: 1px;
    width: 60px;
    background: var(--accent);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* Core Services Grid */
.core-services h2 {
    text-align: center;
    margin-top: 6px;
}

.core-services .sub {
    text-align: center;
    color: var(--muted);
    margin-bottom: 18px;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    justify-items: center;
}

.service-card {
    background: var(--card);
    padding: 28px 22px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 340px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 4px;
    background: transparent;
    border-radius: 2px;
    transition: background var(--transition), width var(--transition);
}

.service-card:hover::before {
    background: var(--accent);
    width: 72px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.12);
    border-color: rgba(181, 115, 58, 0.12);
}

.service-card .icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(181, 115, 58, 0.12), rgba(182, 120, 64, 0.06));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
    border: 2px solid rgba(181, 115, 58, 0.06);
}

.service-card .icon svg {
    width: 36px;
    height: 36px;
    color: var(--accent);
    fill: currentColor;
}

.service-card h3 {
    margin: 6px 0 8px;
    font-size: 1.05rem;
}

.service-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Detailed services alternating layout */
.detailed-services {
    margin-top: 28px;
    display: grid;
    gap: 26px;
}

.detail-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: center;
    background: transparent;
}

.detail-media img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    box-shadow: var(--shadow);
}

.detail-content h3 {
    margin-top: 0;
}

.detail-content p {
    color: var(--muted);
}

.detail-content ul {
    margin: 12px 0 14px;
    padding-left: 20px;
    color: var(--muted);
}

.detail-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--text);
    color: var(--text);
    padding: 8px 14px;
    border-radius: 8px;
}

/* reverse (image on right for large screens) */
.detail-item.reverse {}

/* Turnkey timeline */
.turnkey h2 {
    margin-bottom: 6px;
}

.timeline {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: flex;
    gap: 12px;
    flex-direction: column;
}

.timeline li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--card);
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.timeline .step {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    font-weight: 600;
}

.timeline .desc {
    display: block;
    color: var(--muted);
    font-size: 0.95rem;
}

/* Why choose grid */
.why-choose h2 {
    margin-bottom: 10px;
}

.choose-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.choose-card {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #fff;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.tick {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
}

.muted {
    color: var(--muted);
    font-size: 0.95rem;
}

/* Pricing */
.pricing p {
    max-width: 780px;
    color: var(--muted);
}

/* CTA */
.services-cta {
    position: relative;
    padding: 36px 0;
    background: var(--accent);
    color: #fff;
    margin-top: 26px;
}

.services-cta .cta-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.06;
}

.services-cta .cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px 0;
}

.btn.large {
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
}

.btn-primary {
    background: var(--text);
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
}

.btn-primary:hover {
    opacity: 0.95;
    transform: translateY(-3px);
}

/* Responsive: medium screens */
@media (min-width:700px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-item {
        grid-template-columns: 1fr 1fr;
    }

    .detail-item.reverse {
        grid-template-columns: 1fr 1fr;
    }

    .choose-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Responsive: large screens */
@media (min-width:1100px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
    }

    .detail-item {
        gap: 30px;
    }

    .detailed-services {
        gap: 34px;
    }

    .timeline {
        flex-direction: row;
    }

    .timeline li {
        flex: 1;
    }
}

/* Small polish */
.fade-in {
    animation: fadeInUp 0.7s ease both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}