/*
 * Atr Plus — shared Arabic-first visual system
 * Presentation only: no application or database logic lives here.
 */

:root {
    --ink: #241d20;
    --muted: #756a6e;
    --wine: #6f263d;
    --wine-deep: #4b1628;
    --rose: #a85a72;
    --gold: #c99a51;
    --gold-soft: #f2dfbd;
    --cream: #fbf7f1;
    --paper: #fffdf9;
    --line: rgba(93, 48, 61, 0.13);
    --shadow-sm: 0 10px 30px rgba(63, 33, 42, 0.08);
    --shadow-lg: 0 28px 70px rgba(63, 33, 42, 0.14);
    --radius: 24px;
    --radius-sm: 15px;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink) !important;
    background:
        radial-gradient(circle at 8% 18%, rgba(201, 154, 81, 0.12), transparent 22rem),
        radial-gradient(circle at 92% 52%, rgba(168, 90, 114, 0.10), transparent 28rem),
        var(--cream) !important;
    font-family: "Tajawal", "Cairo", system-ui, sans-serif !important;
    line-height: 1.85;
    text-align: right;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.32;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cpath d='M36 12c3.4 11.8 12.2 20.6 24 24-11.8 3.4-20.6 12.2-24 24-3.4-11.8-12.2-20.6-24-24 11.8-3.4 20.6-12.2 24-24Z' fill='none' stroke='%23c99a51' stroke-opacity='.09'/%3E%3C/svg%3E");
}

a {
    color: var(--wine);
}

a, button, input, select {
    transition: 180ms ease;
}

::selection {
    color: #fff;
    background: var(--wine);
}

.container {
    width: min(100% - 2rem, 1160px);
}

/* Header */
.navbar {
    position: relative;
    z-index: 20;
    min-height: 92px;
    padding: 0.35rem 0 !important;
    border: 0 !important;
    border-bottom: 1px solid var(--line) !important;
    background: rgba(255, 253, 249, 0.90) !important;
    box-shadow: 0 8px 32px rgba(55, 29, 38, 0.06) !important;
    backdrop-filter: blur(16px);
}

.navbar-brand {
    padding: 0;
}

.navbar-brand img {
    width: auto;
    height: 74px;
    object-fit: contain;
}

.navbar-nav {
    gap: 0.35rem;
    margin-inline-start: auto !important;
    margin-inline-end: 0 !important;
}

.navbar .nav-link {
    position: relative;
    padding: 0.65rem 1rem !important;
    border-radius: 999px;
    color: #54464b !important;
    font-weight: 700;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus-visible,
.navbar .nav-link.active {
    color: var(--wine) !important;
    background: rgba(111, 38, 61, 0.08);
}

.navbar-toggler {
    padding: 0.55rem;
    border: 1px solid var(--line) !important;
    border-radius: 12px;
    box-shadow: none !important;
}

/* Home hero */
.home-page .hero {
    isolation: isolate;
    min-height: min(73vh, 720px);
    display: grid;
    align-items: center;
    margin: 0 0 5.5rem !important;
    padding: clamp(7rem, 16vw, 12rem) 1.25rem !important;
    overflow: hidden;
    background-position: center 54% !important;
    color: #fff !important;
}

.home-page .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(28, 14, 19, 0.12), rgba(28, 14, 19, 0.78)),
        linear-gradient(0deg, rgba(28, 14, 19, 0.35), transparent 45%);
}

.home-page .hero::after {
    content: "";
    position: absolute;
    inset-inline-end: -5rem;
    bottom: -10rem;
    z-index: -1;
    width: 28rem;
    aspect-ratio: 1;
    border: 1px solid rgba(242, 223, 189, 0.38);
    border-radius: 50%;
    box-shadow: 0 0 0 3rem rgba(242, 223, 189, 0.06), 0 0 0 6rem rgba(242, 223, 189, 0.04);
}

.home-page .hero .container {
    max-width: 1120px;
    margin: auto;
    color: #fff !important;
    text-align: right !important;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1rem;
    color: var(--gold-soft);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.hero-kicker::before {
    content: "";
    width: 2.2rem;
    height: 1px;
    background: currentColor;
}

.home-page .hero h1 {
    max-width: 690px;
    margin: 0;
    color: #fff;
    font-family: "Cairo", sans-serif;
    font-size: clamp(3.2rem, 8vw, 6.5rem) !important;
    font-weight: 700;
    line-height: 1.08;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.home-page .hero p {
    max-width: 650px;
    margin: 1.35rem 0 2rem !important;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1.1rem, 2.2vw, 1.45rem) !important;
}

.hero-action {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.9rem 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: var(--wine-deep);
    background: #fff;
    box-shadow: var(--shadow-lg);
    font-weight: 800;
    text-decoration: none;
}

.hero-action:hover {
    color: var(--wine-deep);
    background: var(--gold-soft);
    transform: translateY(-2px);
}

/* Type and surfaces */
h1, h2, h3, h4 {
    color: var(--ink);
    line-height: 1.45;
}

strong {
    color: var(--wine);
}

.info-block,
.card.travel-form {
    position: relative;
    padding: clamp(1.4rem, 4vw, 3rem) !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius) !important;
    color: var(--ink);
    background: rgba(255, 253, 249, 0.94) !important;
    box-shadow: var(--shadow-sm) !important;
}

