/*
Theme Name: Divi Cake Child Theme
Theme URI: https://divicake.com/
Description: Child theme for web projects with local fonts support
Version: 2.7
Author: Dzmitry Khatskou
Author URI: https://dkweb.pro/
Template: Divi
*/

/* --- FONT REGISTRATION --- */

/* Oswald: 400, 500, 600 */
@font-face {
  font-display: swap;
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/oswald-v57-latin-ext-regular.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/oswald-v57-latin-ext-500.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/oswald-v57-latin-ext-600.woff2') format('woff2');
}

/* Raleway: 300, 400, 500 */
@font-face {
  font-display: swap;
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 300;
  src: url('fonts/raleway-v37-latin-ext-300.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/raleway-v37-latin-ext-regular.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/raleway-v37-latin-ext-500.woff2') format('woff2');
}

/* --- BASE STYLES --- */

body {
    font-family: 'Raleway', sans-serif !important;
    font-weight: 400 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-variant-numeric: lining-nums;
    font-feature-settings: "lnum";
}

#page-container, 
#page-container p, 
#page-container li, 
.et_pb_text_inner,
.et_pb_module {
    font-family: 'Raleway', sans-serif !important;
    font-weight: 400 !important;
}

#page-container h1, 
#page-container h2, 
#page-container h3, 
#page-container h4, 
#page-container h5, 
#page-container h6 {
    font-family: 'Oswald', sans-serif !important;
    font-synthesis: none;
}

/* --- TYPOGRAPHY --- */

h1 { font-size: clamp(40px, 5vw, 72px); font-weight: 600; line-height: 1.1; }
h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 600; line-height: 1.2; }
h3 { font-size: clamp(26px, 2.5vw, 32px); font-weight: 500; }
h4 { font-size: clamp(22px, 2vw, 26px); font-weight: 500; }
h5 { font-size: 19px; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }
h6 { font-size: 17px; font-weight: 400; }

/* --- FORMS & INPUTS --- */

.et_pb_contact_form input, 
.et_pb_contact_form textarea, 
.et_pb_contact_form button,
.et_pb_contact_field input,
.et_pb_contact_field select {
    font-family: inherit !important;
}

.et_pb_contact_form input::placeholder,
.et_pb_contact_form textarea::placeholder {
    font-family: inherit !important;
}

/* --- HEADER & NAVIGATION --- */

#page-container #main-header {
  background-color: transparent !important;
  box-shadow: none !important;
  border-bottom: none !important;
  transition: all 0.4s ease !important;
}

#page-container #main-header #top-menu-nav #top-menu a {
  color: #ffffff !important;
  font-weight: 500 !important;
  letter-spacing: 1px !important;
}

#page-container #main-header.et-fixed-header {
  background-color: rgba(255, 255, 255, 0.5) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

#page-container #main-header.et-fixed-header #top-menu-nav #top-menu a {
  color: #333333 !important;
}

#page-container .et_mobile_menu {
  background-color: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-radius: 8px !important;
  border-top: 2px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
}

#page-container .et_mobile_menu li a {
  color: #ffffff !important;
  text-shadow: 0px 2px 8px rgba(0,0,0,0.5) !important;
  border-bottom: none !important;
}

#et-open-mobile-menu::before { color: #ffffff !important; }
.et-fixed-header #et-open-mobile-menu::before { color: #333333 !important; }

#main-header:not(.et-fixed-header) #logo { filter: brightness(0) invert(1) !important; }
#main-header.et-fixed-header #logo { filter: none !important; }

/* --- WP SIMPLE BOOKING CALENDAR --- */

/* Force 100% width and remove hard limits */
.wpsbc-calendar {
    min-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    overflow: hidden !important;
}

.wpsbc-calendar table {
    width: 100% !important;
    table-layout: fixed !important;
}

.wpsbc-date-inner {
    width: 100% !important;
    text-align: center !important;
}

.wpsbc-legend {
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

/* Fonts & Lining Numbers */
.wpbs-container, .wpbs-container *,
.wpsbc-container, .wpsbc-container *,
.wpsbc-container select,
.wpsbc-container select option {
    font-family: 'Raleway', sans-serif !important;
    font-variant-numeric: lining-nums !important;
    font-feature-settings: "lnum" 1 !important;
}

/* Reset dropdown appearance */
.wpsbc-container select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: transparent;
    padding: 2px 10px !important;
}

.wpsbc-legend-item { font-family: 'Raleway', sans-serif !important; font-size: 14px; }

/* Headers Styling */
.wpsbc-month-label, 
.wpsbc-names-row th,
.wpsbc-names-row span {
    font-family: 'Oswald', sans-serif !important;
    text-transform: uppercase !important;
}
/* Центрируем ссылки в мобильном меню */
#page-container .et_mobile_menu li {
    text-align: center !important;
}

#page-container .et_mobile_menu li a {
    display: block !important;
    width: 100%;
    padding: 12px 0 !important; /* Увеличим область клика */
}

.hero-full-height {
    height: 100vh !important; /* Фолбэк для старых браузеров */
    height: 100dvh !important; /* Современный стандарт для мобилок */
    min-height: 100dvh !important;
}
