/*
Theme Name: Mia Bartending School
Theme URI: https://miabartendingschool.com
Author: Custom
Description: Тема для miabartendingschool.com — премиальный дизайн без Elementor. Адаптация под все устройства.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: mia-bartending-school
*/

/* ==========================================================================
   Design tokens — премиальная палитра
   ========================================================================== */
:root {
  --color-white: #ffffff;
  --color-dark: #323646;
  --color-gold: #b79643;
  --color-gold-light: #c4a652;
  --color-gold-hover: #9a7b38;
  --color-dark-deep: #232536;
  --color-dark-text: #323646;
  --color-body: #323646;
  --color-accent: #b79643;
  --color-accent-h: #9a7b38;
  --color-bg-dark: #1a1c26;
  --color-bg-darker: #0f1018;
  --color-bg-mid: #323646;
  --color-overlay: rgba(50, 54, 70, 0.82);
  --font-heading: 'Cinzel', serif;
  --font-subheading: 'Cormorant Unicase', serif;
  --font-body: 'Roboto Slab', serif;
  --container: 1140px;
  --section-padding: clamp(3rem, 6vw, 5rem);
  --section-padding-sm: clamp(2rem, 4vw, 3rem);
  --radius: 4px;
  --radius-btn: 3px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --transition: 0.25s ease;
}

/* ==========================================================================
   Base & typography
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.65;
  color: var(--color-body);
  background-color: var(--color-dark);
  -webkit-font-smoothing: antialiased;
}

/* Шаблоны с Tailwind (front-page, page-*.php) задают свои стили заголовкам */
#main h1,
#main h2,
#main h3,
#main h4 {
  font-family: inherit;
  text-transform: none;
  margin: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-subheading);
  font-weight: 600;
  text-transform: uppercase;
  margin: 0 0 0.6em;
  line-height: 1.2;
}

h1 { font-family: var(--font-heading); font-size: clamp(28px, 5vw, 56px); letter-spacing: 0.02em; }
h2 { font-size: clamp(26px, 4vw, 42px); letter-spacing: 0.03em; }
h3 { font-size: clamp(20px, 2.5vw, 28px); }
h4 { font-size: clamp(17px, 2vw, 20px); }

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--color-gold-hover); }

