/*
 * Paella School Montero — shared site styles
 * Подключайте этот файл последним на каждой странице сайта.
 */

:root {
  --ink: #18232d;
  --ink-soft: #52606d;
  --navy: #243442;
  --navy-deep: #17242f;
  --gold: #f5b544;
  --gold-hover: #ffc75f;
  --cream: #fffaf0;
  --paper: #ffffff;
  --line: #e5e9ec;
  --shadow-sm: 0 8px 24px rgb(24 35 45 / 8%);
  --shadow-md: 0 18px 46px rgb(24 35 45 / 14%);
  --radius-sm: 12px;
  --radius-md: 20px;
  --content: 1180px;
  --transition: 180ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body::selection {
  color: var(--paper);
  background: var(--navy);
}

img,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: #965e00;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--transition), opacity var(--transition);
}

a:hover,
a:focus-visible {
  color: #694200;
}

:focus-visible {
  outline: 3px solid rgb(245 181 68 / 65%);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.65em;
  color: var(--ink);
  font-family: "Roboto Slab", Georgia, serif;
  font-weight: 700;
  line-height: 1.18;
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 5vw, 4.75rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 2rem); }

p {
  margin: 0 0 1.25rem;
}

.ast-container,
.elementor-container {
  width: min(100% - 40px, var(--content));
  margin-inline: auto;
}

#content,
.site-content,
.ast-article-single,
.entry-content {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Header and navigation */
.site-header,
.main-header-bar {
  background: rgb(36 52 66 / 96%);
}

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  box-shadow: 0 1px 0 rgb(255 255 255 / 10%), 0 8px 30px rgb(0 0 0 / 12%);
  backdrop-filter: blur(14px);
}

.main-header-container {
  min-height: 84px;
  gap: 28px;
}

.custom-logo-link img {
  width: 72px;
  max-height: 72px;
  object-fit: contain;
}

.main-header-menu {
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-header-menu > .menu-item > a,
.main-header-menu > .menu-item:not(:has(a)) {
  min-height: 44px;
  padding: 10px 14px;
  color: #fff;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-decoration: none;
  text-transform: uppercase;
}

.main-header-menu > .menu-item > a:hover,
.main-header-menu > .menu-item > a:focus-visible {
  color: var(--gold-hover);
  background: rgb(255 255 255 / 7%);
}

button,
.button,
.ast-button,
.elementor-button,
input[type="button"],
input[type="submit"] {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.5rem;
  color: #352405;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 8px 18px rgb(245 181 68 / 25%);
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.025em;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

button:hover,
.button:hover,
.ast-button:hover,
.elementor-button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
  color: #231702;
  background: var(--gold-hover);
  box-shadow: 0 12px 24px rgb(245 181 68 / 34%);
  transform: translateY(-2px);
}

/* Elementor sections and cards */
.elementor-section {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.elementor-section:nth-of-type(even) {
  background: var(--cream);
}

.elementor-column-wrap,
.elementor-widget-container {
  min-width: 0;
}

.elementor-widget-image img,
.elementor-image img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

.elementor-image-gallery img,
.slick-slide-image {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.elementor-widget-testimonial,
.elementor-widget-icon-box,
.elementor-widget-image-box {
  height: 100%;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgb(255 255 255 / 94%);
  box-shadow: var(--shadow-sm);
}

blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--cream);
  color: var(--ink-soft);
}

iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  color: var(--ink);
  border: 1px solid #cbd3d9;
  border-radius: 10px;
  background: #fff;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  outline: 3px solid rgb(245 181 68 / 18%);
}

/* Footer */
.site-footer,
.footer-adv-overlay,
.ast-footer-overlay {
  color: rgb(255 255 255 / 75%);
  background: var(--navy-deep);
}

.footer-adv-overlay {
  padding-block: 4rem 2.5rem;
}

.site-footer .widget-title,
.site-footer strong {
  color: #fff;
}

.site-footer a {
  color: rgb(255 255 255 / 78%);
  text-decoration: none;
}

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

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 0.55rem;
}

.ast-small-footer {
  border-top: 1px solid rgb(255 255 255 / 8%);
}

.ast-small-footer-wrap {
  padding-block: 1.2rem;
  font-size: 0.88rem;
}

/* Cookie banner */
#cookie-law-info-bar {
  right: 18px;
  bottom: 18px;
  left: 18px;
  width: min(720px, calc(100% - 36px));
  margin-inline: auto;
  padding: 16px 18px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 16px;
  color: #fff;
  background: rgb(23 36 47 / 97%);
  box-shadow: 0 20px 60px rgb(0 0 0 / 32%);
}

#cookie-law-info-bar .cli-plugin-button {
  min-height: 38px;
  margin: 5px !important;
  padding: 8px 15px;
  border-radius: 999px;
}

/* Images remain visible even if an old lazy-load plugin fails. */
img.lazyload,
img.lazyloading,
img.lazyloaded {
  opacity: 1 !important;
}

@media (max-width: 921px) {
  .main-header-container {
    min-height: 72px;
  }

  .main-header-bar-navigation {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    padding: 12px 20px 20px;
    background: var(--navy);
    box-shadow: var(--shadow-md);
  }

  .main-header-menu {
    display: grid !important;
    gap: 4px;
  }

  .main-header-menu > .menu-item > a,
  .main-header-menu > .menu-item:not(:has(a)) {
    width: 100%;
    justify-content: flex-start;
  }

  .footer-adv .ast-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .ast-container,
  .elementor-container {
    width: min(100% - 28px, var(--content));
  }

  .elementor-section {
    padding-block: 3.25rem;
  }

  .elementor-row {
    gap: 1.5rem;
  }

  .footer-adv .ast-row {
    grid-template-columns: 1fr;
  }

  #cookie-law-info-bar {
    font-size: 0.88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
