/*
Theme Name: Flowtrip
Template: generatepress
Version: 2.0.0
*/

:root {
    --bg: #0A0E14;
    --bg-card: #131820;
    --teal: #00E5A0;
    --orange: #FF6B35;
    --pink: #FF3CAC;
    --blue: #4DA8FF;
    --white: #FFFFFF;
    --text: #C8CCD4;
    --text-dim: #6B7280;
    --font-display: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    margin: 0; font-family: var(--font-body); font-weight: 400;
    font-size: 17px; line-height: 1.6; color: var(--text);
    background: var(--bg);
}

h1, h2, h3 { font-family: var(--font-display); color: var(--white); margin: 0; font-weight: 700; }
h1 { font-size: clamp(42px, 8vw, 80px); line-height: 1.0; letter-spacing: -2px; }
h2 { font-size: clamp(32px, 5vw, 56px); line-height: 1.1; letter-spacing: -1px; }
h3 { font-size: 14px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--teal); }

a { color: var(--teal); text-decoration: none; }
p { margin: 0; }

::selection { background: var(--teal); color: var(--bg); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 40px; }

.section-label {
    font-size: 11px; font-weight: 800; letter-spacing: 6px;
    text-transform: uppercase; 
    background: linear-gradient(135deg, var(--teal), var(--blue));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px; display: inline-block;
}

.button, .wp-block-button__link {
    display: inline-block; font-family: var(--font-body); font-weight: 700;
    font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
    padding: 16px 40px; border-radius: 100px;
    border: none; cursor: pointer; transition: all 0.3s ease;
    background: var(--teal); color: var(--bg); text-decoration: none;
    box-shadow: 0 4px 24px rgba(0,229,160,0.3);
}
.button:hover { background: var(--white); box-shadow: 0 8px 32px rgba(0,229,160,0.4); transform: translateY(-2px); }
.button-outline { background: transparent; border: 2px solid rgba(255,255,255,0.2); color: var(--white); box-shadow: none; }
.button-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.05); }

