/* Shani Food / Agency Network — scoped to /agency/ only.
   Same typography, red / paper / dark palette and page-shell language as the theme. */
.agency-page {
    --agency-red: #ed2939;
    --agency-burgundy: #a70a28;
    --agency-night: #1d1c1c;
    --agency-ink: #252222;
    --agency-muted: #807975;
    --agency-paper: #f8f5f1;
    --agency-stroke: rgba(37,34,34,.105);
    background: var(--agency-paper);
}
.agency-page .agency-main { overflow: visible; color: var(--agency-ink); }
.agency-page .agency-container { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.agency-page .agency-main *, .agency-page .agency-main *::before, .agency-page .agency-main *::after { box-sizing: border-box; }
.agency-page .agency-main svg { width: 24px; height: 24px; }
.agency-page .agency-main button, .agency-page .agency-main input, .agency-page .agency-main select { font: inherit; }
.agency-page .agency-main a { text-decoration: none; }
.agency-hero { position: relative; isolation: isolate; min-height: 650px; background: radial-gradient(circle at 10% 17%,rgba(255,255,255,.12),transparent 30%), linear-gradient(121deg,#a60a25 4%,#d91835 54%,#f03d44 100%); color: #fff; overflow: hidden; }
.agency-hero__pattern { position: absolute; inset: 0; pointer-events: none; opacity: .21; background-image: radial-gradient(rgba(255,255,255,.37) .8px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(90deg,transparent 4%,#000 90%); }
.agency-hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 2rem; padding-block: clamp(145px,11vw,184px) 126px; }
.agency-hero__copy { position: relative; z-index: 3; }
.agency-hero__eyebrow { display: inline-flex; align-items: center; gap: 12px; direction: ltr; letter-spacing: .2em; font-size: 11px; font-weight: 700; color: rgba(255,255,255,.82); }
.agency-hero__eyebrow span:first-child { display: block; width: 30px; height: 1px; background: #fff; opacity: .72; }
.agency-hero h1 { margin: 25px 0 7px; font-size: clamp(50px,5.25vw,80px); line-height: 1.23; letter-spacing: -.035em; font-weight: 900; color: #fff; }
.agency-hero__headline { margin: 0 0 21px; font-size: clamp(23px,2.1vw,33px); font-weight: 350; line-height: 1.8; color: rgba(255,255,255,.93); }
.agency-hero__headline strong { font-weight: 850; color: #fff; }
.agency-hero__description { max-width: 490px; font-size: 15px; line-height: 2.2; color: rgba(255,255,255,.77); margin: 0 0 32px; }
.agency-hero__explore { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; background: #fff; color: #af0d29!important; font-size: 13px; font-weight: 800; padding: 14px 21px 14px 14px; min-height: 52px; border-radius: 10px; box-shadow: 0 20px 45px rgba(64,0,20,.19); transition: transform .25s ease, box-shadow .25s ease; }
.agency-hero__explore svg { width: 18px!important; height: 18px!important; transition: transform .25s ease; }
.agency-hero__explore:hover { transform: translateY(-3px); box-shadow: 0 24px 48px rgba(64,0,20,.28); }
.agency-hero__explore:hover svg { transform: translateY(3px); }
.agency-hero__visual { position: relative; height: min(40vw,440px); min-height: 365px; display: flex; align-items: center; justify-content: center; }
.agency-hero__visual-glow { position: absolute; width: 76%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle,rgba(255,220,214,.35),transparent 67%); filter: blur(12px); }
.agency-hero__visual::before { content: ''; position: absolute; width: 93%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.agency-hero__map-outline { position: absolute; inset: 17px 4%; border-radius: 50%; border: 1px dashed rgba(255,255,255,.19); transform: rotate(-20deg); }
.agency-hero__iran { position: relative; width: 91%; height: auto; max-height: 440px; object-fit: contain; filter: drop-shadow(0 26px 42px rgba(67,0,23,.17)); transform: rotate(-5deg); }
.agency-hero__map-orbit { position: absolute; width: 5px; height: 5px; border: 1px solid rgba(255,255,255,.85); border-radius: 50%; }
.agency-hero__map-orbit--one { right: 7%; top: 23%; }
.agency-hero__map-orbit--two { left: 8%; bottom: 26%; }
.agency-hero__map-dot { position: absolute; width: 11px; height: 11px; background: #fff; border: 3px solid rgba(255,255,255,.25); box-shadow: 0 0 0 9px rgba(255,255,255,.10); border-radius: 50%; }
.agency-hero__map-dot--one { left: 46%; top: 25%; }
.agency-hero__map-dot--two { right: 25%; bottom: 29%; }
.agency-hero__map-dot--three { left: 32%; bottom: 38%; }
.agency-hero__map-caption { position: absolute; bottom: 0; left: 0; direction: ltr; font-size: 10px; letter-spacing: .23em; color: rgba(255,255,255,.68); display: flex; gap: 11px; align-items: center; }
.agency-hero__map-caption > span[aria-hidden="true"] { font-size: 17px; color: #fff; }
.agency-hero__oversized { position: absolute; left: 0; bottom: 20px; font-size: clamp(80px,18vw,280px); font-weight: 950; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.065); line-height: .7; pointer-events: none; letter-spacing: -.09em; }
.agency-hero__bottom { position: absolute; bottom: -2px; inset-inline: 0; height: 48px; background: var(--agency-paper); clip-path: polygon(0 100%,100% 100%,100% 0,0 100%); }
.agency-directory { background: var(--agency-paper); padding: 76px 0 120px; }
.agency-results__top { display: flex; align-items: center; gap: 22px; margin: 0 0 23px; }
.agency-results__top p { margin: 0; color: #706864; font-size: 13px; white-space: nowrap; }
.agency-results__top strong { font-size: 20px; font-weight: 850; color: var(--agency-red); padding-inline-end: 4px; font-variant-numeric: tabular-nums; }
.agency-results__line { height: 1px; background: #ddd5cc; flex: 1; }
.agency-results__hint { direction: ltr; color: #a9a098; font-size: 10px; letter-spacing: .1em; white-space: nowrap; }
.agency-results__hint > span[aria-hidden="true"] { color: #b9273d; font-size: 18px; vertical-align: middle; margin-inline-start: 6px; }
.agency-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); grid-auto-rows: 1fr; align-items: stretch; gap: 19px; }
.agency-card { position: relative; min-width: 0; height: 100%; display: flex; flex-direction: column; padding: 27px 26px 25px; overflow: visible; border: 1px solid #e9e1d9; border-radius: 17px; background: #fff; box-shadow: 0 12px 35px rgba(29,23,22,.025); transition: transform .3s ease,box-shadow .3s ease,border-color .3s ease; }
.agency-card::before { border-radius: 17px 17px 0 0; content: ''; position: absolute; top: 0; right: 0; width: 100%; height: 3px; background: linear-gradient(90deg,transparent,var(--agency-red)); opacity: 0; transition: opacity .3s ease; }
.agency-card:hover, .agency-card:focus-within { z-index: 5; }
.agency-card:hover { transform: translateY(-5px); border-color: #e9c7c2; box-shadow: 0 24px 50px rgba(80,29,28,.085); }
.agency-card:hover::before { opacity: 1; }
.agency-card__identity { display: flex; align-items: center; justify-content: space-between; gap: 17px; min-height: 58px; }
.agency-card__identity-copy { flex: 1 1 auto; min-width: 0; }
.agency-card__pin { flex: 0 0 48px; background: #fff0ef; color: var(--agency-red); width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.agency-card__pin svg { width: 26px!important; height: 26px!important; }
.agency-card__location { margin: 0 0 5px; color: #cf2340; font-size: 12px; font-weight: 750; }
.agency-card h3 { margin: 0; font-size: clamp(18px,1.45vw,22px); font-weight: 850; color: #262121; line-height: 1.65; overflow-wrap: anywhere; }
.agency-card__rule { display: block; width: 35px; height: 2px; background: #e9d5d2; margin: 23px 0 19px; }
.agency-card__details { display: grid; gap: 15px; margin: 0 0 24px; }
.agency-card__details div { display: grid; grid-template-columns: 75px 1fr; column-gap: 8px; align-items: start; }
.agency-card__details dt { font-size: 11px; font-weight: 650; color: #918781; line-height: 1.9; }
.agency-card__details dd { margin: 0; color: #4d4542; font-size: 12.5px; line-height: 1.95; font-weight: 650; overflow-wrap: anywhere; }
.agency-card__details dd a { color: inherit; }
.agency-card__details dd a:hover { color: #bc1630; }
.agency-card__phone { unicode-bidi: isolate; text-align: right; direction: ltr; justify-self: start; font-variant-numeric: tabular-nums; }
.agency-card__actions { display: flex; gap: 10px; align-items: center; margin-top: auto; padding-top: 19px; border-top: 1px solid #f0eae6; }
.agency-card__call { display: inline-flex; flex: 1; justify-content: space-between; align-items: center; min-height: 45px; gap: 10px; padding: 10px 15px; border-radius: 9px; background: #f7f2ef; color: #292323!important; font-size: 12px; font-weight: 800; transition: background .2s,color .2s; }
.agency-card__call svg { width: 18px!important; height: 18px!important; color: #c52a3e; }
.agency-card__call:hover { background: var(--agency-red); color: #fff!important; }
.agency-card__call:hover svg { color: #fff; }
.agency-card__map { position: relative; flex: 0 0 45px; height: 45px; display: flex; align-items: center; justify-content: center; border: 1px solid #eee5df; border-radius: 9px; color: #a91e34!important; transition: background .2s; }
.agency-card__map svg { width: 19px!important; height: 19px!important; }

.agency-card__map:hover, .agency-card__map:focus-visible { background: #fff0ef; border-color: #efa8ad; outline: none; }
.agency-card__map:focus-visible { box-shadow: 0 0 0 3px rgba(237,41,57,.13); }
.agency-card__map-tooltip { pointer-events: none; position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translate(-50%,7px); opacity: 0; visibility: hidden; border-radius: 10px; padding: 9px 13px; white-space: nowrap; color: #fff; background: #292323; box-shadow: 0 10px 30px rgba(30,22,22,.19); font-size: 11px; font-weight: 750; line-height: 1.5; transition: opacity .19s ease,transform .19s ease,visibility .19s ease; z-index: 20; }
.agency-card__map-tooltip::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: #292323; }
.agency-card__map:hover .agency-card__map-tooltip, .agency-card__map:focus-visible .agency-card__map-tooltip { transform: translate(-50%,0); opacity: 1; visibility: visible; }

.agency-card[hidden], .agency-empty[hidden] { display: none!important; }
.agency-empty { text-align: center; padding: clamp(48px,7vw,85px) 24px; margin-top: 8px; background: #fff; border: 1px dashed #e2d8d0; border-radius: 17px; }
.agency-empty__icon { display: inline-flex; align-items: center; justify-content: center; width: 88px; height: 88px; border-radius: 50%; background: #fff0ef; color: #e42b42; margin-bottom: 17px; }
.agency-empty__icon svg { width: 50px!important; height: 50px!important; }
.agency-empty h3 { margin: 0 0 10px; font-size: 23px; color: #292323; font-weight: 850; }
.agency-empty p { margin: 0; font-size: 13px; color: #77706a; line-height: 2;text-align: center !important; }
@media (max-width: 1050px) {
    .agency-hero__inner { gap: 0; grid-template-columns: 1fr .85fr; }
    .agency-hero__visual { min-height: 300px; }
    .agency-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
} 
@media (max-width: 760px) {
    
    
    .agency-hero__explore {
    display: none;
}
    
    .agency-hero__description {
    margin: 0 0 0px;
}
    .agency-page .agency-container { width: min(100% - 36px,600px); margin-bottom: unset; }
    .agency-hero { min-height: auto; }
    .agency-hero__inner { display: flex; flex-direction: column; align-items: stretch; padding-block: 135px 82px; }
    .agency-hero h1 { font-size: clamp(41px,9vw,62px); margin-top: 17px; }
    .agency-hero__headline { font-size: clamp(20px,5.5vw,29px); }
    .agency-hero__description { font-size: 13px; }
    .agency-hero__visual { height: 250px; min-height: 250px; max-width: 400px; width: 100%; margin: 24px auto 0; }
    .agency-hero__iran { max-height: 240px; width: 84%; }
    .agency-hero__map-caption { left: 8%; font-size: 9px; }
    .agency-hero__map-dot { width: 8px; height: 8px; }
    .agency-directory { padding: 52px 0 78px; }
    .agency-grid { grid-template-columns: 1fr; gap: 14px; }
    .agency-card { padding: 24px; }
    .agency-results__top { margin-top: 0; }
    .agency-results__hint { display: none; }
}
@media (max-width: 390px) {
    .agency-card__details div { grid-template-columns: 65px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .agency-page .agency-main *, .agency-page .agency-main *::before, .agency-page .agency-main *::after { transition-duration: .01ms!important; animation-duration: .01ms!important; scroll-behavior: auto!important; }
}

.agency-container {
    margin-bottom: 75px;
}
