
/*
Theme Name: Canarias FAQ Plus
Theme URI: https://canarias-faq.com
Author: Sergey Kozlovskiy + ChatGPT
Description: Тема с интерактивной картой (Leaflet), FAQ-аккордеонами, анимациями AOS и выпадающим мобильным меню.
Version: 1.2.0
License: GPLv2 or later
Text Domain: canarias-faq-plus
*/

:root{
  --accent:#00BFA5;--accent2:#FFB300;--text:#333;--bg:#fff;--muted:#f6f7f8;--radius:12px
}
*{box-sizing:border-box}
body{margin:0;font-family:Montserrat,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;color:var(--text);background:var(--bg);line-height:1.6}
.container{max-width:1100px;margin:0 auto;padding:0 20px}

.site-header{background:var(--accent);color:#fff;position:sticky;top:0;z-index:1000;box-shadow:0 2px 8px rgba(0,0,0,.08)}
.site-header__wrap{display:flex;align-items:center;justify-content:space-between;padding:14px 0}
.site-brand{font-weight:800;font-size:1.25rem;letter-spacing:.3px}
.main-nav a{color:#fff;text-decoration:none;margin:0 12px;font-weight:600}
.main-nav a:hover{opacity:.9}

/* Hamburger button */
.menu-toggle{
  display:none;align-items:center;gap:8px;background:transparent;border:2px solid rgba(255,255,255,.8);
  color:#fff;border-radius:10px;padding:8px 12px;cursor:pointer;font-weight:700
}
.menu-toggle .bars{display:inline-block;width:18px;height:2px;background:#fff;position:relative}
.menu-toggle .bars::before,.menu-toggle .bars::after{content:"";position:absolute;left:0;width:18px;height:2px;background:#fff}
.menu-toggle .bars::before{top:-6px}.menu-toggle .bars::after{top:6px}

/* Drawer */
.drawer-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.35);backdrop-filter:saturate(120%) blur(2px);opacity:0;pointer-events:none;transition:opacity .25s;z-index:999}
.drawer{position:fixed;top:0;right:-320px;width:min(88vw,320px);height:100vh;background:#ffffff;border-left:8px solid var(--accent);box-shadow:-12px 0 30px rgba(0,0,0,.18);transition:right .3s ease;z-index:1000;display:flex;flex-direction:column}
.drawer header{padding:16px 18px;border-bottom:1px solid #eee;display:flex;justify-content:space-between;align-items:center}
.drawer header .title{font-weight:800;color:#111}
.drawer .drawer-menu{padding:12px 8px;list-style:none;margin:0}
.drawer .drawer-menu li{margin:2px 0}
.drawer .drawer-menu a{display:block;padding:12px 14px;border-radius:10px;color:#111;text-decoration:none}
.drawer .drawer-menu a:hover{background:#f2fffd;color:#000}
.drawer .lang{margin-top:auto;padding:16px;border-top:1px solid #eee;display:flex;gap:10px;justify-content:flex-start}

.drawer.open{right:0}
.drawer-backdrop.show{opacity:1;pointer-events:auto}

.hero{background:url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e') center/cover no-repeat;min-height:420px;display:flex;align-items:center;justify-content:center;position:relative}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.45),rgba(0,0,0,.25))}
.hero__inner{position:relative;z-index:1;text-align:center;color:#fff;padding:0 16px}
.hero__title{font-size:2.2rem;font-weight:800;margin:0 0 16px}
.search{display:flex;justify-content:center}
.search input{width:min(500px,80vw);padding:12px 14px;border-radius:10px 0 0 10px;border:none;outline:none}
.search button{border:none;background:var(--accent2);color:#111;padding:12px 16px;border-radius:0 10px 10px 0;font-weight:700;cursor:pointer}

.section{padding:48px 0}
.section h2{margin:0 0 18px}
.grid{display:grid;gap:18px;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.card{background:var(--muted);padding:14px;border-radius:var(--radius);text-align:center;transition:transform .25s,box-shadow .25s}
.card:hover{transform:translateY(-4px);box-shadow:0 16px 30px rgba(0,0,0,.08)}
.card img{width:100%;height:140px;object-fit:cover;border-radius:10px;margin-bottom:10px}

.map-wrap{height:420px;border-radius:12px;overflow:hidden;box-shadow:0 10px 28px rgba(0,0,0,.08)}
.faq{max-width:900px;margin:0 auto}
.faq-item{background:var(--muted);border-radius:12px;margin:10px 0;overflow:hidden}
.faq-q{width:100%;text-align:left;padding:14px 16px;font-weight:700;border:none;background:#eef;cursor:pointer}
.faq-a{padding:0 16px 16px 16px;display:none}

.site-footer{background:var(--accent);color:#fff;margin-top:32px}
.site-footer .container{padding:18px 20px;text-align:center}

html{scroll-behavior:smooth}
[data-aos]{opacity:0;transform:translateY(10px)}
[data-aos].aos-animate{opacity:1;transform:none;transition:all .6s ease}

@media (max-width:960px){
  .main-nav{display:none}
  .menu-toggle{display:flex}
}