/* ═══ HEADER — frosted glass ═══ */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 16px 0; background: rgba(10,14,20,0.85);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 40px;
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
}
.site-branding { font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.site-branding a { color: var(--white); }
.site-branding .logo-dot { color: var(--teal); }

.header-nav { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; justify-content: center; }
.header-nav a {
    font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
    color: var(--text-dim); padding: 6px 0; transition: color 0.3s;
}
.header-nav a:hover { color: var(--white); }

/* ═══ CURSOR ═══ */
@media(min-width:769px){html,body,body *,a,button,input,textarea,select,.site-header,.hero,.routes,.gamification,.booking,.contact{cursor:none!important}}
#cursor{position:fixed;top:0;left:0;width:14px;height:14px;border-radius:50%;background:var(--teal);border:0;pointer-events:none;z-index:99999;transform:translate(-200px,-200px);will-change:transform,width,height;transition:width .3s ease,height .3s ease,background .3s ease;box-shadow:0 0 20px rgba(0,229,160,0.5)}
#cursor.hover{width:52px;height:52px;background:transparent;border:2px solid var(--teal);box-shadow:0 0 30px rgba(0,229,160,0.3)}
#cursor.active{width:6px!important;height:6px!important;background:var(--pink)!important}
@media(hover:none){#cursor{display:none}}

/* ═══ HERO — dramatic ═══ */
.hero {
    position: relative; min-height: 100vh;
    display: grid; grid-template-columns: 1fr 1fr; align-items: center;
    background: radial-gradient(ellipse at 30% 40%, #0D2338 0%, var(--bg) 70%);
    overflow: hidden;
}
.hero-split-left { padding: 120px 60px 80px 80px; color: var(--white); position: relative; z-index: 2; }
.hero-split-left h1 { 
    background: linear-gradient(135deg, var(--white) 0%, var(--teal) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 28px;
}
.hero-split-left .hero-subtext {
    font-size: 18px; font-weight: 400; opacity: 0.8; margin-bottom: 44px; max-width: 440px;
}
.hero-split-right {
    height: 100%; min-height: 400px;
    background-size: cover; background-position: center;
    clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
    position: relative;
}
.hero-split-right::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--teal), var(--pink));
    opacity: 0.2; mix-blend-mode: overlay;
}
.hero-centered { display: flex; justify-content: center; text-align: center; }
.hero-centered .hero-split-left { padding: 0 40px; max-width: 800px; }
.hero-centered .hero-split-left .hero-subtext { margin-left: auto; margin-right: auto; }
.hero-centered .hero-split-right { display: none; }

/* ═══ ROUTES — horizontal scroll ═══ */
.routes { padding: 160px 0; }
.routes-header { text-align: center; margin-bottom: 64px; }
.routes-scroll {
    display: flex; gap: 20px; overflow-x: auto; padding: 0 40px 20px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.routes-scroll::-webkit-scrollbar { height: 4px; }
.routes-scroll::-webkit-scrollbar-thumb { background: rgba(0,229,160,0.3); border-radius: 2px; }

.route-card {
    flex: 0 0 340px; scroll-snap-align: start;
    background: var(--bg-card); border-radius: 16px; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s, border-color 0.3s;
}
.route-card:hover { transform: translateY(-6px); border-color: rgba(0,229,160,0.3); }
.route-card-img { height: 200px; background-size: cover; background-position: center; display: flex; align-items: flex-end; }
.route-card-badge {
    display: inline-block; padding: 6px 16px; margin: 16px;
    font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; border-radius: 100px;
    color: var(--bg);
}
.route-card-badge.easy { background: var(--teal); }
.route-card-badge.medium { background: var(--blue); }
.route-card-badge.hard { background: var(--orange); }
.route-card-body { padding: 24px; }
.route-card-body h3 { font-size: 20px; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--white); margin-bottom: 8px; }
.route-card-body p { font-size: 14px; color: var(--text-dim); }
.route-card-meta { display: flex; gap: 20px; padding: 0 24px 24px; font-size: 12px; font-weight: 600; color: var(--text-dim); }
.route-card-meta span { display: flex; align-items: center; gap: 6px; }

/* ═══ GAMIFICATION — glowing milestones ═══ */
.gamification { padding: 160px 0; position: relative; }
.gamification-header { text-align: center; margin-bottom: 64px; }
.milestones {
    display: flex; justify-content: center; gap: 0;
    position: relative; max-width: 800px; margin: 0 auto;
}
.milestones::before {
    content: ''; position: absolute; top: 36px; left: 10%; right: 10%; height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--pink));
    z-index: 0; animation: progressFill 2s ease forwards;
}
@keyframes progressFill { from{transform:scaleX(0)} to{transform:scaleX(1)} }
.milestone { flex: 1; text-align: center; position: relative; z-index: 1; padding: 0 20px; }
.milestone-dot {
    width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 24px;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; font-weight: 800; color: var(--bg);
    animation: dotGlow 2s ease infinite;
    position: relative;
}
.milestone:nth-child(1) .milestone-dot { background: var(--teal); box-shadow: 0 0 30px rgba(0,229,160,0.4); }
.milestone:nth-child(2) .milestone-dot { background: var(--blue); box-shadow: 0 0 30px rgba(77,168,255,0.4); }
.milestone:nth-child(3) .milestone-dot { background: var(--pink); box-shadow: 0 0 30px rgba(255,60,172,0.4); }
@keyframes dotGlow { 0%,100%{filter:brightness(1)} 50%{filter:brightness(1.3)} }
.milestone:hover .milestone-dot { transform: scale(1.15); }
.milestone:nth-child(2) .milestone-dot { animation-delay: 0.4s; }
.milestone:nth-child(3) .milestone-dot { animation-delay: 0.8s; }
.milestone h3 { margin-bottom: 6px; color: var(--white); }
.milestone p { font-size: 13px; color: var(--text-dim); }

/* ═══ MAP ═══ */
.map-section { padding: 120px 0; }
#flowtrip-map { border-radius: 16px; overflow: hidden; border: none; box-shadow: 0 4px 32px rgba(0,0,0,0.3); background: #0A0E14; }
#flowtrip-map .leaflet-control-zoom a { background: var(--bg-card); color: var(--white); border-color: rgba(255,255,255,0.08); }
#flowtrip-map .leaflet-control-attribution { background: rgba(10,14,20,0.8); color: var(--text-dim); font-size: 10px; }

