/* Giftura Pro Landing Page */

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

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

@font-face {
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/cairo-400.woff2') format('woff2');
}
@font-face {
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/cairo-700.woff2') format('woff2');
}

:root {
    --gf-accent: #7c3aed;
    --gf-accent-light: #ede9ff;
    --gf-accent-dark: #6d28d9;
    --gf-text: #1e1b4b;
    --gf-muted: #64748b;
    --gf-surface: #ffffff;
    --gf-bg: #f8f7ff;
    --gf-border: #e5e7eb;
    --gf-success: #16a34a;
    --gf-success-light: #dcfce7;
    --gf-danger: #dc2626;
    --gf-danger-light: #fee2e2;
}

* { box-sizing: border-box; }
body { font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif; color: var(--gf-text); background: var(--gf-surface); margin: 0; }
h1, h2, h3, h4, h5, h6 { font-family: 'Outfit', sans-serif; font-weight: 700; }

/* ── Navbar ── */
.gf-navbar {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gf-border);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.gf-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}
.gf-brand-icon {
    width: 40px; height: 40px;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--gf-accent), #a855f7);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}
.gf-brand-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--gf-text), var(--gf-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.btn-gf-nav {
    background: var(--gf-accent);
    color: #fff !important;
    padding: 0.45rem 1.1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: background 0.2s;
}
.btn-gf-nav:hover { background: var(--gf-accent-dark); }

/* ── Language Switcher ── */
.gf-lang-wrap { position: relative; }
.gf-lang-btn {
    display: flex; align-items: center; gap: 0.3rem;
    background: none; border: 1px solid var(--gf-border);
    border-radius: 8px; padding: 0.35rem 0.6rem;
    font-size: 0.85rem; cursor: pointer; color: var(--gf-text);
    transition: border-color 0.2s;
}
.gf-lang-btn:hover { border-color: var(--gf-accent); }
.gf-lang-menu {
    position: absolute; top: calc(100% + 6px); right: 0;
    background: #fff; border: 1px solid var(--gf-border);
    border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    min-width: 140px; z-index: 200; overflow: hidden;
}
.gf-lang-opt {
    display: block; width: 100%; padding: 0.5rem 1rem;
    background: none; border: none; text-align: left;
    font-size: 0.85rem; cursor: pointer; color: var(--gf-text);
    transition: background 0.15s;
}
.gf-lang-opt:hover { background: var(--gf-accent-light); color: var(--gf-accent); }

/* ── Hero ── */
.gf-hero {
    background: linear-gradient(135deg, #faf5ff 0%, #f0f9ff 50%, #fff7ed 100%);
    padding: 5rem 0 4rem;
    overflow: hidden;
}
.gf-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--gf-accent-light);
    color: var(--gf-accent);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.gf-hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
}
.gf-hero h1 span {
    background: linear-gradient(135deg, var(--gf-accent), #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gf-hero-text {
    font-size: 1.1rem;
    color: var(--gf-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 500px;
}
.gf-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}
.btn-gf-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--gf-accent), #a855f7);
    color: #fff !important;
    padding: 0.8rem 1.75rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(124,58,237,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-gf-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(124,58,237,0.4);
}
.btn-gf-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    color: var(--gf-accent) !important;
    padding: 0.8rem 1.75rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid var(--gf-accent-light);
    transition: border-color 0.2s, background 0.2s;
}
.btn-gf-secondary:hover {
    border-color: var(--gf-accent);
    background: var(--gf-accent-light);
}
.gf-supported-occasions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.gf-supported-occasions > span {
    background: #fff;
    border: 1px solid var(--gf-border);
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gf-muted);
}
.gf-supported-occasions > span > span {
    font-weight: inherit;
    color: inherit;
}

/* ── Mockup ── */
.gf-mockup-wrapper {
    display: flex;
    justify-content: center;
    padding: 1rem;
}
.gf-mockup {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.12), 0 4px 16px rgba(124,58,237,0.08);
    overflow: hidden;
    width: 100%;
    max-width: 420px;
    border: 1px solid var(--gf-border);
}
.gf-mockup-header {
    background: #f5f5f5;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--gf-border);
}
.gf-mockup-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #e5e7eb;
    margin-right: 5px;
    display: inline-block;
}
.gf-mockup-dot:nth-child(1) { background: #f87171; }
.gf-mockup-dot:nth-child(2) { background: #fbbf24; }
.gf-mockup-dot:nth-child(3) { background: #4ade80; }
.gf-mockup-body { padding: 1.25rem; background: var(--gf-bg); }
.gf-mockup-cover {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--gf-accent-light), #fce7f3);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto;
}
.gf-mockup-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--gf-border);
    padding: 0.75rem;
    margin-bottom: 0.6rem;
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}
.gf-mockup-card-left {
    display: flex;
    align-items: center;
}
.gf-mockup-emoji {
    width: 40px; height: 40px;
    border-radius: 8px;
    background: var(--gf-bg);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
}
.gf-mockup-card-body { flex: 1; min-width: 0; }
.gf-badge-available {
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--gf-success-light);
    color: var(--gf-success);
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    white-space: nowrap;
}
.gf-badge-reserved {
    font-size: 0.7rem;
    font-weight: 700;
    background: #fef3c7;
    color: #92400e;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    white-space: nowrap;
}
.gf-price { color: var(--gf-accent); font-size: 0.9rem; }
.gf-btn-reserve {
    background: var(--gf-accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.25rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
}
.gf-btn-reserve:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: default;
}

