/* ARKANAT Website 2.0 — Phase 14.3
   Service detail UX / terminology migration
   Scope: single service pages only. */

.ark-service-detail {
    --ark-red: #8f1018;
    --ark-red-dark: #731017;
    --ark-gold: #d2ad58;
    --ark-ink: #151515;
    --ark-copy: #56504b;
    --ark-soft: #f7f4ef;
    --ark-line: #e8e0d7;
    --ark-white: #fff;
    background: #fff;
    color: var(--ark-ink);
    overflow: hidden;
}

.ark-service-detail * { box-sizing: border-box; }
.ark-service-detail button,
.ark-service-detail a { -webkit-tap-highlight-color: transparent; }

.ark-service-breadcrumb .bread-info h2 { text-transform: none; }

/* Phase 14.3.1 — service image + full-width breadcrumb hardening */
body.ark20-inner .ark-service-breadcrumb {
    width: 100%;
    max-width: none;
    margin: 0;
    background-size: cover !important;
    background-position: center 42% !important;
    background-repeat: no-repeat !important;
}

body.ark20-inner .ark-service-breadcrumb .breadcrumb-info {
    width: 100%;
}


.ark-service-hero {
    padding: 82px 0 76px;
    background: linear-gradient(180deg, #fff 0%, #fbf9f6 100%);
}

.ark-service-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
    gap: 68px;
    align-items: center;
}

.ark-service-hero-copy { max-width: 680px; }
.ark-service-kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--ark-red);
    font-size: 12px;
    line-height: 1.5;
    font-weight: 700;
    letter-spacing: .02em;
}

.ark-service-badge {
    display: inline-flex;
    align-items: center;
    margin-inline-start: 10px;
    padding: 5px 9px;
    border: 1px solid #e5d8c8;
    background: #fff;
    color: #5c5247;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
}

.ark-service-hero h1,
.ark-service-section-head h2,
.ark-service-section-copy h2,
.ark-service-delivery-intro h2,
.ark-service-cta h2 {
    margin: 0;
    color: var(--ark-ink);
    font-weight: 800;
    letter-spacing: -.025em;
}

.ark-service-hero h1 {
    max-width: 700px;
    font-size: clamp(38px, 4.2vw, 64px);
    line-height: 1.03;
}

.ark-service-lead {
    max-width: 650px;
    margin: 24px 0 0;
    color: var(--ark-copy);
    font-size: 17px;
    line-height: 1.95;
}

.ark-service-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.ark-service-primary,
.ark-service-secondary,
.ark-service-cta-btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 700;
    transition: .2s ease;
    cursor: pointer;
}

.ark-service-primary,
.ark-service-cta-btn {
    border: 1px solid var(--ark-red);
    background: var(--ark-red);
    color: #fff;
}

.ark-service-primary:hover,
.ark-service-cta-btn:hover {
    background: var(--ark-red-dark);
    border-color: var(--ark-red-dark);
    color: #fff;
}

.ark-service-secondary {
    border: 1px solid #d9cbc0;
    background: transparent;
    color: var(--ark-red);
}

.ark-service-secondary:hover {
    border-color: var(--ark-red);
    color: var(--ark-red);
}

.ark-service-hero-media {
    position: relative;
    width: 100%;
    max-width: 520px;
    height: 390px;
    min-height: 390px;
    justify-self: end;
    isolation: isolate;
}

[dir="rtl"] .ark-service-hero-media { justify-self: start; }

.ark-service-hero-media img {
    position: absolute;
    z-index: 2;
    inset-block: 0;
    inset-inline-start: 0;
    width: calc(100% - 24px);
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    display: block;
    background: #f0e7dc;
}

.ark-service-hero-frame {
    position: absolute;
    z-index: 1;
    inset: 22px 0 0 24px;
    border: 1px solid #d8c6b6;
    background: #f0e7dc;
}

[dir="rtl"] .ark-service-hero-frame { inset: 22px 24px 0 0; }

.ark-service-scope { padding: 82px 0; background: #fff; }
.ark-service-scope-grid {
    display: grid;
    grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr);
    gap: 72px;
    align-items: start;
}

.ark-service-section-copy h2,
.ark-service-section-head h2,
.ark-service-delivery-intro h2 {
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.12;
}

.ark-service-section-copy p,
.ark-service-section-head p {
    margin: 16px 0 0;
    color: var(--ark-copy);
    line-height: 1.9;
    font-size: 14px;
}

