/*
Theme Name: Учи с мен
Theme URI: https://uchismen.bg/
Author: Учи с мен
Description: Тема за uchismen.bg — начална страница с редактируеми текстове (Външен вид → Персонализиране → „Учи с мен“), форма за запитване и страница за поверителност.
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: uchismen
*/

  :root{
    --navy:#062240;
    --navy-2:#0A3055;
    --forest:#145C2C;
    --forest-dark:#0B3D1B;
    --lime:#145C2C;        /* акцент = forest; държим ги отделно за бъдеща промяна */
    --lime-text:#4CAF63;
    --paper:#F3F1EB;
    --paper-2:#EAE7DD;
    --ink:#0E2033;
    --line:rgba(6,34,64,0.12);
  }
  *{box-sizing:border-box; margin:0; padding:0;}
  html{scroll-behavior:smooth;}
  body{
    background:var(--paper);
    color:var(--ink);
    font-family:'Inter', sans-serif;
    line-height:1.6;
    font-size:17px;
  }
  h1,h2,h3{font-family:'Montserrat', sans-serif; font-weight:700; line-height:1.15;}
  a{color:inherit;}
  .wrap{max-width:1120px; margin:0 auto; padding:0 32px;}

  .hero-eyebrow{
    font-family:'Montserrat', sans-serif; font-weight:800; font-size:30px;
    letter-spacing:0.2px; margin-bottom:6px; line-height:1;
  }
  .hero-eyebrow .part-white{color:#fff;}
  .hero-eyebrow .part-lime{color:var(--lime-text);}
  .hero{background:var(--navy); color:#fff; position:relative; overflow:hidden;}
  .hero .wrap{
    padding:44px 32px 0;
  }
  .hero-text{max-width:640px;}
  .hero h1{
    font-size:50px; color:#fff; max-width:14ch;
  }
  .hero h1 em{font-style:normal; color:var(--lime-text);}
  .hero .lede{margin-top:20px; max-width:46ch; font-size:17px; color:#fff; opacity:0.82;}
  .hero-ctas{margin-top:28px; display:flex; gap:14px; flex-wrap:wrap;}
  .btn{
    display:inline-block; text-decoration:none;
    background:var(--lime); color:#fff;
    padding:14px 24px; border-radius:100px; font-size:15px; font-weight:600;
    transition:transform 0.15s ease, background 0.15s ease;
  }
  .btn:hover{background:#1E7A3A;}
  .btn-ghost{
    background:transparent; border:1.5px solid rgba(255,255,255,0.35); color:#fff;
  }
  .btn-ghost:hover{background:rgba(255,255,255,0.08);}

  .mode-row{
    display:flex; gap:16px; padding:36px 0 44px; flex-wrap:wrap; max-width:700px;
  }
  .mode-pill{
    background:var(--navy-2); border-radius:16px; padding:16px 20px;
    display:flex; align-items:center; gap:14px; flex:1; min-width:220px;
  }
  .mode-pill .icon{
    width:38px; height:38px; border-radius:50%; background:var(--lime);
    display:flex; align-items:center; justify-content:center; flex-shrink:0;
  }
  .mode-pill .icon svg{width:19px; height:19px;}
  .mode-pill .label{font-weight:700; color:var(--lime-text); font-size:14.5px; letter-spacing:0.2px;}
  .mode-pill .sub{font-size:13.5px; color:#fff; opacity:0.75;}

  section{padding:74px 0;}

  .about{border-bottom:1px solid var(--line);}
  .about-eyebrow{
    text-align:center; margin-bottom:44px;
  }
  .about-eyebrow .label{
    font-family:'Montserrat', sans-serif; font-weight:800; font-size:32px; color:var(--navy);
  }
  .about-eyebrow .label mark{
    background:var(--lime); color:#fff; padding:2px 12px; border-radius:8px;
    display:inline-block; transform:rotate(-1.5deg); font-style:normal;
  }
  .about .wrap{display:grid; grid-template-columns:1fr 1.3fr; gap:52px; align-items:start;}
  .about-photo{
    width:100%; border-radius:18px; overflow:hidden; margin-top:20px;
  }
  .about-photo img{width:100%; height:auto; aspect-ratio:4/5; object-fit:cover; object-position:center top; display:block;}
  .kicker{font-size:22px; color:var(--forest); font-weight:600; margin-bottom:10px;}
  .about h2{font-size:30px; color:var(--navy); margin-bottom:18px;}
  .about p{max-width:56ch; opacity:0.85; margin-bottom:14px;}
  .facts{margin-top:24px; display:grid; grid-template-columns:1fr 1fr; gap:20px;}
  .fact{background:var(--paper-2); border-radius:14px; padding:18px 20px;}
  .fact .num{font-family:'Montserrat', sans-serif; font-weight:700; font-size:20px; color:var(--forest);}
  .fact .cap{font-size:13.5px; opacity:0.72; margin-top:4px;}

  .subjects{background:var(--paper-2);}
  .subjects h2{font-size:30px; color:var(--navy); margin-bottom:10px;}
  .subjects .lede{opacity:0.78; max-width:56ch; margin-bottom:36px;}
  .subj-grid{display:grid; grid-template-columns:repeat(3, 1fr); gap:16px;}
  .subj-card{
    background:#fff; border-radius:14px; padding:24px 22px; border:1px solid var(--line);
  }
  .subj-card.featured{background:var(--navy); border-color:var(--navy);}
  .subj-card.featured h3, .subj-card.featured p{color:#fff;}
  .subj-card.featured p{opacity:0.75;}
  .subj-card.featured .tag{color:#7FBF8F; border-color:rgba(127,191,143,0.4);}
  .subj-card h3{font-size:18px; color:var(--navy); margin-bottom:8px;}
  .subj-card p{font-size:14.5px; opacity:0.75;}
  .subj-card .tag{
    display:inline-block; font-size:12px; font-weight:600; color:var(--forest);
    border:1px solid rgba(20,92,44,0.35); border-radius:100px; padding:4px 11px; margin-bottom:12px;
  }

  .nearby{border-bottom:1px solid var(--line);}
  .nearby .wrap{display:grid; grid-template-columns:1fr 1fr; gap:52px; align-items:start;}
  .nearby h2{font-size:26px; color:var(--navy); margin-bottom:14px;}
  .nearby p{opacity:0.82; max-width:42ch;}
  .school-list{
    background:#fff; border:1px solid var(--line); border-radius:16px; padding:8px 4px;
  }
  .school-list li{
    list-style:none; display:flex; align-items:center; gap:12px;
    padding:12px 18px; font-size:14.5px; border-bottom:1px solid var(--line);
  }
  .school-list li:last-child{border-bottom:none;}
  .school-list .dot{width:7px; height:7px; border-radius:50%; background:var(--forest); flex-shrink:0;}

  .book{background:var(--navy); color:#fff;}
  .book .wrap{display:grid; grid-template-columns:1fr 1fr; gap:56px;}
  .book h2{font-size:30px; color:#fff; margin-bottom:14px;}
  .book p{opacity:0.78; max-width:42ch; margin-bottom:8px;}
  .contact-line{margin-top:20px; font-size:15.5px;}
  .contact-line strong{font-weight:600; color:#7FBF8F;}
  .contact-line a{color:#fff; text-decoration:none; border-bottom:1px solid rgba(255,255,255,0.4);}

  #booking-form{display:flex; flex-direction:column; gap:14px;}
  #booking-form label{font-size:13.5px; opacity:0.75; display:block; margin-bottom:5px;}
  #booking-form input, #booking-form select, #booking-form textarea{
    width:100%; padding:12px 13px; border:1px solid rgba(255,255,255,0.25); border-radius:10px;
    background:rgba(255,255,255,0.06); font-family:'Inter', sans-serif; font-size:15px; color:#fff;
  }
  #booking-form ::placeholder{color:rgba(255,255,255,0.45);}
  #booking-form select option{color:#000;}
  #booking-form textarea{min-height:84px; resize:vertical;}
  #booking-form input:focus, #booking-form select:focus, #booking-form textarea:focus{outline:2px solid var(--lime); outline-offset:1px;}
  #booking-form button{
    border:none; cursor:pointer; align-self:flex-start;
  }
  .consent{display:flex; gap:10px; align-items:flex-start;}
  #booking-form .consent input{width:auto; flex-shrink:0; margin-top:3px; accent-color:var(--lime);}
  #booking-form .consent label{font-size:13px; opacity:0.72; margin:0; line-height:1.5;}
  .consent a{color:#7FBF8F;}
  .hp{position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden;}
  .form-status{
    font-size:14.5px; padding:12px 14px; border-radius:10px; display:none;
  }
  .form-status.ok{display:block; background:rgba(76,175,99,0.15); border:1px solid rgba(76,175,99,0.4); color:#9FD9AE;}
  .form-status.err{display:block; background:rgba(255,120,120,0.12); border:1px solid rgba(255,120,120,0.4); color:#FFB4B4;}


  @media (max-width: 860px){
    .hero .wrap{grid-template-columns:1fr; padding-top:44px;}
    .about .wrap, .nearby .wrap, .book .wrap{grid-template-columns:1fr;}
    .subj-grid{grid-template-columns:1fr;}
    .facts{grid-template-columns:1fr;}
    .hero h1{font-size:34px;}
  }

  footer{padding:30px 0; background:var(--navy-2);}
  footer .wrap{display:flex; justify-content:space-between; align-items:center; font-size:13.5px; color:#fff; opacity:0.65; flex-wrap:wrap; gap:8px;}

  @media (prefers-reduced-motion: reduce){ html{scroll-behavior:auto;} }

  /* ---------- Вътрешни страници (поверителност и др.) ---------- */
  .top{background:var(--navy); color:#fff; padding:34px 0;}
  .top .brand{font-family:'Montserrat',sans-serif; font-weight:800; font-size:26px; text-decoration:none; color:#fff;}
  .top .brand span{color:var(--lime-text);}
  .legal{max-width:760px; margin:0 auto; padding:56px 32px 72px; line-height:1.65;}
  .legal h1{font-size:34px; color:var(--navy); margin-bottom:8px; font-family:'Montserrat',sans-serif;}
  .legal h2{font-size:20px; color:var(--navy); margin:36px 0 12px;}
  .legal p{margin-bottom:14px; opacity:0.88;}
  .legal ul{margin:0 0 14px 22px;}
  .legal li{margin-bottom:7px; opacity:0.88;}
  .legal a{color:var(--forest);}
  .legal .updated{font-size:14px; opacity:0.6; margin-bottom:40px;}
  .legal .note{background:#fff; border:1px solid var(--line); border-left:3px solid var(--forest); border-radius:10px; padding:16px 20px; margin:24px 0; font-size:15.5px;}
  footer a{color:#fff;}

  /* ---------- Хедър ---------- */
  .site-header{background:var(--navy); color:#fff; position:relative; z-index:20;}
  .site-header .wrap{display:flex; align-items:center; justify-content:space-between; gap:24px; min-height:76px; padding-top:12px; padding-bottom:12px;}
  .site-header .brand{font-family:'Montserrat',sans-serif; font-weight:800; font-size:26px; text-decoration:none; white-space:nowrap; line-height:1;}
  .site-header .brand .part-white{color:#fff;}
  .site-header .brand .part-lime{color:var(--lime-text);}
  .site-nav{display:flex; align-items:center; gap:28px;}
  .site-nav .menu{list-style:none; display:flex; align-items:center; gap:26px;}
  .site-nav .menu > li{position:relative; padding:10px 0;}
  .site-nav .menu a{color:#fff; text-decoration:none; font-size:15px; font-weight:500; opacity:0.85; transition:opacity .15s;}
  .site-nav .menu a:hover{opacity:1;}
  .site-nav .current-menu-item > a, .site-nav .current-menu-ancestor > a{color:var(--lime-text); opacity:1;}
  .site-nav .menu-item-has-children > a::after{content:""; display:inline-block; width:6px; height:6px; margin-left:7px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:translateY(-3px) rotate(45deg);}
  .site-nav .sub-menu{display:none; position:absolute; top:100%; left:-18px; min-width:230px; list-style:none; background:var(--navy-2); border-radius:12px; padding:8px 0; box-shadow:0 12px 30px rgba(0,0,0,0.25);}
  .site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu{display:block;}
  .site-nav .sub-menu a{display:block; padding:9px 18px; font-size:14.5px;}
  .btn-sm{padding:10px 20px; font-size:14px;}
  .nav-toggle{display:none; background:none; border:0; cursor:pointer; width:40px; height:40px; padding:9px 8px; flex-direction:column; justify-content:space-between;}
  .nav-toggle span{display:block; height:2px; background:#fff; border-radius:2px; transition:transform .2s, opacity .2s;}
  .nav-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(9px) rotate(45deg);}
  .nav-toggle[aria-expanded="true"] span:nth-child(2){opacity:0;}
  .nav-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-9px) rotate(-45deg);}

  @media (max-width: 860px){
    .site-header .brand{font-size:22px;}
    .nav-toggle{display:flex;}
    .nav-toggle + .site-nav{display:none; position:absolute; top:100%; left:0; right:0; background:var(--navy); flex-direction:column; align-items:stretch; gap:18px; padding:4px 32px 28px; border-top:1px solid rgba(255,255,255,0.1);}
    .nav-toggle + .site-nav.open{display:flex;}
    .site-nav .menu{flex-direction:column; align-items:stretch; gap:0;}
    .site-nav .menu > li{padding:0;}
    .site-nav .menu a{display:block; padding:13px 0; font-size:16px; border-bottom:1px solid rgba(255,255,255,0.08);}
    .site-nav .sub-menu{display:block; position:static; min-width:0; background:none; box-shadow:none; padding:0 0 0 16px; border-radius:0;}
    .site-nav .sub-menu a{padding:11px 0; font-size:15px;}
    .site-nav .menu-item-has-children > a::after{display:none;}
    .site-nav .btn-sm{align-self:flex-start;}
  }

  /* ---------- Футър меню ---------- */
  .footer-menu{list-style:none; display:flex; flex-wrap:wrap; gap:8px 22px;}
  .footer-menu a{color:#fff;}

  /* ---------- Съдържание от редактора (подстраници) ---------- */
  .entry-content img{max-width:100%; height:auto;}
  .entry-content h3{font-size:18px; color:var(--navy); margin:28px 0 10px;}
  .entry-content figure{margin:24px 0;}
  .entry-content figcaption{font-size:14px; opacity:0.65; margin-top:8px;}
  .entry-content blockquote{border-left:3px solid var(--forest); padding:4px 0 4px 18px; margin:24px 0; font-style:italic;}
  .entry-content table{width:100%; border-collapse:collapse; margin:20px 0; font-size:15.5px;}
  .entry-content th, .entry-content td{border-bottom:1px solid var(--line); padding:10px 12px; text-align:left;}
  .entry-content .wp-block-button__link{background:var(--forest); color:#fff; border-radius:100px; padding:13px 24px; font-size:15px; font-weight:600; text-decoration:none;}
  .entry-content .wp-block-button__link:hover{background:#1E7A3A;}
  .entry-content .is-style-outline .wp-block-button__link{background:transparent; color:var(--forest); border:1.5px solid var(--forest);}

  /* Широка страница */
  .page-hero{background:var(--navy); color:#fff; padding:36px 0 56px;}
  .page-hero h1{font-size:42px; color:#fff; max-width:22ch;}
  .page-body{padding-top:56px; padding-bottom:72px; line-height:1.65;}
  .page-body > * + *{margin-top:1.1em;}
  .page-body h2{font-size:28px; color:var(--navy); margin-top:1.6em;}
  .page-body p, .page-body li{opacity:0.88;}
  .page-body ul, .page-body ol{padding-left:22px;}
  .page-body a{color:var(--forest);}
  .page-body .alignfull{margin-left:calc(50% - 50vw); margin-right:calc(50% - 50vw); max-width:100vw; width:100vw;}
  @media (max-width: 860px){ .page-hero h1{font-size:30px;} }

  /* Футърът стои долу и при къси страници */
  body{display:flex; flex-direction:column; min-height:100vh;}
  .site-footer{margin-top:auto;}

  /* Началната страница под хедъра — без двойния отстъп отгоре */
  .hero{padding-top:0;}
  .hero > .wrap:first-child{padding-top:32px;}

  /* ---------- Стики хедър ---------- */
  .site-header{position:sticky; top:0; transition:box-shadow .2s;}
  .site-header.scrolled{box-shadow:0 6px 20px rgba(0,0,0,0.25);}
  body.admin-bar .site-header{top:32px;}
  @media (max-width: 782px){ body.admin-bar .site-header{top:46px;} }
  @media (max-width: 600px){ body.admin-bar .site-header{top:0;} }
  /* Котвите (#book, #about) да не остават под хедъра */
  html{scroll-padding-top:76px;}
  @media (max-width: 860px){
    .nav-toggle + .site-nav{max-height:calc(100vh - 76px); overflow-y:auto;}
  }

  /* ---------- Илюстрация в началото (глобус, компас, учебници) ---------- */
  .hero > .wrap:first-child{display:grid; grid-template-columns:minmax(0,1fr) 400px; gap:40px; align-items:start;}
  .hero-illo img{display:block; width:100%; height:auto;}
  @media (max-width: 1000px){
    .hero > .wrap:first-child{grid-template-columns:minmax(0,1fr) 300px;}
  }
  @media (max-width: 860px){
    .hero > .wrap:first-child{grid-template-columns:1fr;}
    .hero-illo{display:none;}
  }
