/*
Theme Name: Claim261
Theme URI: https://claim261.com
Author: Claim261 Team
Description: EU Flight Compensation Claim Website — All 7 pages with full content built-in. Dark Green premium design with EmailJS + WordPress database claims management.
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: claim261
*/

:root {
    --bg: #071510;
    --bg-mid: #0c1f18;
    --bg-card: #0f2318;
    --green: #1db954;
    --green-bright: #2ecc71;
    --green-dark: #0f7a32;
    --green-glow: rgba(29,185,84,0.15);
    --gold: #f0c040;
    --white: #f0faf4;
    --off-white: #d4edd9;
    --text-muted: #6b9478;
    --border: rgba(29,185,84,0.12);
    --border-hover: rgba(29,185,84,0.35);
    --shadow: 0 20px 60px rgba(0,0,0,0.5);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

img { max-width: 100%; height: auto; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-bright); }
ul { list-style: none; }

/* ===================== TYPOGRAPHY ===================== */
h1, h2, h3, h4, h5 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

/* ===================== NAVIGATION ===================== */
#main-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(7,21,16,0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s, box-shadow 0.3s;
}
#main-nav.scrolled {
    background: rgba(7,21,16,0.98);
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    max-width: 1340px;
    margin: 0 auto;
    height: 70px;
}
.nav-logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.55rem;
    color: var(--white) !important;
    text-decoration: none;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}
.nav-logo span { color: var(--green); }
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}
.nav-links li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.87rem;
    font-weight: 500;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}
.nav-links li a:hover,
.nav-links li.current-menu-item > a,
.nav-links li.current_page_item > a {
    color: var(--white);
    background: rgba(255,255,255,0.05);
}
.nav-right { display: flex; align-items: center; gap: 0.75rem; }
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--green);
    color: #071510 !important;
    padding: 0.55rem 1.25rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.84rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 4px 16px rgba(29,185,84,0.25);
    white-space: nowrap;
}
.nav-cta:hover { background: var(--green-bright); transform: translateY(-1px); color: #071510 !important; }

/* Language Switcher */
.lang-switcher { position: relative; }
.lang-btn {
    display: flex; align-items: center; gap: 0.35rem;
    background: rgba(29,185,84,0.08);
    border: 1px solid var(--border);
    color: var(--white);
    padding: 0.42rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem; font-weight: 500;
}
.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px); right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    min-width: 150px;
    box-shadow: var(--shadow);
    z-index: 999;
}
.lang-dropdown.open { display: block; animation: dropIn 0.2s ease; }
.lang-dropdown a {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.65rem 1rem;
    color: var(--text-muted);
    font-size: 0.83rem; font-weight: 500;
    transition: background 0.15s;
}
.lang-dropdown a:hover { background: var(--green-glow); color: var(--white); }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px; height: 36px;
    background: rgba(29,185,84,0.08);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
}
.hamburger span { display: block; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--bg-mid);
    border-top: 1px solid var(--border);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
}
.mobile-menu.open { display: flex; max-height: 600px; }
.mobile-menu a {
    color: var(--text-muted);
    padding: 0.85rem 5%;
    border-bottom: 1px solid var(--border);
    font-size: 0.93rem; font-weight: 500;
    transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--white); }
.mobile-menu .mobile-cta {
    margin: 1rem 5%;
    text-align: center;
    background: var(--green);
    color: #071510 !important;
    font-weight: 700;
    padding: 0.8rem;
    border-radius: 10px;
    border-bottom: none;
}