.info-block {
    margin-bottom: 1.5rem !important;
    font-size: 1.08rem !important;
    line-height: 1.9 !important;
}

.info-block h1,
.info-block h2 {
    font-family: "Cairo", sans-serif;
    font-size: clamp(1.65rem, 3.5vw, 2.35rem);
    font-weight: 700;
}

.info-block p:last-child,
.info-block ul:last-child {
    margin-bottom: 0;
}

.info-block ul {
    display: grid;
    gap: 0.8rem;
    padding: 0;
    list-style: none;
}

.info-block li {
    position: relative;
    padding: 0.75rem 3rem 0.75rem 0.75rem;
    border-radius: 14px;
    background: rgba(111, 38, 61, 0.035);
}

.info-block li::before {
    content: "✦";
    position: absolute;
    inset-inline-start: 1rem;
    top: 0.72rem;
    color: var(--gold);
}

/* Recommendation form */
.home-page .travel-form {
    max-width: 900px;
    margin: -8.25rem auto 5rem !important;
    z-index: 3;
    background: rgba(255, 253, 249, 0.97) !important;
    box-shadow: var(--shadow-lg) !important;
}

.travel-form::before {
    content: "ذوقك، بصمتك";
    display: block;
    width: fit-content;
    margin: 0 auto 0.75rem;
    color: var(--rose);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.travel-form h1 {
    max-width: 700px;
    margin-inline: auto;
    font-size: clamp(1.45rem, 3.4vw, 2.2rem);
    line-height: 1.55;
}

.travel-form form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
    margin-top: 2rem;
}

.travel-form form .mb-3 {
    margin: 0 !important;
}

.travel-form form .btn {
    grid-column: 1 / -1;
    justify-self: start;
    min-width: 190px;
    margin-top: 0.6rem;
}

.form-label {
    margin-bottom: 0.55rem;
    color: #4b3c41;
    font-weight: 700;
}

.form-control,
.form-select {
    min-height: 54px;
    padding-inline: 1rem;
    border: 1px solid rgba(111, 38, 61, 0.18);
    border-radius: 13px;
    color: var(--ink);
    background-color: #fff;
    box-shadow: none !important;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 4px rgba(168, 90, 114, 0.12) !important;
}

.btn {
    min-height: 48px;
    padding: 0.7rem 1.3rem;
    border-radius: 999px;
    font-weight: 800;
}

.btn-primary {
    border-color: var(--wine) !important;
    background: var(--wine) !important;
    box-shadow: 0 10px 24px rgba(111, 38, 61, 0.18);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    border-color: var(--wine-deep) !important;
    background: var(--wine-deep) !important;
    transform: translateY(-2px);
}

.btn-outline-primary {
    border-color: var(--wine) !important;
    color: var(--wine) !important;
}

.btn-outline-primary:hover {
    color: #fff !important;
    background: var(--wine) !important;
}

.btn-outline-secondary,
.btn-secondary {
    border-color: var(--line) !important;
    color: var(--ink) !important;
    background: #fff !important;
}

.alert {
    border: 0;
    border-radius: var(--radius-sm);
}

.alert-info {
    color: var(--wine-deep);
    background: rgba(242, 223, 189, 0.55);
}

.spinner-border {
    color: var(--wine) !important;
}

/* Home editorial content */
.home-page > .container:nth-of-type(2) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.home-page > .container:nth-of-type(2) > .info-block {
    margin-bottom: 0 !important;
}

.home-page > .container:nth-of-type(2) > .info-block:first-child,
.home-page > .container:nth-of-type(2) > .info-block:last-of-type,
.home-page > .container:nth-of-type(2) > .newsletter-banner,
.home-page > .container:nth-of-type(2) > .container {
    grid-column: 1 / -1;
}

.newsletter-banner {
    position: relative;
    isolation: isolate;
    min-height: 420px;
    display: grid;
    place-items: center;
    margin: 1.5rem 0 2rem;
    padding: clamp(3rem, 8vw, 7rem) 1.25rem !important;
    overflow: hidden;
    border-radius: 30px !important;
    background: url("reg.png") center 42% / cover no-repeat;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.newsletter-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, rgba(47, 17, 29, 0.82), rgba(111, 38, 61, 0.46));
}

.newsletter-banner h2,
.newsletter-banner p {
    color: #fff;
    text-shadow: 0 4px 22px rgba(0, 0, 0, 0.22);
}

.newsletter-banner .btn-light {
    border: 0;
    color: var(--wine-deep);
    background: #fff;
}

.home-page .container.mb-5 > .row {
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 28px !important;
    background: var(--paper) !important;
    box-shadow: var(--shadow-sm) !important;
}

.home-page .container.mb-5:nth-of-type(even) > .row {
    direction: ltr;
}

.home-page .container.mb-5:nth-of-type(even) > .row > * {
    direction: rtl;
}

