/* =========================================
   بيت الفنار
   TERMS & CANCELLATION PAGE
========================================= */


/* =========================================
   ROOT
========================================= */

:root {

    --primary: #8b6f47;

    --primary-dark: #6f5738;

    --primary-light: #f4eee6;

    --background: #f8f7f4;

    --surface: #ffffff;

    --surface-soft: #fbfaf8;

    --text: #25231f;

    --text-light: #6e6a62;

    --border: #e8e3db;

    --danger: #a8564d;

    --danger-light: #f9eeee;

    --success: #5c8068;

    --success-light: #eef5f0;

    --shadow:
        0 10px 35px rgba(39, 32, 22, 0.06);

}


/* =========================================
   RESET
========================================= */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}


html {

    scroll-behavior: smooth;

}


body {

    font-family:
        "Tajawal",
        Arial,
        sans-serif;

    background: var(--background);

    color: var(--text);

    line-height: 1.9;

    direction: rtl;

}


a {

    text-decoration: none;

    color: inherit;

}


img {

    max-width: 100%;

    display: block;

}


button,
a {

    -webkit-tap-highlight-color:
        transparent;

}


/* =========================================
   CONTAINER
========================================= */

.terms-container {

    width: min(
        1120px,
        calc(100% - 40px)
    );

    margin-inline: auto;

}


/* =========================================
   HEADER
========================================= */

.terms-header {

    position: relative;

    z-index: 10;

    background:
        rgba(255, 255, 255, 0.97);

    border-bottom:
        1px solid var(--border);

}


.header-inner {

    min-height: 90px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

}


/* LOGO */

.terms-brand {

    display: inline-flex;

    align-items: center;

}


.terms-brand img {

    width: 145px;

    height: auto;

    object-fit: contain;

}


/* BACK */

.back-home {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    color: var(--text-light);

    font-size: 15px;

    font-weight: 600;

    transition:
        color 0.25s ease,
        transform 0.25s ease;

}


.back-home span {

    font-size: 20px;

    line-height: 1;

}


.back-home:hover {

    color: var(--primary);

    transform: translateX(3px);

}


/* =========================================
   HERO
========================================= */

.terms-hero {

    background:
        linear-gradient(
            135deg,
            #f4eee6 0%,
            #faf8f4 100%
        );

    border-bottom:
        1px solid var(--border);

    padding:
        70px 0 75px;

    text-align: center;

}


.hero-kicker {

    display: inline-block;

    color: var(--primary);

    font-size: 14px;

    font-weight: 700;

    letter-spacing: 0.3px;

    margin-bottom: 10px;

}


.terms-hero h1 {

    font-size: clamp(
        34px,
        5vw,
        52px
    );

    line-height: 1.25;

    font-weight: 800;

    color: var(--text);

    margin-bottom: 14px;

}


.terms-hero p {

    max-width: 620px;

    margin-inline: auto;

    color: var(--text-light);

    font-size: 17px;

}


/* =========================================
   CONTENT
========================================= */

.terms-content {

    padding:
        70px 0 90px;

}


/* =========================================
   INTRO
========================================= */

.terms-intro {

    display: flex;

    align-items: flex-start;

    gap: 20px;

    background:
        var(--surface);

    border:
        1px solid var(--border);

    border-radius: 18px;

    padding: 28px 30px;

    margin-bottom: 55px;

    box-shadow:
        var(--shadow);

}


.intro-icon {

    flex: 0 0 48px;

    width: 48px;

    height: 48px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        var(--success-light);

    color:
        var(--success);

    font-size: 21px;

    font-weight: 800;

}


.terms-intro h2 {

    font-size: 22px;

    font-weight: 800;

    margin-bottom: 5px;

}


.terms-intro p {

    color: var(--text-light);

    font-size: 15px;

}


/* =========================================
   TERMS SECTION
========================================= */

.terms-section {

    background:
        var(--surface);

    border:
        1px solid var(--border);

    border-radius: 20px;

    padding: 35px;

    margin-bottom: 35px;

    box-shadow:
        var(--shadow);

}


/* SECTION TITLE */

.section-title {

    display: flex;

    align-items: center;

    gap: 18px;

    padding-bottom: 25px;

    margin-bottom: 8px;

    border-bottom:
        1px solid var(--border);

}


.section-number {

    flex: 0 0 54px;

    width: 54px;

    height: 54px;

    border-radius: 15px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        var(--primary-light);

    color:
        var(--primary);

    font-size: 15px;

    font-weight: 800;

}


.section-title > div > span {

    display: block;

    color: var(--primary);

    font-size: 13px;

    font-weight: 700;

    margin-bottom: 2px;

}


.section-title h2 {

    font-size: 24px;

    font-weight: 800;

    line-height: 1.4;

}


/* =========================================
   TERMS LIST
========================================= */

.terms-list {

    display: flex;

    flex-direction: column;

}


.term-item {

    display: grid;

    grid-template-columns:
        34px 1fr;

    gap: 15px;

    align-items: start;

    padding:
        20px 5px;

    border-bottom:
        1px solid #eeeae4;

}


