/* Main Global Styles */

/* Typography */
@font-face {
    font-family: 'Teodor';
    src: url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');
}

:root {
    /* Colors */
    --primary-color: #1B1B18;
    --secondary-color: #212B33;
    --background-color: #EDE7DB;
    --text-light: #767676;
    
    /* Typography */
    --font-primary: 'Teodor', 'Playfair Display', serif;
    --font-secondary: 'Open Sans', sans-serif;
    
    /* Transitions */
    --transition-speed: 0.15s ease-out;
    --transition-smooth: 0.3s ease;
    
    /* Layout */
    --nav-height: 86px;
    --section-padding: 60px;
    --container-width: 1200px;
}

/* Global Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Spacing */
section {
    padding: var(--section-padding) 0;
}

/* Typography Styles */
h1, h2, h3 {
    font-family: var(--font-primary);
    color: var(--primary-color);
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 0.8rem;
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 0.6rem;
}

p {
    font-family: var(--font-secondary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--primary-color);
}

/* Navigation Styles */
#section-4hcS9sD17J,
#section-gs7_Vr7US1,
#section-p-41UvcD17 {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    width: 100%;
    background: var(--background-color);
    z-index: 1200;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    min-height: var(--nav-height);
}

/* Navigation Responsiveness */
@media (min-width: 1251px) {
    #section-gs7_Vr7US1,
    #section-p-41UvcD17 {
        display: none !important;
    }
    #section-4hcS9sD17J {
        display: block !important;
    }
}

@media (min-width: 481px) and (max-width: 1250px) {
    #section-4hcS9sD17J,
    #section-p-41UvcD17 {
        display: none !important;
    }
    #section-gs7_Vr7US1 {
        display: block !important;
    }
}

@media (max-width: 480px) {
    #section-4hcS9sD17J,
    #section-gs7_Vr7US1 {
        display: none !important;
    }
    #section-p-41UvcD17 {
        display: block !important;
    }
}

/* Button Styles */
.btn, .hero-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--primary-color);
    border-radius: 99px;
    background: transparent;
    color: var(--primary-color);
    padding: 8px 16px;
    overflow: hidden;
    font-family: var(--font-secondary);
    font-size: clamp(0.75rem, 1.2vw, 1rem);
    font-weight: 400;
    text-transform: uppercase;
    text-decoration: none;
    transition: all var(--transition-smooth);
    cursor: pointer;
}

.btn:hover,
.hero-button:hover {
    padding: 7px 15px;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Button Label Animation */
.btn .label,
.hero-button .label {
    display: inline-block;
    transition: transform var(--transition-smooth), opacity var(--transition-smooth);
}

.btn .label.default,
.hero-button .label.default {
    position: relative;
}

.btn .label.hover,
.hero-button .label.hover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 150%);
    opacity: 0;
}

.btn:hover .label.default,
.hero-button:hover .label.default {
    transform: translateY(-150%);
    opacity: 0;
}

.btn:hover .label.hover,
.hero-button:hover .label.hover {
    transform: translate(-50%, -50%);
    opacity: 1;
}

/* Top Bar */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
    z-index: 9999;
    transition: opacity 0.3s ease;
}

/* Footer Scroll Up Arrow */
.scroll-up-arrow {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
    z-index: 1000;
}

.scroll-up-arrow.visible {
    opacity: 0.8;
    visibility: visible;
}

.scroll-up-arrow:hover {
    opacity: 1;
    transform: translateY(-5px);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    :root {
        --section-padding: 40px;
        --nav-height: 70px;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* Hide elements in page builder mode */
.hl_page-creator--main #custom-code-mPkZnOXwXO,
.hl_page-creator--main #custom-code-pGUiFpVf-e,
.hl_page-creator--main #section-kYksPsq7_h {
    display: none !important;
}
