@charset "UTF-8";

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/inter-var-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/inter-var-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Noto Sans Armenian';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('../fonts/noto-sans-am-var-armenian.woff2') format('woff2');
    unicode-range: U+0308, U+0530-058F, U+2010, U+2024, U+25CC, U+FB13-FB17;
}

@font-face {
    font-family: 'Noto Sans Armenian';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('../fonts/noto-sans-am-var-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Noto Serif Armenian';
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url('../fonts/noto-serif-am-var-armenian.woff2') format('woff2');
    unicode-range: U+0308, U+0530-058F, U+2010, U+2024, U+25CC, U+FB13-FB17;
}

@font-face {
    font-family: 'Noto Serif Armenian';
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url('../fonts/noto-serif-am-var-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/playfair-var-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/playfair-var-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    /* Palette */
    --ivory: #faf6ef;
    --paper: #fffcf7;
    --white: #ffffff;
    --burgundy: #8c1d2f;
    --burgundy-dark: #6d1424;
    --burgundy-deep: #4d0e19;
    --burgundy-soft: #b35764;
    --charcoal: #2a2523;
    --ink: #332c28;
    --ink-soft: #5b5349;
    /* #6f665c (not #857b6f): keeps AA contrast >=4.5:1 on ivory/white cards */
    --ink-faint: #6f665c;
    --sand: #e7dcc9;
    --stone: #cfc2ab;
    --line: #e6ddcd;
    --line-strong: #d8cbb4;
    --gold: #b98a2f;
    --success: #2e6b3f;
    --error: #a02c2c;
    --whatsapp: #25d366;

    /* Typography */
    --font-display: 'Playfair Display', 'Noto Serif Armenian', 'Georgia', serif;
    --font-body: 'Inter', 'Noto Sans Armenian', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Layout */
    --container: 1160px;
    --container-narrow: 780px;
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;
    --radius-pill: 999px;

    /* Effects */
    --shadow-sm: 0 1px 2px rgba(42, 37, 35, 0.06), 0 4px 14px rgba(42, 37, 35, 0.05);
    --shadow-md: 0 6px 18px rgba(42, 37, 35, 0.09), 0 2px 6px rgba(42, 37, 35, 0.05);
    --shadow-lg: 0 18px 42px rgba(42, 37, 35, 0.14);
    --transition: 200ms ease;
    --transition-slow: 420ms cubic-bezier(0.22, 0.61, 0.36, 1);

    /* Fixed layout sizes */
    --header-height: 78px;
}

/* ---- Reset & base ------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 14px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background-color: var(--ivory);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-tap-highlight-color: rgba(140, 29, 47, 0.08);
}

body.menu-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

svg {
    display: block;
}

a {
    color: var(--burgundy);
    text-decoration: none;
}

a:hover {
    color: var(--burgundy-dark);
}

ul,
ol {
    padding: 0;
    margin: 0;
    list-style: none;
}

p {
    margin: 0 0 1rem;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 0.6rem;
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--charcoal);
    letter-spacing: 0.005em;
}

button {
    font-family: inherit;
}

input,
select,
textarea {
    font-family: inherit;
    font-size: 1rem;
}

[hidden] {
    display: none !important;
}

::selection {
    background: var(--burgundy);
    color: var(--white);
}

/* Visible focus states for keyboard users */
:focus-visible {
    outline: 3px solid rgba(140, 29, 47, 0.55);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---- Skip link ---------------------------------------------------------- */
.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 300;
    background: var(--charcoal);
    color: var(--white);
    padding: 0.7rem 1.2rem;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    transition: top var(--transition);
}

.skip-link:focus {
    top: 0;
    color: var(--white);
}

/* ---- Layout primitives -------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 2rem);
}

.container.narrow {
    max-width: var(--container-narrow);
}

.section {
    padding-block: clamp(3.2rem, 7vw, 5.6rem);
}

.section-alt {
    background: var(--paper);
    border-block: 1px solid var(--line);
}

.section-head {
    max-width: 640px;
    margin-bottom: clamp(1.8rem, 4vw, 2.8rem);
}

.section-title {
    font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--ink-soft);
    font-size: 1.05rem;
    margin: 0;
}

.section-cta {
    margin-top: clamp(1.6rem, 4vw, 2.4rem);
    text-align: center;
}

.section-note {
    margin-top: 1.4rem;
    color: var(--ink-soft);
    font-size: 0.92rem;
    border-left: 3px solid var(--sand);
    padding-left: 0.9rem;
}

.section-note-centered {
    max-width: 720px;
    margin-inline: auto;
    text-align: center;
    border-left: 0;
    padding-left: 0;
}

/* ---- Prose -------------------------------------------------------------- */
.prose {
    color: var(--ink-soft);
    max-width: 68ch;
}

.prose.lead {
    font-size: 1.12rem;
    color: var(--ink);
}

.prose a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---- Reveal on scroll (enabled only when JS runs) ----------------------- */
.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ---- Hero (homepage) ---------------------------------------------------- */
.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: min(88vh, 780px);
    min-height: min(88svh, 780px);
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: clamp(2.4rem, 6vw, 4.5rem);
    overflow: hidden;
    background: var(--burgundy-deep);
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 18, 16, 0.82) 0%, rgba(30, 18, 16, 0.45) 42%, rgba(30, 18, 16, 0.18) 70%, rgba(30, 18, 16, 0.25) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 860px;
}

