/* ── Font Faces ──────────────────────────────────────── */
@font-face {
    font-family: 'Thmanyah Sans';
    src: url('../fonts/thmanyahsans/woff2/thmanyahsans-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Thmanyah Sans';
    src: url('../fonts/thmanyahsans/woff2/thmanyahsans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Thmanyah Sans';
    src: url('../fonts/thmanyahsans/woff2/thmanyahsans-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Thmanyah Sans';
    src: url('../fonts/thmanyahsans/woff2/thmanyahsans-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Thmanyah Sans';
    src: url('../fonts/thmanyahsans/woff2/thmanyahsans-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Thmanyah Serif Display';
    src: url('../fonts/thmanyahserifdisplay/woff2/thmanyahserifdisplay-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Thmanyah Serif Display';
    src: url('../fonts/thmanyahserifdisplay/woff2/thmanyahserifdisplay-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Thmanyah Serif Display';
    src: url('../fonts/thmanyahserifdisplay/woff2/thmanyahserifdisplay-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Thmanyah Serif Display';
    src: url('../fonts/thmanyahserifdisplay/woff2/thmanyahserifdisplay-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Thmanyah Serif Display';
    src: url('../fonts/thmanyahserifdisplay/woff2/thmanyahserifdisplay-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Thmanyah Serif Text';
    src: url('../fonts/thmanyahseriftext/woff2/thmanyahseriftext-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Thmanyah Serif Text';
    src: url('../fonts/thmanyahseriftext/woff2/thmanyahseriftext-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Thmanyah Serif Text';
    src: url('../fonts/thmanyahseriftext/woff2/thmanyahseriftext-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ── Reset & Base ────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: 'Thmanyah Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ═══════════════════════════════════════════════════════
   SECTION 1: HERO — Full-screen green
   ═══════════════════════════════════════════════════════ */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    background: #79d2ff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* ── Brand label (top-right) ─────────────────────────── */
.hero-brand {
    position: absolute;
    top: 48px;
    right: 56px;
    height: 75px;
    width: auto;
    z-index: 2;
}

/* ── Main heading ────────────────────────────────────── */
.hero-content {
    position: absolute;
    right: 56px;
    left: 56px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 1;
}

.hero-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Right in RTL */
    font-family: 'Thmanyah Serif Display', serif;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.hero-heading .line-1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    display: block;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.hero-heading .line-2 {
    font-size: clamp(2.5rem, 6vw, 6rem);
    display: block;
}

/* Highlight (lighter green box behind text) */
.hero-heading .highlight {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.hero-heading .highlight::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: -4px;
    left: -12px;
    right: -12px;
    background: #c1e8ff;
    z-index: -1;
}

/* ── CTA Button (bottom-right) ───────────────────────── */
.hero-cta {
    position: absolute;
    bottom: 48px;
    right: 56px;
    z-index: 2;
}

.btn-scroll {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: #c1e8ff;
    color: #000000;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.btn-scroll:hover {
    background: #000000;
    color: #ffffff;
}

.btn-scroll:active {
    transform: translateY(0);
}


/* ===================================================
   STORY SECTION
=================================================== */

.split-section{
    width:100%;
    margin:120px 0;
    padding:120px 32px;
    display:flex;
    justify-content:center;
    background:#000; /* الخلفية السوداء */
}

.split-content{
    max-width:900px;
    width:100%;
    padding:0;

    display:flex;
    flex-direction:column;
    justify-content:center;
}

.split-content p{
    font-size:1.2rem;
    line-height:2;
    color:#f5f5f5; /* بدل الغامق */
    margin-bottom:28px;
}

.split-content p:last-child{
    margin-bottom:0;
}

.split-image{
    height:100%;
    min-height:620px;
    display:flex;
    justify-content:center;
    align-items:center;
    background:#111;
    padding:70px;
}

.split-image img{
    width:100%;
    max-width:360px;
    object-fit:contain;
}

.chat-header{
    display:flex;
    align-items:center;
    gap:16px;
    margin-bottom:35px;
}

.chat-avatar{
    width:64px;
    height:64px;
    border-radius:50%;
    background:#79d2ff;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    flex-shrink:0;
}

.chat-avatar img{
    width:60%;
    object-fit:contain;
}

.chat-user h3{
    font-size:1.25rem;
    margin-bottom:4px;
    font-weight:700;
}

.chat-user span{
    color:#888;
    font-size:.9rem;
}

.chat-message{
    background:#f4f5f7;
    padding:22px 26px;
    border-radius:24px;
    line-height:2;
    font-size:1.08rem;
    margin-bottom:18px;
    position:relative;
}

.chat-message:last-child{
    margin-bottom:0;
}

.chat-message::after{
    content:"";
    position:absolute;
    top:22px;
    right:-8px;
    width:18px;
    height:18px;
    background:#f4f5f7;
    transform:rotate(45deg);
}

/* ═══════════════════════════════════════════════════════
   SECTION 2.5: OFFERS
   ═══════════════════════════════════════════════════════ */
.offers-section {
    padding: 80px 56px;
    background: #ffffff;
    display: flex;
    justify-content: center;
}

.offers-container {
    display: flex;
    gap: 32px;
    max-width: 1200px;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.offer-card {
    flex: 1;
    display: block;
    max-width: 500px;
    border-radius: 24px;
}

.offer-card img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    display: block;
}

/* ═══════════════════════════════════════════════════════
   SECTION 3: GALLERY
   ═══════════════════════════════════════════════════════ */
.gallery-section {
    padding: 100px 0;
    background: #ffffff;
    overflow: hidden;
}

.gallery-header {
    text-align: right;
    padding: 0 56px;
    margin-bottom: 48px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-subtitle {
    font-family: 'Thmanyah Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: #1a1a1a;
    display: block;
    margin-bottom: 8px;
}

.gallery-title {
    font-family: 'Thmanyah Serif Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: #1a1a1a;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.2;
}

.gallery-desc {
    font-family: 'Thmanyah Sans', sans-serif;
    font-size: 1.1rem;
    color: #4a4a4a;
    max-width: 600px;
    line-height: 1.6;
}

.gallery-container {
    width: 100%;
    padding: 0;
    /* Removed side margins */
}

.gallery-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: galleryScroll 12s linear infinite;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
    padding-bottom: 24px;
}

@keyframes galleryScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(33.333333%);
    }
}

.gallery-item {
    flex: 0 0 auto;
    width: auto;
    height: 380px;
    border-radius: 32px;
    overflow: hidden;
    background: #f5f5f5;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.gallery-item img {
    width: auto;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    /* prevent image drag, allow container drag */
    display: block;
}

/* ═══════════════════════════════════════════════════════
   SECTION 4: CONTACT — White bg with mint card
   ═══════════════════════════════════════════════════════ */
.contact-section {
    width: 100%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0px 24px 40px;
}

/* ── Contact Card ──────────────────────────────────────── */
.contact-card {
    width: 90%;
    background: #d9ecf5;
    border-radius: 40px;
    padding: 100px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-card-title {
    font-family: 'Thmanyah Serif Display', serif;
    font-weight: 500;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #1a1a1a;
    margin-bottom: 48px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.contact-card-heading {
    font-family: 'Thmanyah Serif Display', serif;
    font-weight: 900;
    font-size: 22vw;
    color: #bdd7e2;
    letter-spacing: -0.02em;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    z-index: 0;
    pointer-events: none;
    white-space: nowrap;
}

/* ── Error message (Inline) ──────────────────────────── */
.pill-input-wrapper {
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.pill-input-wrapper.error {
    border-color: #ff4d4f;
    box-shadow: 0 4px 15px rgba(255, 77, 79, 0.15);
}

.field-error {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    text-align: right;
    color: #ff4d4f;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    padding-right: 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.field-error.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ── Interactive Pill Login ────────────────────────────── */
.contact-interactive {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 72px;
    margin: 0 auto;
    z-index: 1;
}

.contact-form {
    width: 100%;
    height: 100%;
}

.pill-input-wrapper {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 50px;
    display: flex;
    align-items: center;
    padding: 10px 20px 10px 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.pill-input-wrapper input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: none;
    background: transparent;
    font-family: 'Thmanyah Sans', sans-serif;
    font-size: 1.1rem;
    color: #1a1a1a;
    outline: none;
}

.pill-input-wrapper input::placeholder {
    color: #a0a0a0;
    font-weight: 400;
}

.btn-submit-pill {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #666;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-submit-pill:hover {
    background: #1a1a1a;
    color: #ffffff;
}

/* Small spinner for submit button */
.spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: #1a1a1a;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.site-footer {
    width: 100%;
    background: #ffffff;
    padding: 32px 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f0f0f0;
}

.footer-brand {
    font-family: 'Thmanyah Serif Display', serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.footer-copy {
    font-size: 0.82rem;
    color: #999;
    font-weight: 400;
}


/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .hero-brand {
        top: 28px;
        right: 28px;
        height: 28px;
    }

    .hero-cta {
        bottom: 28px;
        right: 28px;
    }

    .hero-content {
        right: 28px;
        left: 28px;
        padding: 0;
    }

    .contact-card {
        padding: 48px 28px;
        border-radius: 28px;
    }

    .site-footer {
        flex-direction: column-reverse;
        gap: 16px;
        padding: 28px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-brand {
        top: 20px;
        right: 20px;
        height: 65px;
    }

    .hero-cta {
        bottom: 130px;
        right: 50%;
        transform: translateX(50%);
    }

    .hero-content {
        right: 20px;
        left: 20px;
        padding: 0;
    }

    .hero-heading .line-1 {
        font-size: clamp(2.2rem, 9vw, 3rem);
        margin-bottom: 12px;
    }

    .hero-heading .line-2 {
        font-size: clamp(2.4rem, 10vw, 3.2rem);
    }

    .split-section {
        flex-direction: column-reverse;
    }

    .split-content,
    .split-image {
        aspect-ratio: auto;
    }

    .split-content {
        padding: 64px 32px;
        font-size: 1.2rem;
    }

    .split-image {
        aspect-ratio: 1 / 1;
        /* Keep square on mobile */
    }

    .offers-section {
        padding: 60px 24px;
    }

    .offers-container {
        flex-direction: column;
        gap: 24px;
    }

    .gallery-section {
        padding: 60px 0;
    }

    .gallery-header {
        padding: 0 24px;
        text-align: center;
        margin-bottom: 32px;
    }

    .gallery-title {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .gallery-desc {
        font-size: 1rem;
    }

    .gallery-track {
        gap: 16px;
    }

    .gallery-container {
        padding: 0;
    }

    .gallery-item {
        width: auto;
        height: 280px;
        border-radius: 20px;
    }

    .contact-card {
        padding: 64px 24px;
        border-radius: 32px;
        width: 100%;
    }

    .contact-card-heading {
        font-size: 40vw;
    }

    .contact-card-title {
        font-size: 1.5rem;
    }

    .contact-interactive {
        width: 100%;
    }

    .btn-scroll {
        width: 56px;
        height: 56px;
        padding: 0;
        font-size: 1.3rem;
    }
}

/* ── Focus Visible for Accessibility ─────────────────── */
:focus-visible {
    outline: 2px solid #00b837;
    outline-offset: 2px;
}

input:focus-visible {
    outline: none;
}