.term-item:last-child {

    border-bottom: none;

}


.term-number {

    width: 30px;

    height: 30px;

    border-radius: 50%;

    background:
        #f5f2ed;

    color:
        var(--primary);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 11px;

    font-weight: 800;

    margin-top: 2px;

}


.term-item p {

    color: #4f4b44;

    font-size: 15px;

    line-height: 2;

}


/* SAFETY */

.term-item.safety {

    background:
        var(--danger-light);

    border:
        1px solid #f1d8d5;

    border-radius: 12px;

    padding: 18px;

    margin-top: 10px;

}


.term-item.safety .term-number {

    background:
        #f2d8d5;

    color:
        var(--danger);

}


.term-item.safety p {

    color:
        #70453f;

    font-weight: 600;

}


/* =========================================
   IMPORTANT BOX
========================================= */

.important-box {

    display: flex;

    align-items: flex-start;

    gap: 18px;

    background:
        #fff9ed;

    border:
        1px solid #f0dfbd;

    border-radius: 18px;

    padding: 25px 28px;

    margin:
        50px 0;

}


.important-icon {

    flex: 0 0 42px;

    width: 42px;

    height: 42px;

    border-radius: 50%;

    background:
        #f2d8a5;

    color:
        #795a24;

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: 800;

}


.important-box strong {

    display: block;

    font-size: 18px;

    margin-bottom: 5px;

}


.important-box p {

    color:
        #675a45;

    font-size: 14px;

}


/* =========================================
   CANCELLATION
========================================= */

.cancellation-section {

    margin-top: 70px;

}


.cancellation-header {

    text-align: center;

    margin-bottom: 35px;

}


.cancellation-header .hero-kicker {

    margin-bottom: 7px;

}


.cancellation-header h2 {

    font-size: clamp(
        27px,
        4vw,
        38px
    );

    font-weight: 800;

    line-height: 1.4;

    margin-bottom: 8px;

}


.cancellation-header p {

    color:
        var(--text-light);

    font-size: 15px;

}


/* =========================================
   CANCELLATION CARDS
========================================= */

.cancellation-cards {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;

}


.cancellation-card {

    background:
        var(--surface);

    border:
        1px solid var(--border);

    border-radius: 20px;

    padding: 28px;

    box-shadow:
        var(--shadow);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;

}


.cancellation-card:hover {

    transform:
        translateY(-4px);

    box-shadow:
        0 15px 40px
        rgba(39, 32, 22, 0.09);

}


.cancel-time {

    width: 70px;

    height: 70px;

    border-radius: 18px;

    background:
        var(--primary-light);

    color:
        var(--primary);

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    font-size: 25px;

    line-height: 1;

    font-weight: 800;

    margin-bottom: 22px;

}


.cancel-time small {

    font-size: 11px;

    font-weight: 600;

    margin-top: 5px;

}


.cancel-label {

    display: block;

    color:
        var(--primary);

    font-size: 13px;

    font-weight: 700;

    margin-bottom: 8px;

}


.cancel-content h3 {

    font-size: 21px;

    font-weight: 800;

    line-height: 1.5;

    margin-bottom: 10px;

}


.cancel-content p {

    color:
        var(--text-light);

    font-size: 14px;

    line-height: 2;

}


/* =========================================
   CANCELLATION NOTE
========================================= */

.cancellation-note {

    display: flex;

    align-items: center;

    gap: 15px;

    background:
        var(--surface);

    border:
        1px solid var(--border);

    border-radius: 14px;

    padding:
        18px 22px;

    margin-top: 22px;

}


.cancellation-note span {

    flex-shrink: 0;

    color:
        var(--primary);

    font-size: 14px;

    font-weight: 800;

}


.cancellation-note p {

    color:
        var(--text-light);

    font-size: 14px;

}


/* =========================================
   AGREEMENT
========================================= */

.agreement-box {

    display: flex;

    align-items: flex-start;

    gap: 18px;

    background:
        var(--success-light);

    border:
        1px solid #d7e7dc;

    border-radius: 20px;

    padding: 28px;

    margin-top: 55px;

}


.agreement-icon {

    flex: 0 0 45px;

    width: 45px;

    height: 45px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        #d8e8dd;

    color:
        var(--success);

    font-size: 20px;

    font-weight: 800;

}


.agreement-box h2 {

    font-size: 20px;

    font-weight: 800;

    margin-bottom: 5px;

}


.agreement-box p {

    color:
        #53675a;

    font-size: 14px;

    line-height: 2;

}


/* =========================================
   ACTION
========================================= */

.terms-actions {

    display: flex;

    justify-content: center;

    margin-top: 45px;

}


.primary-action {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 52px;

    padding:
        0 32px;

    border-radius: 12px;

    background:
        var(--primary);

    color:
        #ffffff;

    font-size: 15px;

    font-weight: 700;

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;

}


.primary-action:hover {

    background:
        var(--primary-dark);

    transform:
        translateY(-2px);

    box-shadow:
        0 10px 25px
        rgba(111, 87, 56, 0.2);

}


