/* ==========================================================================
   areas-we-serve.php — page-only styles. Loaded after theme.css.
   Prefix: ar-
   ========================================================================== */

/* ---------- hero ---------- */
.ar-hero__grid-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    color: #fff;
    opacity: .12;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 75%);
    mask-image: linear-gradient(100deg, transparent 30%, #000 75%);
}
.ar-hero__grid { display: grid; gap: var(--ph-s-7); align-items: center; }
@media (min-width: 992px) { .ar-hero__grid { grid-template-columns: 1.1fr .9fr; } }
.ar-hero .ph-hero__eyebrow i { color: var(--ph-on-red-soft); }
.ar-hero h1 em { font-style: italic; font-weight: 500; color: #fff; position: relative; white-space: nowrap; }
.ar-hero h1 em::after {           /* double rule from the logo, under "Patna" */
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -.04em;
    height: .13em;
    border-top: .055em solid currentColor;
    border-bottom: .022em solid currentColor;
}

.ar-hero__visual {
    position: relative;
    width: min(100%, 460px);
    margin-inline: auto;
    padding: 18px;
}
.ar-hero__visual::before {          /* dashed "radius" ring around the disc */
    content: "";
    position: absolute;
    inset: 0;
    border: 2px dashed rgba(255,255,255,.45);
    border-radius: 50%;
}
.ar-hero__disc {
    position: relative;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid var(--ph-cream);
    box-shadow: var(--ph-shadow-lg);
    background: var(--ph-tint);
}
.ar-hero__disc img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }

.ar-pin {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: .4em;
    padding: .4em .85em;
    background: var(--ph-paper);
    color: var(--ph-ink);
    border-radius: var(--ph-r-pill);
    box-shadow: var(--ph-shadow-md);
    font-size: var(--ph-fs-sm);
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}
.ar-pin i { color: var(--ph-red); }
.ar-pin--1 { top: 6%; left: -2%; }
.ar-pin--2 { top: 30%; right: -4%; }
.ar-pin--3 { bottom: 26%; left: -6%; }
@media (max-width: 479.98px) {
    .ar-pin { font-size: var(--ph-fs-xs); }
    .ar-pin--1 { left: 0; }
    .ar-pin--2 { right: 0; }
    .ar-pin--3 { left: 0; }
    .ar-hero .ph-hero__eyebrow { letter-spacing: .08em; }
}
.ar-hero__tag { left: 50%; bottom: -14px; transform: translateX(-50%); white-space: nowrap; }

/* ---------- directory: search panel + cards ---------- */
.ar-dir { display: grid; gap: var(--ph-s-5); align-items: start; }
@media (min-width: 992px) {
    .ar-dir { grid-template-columns: 340px 1fr; gap: var(--ph-s-6); }
    .ar-search { position: sticky; top: calc(64px + 20px); }
}

