/* Raymand shared layout — extends theme-raymand.css variables */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    margin: 0;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: var(--bg-primary, #000);
    color: var(--text-primary, #f5f5f5);
    line-height: 1.8;
    overflow-x: hidden;
    padding-bottom: 4.5rem;
}

a {
    color: var(--primary-gold, #0EA5E9);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Phone numbers must stay LTR inside RTL pages (digit-group order). */
.tel-ltr,
a[href^="tel:"] {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
}

/* Social handles (@user) must keep @ at the start under RTL. */
.handle-ltr {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
}

img {
    max-width: 100%;
    height: auto;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    right: 1rem;
    z-index: 10000;
    background: var(--primary-gold, #0EA5E9);
    color: #041018;
    padding: 0.65rem 1.1rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    top: 0.75rem;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Header */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3.25rem;
}

.nav-logo {
    flex: 0 1 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-gold, #0EA5E9);
    text-decoration: none;
    line-height: 1.3;
    max-width: 280px;
}

.nav-logo__img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

.nav-logo__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    min-width: 0;
}

.nav-logo__brand {
    font-size: 1rem;
    font-weight: 800;
    white-space: nowrap;
}

.nav-logo__tagline {
    font-size: 0.68rem;
    font-weight: 500;
    color: rgba(245, 245, 245, 0.72);
    line-height: 1.35;
    white-space: normal;
}

.nav-logo:hover {
    text-decoration: none;
    color: #38bdf8;
}

.nav-logo:hover .nav-logo__tagline {
    color: rgba(56, 189, 248, 0.85);
}

@media (max-width: 768px) {
    .nav-logo {
        max-width: calc(100% - 56px);
    }

    .nav-logo__img {
        width: 34px;
        height: 34px;
    }

    .nav-logo__brand {
        font-size: 0.88rem;
    }

    .nav-logo__tagline {
        font-size: 0.62rem;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.35rem 0.55rem;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: flex-end;
    flex: 1 1 auto;
    min-width: 0;
}

.nav-menu li {
    flex-shrink: 0;
}

.nav-menu a {
    color: var(--text-primary, #f5f5f5);
    font-weight: 500;
    font-size: 0.8rem;
    text-decoration: none;
    white-space: nowrap;
    padding: 0.35rem 0.4rem;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.is-active {
    color: var(--primary-gold, #0EA5E9);
    background: rgba(14, 165, 233, 0.08);
    text-decoration: none;
}

.nav-link--cta {
    background: linear-gradient(135deg, #0EA5E9, #0284C7) !important;
    color: #041018 !important;
    padding: 0.4rem 0.85rem !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    margin-right: 0.15rem;
}

.nav-link--cta:hover,
.nav-link--cta.is-active {
    color: #041018 !important;
    background: linear-gradient(135deg, #38bdf8, #0EA5E9) !important;
}

.mobile-menu-toggle {
    display: none;
    flex-shrink: 0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--primary-gold, #0EA5E9);
    width: 44px;
    height: 44px;
    border-radius: 10px;
    cursor: pointer;
}

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 999;
}

.mobile-overlay.is-open {
    display: block;
}

/* Breadcrumb */
.breadcrumb {
    max-width: 1140px;
    margin: 0 auto;
    padding: 5.5rem 1.25rem 0;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
    color: var(--text-tertiary, #a0a0a0);
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin-right: 0.35rem;
    opacity: 0.5;
}

main {
    min-height: 55vh;
}

.page-home .breadcrumb {
    display: none;
}

/* Hero */
.hero,
.page-hero {
    position: relative;
    padding: 7rem 1.25rem 3rem;
    background:
        radial-gradient(ellipse 80% 60% at 70% 0%, rgba(14, 165, 233, 0.12), transparent 55%),
        linear-gradient(180deg, #0a0a0a 0%, #000 100%);
    overflow: hidden;
}

.page-hero--media {
    min-height: clamp(16rem, 42vw, 26rem);
    display: flex;
    align-items: flex-end;
    padding: 8rem 1.25rem 3.25rem;
    background: #050505;
}

.page-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.page-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.78) 55%, rgba(0, 0, 0, 0.92) 100%),
        linear-gradient(270deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
}

.page-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.page-hero--media h1,
.page-hero--media .page-hero__lead,
.page-hero--media .section__note {
    color: #f5f5f5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.page-hero--media .page-hero__lead {
    color: rgba(245, 245, 245, 0.9);
}

.hero__inner,
.page-hero .section__inner,
.section__inner {
    max-width: 1140px;
    margin: 0 auto;
}

.hero__brand {
    color: var(--primary-gold, #0EA5E9);
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0 0 0.75rem;
    letter-spacing: 0.02em;
}

.hero__title,
.page-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 1rem;
    animation: fadeInUp 0.7s ease;
}

.hero__subtitle,
.page-hero__lead {
    font-size: 1.05rem;
    color: var(--text-secondary, #d0d0d0);
    max-width: 40rem;
    margin: 0 0 1.5rem;
    animation: fadeInUp 0.9s ease;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sections */
.section {
    padding: 3.5rem 1.25rem;
}

.section--alt {
    background: var(--bg-secondary, #0a0a0a);
}

.section__title {
    font-size: 1.6rem;
    margin: 0 0 0.5rem;
}

.section__lead {
    color: var(--text-secondary, #d0d0d0);
    margin: 0 0 1.75rem;
}

.section__note {
    margin-top: 1.5rem;
}

.grid {
    display: grid;
    gap: 1.25rem;
}

.grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature {
    background: var(--bg-card, #111);
    padding: 1.5rem;
    border-radius: 16px;
    transition: background 0.25s ease, transform 0.25s ease;
    overflow: hidden;
}

.feature:hover {
    background: var(--bg-card-hover, #161616);
    transform: translateY(-2px);
}

.feature h2,
.feature h3 {
    margin-top: 0;
    color: var(--text-primary, #f5f5f5);
}

.feature--lg {
    padding: 1.75rem;
}

.feature__media {
    margin: -1.5rem -1.5rem 1.15rem;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #0a0a0a;
}

.feature--lg .feature__media {
    margin: -1.75rem -1.75rem 1.25rem;
}

.feature__media img,
.location-card__media img,
.content-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.location-card__media {
    margin: 0 0 1.15rem;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #0a0a0a;
}

.content-figure {
    margin: 0 0 1.25rem;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #0a0a0a;
}

.checklist {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.checklist li {
    position: relative;
    padding-right: 1.25rem;
    margin-bottom: 0.55rem;
    color: var(--text-secondary, #d0d0d0);
}

.checklist li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0.65rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--primary-gold, #0EA5E9);
}

.journey {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.journey li {
    counter-increment: step;
    position: relative;
    padding: 1rem 3rem 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-secondary, #d0d0d0);
}

.journey li::before {
    content: counter(step);
    position: absolute;
    right: 0;
    top: 1rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(14, 165, 233, 0.15);
    color: var(--primary-gold, #0EA5E9);
    font-weight: 700;
    font-size: 0.85rem;
}

.location-card {
    background: rgba(14, 165, 233, 0.06);
    padding: 1.75rem;
    border-radius: 16px;
}

.map-embed {
    width: 100%;
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #0a0a0a;
}

.map-embed__frame {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 400px;
    border: 0;
}

.location-card__map {
    margin: 1.25rem 0;
}

.map-embed__actions {
    margin: 1rem 0 0;
}

.map-embed__directions {
    display: inline-flex;
    align-items: center;
    color: var(--primary-gold, #0EA5E9);
    font-weight: 600;
    text-decoration: none;
}

.map-embed__directions:hover,
.map-embed__directions:focus-visible {
    text-decoration: underline;
}

.prose h2 {
    margin-top: 2rem;
}

.prose p,
.prose li {
    color: var(--text-secondary, #d0d0d0);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-weight: 700;
    font-family: inherit;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
}

.btn--primary {
    background: linear-gradient(135deg, #0EA5E9, #0284C7);
    color: #041018 !important;
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary, #f5f5f5) !important;
}

/* FAQ */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.faq-item {
    background: var(--bg-card, #111);
    border-radius: 12px;
    padding: 0.25rem 1rem;
}

.faq-question {
    cursor: pointer;
    font-weight: 600;
    padding: 0.85rem 0;
    list-style: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-answer {
    padding: 0 0 1rem;
    color: var(--text-secondary, #d0d0d0);
}

.faq-answer p {
    margin: 0;
}

/* Sprint B landing helpers */
.direct-answer {
    background: rgba(14, 165, 233, 0.08);
    border-right: 3px solid var(--primary-gold, #0EA5E9);
    border-radius: 12px;
    padding: 1.15rem 1.35rem;
    max-width: 48rem;
}

.direct-answer p {
    margin: 0;
    color: var(--text-primary, #f5f5f5);
    font-size: 1.05rem;
    line-height: 1.85;
}

.related-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.related-links a {
    display: block;
    padding: 0.85rem 1rem;
    background: var(--bg-card, #111);
    border-radius: 12px;
    color: var(--text-primary, #f5f5f5);
    text-decoration: none;
    transition: background 0.2s ease;
}

.related-links a:hover {
    background: var(--bg-card-hover, #161616);
    color: var(--primary-gold, #0EA5E9);
}

@media (max-width: 720px) {
    .related-links {
        grid-template-columns: 1fr;
    }
}

/* Forms / booking */
.booking-wrap {
    max-width: 640px;
}

.booking-card {
    background: var(--bg-card, #111);
    border-radius: 20px;
    padding: 2rem;
}

.booking-title {
    text-align: center;
    margin: 0 0 0.35rem;
}

.booking-subtitle {
    text-align: center;
    color: var(--text-secondary, #d0d0d0);
    margin: 0 0 1.5rem;
}

.form-group {
    margin-bottom: 1.15rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.form-label .required {
    color: var(--primary-gold, #0EA5E9);
}

.form-input {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(20, 20, 20, 0.7);
    color: var(--text-primary, #f5f5f5);
    font-family: inherit;
    font-size: 1rem;
}

.form-input:focus {
    outline: 2px solid rgba(14, 165, 233, 0.45);
    border-color: var(--primary-gold, #0EA5E9);
}

.form-hint {
    display: block;
    margin-top: 0.35rem;
    color: var(--text-tertiary, #a0a0a0);
    font-size: 0.85rem;
}

.form-button {
    width: 100%;
    margin-top: 0.5rem;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #0EA5E9, #0284C7);
    color: #041018;
    font-weight: 700;
    font-family: inherit;
    font-size: 1.05rem;
    cursor: pointer;
}

.form-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.alert {
    padding: 0.9rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.info-box {
    margin-top: 1.5rem;
    padding: 1.15rem;
    border-radius: 12px;
    background: rgba(14, 165, 233, 0.08);
    text-align: center;
}

.info-box-title {
    font-weight: 600;
    color: var(--primary-gold, #0EA5E9);
    margin-bottom: 0.5rem;
}

.search-form {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.search-form .form-input {
    flex: 1 1 220px;
}

.search-results {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-results li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.search-results p {
    margin: 0.35rem 0 0;
    color: var(--text-secondary, #d0d0d0);
}

.link-list {
    list-style: none;
    padding: 0;
}

.link-list li {
    margin-bottom: 0.65rem;
}

.direct-answer {
    background: rgba(14, 165, 233, 0.08);
    border-right: 3px solid var(--primary-gold, #0EA5E9);
    padding: 1.15rem 1.25rem;
    border-radius: 12px;
    max-width: 48rem;
}

.direct-answer p {
    margin: 0;
    color: var(--text-primary, #f5f5f5);
}

.medical-disclaimer {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-tertiary, #a0a0a0);
    max-width: 48rem;
}

.when-to-see {
    background: rgba(255, 255, 255, 0.04);
    padding: 1.5rem 1.35rem;
    border-radius: 16px;
}

.when-to-see h2 {
    margin-top: 0;
}

.related-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.65rem;
}

.related-links a {
    font-weight: 600;
}

/* Footer */
.site-footer {
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 3rem 1.25rem 5rem;
}

.footer-inner {
    max-width: 1140px;
    margin: 0 auto;
}

.footer-tagline,
.footer-address,
.footer-maps,
.footer-phones,
.footer-copy,
.footer-disclaimer {
    color: var(--text-tertiary, #a0a0a0);
}

.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    list-style: none;
    padding: 1rem 0;
    margin: 0;
}

.footer-disclaimer {
    font-size: 0.85rem;
    max-width: 48rem;
}

/* Sticky CTA */
.cta-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    display: none;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom));
    background: rgba(5, 5, 5, 0.92);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-sticky__btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.85rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none !important;
}

.cta-sticky__btn--phone {
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
}

.cta-sticky__btn--whatsapp {
    background: #128c7e;
    color: #fff !important;
}

.cta-sticky__btn--book {
    background: linear-gradient(135deg, #0EA5E9, #0284C7);
    color: #041018 !important;
}

@media (max-width: 900px) {
    .grid--3 {
        grid-template-columns: 1fr;
    }

    .grid--2 {
        grid-template-columns: 1fr;
    }

    .page-hero--media {
        min-height: 14rem;
        padding: 6.5rem 1rem 2.25rem;
        align-items: flex-end;
    }

    .page-hero__overlay {
        background:
            linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.82) 48%, rgba(0, 0, 0, 0.94) 100%),
            linear-gradient(270deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.65) 100%);
    }

    .feature__media,
    .location-card__media {
        aspect-ratio: 16 / 11;
    }

    .map-embed__frame {
        height: 320px;
    }
}

/* Compact desktop / Windows widths: hamburger before links wrap */
@media (max-width: 1360px) {
    .mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-logo {
        max-width: calc(100% - 64px);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(300px, 86vw);
        height: 100vh;
        background: #111;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        flex: none;
        gap: 0;
        padding: 4.5rem 1.25rem 1.5rem;
        transition: right 0.35s ease;
        z-index: 1000;
        overflow-y: auto;
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.45);
    }

    .nav-menu.is-open {
        right: 0;
    }

    .nav-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        flex-shrink: 1;
    }

    .nav-menu a {
        display: block;
        padding: 0.9rem 0.35rem;
        font-size: 0.95rem;
        white-space: normal;
        border-radius: 8px;
    }

    .nav-link--cta {
        text-align: center;
        margin: 0.75rem 0 0 !important;
    }

    .cta-sticky {
        display: flex;
    }
}

@media (min-width: 1361px) {
    body {
        padding-bottom: 0;
    }

    .cta-sticky {
        display: none;
    }

    .nav-container {
        max-width: 1440px;
        gap: 1.25rem;
    }

    .nav-logo {
        max-width: 280px;
    }

    .nav-menu {
        gap: 0.2rem 0.4rem;
    }

    .nav-menu a {
        font-size: 0.78rem;
        padding: 0.3rem 0.32rem;
    }
}