/* ── Steps ── */
.gf-steps { background: var(--gf-bg); }
.gf-step-num {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gf-accent), #a855f7);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 900;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 16px rgba(124,58,237,0.3);
}

/* ── Section Headings ── */
.gf-section-title {
    font-family: 'Outfit', sans-serif;
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.3px;
}
.gf-section-subtitle {
    text-align: center;
    color: var(--gf-muted);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0.5rem auto 0;
}

/* ── Feature Cards ── */
.gf-card {
    background: var(--gf-bg);
    border: 1px solid var(--gf-border);
    border-radius: 16px;
    padding: 1.75rem;
    height: 100%;
    transition: box-shadow 0.2s, transform 0.2s;
}
.gf-card:hover {
    box-shadow: 0 8px 32px rgba(124,58,237,0.1);
    transform: translateY(-3px);
}
.gf-card-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--gf-accent-light);
    color: var(--gf-accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}
.gf-card h4 {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}
.gf-card p {
    color: var(--gf-muted);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

/* ── CTA ── */
.gf-cta {
    background: linear-gradient(135deg, var(--gf-accent), #a855f7);
    color: #fff;
    padding: 5rem 1rem;
}
.gf-cta h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}
.gf-cta p {
    opacity: 0.85;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ── Footer ── */
.gf-footer {
    background: #1e1b4b;
    color: rgba(255,255,255,0.6);
    padding: 2rem 1rem;
    font-size: 0.875rem;
}
.gf-footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}
.gf-footer a:hover { color: #fff; }

/* ── Demo Signup ── */
.gf-demo-signup { background: var(--gf-bg); }
.gf-demo-card {
    background: #fff;
    border: 1px solid var(--gf-border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(124,58,237,0.07);
}
.gf-demo-header { text-align: center; margin-bottom: 1.75rem; }
.gf-demo-header h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: 0.5rem; }
.gf-demo-header p  { color: var(--gf-muted); margin: 0; }
.gf-demo-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
}
.gf-demo-note { color: var(--gf-muted); font-size: 0.8rem; text-align: center; }
.gf-honeypot  { opacity: 0; position: absolute; height: 0; width: 0; pointer-events: none; }

/* ── Responsive ── */
@media (max-width: 767px) {
    .gf-hero { padding: 3rem 0 2rem; }
    .gf-hero-actions { flex-direction: column; }
    .btn-gf-primary, .btn-gf-secondary { justify-content: center; }
}

/* ── RTL (Arabic) ── */
[dir="rtl"] body,
[dir="rtl"] p,
[dir="rtl"] span,
[dir="rtl"] label,
[dir="rtl"] input,
[dir="rtl"] button,
[dir="rtl"] a {
    font-family: 'Cairo', system-ui, sans-serif;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6,
[dir="rtl"] .gf-section-title,
[dir="rtl"] .gf-brand-text,
[dir="rtl"] .gf-demo-header h2,
[dir="rtl"] .gf-cta h2 {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
}

/* Flip hero: text right, mockup left (desktop only) */
@media (min-width: 992px) {
    [dir="rtl"] .gf-hero .row { flex-direction: row-reverse; }
}
[dir="rtl"] .gf-hero h1,
[dir="rtl"] .gf-hero-badge,
[dir="rtl"] .gf-hero-text { text-align: right; }

/* Occasions: right-aligned and wrap naturally */
[dir="rtl"] .gf-supported-occasions { justify-content: flex-end; }

/* Navbar RTL */
[dir="rtl"] .gf-navbar .container {
    flex-direction: row-reverse;
}
[dir="rtl"] .gf-navbar .ms-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}
[dir="rtl"] .gf-navbar .container > .gf-brand {
    order: 2;
}
[dir="rtl"] .gf-navbar .container > .ms-auto {
    order: 1;
}

/* Hero action buttons */
[dir="rtl"] .gf-hero-actions { flex-direction: row-reverse; justify-content: flex-start; }

/* Badge icon spacing */
[dir="rtl"] .gf-hero-badge .bi { margin-right: 0; margin-left: 0.35rem; }

/* Card icons inside feature cards */
[dir="rtl"] .gf-card { text-align: right; }

/* Steps */
[dir="rtl"] .gf-step-num { margin: 0 auto; }

/* Footer links */
[dir="rtl"] .gf-footer a { margin-left: 0; margin-right: 1.5rem; }

/* Mockup header dots */
[dir="rtl"] .gf-mockup-header { flex-direction: row-reverse; }

/* Demo card */
[dir="rtl"] .gf-demo-header { text-align: right; }
[dir="rtl"] .gf-demo-note   { text-align: right; }
[dir="rtl"] .form-label     { display: block; text-align: right; }