.hero-eyebrow {
    display: inline-block;
    margin: 0 0 0.9rem;
    padding: 0.32rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f4e9d8;
}

.hero-title {
    color: var(--white);
    font-size: clamp(2.3rem, 1.6rem + 3.4vw, 4rem);
    line-height: 1.12;
    margin-bottom: 1rem;
    text-wrap: balance;
}

.hero-subtitle {
    font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.2rem);
    color: rgba(255, 252, 247, 0.92);
    max-width: 62ch;
    margin-bottom: 1.6rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.6rem;
}

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    padding: 0.34rem 0.95rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(6px);
    color: rgba(255, 252, 247, 0.95);
    font-size: 0.86rem;
}

/* ---- Page hero (inner pages) -------------------------------------------- */
.page-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--burgundy-deep);
}

.page-hero-compact {
    min-height: 320px;
    padding-top: calc(var(--header-height) + 2.4rem);
    padding-bottom: clamp(1.6rem, 4vw, 2.6rem);
}

.page-hero-tour {
    min-height: 420px;
    padding-top: calc(var(--header-height) + 2.4rem);
    padding-bottom: clamp(1.8rem, 5vw, 3rem);
}

.page-hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Tour hero photos are cropped to a very wide band: bias tall subjects upward */
.page-hero-tour .page-hero-media[src*='dest-garni-geghard'],
.page-hero-tour .page-hero-media[src*='dest-etchmiadzin'],
.page-hero-tour .page-hero-media[src*='dest-tsaghkadzor'],
.page-hero-tour .page-hero-media[src*='dest-dilijan'] {
    object-position: 50% 10%;
}

.page-hero-tour .page-hero-media[src*='dest-gyumri'],
.page-hero-tour .page-hero-media[src*='tour-noravank'] {
    object-position: 50% 5%;
}

.page-hero-tour .page-hero-media[src*='dest-lori'] {
    object-position: 50% 55%;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(to top, rgba(30, 18, 16, 0.78) 0%, rgba(30, 18, 16, 0.5) 55%, rgba(30, 18, 16, 0.32) 100%);
}

.page-hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
}

.page-hero-content .hero-eyebrow {
    margin-bottom: 0.7rem;
}

.page-title {
    color: var(--white);
    font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3rem);
    margin-bottom: 0.5rem;
    text-wrap: balance;
}

.page-subtitle {
    color: rgba(255, 252, 247, 0.92);
    font-size: 1.05rem;
    max-width: 66ch;
    margin: 0;
}

/* ---- Breadcrumbs -------------------------------------------------------- */
.breadcrumbs {
    margin-bottom: 1rem;
    font-size: 0.86rem;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 252, 247, 0.75);
}

.breadcrumbs li + li::before {
    content: '/';
    opacity: 0.5;
}

