/* ============================================
   FEZ & FRIENDS — shared styles
   Warm Moroccan, hand-drawn editorial feel
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;700&family=DM+Serif+Display&family=Manrope:wght@300;400;500;600;700&family=Amiri:wght@400;700&display=swap');

:root {
    --coral: #d96a5e;
    --coral-soft: #e88e84;
    --terracotta: #c45a3e;
    --mustard: #e6b547;
    --mustard-dark: #c89832;
    --brown: #6b4a32;
    --brown-soft: #8a6a4f;
    --cream: #fdf6ec;
    --cream-warm: #f7ead4;
    --paper: #fbf3e3;
    --ink: #2b1d12;
    --ink-soft: #4a3525;
    --line: #e6d5b8;

    --font-display: 'DM Serif Display', serif;
    --font-script: 'Caveat', cursive;
    --font-body: 'Manrope', sans-serif;
    --font-arabic: 'Amiri', serif;

    --shadow-soft: 0 10px 40px rgba(107, 74, 50, 0.08);
    --shadow-warm: 0 20px 60px rgba(196, 90, 62, 0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(230, 181, 71, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(217, 106, 94, 0.06) 0%, transparent 40%);
}

/* subtle paper grain */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.4;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.4 0 0 0 0 0.3 0 0 0 0 0.2 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =========== NAV =========== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 18px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(253, 246, 236, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    transition: padding .3s ease;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ink);
}
.nav__brand img { height: 44px; }
.nav__brand-text {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    display: none;
}

.nav__links {
    display: flex;
    gap: 36px;
    list-style: none;
}
.nav__links a {
    font-family: var(--font-body);
    font-weight: 500;
    text-decoration: none;
    color: var(--ink);
    font-size: 0.92rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    padding: 6px 0;
    transition: color .25s;
}
.nav__links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--coral);
    transition: width .3s ease;
}
.nav__links a:hover { color: var(--coral); }
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }
.nav__links a.active { color: var(--coral); }

.nav__cta {
    background: var(--ink);
    color: var(--cream);
    padding: 10px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: transform .25s, background .25s;
}
.nav__cta:hover { background: var(--coral); transform: translateY(-2px); }

.burger { display: none; cursor: pointer; background: none; border: none; padding: 8px; }
.burger span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

@media (max-width: 880px) {
    .nav { padding: 14px 20px; }
    .nav__links {
        position: fixed;
        top: 76px; left: 0; right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--cream);
        padding: 20px 0;
        border-bottom: 1px solid var(--line);
        transform: translateY(-120%);
        transition: transform .35s ease;
    }
    .nav__links.open { transform: translateY(0); }
    .nav__links li { width: 100%; text-align: center; }
    .nav__links a { display: block; padding: 16px 0; }
    .nav__cta { padding: 8px 16px; font-size: 0.78rem; }
    .burger { display: block; }
}

/* =========== FLOATING TRIPADVISOR =========== */
.ta-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 90;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #00aa6c;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 170, 108, 0.35), 0 4px 12px rgba(0,0,0,0.1);
    animation: ta-bob 3.5s ease-in-out infinite;
    transition: transform .3s ease, box-shadow .3s ease;
    border: 3px solid white;
}
.ta-float:hover {
    transform: scale(1.12) rotate(-6deg);
    box-shadow: 0 14px 36px rgba(0, 170, 108, 0.5);
    animation-play-state: paused;
}
.ta-float svg { width: 30px; height: 30px; }
.ta-float::after {
    content: 'Review us';
    position: absolute;
    right: 76px;
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    background: var(--ink);
    color: var(--cream);
    padding: 8px 14px;
    border-radius: 24px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s, transform .25s;
}
.ta-float:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }

@keyframes ta-bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

@media (max-width: 600px) {
    .ta-float { width: 54px; height: 54px; bottom: 16px; right: 16px; }
    .ta-float svg { width: 26px; height: 26px; }
    .ta-float::after { display: none; }
}

/* =========== FOOTER =========== */
.footer {
    background: var(--ink);
    color: var(--cream);
    padding: 70px 40px 28px;
    margin-top: 100px;
    position: relative;
}
.footer__grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(253, 246, 236, 0.15);
}
.footer__brand h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: var(--cream);
}
.footer__brand p { opacity: 0.7; max-width: 320px; font-size: 0.9rem; }
.footer__col h4 {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 18px;
    color: var(--mustard);
}
.footer__col a, .footer__col p {
    color: var(--cream);
    opacity: 0.75;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    margin-bottom: 8px;
    transition: opacity .25s, color .25s;
}
.footer__col a:hover { opacity: 1; color: var(--coral-soft); }
.footer__bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 24px;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.5;
}

@media (max-width: 760px) {
    .footer { padding: 48px 24px 24px; }
    .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* =========== UTILITY =========== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--coral);
    color: white;
    padding: 16px 32px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: transform .25s, background .25s, box-shadow .25s;
    box-shadow: 0 6px 20px rgba(217, 106, 94, 0.3);
}
.btn-primary:hover {
    background: var(--terracotta);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(196, 90, 62, 0.4);
}

.btn-whatsapp {
    background: #25D366;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover { background: #1da851; box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45); }

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.1;
    color: var(--ink);
    margin-bottom: 12px;
}
.section-kicker {
    font-family: var(--font-script);
    color: var(--coral);
    font-size: 1.6rem;
    margin-bottom: 8px;
    display: block;
}
.section-sub {
    color: var(--ink-soft);
    max-width: 580px;
    margin-bottom: 40px;
}

/* hand-drawn underline */
.underline-doodle {
    position: relative;
    display: inline-block;
}
.underline-doodle::after {
    content: '';
    position: absolute;
    left: -4%; right: -4%;
    bottom: -8px;
    height: 12px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 8 Q 50 2, 100 6 T 198 5' stroke='%23d96a5e' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

/* fade-in scroll */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* page transitions */
@keyframes pageEnter {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
main { animation: pageEnter .6s ease both; position: relative; z-index: 2; }