/* =========================================
   FOOTER
========================================= */

.terms-footer {

    background:
        #25231f;

    color:
        #ffffff;

    text-align: center;

    padding:
        40px 0;

}


.terms-footer img {

    width: 120px;

    margin:
        0 auto 15px;

    filter:
        brightness(0) invert(1);

}


.terms-footer p {

    color:
        rgba(255,255,255,0.65);

    font-size: 14px;

    margin-bottom: 15px;

}


.terms-footer span {

    color:
        rgba(255,255,255,0.4);

    font-size: 12px;

}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    .cancellation-cards {

        grid-template-columns:
            1fr;

    }


    .cancellation-card {

        display: grid;

        grid-template-columns:
            85px 1fr;

        gap: 20px;

        align-items: start;

    }


    .cancel-time {

        margin-bottom: 0;

    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

    .terms-container {

        width:
            min(
                100% - 28px,
                650px
            );

    }


    .header-inner {

        min-height: 75px;

        gap: 15px;

    }


    .terms-brand img {

        width: 110px;

    }


    .back-home {

        font-size: 13px;

    }


    .back-home span {

        font-size: 17px;

    }


    .terms-hero {

        padding:
            48px 0 52px;

    }


    .terms-hero h1 {

        font-size: 32px;

    }


    .terms-hero p {

        font-size: 14px;

        line-height: 1.9;

    }


    .terms-content {

        padding:
            35px 0 55px;

    }


    .terms-intro {

        padding: 20px;

        gap: 13px;

        margin-bottom: 30px;

        border-radius: 15px;

    }


    .intro-icon {

        flex-basis: 40px;

        width: 40px;

        height: 40px;

        font-size: 17px;

    }


    .terms-intro h2 {

        font-size: 19px;

    }


    .terms-intro p {

        font-size: 13px;

        line-height: 1.9;

    }


    .terms-section {

        padding:
            20px 17px;

        border-radius: 16px;

        margin-bottom: 22px;

    }


    .section-title {

        gap: 12px;

        padding-bottom: 18px;

    }


    .section-number {

        flex-basis: 43px;

        width: 43px;

        height: 43px;

        border-radius: 12px;

        font-size: 12px;

    }


    .section-title > div > span {

        font-size: 11px;

    }


    .section-title h2 {

        font-size: 19px;

    }


    .term-item {

        grid-template-columns:
            27px 1fr;

        gap: 10px;

        padding:
            15px 2px;

    }


    .term-number {

        width: 27px;

        height: 27px;

        font-size: 9px;

    }


    .term-item p {

        font-size: 13.5px;

        line-height: 1.95;

    }


    .term-item.safety {

        padding: 14px;

    }


    .important-box {

        padding: 19px;

        gap: 12px;

        margin:
            30px 0;

    }


    .important-icon {

        flex-basis: 36px;

        width: 36px;

        height: 36px;

    }


    .important-box strong {

        font-size: 16px;

    }


    .important-box p {

        font-size: 13px;

        line-height: 1.9;

    }


    .cancellation-section {

        margin-top: 45px;

    }


    .cancellation-header h2 {

        font-size: 25px;

    }


    .cancellation-header p {

        font-size: 13px;

    }


    .cancellation-card {

        display: block;

        padding: 21px;

        border-radius: 16px;

    }


    .cancel-time {

        width: 62px;

        height: 62px;

        margin-bottom: 16px;

        border-radius: 15px;

        font-size: 22px;

    }


    .cancel-content h3 {

        font-size: 18px;

    }


    .cancel-content p {

        font-size: 13px;

        line-height: 1.95;

    }


    .cancel-label {

        font-size: 11.5px;

    }


    .cancellation-note {

        display: block;

        padding: 17px;

    }


    .cancellation-note span {

        display: block;

        margin-bottom: 5px;

    }


    .cancellation-note p {

        font-size: 13px;

        line-height: 1.9;

    }


    .agreement-box {

        padding: 20px;

        gap: 12px;

        margin-top: 35px;

    }


    .agreement-icon {

        flex-basis: 38px;

        width: 38px;

        height: 38px;

        font-size: 16px;

    }


    .agreement-box h2 {

        font-size: 17px;

    }


    .agreement-box p {

        font-size: 13px;

        line-height: 1.9;

    }


    .terms-actions {

        margin-top: 30px;

    }


    .primary-action {

        width: 100%;

        min-height: 50px;

        font-size: 14px;

    }


    .terms-footer {

        padding:
            32px 0;

    }

}


/* =========================================
   SMALL PHONES
========================================= */

@media (max-width: 380px) {

    .terms-container {

        width:
            calc(100% - 22px);

    }


    .terms-hero h1 {

        font-size: 28px;

    }


    .section-title h2 {

        font-size: 17px;

    }


    .term-item p {

        font-size: 13px;

    }


    .back-home {

        font-size: 12px;

    }

}


/* =========================================
   REDUCE MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

    html {

        scroll-behavior: auto;

    }


    * {

        transition: none !important;

    }

}