/* Theme Name: Noho photo studio
Version: 1.0
*/

/* ---------- FONTS ---------- */

@font-face {
  font-display: swap;
  font-family: 'Yellowtail';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/yellowtail-v25-latin-regular.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/lora-v37-latin-regular.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  src: url('fonts/lora-v37-latin-italic.woff2') format('woff2'); 
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Lora, serif;
  font-weight: 400;
  color: #5e5e5e;
  font-size: 16px;
}

/* ---------- TYPOGRAPHY ---------- */

h1, h2, h3, h4, h5 {
  letter-spacing: 0.214em;
  line-height: 1.25;
}

h1, .h1, h2, .h2 {
	font-family: 'Yellowtail', serif, system-ui;
	color: #a89074;
	font-size: 57px;
	margin-bottom: 40px;
	line-height: 1.4;
	font-weight: 400;
	letter-spacing: normal;
}

@media (max-width: 991px) {
h1, .h1, h2, .h2 {
	font-size: 38px;
}
}

.has-x-large-font-size {
	font-size: 48px !important;
}

@media (max-width: 1535px) {
.has-x-large-font-size {
	font-size: 44px !important;
}
}

@media (max-width: 1279px) {
.has-x-large-font-size {
	font-size: 38px !important;
}
}

@media (max-width: 767px) {
.has-x-large-font-size {
	font-size: 32px !important;
}
}

.editor-styles-wrapper .wp-block-post-title {
    margin-bottom: 60px !important;
}

/* ---------- Header ---------- */

.header {
    padding: 45px 0 32px;
    position: relative;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.header__logo-wrapper {
    border-bottom: 1.5px solid #a48d71;
    padding-bottom: 8px;
    margin-bottom: 25px;
    display: inline-block;
    white-space: nowrap;
}

.header__logo {
    text-decoration: none;
    line-height: 1.2;
    font-size: 36px;
	color: #1b1b1b;
	letter-spacing: 0.214em;
    text-transform: uppercase;
    font-weight: 700;
    display: block;
}

/* --- Главный список меню (UL) --- */
.main-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
    justify-content: center;
	position: relative; 
    z-index: 999;
}

.main-menu-list li {
    position: relative;
}

/* Ссылки меню */
.main-menu-list li a {
    text-decoration: none;
    color: #1b1b1b;
    font-size: 16px;
	letter-spacing: 0.214em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 0;
    transition: color 0.3s ease;
    cursor: pointer;
}

.main-menu-list li a:hover {
    color: var(--accent-color);
}

/* --- Стрелочка (только для пунктов с подменю) --- */
.menu-item-has-children > a::after {
    content: '▼';
    font-size: 9px;
    margin-left: 5px;
    display: inline-block;
    transition: transform 0.3s ease;
}

/* Поворот стрелочки при активации кликом */
.menu-item-has-children.is-active > a::after {
    transform: rotate(180deg);
}

/* --- Выпадающее меню (Sub-menu) для Десктопа --- */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px); /* Центрируем и смещаем вниз */
    background: #fff;
    min-width: 260px;
    list-style: none;
    padding: 20px !important;
    margin: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-light);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    
    /* Скрыто по умолчанию */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Показ при клике (через класс .is-active) */
.menu-item-has-children.is-active > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.sub-menu li {
    width: 100%;
}

.sub-menu li a {
    font-size: 12px;
    padding: 8px 0;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    border-bottom: none;
}

/* --- Элементы мобильного меню (Скрыты на ПК) --- */
.header__burger, 
.header__close, 
.header__mobile-only {
    display: none;
}