/* ===================== PAGE HEADER ===================== */
.page-header {
    padding: 9rem 5% 4rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, var(--bg) 0%, var(--bg-mid) 100%);
}
.page-header::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 60% at 65% 50%, var(--green-glow), transparent 70%);
}
.page-header-inner { position: relative; z-index: 1; max-width: 700px; animation: fadeUp 0.6s ease both; }
.page-tag {
    display: inline-block;
    background: rgba(29,185,84,0.12);
    border: 1px solid rgba(29,185,84,0.3);
    color: var(--green);
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    margin-bottom: 1rem;
}
.page-title { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.page-title .g { color: var(--green); }
.page-sub { color: var(--text-muted); font-size: 1rem; margin-top: 1rem; max-width: 540px; line-height: 1.7; }

/* ===================== SECTIONS ===================== */
section { padding: 5rem 5%; }
.container { max-width: 1300px; margin: 0 auto; }
.section-tag {
    display: inline-block;
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 2px; color: var(--green);
    text-transform: uppercase; margin-bottom: 0.7rem;
}
.section-title { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.section-title .g { color: var(--green); }
.section-sub { color: var(--text-muted); margin-top: 0.6rem; font-size: 0.95rem; max-width: 480px; }

/* ===================== CARDS ===================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: border-color 0.3s, transform 0.3s;
}
.card:hover { border-color: var(--border-hover); transform: translateY(-4px); }

/* ===================== BUTTONS ===================== */
.btn-primary {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--green); color: #071510;
    font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1rem;
    padding: 0.9rem 2rem; border-radius: 50px;
    text-decoration: none; border: none; cursor: pointer;
    box-shadow: 0 8px 30px rgba(29,185,84,0.35);
    transition: all 0.2s;
}
.btn-primary:hover { background: var(--green-bright); transform: translateY(-2px); color: #071510; }
.btn-secondary {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: transparent; color: var(--white);
    font-family: 'Outfit', sans-serif; font-weight: 500; font-size: 1rem;
    padding: 0.9rem 2rem; border-radius: 50px;
    text-decoration: none; border: 1px solid rgba(255,255,255,0.15);
    cursor: pointer; transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--green); color: var(--green); }

/* ===================== FORMS ===================== */
.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block;
    font-size: 0.73rem; font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    letter-spacing: 1px; text-transform: uppercase;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    font-size: 0.93rem;
    padding: 0.75rem 1rem;
    outline: none;
    transition: border-color 0.2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(29,185,84,0.1);
}
.form-group select option { background: var(--bg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.btn-form {
    width: 100%;
    background: var(--green); color: #071510;
    border: none; padding: 0.9rem;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1rem;
    cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.btn-form:hover { background: var(--green-bright); transform: translateY(-1px); }
.btn-form:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.field-error { border-color: #e24b4a !important; }
.error-msg { font-size: 0.73rem; color: #e24b4a; margin-top: 0.3rem; display: none; }

/* ===================== TRUST BAR ===================== */
.trust-bar {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.3rem 5%;
    display: flex; gap: 2.5rem;
    flex-wrap: wrap;
    justify-content: center; align-items: center;
}
.trust-item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.88rem; color: var(--text-muted); }
.trust-item strong { color: var(--white); }

/* ===================== FAQ ===================== */
.faq-item { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 0.7rem; overflow: hidden; }
.faq-q {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.1rem 1.4rem; cursor: pointer;
    font-weight: 600; font-size: 0.93rem;
    transition: background 0.2s;
}
.faq-q:hover { background: var(--green-glow); }
.faq-arrow { color: var(--green); transition: transform 0.3s; }
.faq-a {
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s;
    padding: 0 1.4rem; color: var(--text-muted);
    font-size: 0.88rem; line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 300px; padding: 0 1.4rem 1.2rem; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }

/* ===================== FOOTER ===================== */
#main-footer {
    background: #040e09;
    border-top: 1px solid var(--border);
    padding: 4rem 5% 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    max-width: 1340px;
    margin: 0 auto 2.5rem;
}
.footer-brand p { font-size: 0.83rem; color: var(--text-muted); line-height: 1.7; margin-top: 0.8rem; max-width: 240px; }
.footer-logo { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--white) !important; }
.footer-logo span { color: var(--green); }
.footer-socials { display: flex; gap: 0.5rem; margin-top: 1.2rem; }
.footer-socials a {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border: 1px solid var(--border); border-radius: 8px;
    color: var(--text-muted) !important; font-size: 0.82rem;
    transition: all 0.2s;
}
.footer-socials a:hover { border-color: var(--green); color: var(--green) !important; }
.footer-col h4 {
    font-family: 'Syne', sans-serif;
    font-size: 0.78rem; font-weight: 700;
    color: var(--white); margin-bottom: 1rem;
    letter-spacing: 1.5px; text-transform: uppercase;
}
.footer-col a { display: block; color: var(--text-muted) !important; font-size: 0.83rem; margin-bottom: 0.45rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--green) !important; }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap;
    gap: 1rem; font-size: 0.78rem; color: var(--text-muted);
    max-width: 1340px; margin: 0 auto;
}

