/*
 * Services page hero: heading (one word in Sentient italic, written *word*), dark + orange buttons,
 * and tabs of service cards (Design Services / Our Development Services / AI Development …).
 * templates/pages/services.php (s1_hero) + dd_service_tabs() in inc/service-tabs.php, which loads this file.
 * The cards themselves use the Design Services section's styles (.dservices-section__list / __item).
 * 1rem = 10px. Layouts: phone < 834px, tablet 834–1439px, desktop 1440px+.
 */

.hero-section_tabs {
    --tabs-ink: #063771; /* brand navy (logo colour) — heading + "Book a call" button */
    --tabs-muted: #2c3449;
    --tabs-accent: #c86405;
    --tabs-bg: #f5f3ee;
    background: var(--tabs-bg);
}

/* The pricing hero's decorations (circles, phone background picture) are not part of this design. */
.hero-section_tabs:before,
.hero-section_tabs:after {
    display: none;
}

/* Heading, text and buttons centred on every screen. */
.hero-section_tabs .page-title,
.hero-section_tabs .hero-section__txt {
    text-align: center;
    color: var(--tabs-ink);
}

.hero-section_tabs .page-title {
    font-family: Inter, sans-serif;
    font-size: 3.6rem;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero-section_tabs .page-title em {
    font-family: 'Sentient Variable', serif;
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.03em;
}

.hero-section_tabs .hero-section__txt {
    margin-bottom: 3.2rem;
    font-size: 1.6rem;
    line-height: 1.5;
    color: #161b26; /* subtitle stays black; only the heading + button are navy */
}

/* Buttons: side by side, centred. */
.hero-section_tabs .hero-section__btngroup {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
}

.hero-section_tabs .hero-section__btngroup .btn {
    width: auto;
}

.hero-section_tabs .hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
    padding: 1.6rem 3.2rem;
    border: 0;
    border-radius: 10rem;
    box-shadow: none;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: background 0.2s ease-out, box-shadow 0.2s ease-out;
}

.hero-section_tabs .hero-btn_dark,
.hero-section_tabs .hero-btn_dark:focus {
    background: var(--tabs-ink);
    color: #ffffff !important;
}

.hero-section_tabs .hero-btn_dark:hover {
    background: #2c3449;
    box-shadow: 0 0 0 6px rgba(22, 27, 38, 0.15);
}

.hero-section_tabs .hero-btn_orange,
.hero-section_tabs .hero-btn_orange:focus {
    background: var(--brand-orange, #DC5930);
    color: #ffffff !important;
}

.hero-section_tabs .hero-btn_orange:hover {
    background: #b8461f;
    box-shadow: 0 0 0 6px rgba(220, 89, 48, 0.25);
}

/* White arrow on the orange button (whatever the Customizer arrow colour is). */
.hero-section_tabs .hero-btn_orange.btn-primary_arrow:after {
    background: #ffffff !important;
    min-width: 2rem;
    width: 2rem;
    height: 2rem;
}

/* Tabs: one centred row on a thin line; the open tab is underlined. */
.service-tabs {
    margin-top: 6rem;
}

.service-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 1.6rem;
    border-bottom: 1px solid rgba(22, 27, 38, 0.12);
}

.service-tabs__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0;
    padding: 1.2rem 0.8rem 1.4rem;
    border: 0;
    background: none;
    color: var(--tabs-muted, #2c3449);
    font: inherit;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: normal;
    text-transform: none; /* The theme styles every <button> in capitals. */
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s ease-out;
}

.service-tabs__btn:after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--tabs-accent, #c86405);
    transform: scaleX(0);
    transition: transform 0.2s ease-out;
}

.service-tabs__btn:hover,
.service-tabs__btn.is-active {
    color: var(--tabs-ink, #161b26);
}

.service-tabs__btn.is-active:after {
    transform: scaleX(1);
}

/* No theme button glow after a click; keyboard users get the outline below. */
.service-tabs__btn:focus,
.service-tabs__btn:active {
    box-shadow: none;
    outline: none;
}

.service-tabs__btn:focus-visible {
    outline: 2px solid var(--tabs-ink, #161b26);
    outline-offset: 2px;
    border-radius: 0.4rem;
}

.service-tabs__icon {
    display: block;
    width: 2rem;
    height: 2rem;
    object-fit: contain;
}

/* The open tab: optional heading, then the cards (same grid as the Design Services section). */
.service-tabs__panel {
    padding-top: 4.8rem;
}

.service-tabs__title.section-title {
    margin-bottom: 3.2rem;
    text-align: left;
}

@media (min-width: 834px) {
    .hero-section_tabs .page-title {
        font-size: 5.2rem;
    }

    .hero-section_tabs .hero-section__txt {
        margin-bottom: 4.8rem;
        font-size: 1.8rem;
    }

    .service-tabs {
        margin-top: 8rem;
    }

    .service-tabs__btn {
        font-size: 1.6rem;
    }

    .service-tabs__panel {
        padding-top: 6rem;
    }

    .service-tabs__title.section-title {
        margin-bottom: 6rem;
    }
}

@media (min-width: 1440px) {
    .hero-section_tabs .page-title {
        font-size: 6.4rem;
    }

    .service-tabs__nav {
        gap: 0 2.4rem;
    }
}

/* Style "Mockup grid": large rounded mockups, 1 / 2 / 3 columns, heading and short text below. */
.mockup-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.2rem 2rem;
}

.mockup-grid__item {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.mockup-grid__img {
    display: block;
    position: relative;
    aspect-ratio: 3 / 2;
    border-radius: 1.6rem;
    overflow: hidden;
    background: #e9e6df;
}

.mockup-grid__img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease-out;
}

a.mockup-grid__item:hover .mockup-grid__img img {
    transform: scale(1.04);
}

.mockup-grid__name {
    margin-top: 2rem;
    color: #161b26;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

a.mockup-grid__item:hover .mockup-grid__name {
    color: var(--brand-orange, #DC5930);
}

.mockup-grid__txt {
    margin-top: 0.8rem;
    color: #585a61;
    font-size: 1.6rem;
    line-height: 1.5;
}

a.mockup-grid__item:focus-visible {
    outline: 2px solid #161b26;
    outline-offset: 4px;
    border-radius: 1.6rem;
}

@media (min-width: 834px) {
    .mockup-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem 2.4rem;
    }

    .mockup-grid__name {
        font-size: 2.4rem;
    }
}

@media (min-width: 1440px) {
    .mockup-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4.8rem 3.2rem;
    }
}