.ark-service-scope-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--ark-line);
    border-inline-start: 1px solid var(--ark-line);
}

.ark-service-scope-item {
    min-height: 94px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-inline-end: 1px solid var(--ark-line);
    border-bottom: 1px solid var(--ark-line);
}

.ark-service-scope-item span {
    flex: 0 0 auto;
    color: var(--ark-gold);
    font-size: 10px;
    font-weight: 700;
}

.ark-service-scope-item strong {
    color: var(--ark-ink);
    font-size: 14px;
    line-height: 1.55;
}

.ark-service-drivers { padding: 82px 0; background: var(--ark-soft); }
.ark-service-section-head { max-width: 760px; margin-bottom: 34px; }
.ark-service-driver-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ark-line); border-inline-start: 1px solid var(--ark-line); }
.ark-service-driver-card { min-height: 220px; padding: 28px 24px; border-inline-end: 1px solid var(--ark-line); border-bottom: 1px solid var(--ark-line); background: rgba(255,255,255,.55); }
.ark-service-driver-icon { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 28px; background: #fff; color: var(--ark-red); border: 1px solid var(--ark-line); }
.ark-service-driver-card h3 { margin: 0; font-size: 16px; line-height: 1.35; font-weight: 800; }
.ark-service-driver-card p { margin: 11px 0 0; color: var(--ark-copy); font-size: 12px; line-height: 1.8; }

.ark-service-delivery { padding: 72px 0; background: linear-gradient(100deg, #8d0f18, #a21b20); color: #fff; }
.ark-service-delivery-grid { display: grid; grid-template-columns: minmax(250px, .72fr) minmax(0, 1.28fr); gap: 60px; align-items: center; }
.ark-service-delivery .ark-service-kicker { color: #e7c66f; }
.ark-service-delivery-intro h2 { color: #fff; }
.ark-service-delivery-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-inline-start: 1px solid rgba(255,255,255,.17); }
.ark-service-delivery-step { min-height: 178px; padding: 10px 26px; border-inline-end: 1px solid rgba(255,255,255,.17); }
.ark-service-delivery-step > span { display: inline-block; margin-bottom: 28px; color: #e7c66f; font-size: 11px; font-weight: 700; }
.ark-service-delivery-step h3 { margin: 0; color: #fff; font-size: 15px; line-height: 1.4; font-weight: 800; }
.ark-service-delivery-step p { margin: 10px 0 0; color: rgba(255,255,255,.78); font-size: 11px; line-height: 1.75; }

.ark-service-environments { padding: 76px 0; background: #fff; }
.ark-service-env-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 980px; }
.ark-service-env-chip { min-height: 58px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--ark-line); color: #332e29; font-size: 13px; font-weight: 700; }
.ark-service-env-chip i { color: var(--ark-gold); font-size: 10px; }

.ark-service-governance { padding: 0 0 76px; background: #fff; }
.ark-service-governance-box { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; align-items: start; padding: 24px 26px; border: 1px solid #e3d5c5; background: #fbf7f1; }
.ark-service-governance-icon { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid #e3d5c5; color: var(--ark-red); }
.ark-service-governance-box strong { display: block; margin-bottom: 6px; color: var(--ark-red); font-size: 12px; }
.ark-service-governance-box p { margin: 0; color: #5d544b; font-size: 12px; line-height: 1.85; }

.ark-service-related { padding: 78px 0; background: var(--ark-soft); }
.ark-service-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ark-service-related-card { min-height: 142px; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; border: 1px solid var(--ark-line); background: #fff; color: var(--ark-ink); }
.ark-service-related-card:hover { border-color: #ccb293; color: var(--ark-ink); transform: translateY(-2px); }
.ark-service-related-card strong { font-size: 16px; line-height: 1.4; }
.ark-service-related-card span { margin-top: 20px; color: var(--ark-red); font-size: 11px; font-weight: 700; }
.ark-service-related-card b { font-weight: 400; }

.ark-service-cta { padding: 50px 0; background: #151515; border-bottom: 2px solid var(--ark-red); }
.ark-service-cta-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 38px; align-items: center; }
.ark-service-cta .ark-service-kicker { color: #d9b85f; margin-bottom: 8px; }
.ark-service-cta h2 { color: #fff; font-size: clamp(25px, 2.6vw, 36px); line-height: 1.2; }
.ark-service-cta p { max-width: 800px; margin: 10px 0 0; color: rgba(255,255,255,.67); font-size: 12px; line-height: 1.8; }
.ark-service-cta-btn { min-width: 180px; background: #d3b15f; border-color: #d3b15f; color: #181818; }
.ark-service-cta-btn:hover { background: #e0c477; border-color: #e0c477; color: #181818; }

[dir="rtl"] .ark-service-detail,
[dir="rtl"] .ark-service-detail p,
[dir="rtl"] .ark-service-detail h1,
[dir="rtl"] .ark-service-detail h2,
[dir="rtl"] .ark-service-detail h3,
[dir="rtl"] .ark-service-detail strong,
[dir="rtl"] .ark-service-detail span { text-align: right; }

@media (max-width: 991px) {
    .ark-service-hero { padding: 58px 0; }
    .ark-service-hero-grid,
    .ark-service-scope-grid,
    .ark-service-delivery-grid { grid-template-columns: 1fr; gap: 38px; }
    .ark-service-hero-media { max-width: 620px; height: 360px; min-height: 360px; justify-self: start; }
    .ark-service-hero-media img { height: 100%; }
    .ark-service-driver-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ark-service-env-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .ark-service-hero { padding: 42px 0 48px; }
    .ark-service-hero-grid { gap: 30px; }
    .ark-service-badge { display: flex; width: fit-content; margin: 4px 0 0; }
    [dir="rtl"] .ark-service-badge { margin-right: 0; }
    .ark-service-hero h1 { margin-top: 14px; font-size: 35px; line-height: 1.08; }
    .ark-service-lead { margin-top: 18px; font-size: 14px; line-height: 1.9; }
    .ark-service-actions { margin-top: 24px; }
    .ark-service-primary,
    .ark-service-secondary { width: 100%; }
    .ark-service-hero-media { width: 100%; max-width: none; height: clamp(240px, 68vw, 330px); min-height: 240px; }
    .ark-service-hero-media img { width: calc(100% - 14px); height: 100%; }
    .ark-service-hero-frame { inset: 14px 0 0 14px; }
    [dir="rtl"] .ark-service-hero-frame { inset: 14px 14px 0 0; }
    .ark-service-scope,
    .ark-service-drivers,
    .ark-service-environments,
    .ark-service-related { padding: 56px 0; }
    .ark-service-scope-grid { gap: 28px; }
    .ark-service-section-copy h2,
    .ark-service-section-head h2,
    .ark-service-delivery-intro h2 { font-size: 29px; }
    .ark-service-scope-list { grid-template-columns: 1fr; }
    .ark-service-scope-item { min-height: 72px; }
    .ark-service-driver-grid { grid-template-columns: 1fr; }
    .ark-service-driver-card { min-height: 170px; }
    .ark-service-delivery { padding: 56px 0; }
    .ark-service-delivery-grid { gap: 32px; }
    .ark-service-delivery-steps { grid-template-columns: 1fr; border-inline-start: 0; }
    .ark-service-delivery-step { min-height: auto; padding: 22px 0; border-inline-end: 0; border-top: 1px solid rgba(255,255,255,.17); }
    .ark-service-delivery-step > span { margin-bottom: 12px; }
    .ark-service-env-grid,
    .ark-service-related-grid { grid-template-columns: 1fr; }
    .ark-service-governance { padding-bottom: 56px; }
    .ark-service-governance-box { grid-template-columns: 38px minmax(0, 1fr); padding: 20px; }
    .ark-service-governance-icon { width: 36px; height: 36px; }
    .ark-service-cta { padding: 42px 0; }
    .ark-service-cta-inner { grid-template-columns: 1fr; gap: 24px; }
    .ark-service-cta-btn { width: 100%; }
}

@media (max-width: 420px) {
    .ark-service-hero h1 { font-size: 31px; }
    .ark-service-env-chip { font-size: 12px; }
}


/* Phase 14.3.2 — responsive regression hardening */
body.ark20-inner .ark-service-breadcrumb{inline-size:100%;max-inline-size:none;overflow:hidden}
.ark-service-detail,.ark-service-detail section{max-inline-size:100%}
.ark-service-detail .container{min-width:0}
@media (max-width:700px){body.ark20-inner .ark-service-breadcrumb{min-height:170px}}