/* ═══ HYDRO ═══ */
.hydro { padding: 0 0 140px; }
.hydro-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.hydro-card { background: var(--bg-card); border-radius: 16px; padding: 36px 28px; text-align: center; border: 1px solid rgba(255,255,255,0.05); }
.hydro-name { font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; }
.hydro-value { font-family: var(--font-display); font-size: 52px; font-weight: 800; margin-bottom: 20px; line-height: 1; }
.hydro-bar { height: 8px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; margin: 0 0 16px; }
.hydro-fill { height: 100%; border-radius: 4px; transition: width 1.2s ease; }
.hydro-fill.normal { background: linear-gradient(90deg, var(--teal), var(--blue)); }
.hydro-fill.low { background: linear-gradient(90deg, var(--orange), var(--pink)); }
.hydro-fill.flood { background: linear-gradient(90deg, var(--pink), #C0392B); }
.hydro-status { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.hydro-status.normal { color: var(--teal); }
.hydro-status.low { color: var(--orange); }
.hydro-status.flood { color: #C0392B; }
.hydro-range { font-size: 11px; color: var(--text-dim); }

.booking-card {

/* ═══ BOOKING — calculator + form ═══ */
.booking { padding: 140px 0; text-align: center; }
.booking-card {
    max-width: 600px; margin: 48px auto 0; background: var(--bg-card);
    padding: 48px; border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}
.calc-grid { display: grid; grid-template-columns: 1fr 120px 1fr; gap: 12px; margin-bottom: 24px; }
.calc-field { text-align: left; }
.calc-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 8px; }
.calc-select { width: 100%; padding: 14px 16px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); color: var(--white); font-family: var(--font-body); font-size: 15px; border-radius: 8px; outline: none; }
.calc-select option { background: var(--bg-card); color: var(--white); }
.calc-counter { display: flex; align-items: center; border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; overflow: hidden; }
.calc-btn { width: 40px; height: 44px; border: none; background: rgba(255,255,255,0.04); color: var(--white); font-size: 18px; cursor: pointer; font-weight: 600; }
.calc-btn:hover { background: rgba(0,229,160,0.15); }
.calc-input { width: 52px; text-align: center; border: none; background: transparent; color: var(--white); font-family: var(--font-body); font-size: 16px; font-weight: 600; -moz-appearance:textfield; }
.calc-input::-webkit-outer-spin-button,.calc-input::-webkit-inner-spin-button { -webkit-appearance:none; }
.calc-date { width: 100%; padding: 14px 16px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); color: var(--white); font-family: var(--font-body); font-size: 15px; border-radius: 8px; outline: none; color-scheme: dark; }
.calc-date:focus { border-color: var(--teal); }
.calc-total { text-align: center; padding: 24px; background: rgba(0,229,160,0.06); border-radius: 12px; border: 1px solid rgba(0,229,160,0.1); margin-bottom: 24px; }
.calc-total-label { display: block; font-size: 10px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 8px; }
.calc-total-value { display: block; font-family: var(--font-display); font-size: 42px; font-weight: 800; color: var(--teal); line-height: 1.1; }
.calc-total-per { display: block; font-size: 13px; color: var(--text-dim); margin-top: 6px; }
.cf7-wrapper input, .cf7-wrapper textarea {
    width: 100%; padding: 14px 18px; margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03);
    font-family: var(--font-body); font-size: 15px; color: var(--white); outline: none; border-radius: 8px;
}
.cf7-wrapper input::placeholder, .cf7-wrapper textarea::placeholder { color: var(--text-dim); }
.cf7-wrapper input:focus, .cf7-wrapper textarea:focus { border-color: var(--teal); }
.cf7-wrapper textarea { min-height: 80px; resize: vertical; }
.cf7-wrapper .wpcf7-submit {
    width: 100%; padding: 16px; background: linear-gradient(135deg, var(--teal), var(--blue));
    color: var(--bg); border: none; font-family: var(--font-body); font-size: 13px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase; cursor: pointer; border-radius: 100px;
    box-shadow: 0 4px 24px rgba(0,229,160,0.3); transition: all 0.3s;
}
.cf7-wrapper .wpcf7-submit:hover { box-shadow: 0 8px 32px rgba(0,229,160,0.5); transform: translateY(-2px); }
.cf7-wrapper .wpcf7-spinner { display: none; }
.cf7-wrapper .wpcf7-response-output { font-size: 13px; text-align: center; padding: 12px; margin-top: 8px; color: var(--teal); border-radius: 8px; }

/* ═══ MINI-GAME ═══ */
.game-section { padding: 0 0 140px; }
.game-wrapper { position: relative; display: inline-block; max-width: 100%; }
.game-ui { display: flex; justify-content: space-between; max-width: 480px; margin: 12px auto 0; font-size: 13px; font-weight: 700; letter-spacing: 1px; }
.game-score { color: var(--teal); }
.game-best { color: var(--text-dim); }
.game-overlay { position: absolute; inset: 0; background: rgba(10,14,20,0.85); display: flex; align-items: center; justify-content: center; border-radius: 12px; cursor: pointer; }
.game-start-text { text-align: center; font-size: 18px; font-weight: 700; color: var(--white); line-height: 1.8; }

/* River Run game */
.river-wrapper { position: relative; display: inline-block; max-width: 100%; }
.river-wrapper canvas { display: block; }
.river-ui { display: flex; justify-content: space-between; margin: 10px auto 0; font-size: 14px; font-weight: 700; letter-spacing: 1px; }
.river-score { color: var(--teal); }
.river-best { color: var(--text-dim); font-size: 12px; }
.river-overlay { position: absolute; inset: 0; background: rgba(10,14,20,0.85); display: flex; align-items: center; justify-content: center; border-radius: 16px; cursor: pointer; }
.river-start-text { text-align: center; font-size: 22px; font-weight: 700; color: var(--white); line-height: 1.6; }
@media (max-width:768px){ .game-section { padding: 0 0 100px; } }
.contact { padding: 140px 0; text-align: center; }
.contact h2 { 
    background: linear-gradient(135deg, var(--teal), var(--pink));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.contact-subtext { color: var(--text-dim); margin-top: 12px; }
.contact-phone {
    display: block; font-family: var(--font-display); font-size: clamp(36px, 8vw, 72px); font-weight: 800;
    color: var(--white); margin: 40px 0;
}
.contact-phone:hover { color: var(--teal); }
.contact-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.contact-actions .button-outline { border-color: rgba(255,255,255,0.15); }

/* ═══ KAYAK — static decorative element ═══ */
.kayak-static {
    position: fixed; right: 28px; bottom: 28px; z-index: 500;
    font-size: 48px; pointer-events: none; opacity: 0.5;
    animation: kayakFloat 4s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0,229,160,0.3));
}
@keyframes kayakFloat {
    0%,100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-10px) rotate(3deg); }
}
@media (max-width: 768px) { .kayak-static { font-size: 32px; right: 12px; bottom: 12px; } }

