/**
 * Base Styles
 * 
 * Reset, typography, and foundational styles.
 * 
 * @package hello-elementor-child
 * @since 1.0.0
 */

/* ============================================
   RESET / NORMALIZE
   ============================================ */

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

html {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: var(--leading-normal);
    color: var(--color-text);
    background-color: var(--color-bg);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 var(--space-4);
    font-family: var(--font-heading);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    color: var(--color-primary);
}

h1 {
    font-size: var(--text-5xl);
}

h2 {
    font-size: var(--text-4xl);
}

h3 {
    font-size: var(--text-3xl);
}

h4 {
    font-size: var(--text-2xl);
}

h5 {
    font-size: var(--text-xl);
}

h6 {
    font-size: var(--text-lg);
}

p {
    margin: 0 0 var(--space-4);
}

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

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

a:hover {
    color: var(--color-accent-hover);
}

strong, b {
    font-weight: var(--font-semibold);
}

small {
    font-size: var(--text-sm);
}

/* ============================================
   LISTS
   ============================================ */

ul, ol {
    margin: 0 0 var(--space-4);
    padding-left: var(--space-6);
}

li {
    margin-bottom: var(--space-2);
}

li:last-child {
    margin-bottom: 0;
}

/* ============================================
   IMAGES
   ============================================ */

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

figure {
    margin: 0;
}

/* ============================================
   FORMS
   ============================================ */

input,
textarea,
select,
button {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}

input:focus,
textarea:focus,
select:focus,
button:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}


/* Disable outline for mobile menu elements */
.hec-burger-btn:focus,
.hec-mobile-menu-close:focus,
.hec-mobile-submenu-toggle:focus,
.hec-mobile-menu-link:focus {
    outline: none;
}
/* ============================================
   LAYOUT UTILITIES
   ============================================ */

.hec-container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

@media (max-width: 1024px) {
    .hec-container {
        padding-left: var(--container-padding-mobile);
        padding-right: var(--container-padding-mobile);
    }
}

.hec-container--narrow {
    max-width: var(--container-width-narrow);
}

.hec-container--wide {
    max-width: var(--container-width-wide);
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    padding: var(--space-3) var(--space-6);
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-md);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: var(--space-4);
    color: var(--color-white);
}

/* ============================================
   SITE WRAPPER
   ============================================ */

.hec-site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.hec-main {
    flex: 1;
    /* padding-top is set via Customizer based on header position */
}

/* Fallback padding if Customizer CSS not loaded */
.hec-main:not([style]) {
    padding-top: var(--header-height);
}

@media (max-width: 1024px) {
    .hec-main:not([style]) {
        padding-top: var(--header-height-mobile);
    }
}

/* ============================================
   FOOTER BASE
   ============================================ */

.hec-footer {
    background-color: transparent;
    padding: var(--space-12) 0;
}

.hec-footer__container {
    text-align: center;
}

.hec-footer-menu {
    list-style: none;
    margin: 0 0 var(--space-6);
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4) var(--space-8);
}

.hec-footer-menu li {
    margin: 0;
}

.hec-footer-menu a {
    color: var(--color-text);
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.hec-footer-menu a:hover {
    color: var(--color-accent);
}

.hec-footer__copyright {
    color: var(--color-text-light);
    font-size: var(--text-sm);
}

.hec-footer__copyright p {
    margin: 0;
}

.hec-footer__copyright a {
    color: var(--color-text);
}

.hec-footer__copyright a:hover {
    color: var(--color-accent);
}

@media (max-width: 768px) {
    .hec-footer {
        padding: var(--space-8) 0;
    }
    
    .hec-footer-menu {
        flex-direction: column;
        gap: var(--space-3);
    }
}


/* Copyright bar */
.hec-copyright {
    background: var(--color-bg-light);;
    padding: 15px 0;
    text-align: center;
}

.hec-copyright p {
    margin: 0;
    color: #888;
    font-size: 14px;
}

.hec-copyright a {
    color: #c9a227;
}


/* ============================================
   FIX: Отступы для диапазона 1024-1200px
   ============================================ */

@media (min-width: 1024px) and (max-width: 1200px) {
    body .elementor-section-boxed > .elementor-container,
    body .e-con,
    body .e-con-inner {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    .hec-header-container {
            padding-left: 20px !important;
            padding-right: 20px !important;
        }
}


/*h1 { font-size: 40px !important; }*/
/*h2 { font-size: 32px !important; }*/
/*h3 { font-size: 28px !important; }*/
/*h4 { font-size: 24px !important; }*/
/*h5 { font-size: 20px !important; }*/
/*h6 { font-size: 18px !important; }*/


/*@media (max-width: 768px) {*/
/*    h1 { font-size: 32px !important; }*/
/*    h2 { font-size: 26px !important; }*/
/*    h3 { font-size: 22px !important; }*/
/*    h4 { font-size: 20px !important; }*/
/*    h5 { font-size: 18px !important; }*/
/*    h6 { font-size: 16px !important; }*/
/*}*/