.home-page .container.mb-5 .col-md-5 {
    margin: 0 !important;
    padding: 0;
}

.home-page .container.mb-5 .col-md-7 {
    padding: clamp(2rem, 5vw, 4rem);
}

.home-page .container.mb-5 img {
    height: 100%;
    min-height: 330px;
    border-radius: 0 !important;
    object-fit: cover;
    transition: transform 500ms ease;
}

.home-page .container.mb-5 > .row:hover img {
    transform: scale(1.035);
}

.home-page .container.mb-5 h3 {
    color: var(--wine) !important;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
}

/* Inner pages */
.about-page > .container,
.subscribe-page > .container,
.thanks-page > .container,
.result-page > .container,
.shared-page > .container {
    margin-top: clamp(2rem, 6vw, 5rem);
}

.about-page > .container::before,
.subscribe-page > .container::before,
.result-page > .container::before,
.shared-page > .container::before {
    content: "عطر بلس";
    display: block;
    margin-bottom: 0.65rem;
    color: var(--rose);
    font-weight: 800;
    text-align: center;
}

.about-page > .container {
    max-width: 980px;
}

.about-page .info-block:first-child {
    padding-block: clamp(3rem, 8vw, 6rem) !important;
    color: #fff;
    background:
        linear-gradient(110deg, rgba(51, 18, 31, 0.90), rgba(111, 38, 61, 0.66)),
        url("background.png") center / cover !important;
    box-shadow: var(--shadow-lg) !important;
}

.about-page .info-block:first-child h1,
.about-page .info-block:first-child strong,
.about-page .info-block:first-child p {
    color: #fff;
}

.subscribe-page > .container,
.thanks-page > .container {
    max-width: 820px;
}

.subscribe-page .info-block {
    padding: 0 !important;
    overflow: hidden;
}

.subscribe-page .travel-form {
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.subscribe-page .travel-form form {
    grid-template-columns: 1fr;
}

.thanks-page {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.thanks-page > .container {
    flex: 1;
    display: grid;
    align-items: center;
}

.thanks-page .info-block {
    padding-block: clamp(3.5rem, 9vw, 7rem) !important;
    background:
        radial-gradient(circle at 50% 0, rgba(242, 223, 189, 0.75), transparent 45%),
        var(--paper) !important;
    box-shadow: var(--shadow-lg) !important;
    text-align: center;
}

.thanks-page .info-block::before {
    content: "✓";
    display: grid;
    width: 72px;
    aspect-ratio: 1;
    place-items: center;
    margin: 0 auto 1.3rem;
    border-radius: 50%;
    color: #fff;
    background: var(--wine);
    font-size: 2rem;
    box-shadow: 0 0 0 10px rgba(111, 38, 61, 0.08);
}

.result-page > .container,
.shared-page > .container {
    max-width: 940px;
}

.result-page .info-block,
.shared-page .info-block {
    font-size: 1.05rem !important;
    line-height: 2 !important;
}

.result-page .info-block:first-of-type,
.shared-page .info-block:first-of-type {
    border-top: 4px solid var(--gold) !important;
}

.result-page .info-block h2,
.shared-page .info-block h2 {
    margin-bottom: 0 !important;
    text-align: center;
}

.result-page .info-block h3,
.result-page .info-block h4,
.shared-page .info-block h3,
.shared-page .info-block h4 {
    margin-top: 1.35rem;
    color: var(--wine);
}

/* Footer */
footer {
    margin-top: clamp(3rem, 7vw, 6rem) !important;
    padding: 2.2rem 0 !important;
    border: 0 !important;
    border-top: 1px solid var(--line) !important;
    color: var(--muted) !important;
    background: rgba(255, 253, 249, 0.78) !important;
}

footer p {
    margin-bottom: 0.9rem !important;
}

footer a {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    margin: 0 0.2rem !important;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
}

footer a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

footer img {
    width: 19px;
    height: 19px;
    object-fit: contain;
}

@media (max-width: 767.98px) {
    .container {
        width: min(100% - 1.25rem, 1160px);
    }

    .navbar {
        min-height: 78px;
    }

    .navbar-brand img {
        height: 62px;
    }

    .navbar-collapse {
        padding: 0.75rem 0 1rem;
    }

    .navbar-nav {
        gap: 0.2rem;
    }

    .home-page .hero {
        min-height: 610px;
        margin-bottom: 4.5rem !important;
        background-position: 35% center !important;
    }

    .home-page .travel-form {
        margin-top: -7rem !important;
    }

    .travel-form form,
    .home-page > .container:nth-of-type(2) {
        grid-template-columns: 1fr;
    }

    .home-page > .container:nth-of-type(2) > * {
        grid-column: 1 !important;
    }

    .travel-form form .btn {
        width: 100%;
    }

    .newsletter-banner {
        min-height: 360px;
    }

    .home-page .container.mb-5 > .row,
    .home-page .container.mb-5:nth-of-type(even) > .row {
        direction: rtl;
    }

    .home-page .container.mb-5 img {
        min-height: 230px;
        max-height: 300px;
    }

    .btn {
        margin-bottom: 0.45rem;
    }
}

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

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