/* ═══ SITE FOOTER ═══ */
.site-footer { display: none; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
    h1 { font-size: clamp(36px, 6vw, 56px); }
    h2 { font-size: clamp(28px, 4vw, 42px); }
    .hero { grid-template-columns: 1fr; }
    .hero-split-left { padding: 120px 40px 60px; text-align: center; }
    .hero-split-left .hero-subtext { margin: 0 auto 44px; }
    .hero-split-right { min-height: 300px; clip-path: none; }
    .routes-scroll { padding: 0 24px 12px; }
    .route-card { flex: 0 0 300px; }
    .hydro-grid { grid-template-columns: 1fr; }
    .milestones { flex-direction: column; gap: 40px; }
    .milestones::before { display: none; }
}
@media (max-width: 768px) {
    h1 { font-size: 34px; } h2 { font-size: 28px; }
    .container, .container-narrow, .header-inner { padding: 0 20px; }
    .header-inner { grid-template-columns: 1fr; gap: 10px; }
    .site-branding { text-align: center; }
    .header-nav { justify-content: center; gap: 18px; }
    .header-nav a { font-size: 10px; letter-spacing: 1.5px; }
    .hero-split-left { padding: 100px 20px 40px; }
    .hero-split-right { min-height: 240px; }
    .route-card { flex: 0 0 280px; }
    .booking-card { padding: 32px 20px; }
    .kayak-scene { right: 12px; }
    .kayak-svg { width: 50px; height: 80px; }
    .contact-phone { font-size: 28px; }
    .hydro-value { font-size: 36px; }
    .calc-grid { grid-template-columns: 1fr 1fr; }
    .calc-total-value { font-size: 32px; }
    .booking-card { padding: 32px 20px; }
    .routes, .gamification, .booking, .contact { padding: 100px 0; }
}