.breadcrumbs a {
    color: rgba(255, 252, 247, 0.85);
}

.breadcrumbs a:hover {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---- CTA panel ---------------------------------------------------------- */
.cta-panel {
    margin: clamp(2rem, 5vw, 3.5rem) auto;
    width: min(var(--container), 100% - 2rem);
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.12) 0%, transparent 42%), linear-gradient(120deg, var(--burgundy-deep) 0%, var(--burgundy) 58%, #9c2b3e 100%);
    color: var(--white);
    overflow: hidden;
}

.cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
    padding-block: clamp(2.2rem, 5vw, 3.4rem);
}

.cta-copy {
    max-width: 560px;
}

.cta-title {
    color: var(--white);
    font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem);
    margin-bottom: 0.5rem;
}

.cta-text {
    color: rgba(255, 252, 247, 0.9);
    margin: 0;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

/* ---- Utility ------------------------------------------------------------ */
/* Screen-reader-only text: keeps visible labels short while making link
   names unique ("Подробнее" + ": Гарни и Гегард" for assistive tech). */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.is-placeholder {
    color: var(--ink-faint);
    font-style: italic;
}

.setup-note {
    font-size: 0.82rem;
    color: var(--ink-faint);
    background: #fdf6e6;
    border: 1px dashed var(--stone);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.8rem;
    margin-top: 0.9rem;
}

.draft-note {
    background: #fdf6e6;
    border: 1px dashed var(--stone);
    border-radius: var(--radius);
    padding: 0.9rem 1.1rem;
    color: var(--ink-soft);
    margin-bottom: 1.6rem;
}

/* ---- 404 page ----------------------------------------------------------- */
.notfound {
    padding-block: clamp(4rem, 10vw, 7rem);
}

.notfound-inner {
    text-align: center;
}

.notfound-code {
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 7rem);
    line-height: 1;
    color: var(--sand);
    margin-bottom: 0.6rem;
}

.notfound-inner .page-title {
    color: var(--charcoal);
}

.notfound-inner .prose {
    margin-inline: auto;
}

.notfound-actions {
    justify-content: center;
    margin-top: 1.4rem;
}

/* ---- Motion & micro-interactions ---------------------------------------- */

/* Homepage hero entrance — text rises in sequence */
.hero-eyebrow,
.hero-title,
.hero-subtitle,
.hero-actions,
.hero-chips {
    animation: heroRise 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.hero-eyebrow {
    animation-delay: 0.05s;
}

.hero-title {
    animation-delay: 0.16s;
}

.hero-subtitle {
    animation-delay: 0.28s;
}

.hero-actions {
    animation-delay: 0.4s;
}

.hero-chips {
    animation-delay: 0.52s;
}

@keyframes heroRise {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slow cinematic settle for hero artwork */
.hero-media img {
    animation: heroZoom 2.8s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.page-hero-media {
    animation: heroZoom 2.2s ease both;
}

@keyframes heroZoom {
    from {
        transform: scale(1.06);
    }
    to {
        transform: scale(1);
    }
}

.page-hero-content {
    animation: heroRise 0.7s ease 0.1s both;
}

/* Cascading card reveal — grids marked with data-stagger by main.js.
   Uses the `translate` property so hover transforms stay unaffected. */
.js [data-stagger] > * {
    opacity: 0;
    translate: 0 18px;
    transition:
        opacity 0.55s ease var(--sd, 0ms),
        translate 0.55s ease var(--sd, 0ms),
        transform 0.42s ease,
        box-shadow 0.42s ease;
}

.js [data-stagger].stagger-in > * {
    opacity: 1;
    translate: 0 0;
}

/* Soft image loading fade */
.js img.img-fade {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.js img.img-fade.is-loaded {
    opacity: 1;
}

/* Floating WhatsApp button entrance */
.whatsapp-float {
    animation: floatIn 0.6s ease 0.9s backwards;
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }

    .js [data-stagger] > * {
        opacity: 1;
        translate: none;
    }

    .js img.img-fade {
        opacity: 1;
    }
}