/* ===================== LIVE CHAT ===================== */
.live-chat-btn {
    position: fixed;
    bottom: 2rem; right: 2rem;
    z-index: 9999;
    display: flex; align-items: center; gap: 0.5rem;
    background: var(--green); color: #071510;
    padding: 0.75rem 1.25rem;
    border-radius: 50px; cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 700; font-size: 0.88rem;
    box-shadow: 0 8px 30px rgba(29,185,84,0.45);
    transition: transform 0.2s;
    user-select: none; border: none;
}
.live-chat-btn:hover { transform: translateY(-3px); }
.chat-badge {
    background: #ff3b3b; color: #fff;
    border-radius: 50%; width: 18px; height: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem; font-weight: 700;
}
.chat-window {
    display: none;
    position: fixed;
    bottom: 5.5rem; right: 2rem;
    z-index: 9998;
    width: 350px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.65);
    overflow: hidden;
    flex-direction: column;
}
.chat-window.open { display: flex; }
.chat-header { background: var(--green); padding: 1rem 1.2rem; display: flex; justify-content: space-between; align-items: center; }
.chat-agent { display: flex; align-items: center; gap: 0.7rem; }
.agent-avatar { width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,0.2); display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; font-size: 0.9rem; }
.agent-name { font-weight: 700; font-size: 0.88rem; color: #071510; }
.agent-status { font-size: 0.72rem; color: rgba(7,21,16,0.7); display: flex; align-items: center; gap: 0.3rem; }
.status-dot { width: 6px; height: 6px; background: #071510; border-radius: 50%; }
.chat-close { background: none; border: none; color: #071510; font-size: 1rem; cursor: pointer; }
.chat-messages { flex: 1; padding: 1rem; max-height: 240px; overflow-y: auto; display: flex; flex-direction: column; gap: 0.6rem; }
.chat-msg { display: flex; flex-direction: column; }
.chat-msg.bot { align-items: flex-start; }
.chat-msg.user { align-items: flex-end; }
.msg-bubble { padding: 0.65rem 0.95rem; border-radius: 14px; font-size: 0.83rem; line-height: 1.5; max-width: 88%; }
.chat-msg.bot .msg-bubble { background: rgba(29,185,84,0.1); border: 1px solid var(--border); color: var(--white); border-bottom-left-radius: 4px; }
.chat-msg.user .msg-bubble { background: var(--green); color: #071510; border-bottom-right-radius: 4px; }
.msg-time { font-size: 0.67rem; color: var(--text-muted); margin-top: 0.2rem; }
.chat-quick-btns { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0 1rem 0.6rem; }
.chat-quick-btns button { background: rgba(29,185,84,0.08); border: 1px solid rgba(29,185,84,0.2); color: var(--green); padding: 0.3rem 0.75rem; border-radius: 50px; font-size: 0.72rem; cursor: pointer; font-family: 'Outfit', sans-serif; }
.chat-quick-btns button:hover { background: rgba(29,185,84,0.15); }
.chat-input-row { display: flex; gap: 0.5rem; padding: 0.75rem 1rem; border-top: 1px solid var(--border); }
.chat-input-row input { flex: 1; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 8px; color: var(--white); font-family: 'Outfit', sans-serif; font-size: 0.82rem; padding: 0.5rem 0.75rem; outline: none; }
.chat-input-row input:focus { border-color: var(--green); }
.chat-send { background: var(--green); border: none; color: #071510; border-radius: 8px; width: 34px; height: 34px; cursor: pointer; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; }

/* ===================== ANIMATIONS ===================== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes popIn { 0% { transform: scale(0.5); opacity: 0; } 70% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0.3; } }

.anim-1 { animation: fadeUp 0.6s ease both; }
.anim-2 { animation: fadeUp 0.6s 0.1s ease both; }
.anim-3 { animation: fadeUp 0.6s 0.2s ease both; }
.anim-4 { animation: fadeUp 0.6s 0.3s ease both; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 960px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .nav-cta { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .chat-window { width: calc(100vw - 2rem); right: 1rem; }
    .live-chat-btn { right: 1rem; bottom: 1rem; }
}

/* ===================== WP ADMIN BAR OFFSET ===================== */
.admin-bar #main-nav { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar #main-nav { top: 46px; } }