.ar-search {
    background: var(--ph-ink);
    color: var(--ph-on-ink-soft);
    border-radius: var(--ph-r-xl);
    padding: clamp(1.25rem, 1rem + 1.2vw, 2rem);
    box-shadow: var(--ph-shadow-md);
}
.ar-search .ph-eyebrow { color: #F08A84; margin-bottom: .6rem; }
.ar-search h2 { color: #fff !important; font-size: var(--ph-fs-h3); margin-bottom: .4em !important; }
.ar-search > p { font-size: var(--ph-fs-sm); }

.ar-search__form { display: grid; gap: .6rem; margin-top: var(--ph-s-4); }
@media (min-width: 480px) and (max-width: 991.98px) { .ar-search__form { grid-template-columns: 1fr auto; } }
.ar-search__field { position: relative; }
.ar-search__field i {
    position: absolute;
    left: 16px; top: 50%;
    transform: translateY(-50%);
    color: var(--ph-muted);
    pointer-events: none;
}
.ar-search__input {
    width: 100%;
    min-height: 54px;
    padding: .7rem 1rem .7rem 44px;
    border: 2px solid transparent;
    border-radius: var(--ph-r-pill);
    background: var(--ph-paper);
    color: var(--ph-ink);
    font-family: var(--ph-font-body);
    font-size: 1rem;
    -webkit-appearance: none;
    appearance: none;
}
.ar-search__input::placeholder { color: #7A6D66; opacity: 1; }
.ar-search__input:focus { outline: none; border-color: #F08A84; box-shadow: 0 0 0 4px rgba(240,138,132,.3); }
.ar-search__input:focus-visible { outline: none; border-radius: var(--ph-r-pill); } /* the pill border + glow above is the focus style */
.ar-search__input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    width: 22px; height: 22px;
    cursor: pointer;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A11F25' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.ar-search__btn { min-height: 54px; }

.ar-search__result {
    margin-top: var(--ph-s-3);
    padding: .7rem .9rem;
    border-radius: var(--ph-r-md);
    background: rgba(255,255,255,.08);
    color: var(--ph-on-ink);
    font-size: var(--ph-fs-sm);
    font-weight: 600;
    line-height: 1.45;
}
.ar-search__result:empty { display: none; }
.ar-search__hint {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    margin: var(--ph-s-4) 0 0 !important;
    padding-top: var(--ph-s-4);
    border-top: 1px solid rgba(255,255,255,.12);
    font-size: var(--ph-fs-xs);
    line-height: 1.5;
}
.ar-search__hint i { color: #F08A84; margin-top: .2em; }

.ar-cards { display: grid; gap: var(--ph-s-3); }
@media (min-width: 600px) { .ar-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .ar-cards { grid-template-columns: repeat(3, 1fr); } }
.ar-card-item[hidden] { display: none; }

.ar-card {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: var(--ph-s-5);
    background: var(--ph-paper);
    border: 1px solid var(--ph-line);
    border-radius: var(--ph-r-lg);
    transition: transform .25s var(--ph-ease), box-shadow .25s var(--ph-ease), border-color .25s;
}
.ar-card::after {            /* logo double rule slides in on hover */
    content: "";
    position: absolute;
    left: var(--ph-s-5); right: var(--ph-s-5); top: 0;
    height: 6px;
    border-top: 3px solid var(--ph-red);
    border-bottom: 1px solid var(--ph-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--ph-ease);
}
.ar-card:hover { transform: translateY(-3px); box-shadow: var(--ph-shadow-md); border-color: var(--ph-tint-2); }
.ar-card:hover::after { transform: scaleX(1); }
.ar-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--ph-s-4); }
.ar-card__no { font-family: var(--ph-font-display); font-weight: 700; font-size: 1.25rem; color: var(--ph-tint-2); }
.ar-card h3 { font-size: 1.35rem; margin-bottom: .35em !important; }
.ar-card p { font-size: var(--ph-fs-sm); line-height: 1.55; margin-bottom: var(--ph-s-3) !important; }
.ar-card__link { margin-top: auto; font-size: var(--ph-fs-sm); }

@media (max-width: 599.98px) {
    /* phones: icon beside the title so twelve cards stay a short scroll */
    .ar-card { display: grid; grid-template-columns: auto 1fr; column-gap: var(--ph-s-4); padding: var(--ph-s-4) var(--ph-s-4) var(--ph-s-3); }
    .ar-card__top { grid-row: 1 / span 3; align-self: start; margin: 0; }
    .ar-card__top .ph-icon-badge { width: 44px; height: 44px; font-size: 1rem; }
    .ar-card__no { display: none; }
    .ar-card h3 { font-size: 1.2rem; margin-top: .35rem; }
    .ar-card p { margin-bottom: .1rem !important; }
    .ar-card::after { left: var(--ph-s-4); right: var(--ph-s-4); }
}

.ar-card--other { background: var(--ph-red); border-color: var(--ph-red); color: var(--ph-on-red-soft); }
.ar-card--other h3 { color: #fff !important; }
.ar-card--other .ph-icon-badge { background: rgba(255,255,255,.16); color: #fff; }
.ar-card--other .ar-card__no { color: rgba(255,255,255,.5); }
.ar-card--other .ar-card__link { color: #fff !important; }
.ar-card--other::after { border-color: #fff; }

.ar-empty {
    display: grid;
    justify-items: center;
    gap: var(--ph-s-3);
    padding: var(--ph-s-6) var(--ph-s-5);
    text-align: center;
    background: var(--ph-paper);
    border: 2px dashed var(--ph-tint-2);
    border-radius: var(--ph-r-lg);
}
.ar-empty[hidden] { display: none; }
.ar-empty__title { margin: 0 !important; font-weight: 700; font-size: var(--ph-fs-lg); color: var(--ph-ink); }

/* ---------- approach ---------- */
.ar-approach { display: grid; gap: var(--ph-s-4); }
@media (min-width: 900px) { .ar-approach { grid-template-columns: repeat(3, 1fr); gap: 0; } }
.ar-approach__item {
    position: relative;
    padding: var(--ph-s-6) var(--ph-s-5);
    text-align: center;
    background: var(--ph-cream);
    border-radius: var(--ph-r-lg);
}
@media (min-width: 900px) {
    .ar-approach__item { background: none; border-radius: 0; padding-block: var(--ph-s-4); }
    .ar-approach__item + .ar-approach__item { border-left: 1px solid var(--ph-line); }
}
.ar-approach__icon {
    display: inline-grid;
    place-items: center;
    width: 76px; height: 76px;
    margin-bottom: var(--ph-s-4);
    border-radius: 50%;
    background: var(--ph-tint);
    color: var(--ph-red);
    font-size: 1.7rem;
    box-shadow: 0 0 0 8px var(--ph-paper), 0 0 0 9px var(--ph-tint-2);
}
.ar-approach__item--mid .ar-approach__icon { background: var(--ph-red); color: #fff; }
.ar-approach__item h3 { font-size: var(--ph-fs-h3); margin-bottom: .35em !important; }
.ar-approach__item p { max-width: 34ch; margin-inline: auto !important; margin-bottom: 0 !important; }
@media (max-width: 899.98px) {
    .ar-approach__icon { box-shadow: 0 0 0 8px var(--ph-cream), 0 0 0 9px var(--ph-tint-2); }
}

/* ---------- 4 steps as a route ---------- */
.ar-start { display: grid; gap: var(--ph-s-6); align-items: start; }
@media (min-width: 992px) {
    .ar-start { grid-template-columns: .9fr 1.1fr; gap: var(--ph-s-8); }
    .ar-start__intro { position: sticky; top: calc(64px + 32px); }
}
.ar-start__intro .ph-lead { margin-bottom: var(--ph-s-5); }

.ar-route { position: relative; display: grid; gap: var(--ph-s-3); margin: 0 !important; padding: 0 !important; list-style: none; }
.ar-route::before {
    content: "";
    position: absolute;
    left: 31px; top: 32px; bottom: 32px;
    border-left: 2px dashed var(--ph-red);
    opacity: .45;
}
.ar-route__step {
    position: relative;
    display: flex;
    gap: var(--ph-s-4);
    align-items: center;
    padding: var(--ph-s-4) var(--ph-s-5) var(--ph-s-4) var(--ph-s-4);
}
.ar-route__step > div {
    flex: 1;
    padding: var(--ph-s-4) var(--ph-s-5);
    background: var(--ph-paper);
    border-radius: var(--ph-r-lg);
    box-shadow: var(--ph-shadow-sm);
}
.ar-route__step { padding: 0; }
.ar-route__dot {
    position: relative;
    z-index: 1;
    flex: none;
    width: 64px; height: 64px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--ph-red);
    color: #fff;
    font-family: var(--ph-font-display);
    font-size: 1.3rem;
    font-weight: 700;
    box-shadow: 0 0 0 6px var(--ph-tint);
}
.ar-route__step:last-child .ar-route__dot { background: var(--ph-ink); }
.ar-route__step h3 { font-size: 1.25rem; margin-bottom: .2em !important; }
.ar-route__step p { margin: 0; font-size: var(--ph-fs-sm); line-height: 1.5; }

/* ---------- CTA ---------- */
.ar-cta { display: grid; gap: var(--ph-s-5); align-items: center; }
.ar-cta::before {               /* oversized location pin watermark */
    content: "\f3c5";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    z-index: -1;
    right: -2%;
    bottom: -18%;
    font-size: 18rem;
    line-height: 1;
    color: rgba(255,255,255,.07);
}
.ar-cta__actions { display: grid; gap: var(--ph-s-3); }
@media (min-width: 992px) {
    .ar-cta { grid-template-columns: 1.2fr .8fr; gap: var(--ph-s-7); }
    .ar-cta__actions .ph-btn { width: 100%; }
}
.ar-cta__body p:last-child { margin-bottom: 0; }

/* balance multi-line display headings so a single word is not left alone (candidate for theme.css) */
.ph-body .ph-h2 { text-wrap: balance; }