/* --- АДАПТИВ (1024px и меньше) --- */
@media (max-width: 1024px) {
    .header {
        flex-direction: row;
        justify-content: center;
        padding: 15px 20px;
    }

    .header__logo-wrapper {
        margin-bottom: 0;
        padding-bottom: 5px;
    }

    .header__logo {
        font-size: 18px;
        letter-spacing: 3px;
    }

    /* Кнопка Бургер */
    .header__burger {
        display: block;
        position: absolute;
        left: 20px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
    }

    .header__burger-line, 
    .header__burger-line::before, 
    .header__burger-line::after {
        width: 22px;
        height: 1.5px;
        background: #000;
        display: block;
        transition: 0.3s;
    }
    .header__burger-line { position: relative; }
    .header__burger-line::before, 
    .header__burger-line::after { content: ""; position: absolute; left: 0; }
    .header__burger-line::before { top: -7px; }
    .header__burger-line::after { top: 7px; }

    /* Навигационная панель (Мобильная) */
    .header__nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: #fff;
        z-index: 1000;
        padding: 80px 40px;
        transition: left 0.4s cubic-bezier(0.77,0.2,0.05,1.0);
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    .header__nav.is-open {
        left: 0;
    }

    /* Кнопка закрытия */
    .header__close {
        display: block;
        position: absolute;
        top: 25px;
        right: 25px;
        font-size: 35px;
        line-height: 1;
        background: none;
        border: none;
        cursor: pointer;
        color: #000;
    }

    /* Список в мобилке */
    .main-menu-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
    }

    .main-menu-list li {
        width: 100%;
        display: block;
    }

    /* Подменю в мобилке (Аккордеон) - ИСПРАВЛЕНО */
    .sub-menu {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: none !important;
        border: none !important;
        padding: 10px 0 10px 20px !important; /* Внутренний отступ для иерархии */
        margin: 0 !important;
        width: 100% !important;
        
        /* Принудительно скрываем, пока нет класса .is-active */
        display: none !important; 
        flex-direction: column;
    }

    /* Показываем подменю, когда родитель активен */
    .menu-item-has-children.is-active > .sub-menu {
        display: flex !important;
    }

    .sub-menu li a {
        font-size: 14px !important;
        padding: 8px 0 !important;
        color: var(--text-color) !important;
    }

    /* Дополнительные блоки (Sign In / Bookings) */
    .header__mobile-only {
        display: block;
        margin-top: 30px; 
    }

    .header__divider {
        height: 1px;
        background: #eee;
        margin: 20px 0;
        width: 100%;
    }
}




.footer {
  padding: 60px 20px 30px;
  background-color: #fff;
  font-family: "Georgia", serif;
  color: #1a1a1a;
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Навигация футера */
.footer__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px 25px;
  margin: 0 0 40px 0;
  padding: 0;
}

/* Селектор для ссылок внутри меню футера */
.footer__list li a {
  text-decoration: none;
  color: #1a1a1a;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: color 0.3s;
}

.footer__list li a:hover {
  color: #b5a48b;
}

.footer__brand {
  margin-bottom: 50px;
  text-align: center;
}

.footer__brand-title {
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.footer__bottom {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  font-size: 12px;
  border-top: 1px solid #f0f0f0; /* Легкая линия разделения */
}

.footer__copyright {
  color: #666;
}

.footer__powered {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.footer__powered-text {
  font-size: 10px;
  color: #999;
  margin-bottom: 4px;
}

.footer__powered-logo {
  height: 18px;
  filter: grayscale(1);
  opacity: 0.7;
}

/* Адаптив */
@media (max-width: 768px) {
  .footer__bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer__powered {
    align-items: center;
  }

  .footer__list {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}

/* ---------- BUTTONS ---------- */

/* --- 1. Primary --- */
.is-style-btn-primary .wp-block-button__link {
    background-color: #000 !important; /* Твой основной цвет */
    color: #fff !important;
    border-radius: 4px;
}

/* --- 2. Secondary (Контурная) --- */
.is-style-btn-secondary .wp-block-button__link {
    background-color: transparent !important;
    border: 2px solid #fff !important;
	border-radius: 0 !important;
	text-transform: uppercase !important;
    color: #fff !important;
}

.is-style-btn-secondary .wp-block-button__link:hover {
    background-color: #e3c9ab !important;
    border: 2px solid #e3c9ab !important;	
    color: #000 !important;
}

/* --- 3. Accent (С тенью) --- */
.is-style-btn-accent .wp-block-button__link {
    background-color: #ff4500 !important; /* Яркий цвет */
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.3);
    border: none;
    transition: transform 0.2s ease;
}

.is-style-btn-accent .wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 69, 0, 0.4);
}