/* Tav Landing Page — all rules are scoped to .tav-lp */
.tav-lp,
.tav-lp * {
    box-sizing: border-box;
}
.tav-lp {
    --tav-bg: #f7f3ed;
    --tav-cream: #f1ebe2;
    --tav-ink: #373432;
    --tav-muted: #77716b;
    --tav-line: #bdb4aa;
    --tav-radius: 20px;
    width: 100%;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    direction: rtl;
    color: var(--tav-ink);
    background:
        radial-gradient(ellipse at 2% 12%, rgba(255,255,255,.9) 0, rgba(255,255,255,0) 24%),
        radial-gradient(ellipse at 96% 30%, rgba(174,158,140,.12) 0, rgba(174,158,140,0) 18%),
        var(--tav-bg);
    font-family: "TavIranSans", Tahoma, Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.tav-lp a {
    color: inherit;
    text-decoration: none;
}
.tav-lp button {
    font: inherit;
}
.tav-lp-section {
    width: min( calc(100% - 64px), 864px );
    margin-inline: auto;
}
.tav-lp-hero {
    min-height: 396px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 56px 24px 40px;
    background:
        radial-gradient(ellipse at 98% 42%, rgba(139,126,111,.13) 0, rgba(139,126,111,0) 15%),
        radial-gradient(ellipse at 85% 12%, rgba(130,117,101,.10) 0, rgba(130,117,101,0) 17%),
        linear-gradient(112deg, #eee6dc 0%, #f8f4ee 49%, #eae2d8 100%);
}
.tav-lp-hero::before {
    content: "";
    pointer-events: none;
    position: absolute;
    inset: 0;
    opacity: .42;
    background:
        linear-gradient(90deg, transparent 0 8%, rgba(255,255,255,.42) 8.2% 8.6%, transparent 9% 23%, rgba(255,255,255,.28) 23.2% 23.7%, transparent 24%),
        radial-gradient(ellipse at 90% 80%, rgba(111,98,83,.08), transparent 29%);
}
.tav-lp-hero-inner {
    z-index: 1;
    position: relative;
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.tav-lp-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}
.tav-lp-wordmark {
    font-family: "Times New Roman", Georgia, serif;
    font-size: clamp(72px, 9vw, 112px);
    line-height: .86;
    letter-spacing: -6px;
    font-weight: 400;
    color: #373635;
}
.tav-lp-persian-wordmark {
    display: block;
    font-size: 22px;
    line-height: 1.3;
    letter-spacing: .02em;
    margin-top: 10px;
}
.tav-lp-brand-subtitle {
    display: block;
    font-family: Arial, sans-serif;
    font-size: 12px;
    letter-spacing: .28em;
    margin-top: 15px;
    color: #68625c;
}
.tav-lp-logo-image {
    display: block;
    width: auto;
    max-width: min(260px, 62vw);
    max-height: 170px;
    object-fit: contain;
}
.tav-lp-intro-rule {
    display: block;
    width: 48px;
    height: 1px;
    margin-bottom: 22px;
    background: #b6aca1;
}
.tav-lp-intro {
    font-size: clamp(15px, 1.9vw, 19px);
    font-weight: 500;
    line-height: 1.85;
    white-space: normal;
    margin: 0;
    max-width: 480px;
    color: #45413d;
}
.tav-lp-contact-section {
    margin-top: 36px;
}
.tav-lp-contact-shell {
    min-height: 172px;
    display: flex;
    align-items: center;
    position: relative;
    padding: 16px 34px;
    border-radius: 42px;
    background: rgba(239, 233, 225, .62);
}
.tav-lp-contact-viewport {
    min-width: 0;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    direction: ltr; /* Explicit LTR scrolling avoids negative/edge scrollLeft behavior in iOS Safari. */
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.tav-lp-contact-viewport::-webkit-scrollbar {
    display: none;
}
.tav-lp-contact-track {
    width: 100%;
    display: flex;
    align-items: stretch;
    direction: ltr;
    gap: 4px;
}
.tav-lp-contact-viewport, .tav-lp-contact-track { -webkit-tap-highlight-color: transparent; }
.tav-lp-contact-card {
    flex: 1 0 calc(25% - 4px);
    min-width: 0;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 3px 5px 7px;
    border-radius: 20px;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    transition: background-color .2s ease, transform .2s ease;
    outline-offset: -3px;
}
.tav-lp-contact-card:hover,
.tav-lp-contact-card:focus-visible,
.tav-lp-contact-card.is-active {
    background: rgba(255,255,255,.36);
}
.tav-lp-contact-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    margin-bottom: 2px;
    background: #b9aa99;
    color: #fff;
}
.tav-contact-instagram .tav-lp-contact-icon { background: #a88f8b; }
.tav-contact-email .tav-lp-contact-icon { background: #909486; }
.tav-contact-bale .tav-lp-contact-icon { background: #8a9caf; }
.tav-lp-contact-icon svg {
    display: block;
    width: 31px;
    height: 31px;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}
.tav-lp-contact-icon .tav-icon-fill { fill: currentColor; stroke: none; }
.tav-lp-contact-icon .tav-icon-solid { fill: currentColor; stroke: none; }
.tav-lp-contact-icon .tav-icon-cut { fill: none; stroke: #8a9caf; stroke-width: 1.7; }
.tav-lp-contact-title {
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
}
.tav-lp-contact-subtitle {
    max-width: 100%;
    font-size: 12px;
    line-height: 1.55;
    color: #716b65;
    overflow-wrap: anywhere;
    text-align: center;
}
.tav-lp-arrow {
    position: absolute;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 27px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #46413d;
    cursor: pointer;
}
.tav-lp-arrow-prev { left: 7px; }
.tav-lp-arrow-next { right: 7px; }
.tav-lp-arrow svg {
    display: block;
    width: 23px;
    height: 23px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}
.tav-lp-arrow:focus-visible,
.tav-lp-dot:focus-visible {
    outline: 2px solid #817163;
    outline-offset: 3px;
}
.tav-lp-contact-dots {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 17px;
}
.tav-lp-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #dfdbd5;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}
.tav-lp-dot.is-active {
    background: #494744;
    transform: scale(1.06);
}
.tav-lp-map-section {
    margin-top: 28px;
}
.tav-lp-map-heading,
.tav-lp-section-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
    margin: 0 auto 20px;
}
.tav-lp-map-heading span,
.tav-lp-section-heading span {
    display: block;
    width: min(13vw, 110px);
    height: 1px;
    background: #b8afa5;
}
.tav-lp-map-heading h2,
.tav-lp-section-heading h2 {
    font-size: 20px;
    line-height: 1.4;
    margin: 0;
    font-weight: 600;
    color: #46413d;
}
.tav-lp-map-frame {
    position: relative;
    height: clamp(220px, 25.5vw, 262px);
    overflow: hidden;
    border-radius: 18px;
    background:
        linear-gradient(35deg, rgba(202,213,198,.8), rgba(235,231,224,.85)),
        #e9e6e0;
}
.tav-lp-map-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    filter: saturate(.68) contrast(.96);
}
.tav-lp-map-open {
    position: absolute;
    left: 18px;
    top: 16px;
    max-width: calc(100% - 36px);
    min-width: 230px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 13px;
    border: 1px solid rgba(80,70,60,.09);
    border-radius: 10px;
    background: rgba(255,253,250,.94);
    box-shadow: 0 4px 14px rgba(58,48,38,.10);
    backdrop-filter: blur(6px);
}
.tav-lp-map-pin {
    width: 32px;
    height: 32px;
    display: grid;
    flex: 0 0 32px;
    place-items: center;
    border-radius: 50%;
    background: #363431;
    color: #fff;
}
.tav-lp-map-pin svg { width: 19px; height: 19px; stroke-width: 1.7; }
.tav-lp-map-open > span:nth-child(2) {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}
.tav-lp-map-open strong {
    font-size: 12px;
    font-weight: 600;
}
.tav-lp-map-open small {
    max-width: 100%;
    color: #77706a;
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tav-lp-map-open-label {
    color: #78685b;
    font-size: 11px;
    white-space: nowrap;
}
.tav-lp-gallery-section {
    margin-top: 50px;
}
.tav-lp-section-heading {
    margin-bottom: 22px;
}
.tav-lp-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr 1.28fr .58fr;
    grid-template-rows: clamp(120px, 15vw, 194px) clamp(120px, 15vw, 194px);
    gap: 9px;
    direction: ltr;
}
.tav-lp-gallery-item {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    margin: 0;
    border-radius: 9px;
    background: #e3d9cd;
}
.tav-lp-gallery-item-1 { grid-column: 1; grid-row: 1 / 3; }
.tav-lp-gallery-item-2 { grid-column: 2; grid-row: 1 / 3; }
.tav-lp-gallery-item-3 { grid-column: 3; grid-row: 1; }
.tav-lp-gallery-item-4 { grid-column: 3; grid-row: 2; }
.tav-lp-gallery-item-5 { grid-column: 4; grid-row: 1 / 3; }
/* Adapt the gallery to the actual number of uploaded images; do not leave empty grid tracks. */
.tav-lp-gallery-count-1 { grid-template-columns: minmax(0, 520px); grid-template-rows: clamp(220px, 28vw, 320px); justify-content: center; }
.tav-lp-gallery-count-1 .tav-lp-gallery-item-1 { grid-column: 1; grid-row: 1; }
.tav-lp-gallery-count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: clamp(220px, 28vw, 320px); }
.tav-lp-gallery-count-2 .tav-lp-gallery-item-1,
.tav-lp-gallery-count-2 .tav-lp-gallery-item-2 { grid-column: auto; grid-row: 1; }
.tav-lp-gallery-count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: clamp(180px, 23vw, 260px); }
.tav-lp-gallery-count-3 .tav-lp-gallery-item-1,
.tav-lp-gallery-count-3 .tav-lp-gallery-item-2,
.tav-lp-gallery-count-3 .tav-lp-gallery-item-3 { grid-column: auto; grid-row: 1; }
.tav-lp-gallery-count-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: clamp(160px, 20vw, 230px); }
.tav-lp-gallery-count-4 .tav-lp-gallery-item-1,
.tav-lp-gallery-count-4 .tav-lp-gallery-item-2,
.tav-lp-gallery-count-4 .tav-lp-gallery-item-3,
.tav-lp-gallery-count-4 .tav-lp-gallery-item-4 { grid-column: auto; grid-row: 1; }
.tav-lp-gallery-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
@media (hover: hover) and (pointer: fine) {
    .tav-lp-gallery-item:hover .tav-lp-gallery-image { transform: scale(1.025); }
}
.tav-lp-footer {
    min-height: 145px;
    margin-top: 40px;
    padding: 24px 20px 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    color: #827a72;
    position: relative;
    background:
        radial-gradient(ellipse at 3% 100%, rgba(209,197,184,.44) 0, rgba(209,197,184,0) 34%),
        radial-gradient(ellipse at 100% 110%, rgba(201,189,176,.43) 0, rgba(201,189,176,0) 34%);
}
.tav-lp-footer::before {
    content: "";
    position: absolute;
    inset: auto -5% -68px -5%;
    height: 112px;
    border-radius: 50% 50% 0 0 / 38% 38% 0 0;
    background: rgba(220,211,201,.35);
    transform: rotate(-2deg);
    pointer-events: none;
}
.tav-lp-footer span {
    height: 1px;
    width: 55px;
    background: #a9a096;
    z-index: 1;
}
.tav-lp-footer p {
    z-index: 1;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
    letter-spacing: .25em;
    direction: ltr;
}
@media (max-width: 700px) {
    .tav-lp-section { width: calc(100% - 32px); }
    .tav-lp-hero { min-height: 345px; padding: 45px 22px 34px; }
    .tav-lp-brand { margin-bottom: 25px; }
    .tav-lp-wordmark { font-size: 86px; }
    .tav-lp-brand-subtitle { font-size: 10px; margin-top: 12px; }
    .tav-lp-intro-rule { margin-bottom: 17px; }
    .tav-lp-intro { font-size: 16px; line-height: 1.8; }
    .tav-lp-contact-section { margin-top: 22px; }
    .tav-lp-contact-shell { min-height: 164px; padding: 10px 25px; border-radius: 28px; }
    .tav-lp-contact-track {
        width: max-content;
        gap: 6px;
        /* Let the first and last card reach the center of the viewport on iOS as well as Android. */
        padding-left: max(0px, calc((100vw - 82px - clamp(126px, 36vw, 160px)) / 2));
        padding-right: max(0px, calc((100vw - 82px - clamp(126px, 36vw, 160px)) / 2));
    }
    .tav-lp-contact-card { flex: 0 0 clamp(126px, 36vw, 160px); min-height: 136px; }
    .tav-lp-contact-icon { width: 58px; height: 58px; }
    .tav-lp-contact-icon svg { width: 27px; height: 27px; }
    .tav-lp-contact-title { font-size: 14px; }
    .tav-lp-contact-subtitle { font-size: 11px; }
    .tav-lp-arrow-prev { left: 1px; }
    .tav-lp-arrow-next { right: 1px; }
    .tav-lp-map-section { margin-top: 28px; }
    .tav-lp-map-heading, .tav-lp-section-heading { gap: 18px; margin-bottom: 17px; }
    .tav-lp-map-heading h2, .tav-lp-section-heading h2 { font-size: 17px; }
    .tav-lp-map-heading span, .tav-lp-section-heading span { width: 58px; }
    .tav-lp-map-frame { height: 230px; border-radius: 14px; }
    .tav-lp-map-open { left: auto; top: auto; right: 9px; bottom: 9px; width: auto; min-width: 0; max-width: calc(100% - 18px); gap: 7px; padding: 7px 10px; border-radius: 999px; }
    .tav-lp-map-open > span:nth-child(2) { display: none; }
    .tav-lp-map-pin { width: 27px; height: 27px; flex-basis: 27px; }
    .tav-lp-map-open-label { display: inline; font-size: 11px; }
    .tav-lp-gallery-section { margin-top: 36px; }
    .tav-lp-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, 145px); grid-auto-flow: row; gap: 7px; }
    .tav-lp-gallery-item-1 { grid-column: 1; grid-row: 1 / 3; }
    .tav-lp-gallery-item-2 { grid-column: 2; grid-row: 1 / 3; }
    .tav-lp-gallery-item-3 { grid-column: 1; grid-row: 3; }
    .tav-lp-gallery-item-4 { grid-column: 2; grid-row: 3; }
    .tav-lp-gallery-item-5 { display: none; }
    .tav-lp-gallery-count-1 { grid-template-columns: minmax(0, 1fr); grid-template-rows: 190px; }
    .tav-lp-gallery-count-1 .tav-lp-gallery-item-1 { grid-column: 1; grid-row: 1; }
    .tav-lp-gallery-count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 145px; }
    .tav-lp-gallery-count-2 .tav-lp-gallery-item-1,
    .tav-lp-gallery-count-2 .tav-lp-gallery-item-2 { grid-column: auto; grid-row: 1; }
    .tav-lp-gallery-count-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, 145px); }
    .tav-lp-gallery-count-3 .tav-lp-gallery-item-1 { grid-column: 1; grid-row: 1 / 3; }
    .tav-lp-gallery-count-3 .tav-lp-gallery-item-2 { grid-column: 2; grid-row: 1; }
    .tav-lp-gallery-count-3 .tav-lp-gallery-item-3 { grid-column: 2; grid-row: 2; }
    .tav-lp-gallery-count-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, 145px); }
    .tav-lp-gallery-count-4 .tav-lp-gallery-item-1,
    .tav-lp-gallery-count-4 .tav-lp-gallery-item-2,
    .tav-lp-gallery-count-4 .tav-lp-gallery-item-3,
    .tav-lp-gallery-count-4 .tav-lp-gallery-item-4 { grid-column: auto; grid-row: auto; }
    .tav-lp-footer { min-height: 115px; margin-top: 28px; gap: 14px; padding-bottom: 45px; }
    .tav-lp-footer p { font-size: 10px; letter-spacing: .19em; }
    .tav-lp-footer span { width: 30px; }
}
@media (max-width: 380px) {
    .tav-lp-contact-card { flex-basis: 126px; }
    .tav-lp-map-open-label { display: none; }
    .tav-lp-gallery { grid-template-rows: repeat(3, 120px); }
    .tav-lp-gallery-count-1 { grid-template-rows: 160px; }
    .tav-lp-gallery-count-2 { grid-template-rows: 120px; }
    .tav-lp-gallery-count-3,
    .tav-lp-gallery-count-4 { grid-template-rows: repeat(2, 120px); }
}
@media (prefers-reduced-motion: reduce) {
    .tav-lp *, .tav-lp *::before, .tav-lp *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