img { max-width: 100%; height: auto; display: block; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Layout
   ========================================================================== */
.site-main { display: block; min-height: 0; }
.front-page-content { display: block; }

.site-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

.section {
  padding: var(--section-padding) 0;
}

.section__content {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Welcome: двухколоночный блок с фото */
.section--welcome .section__content { max-width: none; text-align: left; }

.welcome__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.welcome__text .section__title { text-align: left; }
.welcome__text .section__highlight { text-align: left; }
.welcome__text .section__actions { justify-content: flex-start; }

.welcome__img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.welcome__img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* Полоска из 3 изображений между секциями */
.image-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 100%;
  overflow: hidden;
}

.image-strip img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* Gallery strip — 4 фото в ряд */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.gallery-strip img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.section--dark {
  background-color: var(--color-dark);
  color: #fff;
}

.section--light {
  background-color: #fff;
  color: var(--color-dark-text);
}

.section--gold {
  background: linear-gradient(180deg, var(--color-gold) 0%, var(--color-gold-hover) 100%);
  color: #fff;
}

/* ==========================================================================
   Section typography
   ========================================================================== */
.section__title {
  text-align: center;
  margin-bottom: 0.75rem;
}

.section__subtitle {
  text-align: center;
  font-family: var(--font-subheading);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.section--dark .section__title,
.section--gold .section__title { color: #fff; }

.section--dark .section__subtitle { color: rgba(255,255,255,0.9); }

.section__title--accent { color: var(--color-gold) !important; }

.section__lead {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  color: var(--color-body);
  max-width: 60ch;
}

.section--dark .section__lead { color: rgba(255,255,255,0.92); }

.section__content > p {
  max-width: 58ch;
  margin-left: auto;
  margin-right: auto;
}

.section__highlight {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem !important;
  color: var(--color-gold);
  font-size: clamp(1.1rem, 2vw, 1.35rem) !important;
}

.section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.section__subheading {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem !important;
  font-size: 1.15rem;
}

.section__list {
  text-align: left;
  max-width: 640px;
  margin: 1.5rem auto 2rem;
  padding-left: 1.5rem;
}

.section__list--bullets li {
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.section--dark .section__list { color: rgba(255,255,255,0.95); }

.class-schedule {
  text-align: left;
  max-width: 560px;
  margin: 2rem auto 2rem;
  padding: 1.5rem;
  background: rgba(0,0,0,0.04);
  border-radius: var(--radius);
}

.class-schedule__title {
  margin-bottom: 1rem !important;
  font-size: 1.1rem;
}

.class-schedule__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.class-schedule__list li {
  margin-bottom: 0.6rem;
  padding-left: 0;
  font-size: 0.95rem;
}

.cities-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem auto 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: center;
  max-width: 720px;
}

.cities-list li {
  margin: 0;
  font-size: 0.95rem;
  font-family: var(--font-subheading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--font-subheading);
  font-size: clamp(15px, 1.5vw, 17px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background-color: var(--color-gold);
  color: #fff !important;
  border: 2px solid transparent;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition), transform 0.2s;
}

.btn:hover {
  background-color: var(--color-gold-hover);
  color: #fff !important;
  transform: translateY(-1px);
}

.btn--hero {
  padding: 16px 32px;
  font-size: 1.05rem;
  box-shadow: var(--shadow);
}

.btn--dark {
  background-color: #1a1a1a;
  border-color: #1a1a1a;
}
.btn--dark:hover { background-color: var(--color-gold-hover); border-color: var(--color-gold-hover); }

.btn--outline {
  background: transparent;
  color: var(--color-dark-text) !important;
  border-color: var(--color-dark);
}
.section--light .btn--outline:hover { background: var(--color-dark); color: #fff !important; }

.btn--block { width: 100%; text-align: center; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--color-dark) linear-gradient(145deg, var(--color-dark) 0%, var(--color-dark-deep) 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  color: #fff;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.hero__title {
  color: #fff;
  margin-bottom: 0.4em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero__subtitle {
  font-family: var(--font-subheading);
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  font-weight: 600;
  margin-bottom: 1.75rem;
  opacity: 0.95;
}

.hero .btn { margin-top: 0.5rem; }

/* ==========================================================================
   Shape dividers — резкий треугольник, без зазора (часть следующей секции)
   ========================================================================== */
.shape-divider {
  display: block;
  width: 100%;
  height: 40px;
  margin: 0;
  padding: 0;
  line-height: 0;
  background: var(--color-dark);
  clip-path: polygon(0 0, 50% 100%, 100% 0);
}

.shape-divider--white {
  background: #fff;
  clip-path: polygon(0 0, 50% 100%, 100% 0);
}

.shape-divider--gold {
  background: var(--color-gold);
  clip-path: polygon(0 0, 50% 100%, 100% 0);
}

/* Секция с shape-divider сверху: без отступа сверху, контент с отступом */
.section--has-divider {
  padding-top: 0;
}

.section--has-divider > .site-container,
.section--has-divider > .section__content {
  padding-top: var(--section-padding);
}

/* ==========================================================================
   Features grid (Since 1978, Hands On, Three Certifications)
   ========================================================================== */
.section--features .section__subtitle { margin-bottom: 2.5rem; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
  margin-top: 0;
}

.feature {
  padding: 0 0.5rem;
}

.feature__icon {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  background-color: var(--color-dark-text);
  border-radius: 50%;
}

.section--dark .feature__icon { background-color: rgba(255,255,255,0.2); }

.feature__icon--star {
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  background: var(--color-dark-text);
  border-radius: 0;
}

.section--dark .feature__icon--star { background: #fff; }

.feature__icon--diamond {
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0 50%);
  background: var(--color-dark-text);
  border-radius: 0;
}

.section--dark .feature__icon--diamond { background: #fff; }

.feature__icon--cert {
  clip-path: polygon(15% 0%, 85% 0%, 100% 50%, 85% 100%, 15% 100%, 0 50%);
  background: var(--color-dark-text);
  border-radius: 0;
}

.section--dark .feature__icon--cert { background: #fff; }

.feature__title {
  margin-bottom: 0.5rem;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
}

.section--dark .feature__title { color: #fff; }

.feature__text {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  opacity: 0.9;
}

.section--light .feature__text { color: var(--color-body); }

/* ==========================================================================
   Cards grid
   ========================================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin-top: 0;
}

.card {
  background: transparent;
  text-align: center;
  transition: transform var(--transition);
}

.card:hover { transform: translateY(-4px); }

.card__link {
  display: block;
  color: #fff;
}

.card__link:hover { color: var(--color-gold); }

.card__img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-dark-deep);
  transition: box-shadow var(--transition), transform var(--transition);
}

.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card__link:hover .card__img {
  box-shadow: 0 8px 24px rgba(184, 149, 72, 0.35);
  transform: scale(1.02);
}

.card__title {
  font-size: 1.1rem;
  margin: 0;
  font-weight: 600;
}

/* ==========================================================================
   Contact form
   ========================================================================== */
.section--contact .section__subtitle { margin-bottom: 2rem; }

.contact-form {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(0,0,0,0.2);
  border-radius: var(--radius);
  text-align: left;
}

.contact-form__row {
  margin-bottom: 1.25rem;
}

.contact-form__row--full { margin-bottom: 1.5rem; }

.contact-form label {
  display: block;
  font-family: var(--font-subheading);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  color: #fff;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="date"],
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 16px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.95);
  color: #333;
  transition: border-color var(--transition), box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(184, 149, 72, 0.2);
}

.contact-form textarea { min-height: 120px; resize: vertical; }

.contact-form__note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  text-align: center;
}

/* ==========================================================================
   Header & Nav
   ========================================================================== */
.site-header {
  background: var(--color-dark);
  color: #fff;
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.site-header .site-container { position: relative; }

.site-header .site-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
}

.site-logo:hover { color: var(--color-gold); }

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.nav-menu a {
  color: #fff;
  font-family: var(--font-subheading);
  font-weight: 600;
  font-size: clamp(14px, 1.2vw, 16px);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.nav-menu a:hover { color: var(--color-gold); }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: var(--radius);
  cursor: pointer;
  color: #fff;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-dark-deep);
  color: rgba(255,255,255,0.7);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer .site-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.site-footer p { margin: 0; }

.site-footer .nav-menu { justify-content: center; }

/* ==========================================================================
   Utility
   ========================================================================== */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }

/* ==========================================================================
   Responsive — планшеты
   ========================================================================== */
@media (max-width: 1024px) {
  .welcome__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .welcome__img { order: -1; }

  .gallery-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .features {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-form {
    padding: 1.5rem;
  }
}

/* ==========================================================================
   Responsive — мобильные
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    --section-padding: clamp(2rem, 5vw, 3.5rem);
  }

  .hero { min-height: 60vh; }

  .section__content { text-align: center; }
  .section__content > p { margin-left: auto; margin-right: auto; }

  .welcome__text .section__title,
  .welcome__text .section__highlight,
  .welcome__text .section__actions { text-align: center; justify-content: center; }

  .image-strip {
    grid-template-columns: 1fr;
  }
  .image-strip img { height: 200px; }

  .gallery-strip {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .section__actions {
    flex-direction: column;
    align-items: center;
  }

  .section__actions .btn { width: 100%; max-width: 280px; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--color-dark);
    padding: 1rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  }

  .nav-menu.is-open { display: flex; }

  .nav-menu li { width: 100%; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-menu li:last-child { border-bottom: none; }
  .nav-menu a {
    display: block;
    padding: 1rem;
    font-size: 1rem;
  }

  .nav-toggle { display: flex; }

  .cards-grid { gap: 1.25rem; }

  .contact-form {
    padding: 1.25rem;
  }

  .shape-divider { height: 36px; }
}

/* ==========================================================================
   Responsive — маленькие экраны
   ========================================================================== */
@media (max-width: 480px) {
  .site-container { padding: 0 1rem; }

  .gallery-strip { grid-template-columns: 1fr; }

  .cards-grid { grid-template-columns: 1fr; }

  .btn { padding: 12px 22px; font-size: 14px; }

  .contact-form input,
  .contact-form textarea { font-size: 16px; } /* избегаем зума на iOS */
}

@media (max-width: 360px) {
  .hero__title { font-size: 26px; }
  .section__title { font-size: 22px; }
}
h1,h2,h3,h4,h5,h6{font-family:'Oswald',sans-serif!important;font-weight:700!important;}
.nav-link,.dropdown-item,.mobile-link,.mobile-group-label,.mobile-sublink,button,a[class*="uppercase"]{font-family:'Inter',sans-serif!important;font-weight:600!important;}

/* Scroll reveal */
.reveal{opacity:0;transform:translateY(26px);transition:opacity 0.7s cubic-bezier(0.16,1,0.3,1),transform 0.7s cubic-bezier(0.16,1,0.3,1);}
.reveal.visible{opacity:1;transform:none;}
.reveal-delay-1{transition-delay:.12s;}
.reveal-delay-2{transition-delay:.24s;}
.reveal-delay-3{transition-delay:.36s;}
.reveal-delay-4{transition-delay:.48s;}
.reveal-delay-5{transition-delay:.60s;}
