/**
 * Custom Styles for Realar Child
 * 
 * @package Realar Child
 */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100;200;300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@100;200;300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Infant:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&display=swap');

/* Font Awesome */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');

/* CSS Variables */
:root {
    --roheline: #d9d9d9;
    --heleroheline: #7e8b85;
    
    --font-family: "Inter", sans-serif;
    --second-family: "Outfit", sans-serif;
    --third-family: "Font Awesome 5 Brands", sans-serif;
    --font3: "Roboto", sans-serif;
    --font4: "Urbanist", sans-serif;
    --font5: "Cormorant Infant", sans-serif;
    --font6: "Crimson Text", sans-serif;
    --font7: "Font Awesome 5 Free", sans-serif;
    --font8: "Syne", sans-serif;
    --font9: "Arial", sans-serif;
}

/* Global Background */
body {
    background: #2b2b2b;
    overflow-x: hidden;
}

/* Main Content */
.site-main {
    width: 100%;
    background: #2b2b2b;
}

.site-main > * {
    margin: 0;
    padding: 0;
}

/* Header Styles */
.header {
    width: 100%;
    height: 120px;
    background-color: rgba(43, 43, 43, 1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header__container {
    max-width: 1784px;
    height: 120px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* Header Navigation */
.header__nav {
    display: flex;
    align-items: center;
    height: 120px;
    justify-content: flex-end;
    flex: 1;
    margin-left: auto;
    margin-right: 40px;
}

.header__menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
    height: 120px;
}

.header__menu > li {
    margin: 0;
    height: 120px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    position: relative;
}

.header__menu > li:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.header__menu > li > a {
    color: rgba(255, 255, 255, 1);
    font-size: 16px;
    font-family: var(--font-family);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.header__menu > li > a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Submenu indicator */
.header__menu .menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 6px;
    background-color: rgba(255, 255, 255, 1);
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    margin-left: 8px;
    vertical-align: middle;
}

/* Submenu styles */
.header__menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(43, 43, 43, 1);
    list-style: none;
    margin: 0;
    padding: 10px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

.header__menu .menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header__menu .sub-menu li {
    height: auto;
    padding: 0;
    display: block;
}

.header__menu .sub-menu li a {
    display: block;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 1);
    font-size: 15px;
    font-family: var(--font-family);
    text-decoration: none;
    font-weight: 400;
    transition: background-color 0.3s ease;
}

.header__menu .sub-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Header Logo */
.header__logo {
    max-width: 458px;
    height: 111.68px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
}

.header__logo-link {
    display: inline-block;
    height: 100%;
}

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

.header__logo-text {
    font-size: 24px;
    font-weight: 700;
    color: rgba(255, 255, 255, 1);
    text-decoration: none;
}

/* Header Button */
.header__button {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.header__btn {
    width: 193.88px;
    height: 48px;
    background-color: rgba(101, 84, 66, 1);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.header__btn:hover {
    background-color: rgba(121, 104, 86, 1);
}

.header__btn-text {
    color: rgba(255, 255, 255, 1);
    font-size: 16px;
    font-family: var(--font-family);
    text-align: center;
}

.header__btn-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header__btn-svg {
    width: 100%;
    height: 100%;
    color: rgba(242, 242, 243, 1);
}

/* Mobile Menu Toggle */
.header__toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.header__toggle-icon {
    display: block;
    width: 56px;
    height: 56px;
}

@media (max-width: 1300px){
    .header__logo {
        max-width: 345px;
        height: 83.68px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex-shrink: 0;
    }
}

/* Mobile Styles */
@media (max-width: 1200px) {
    .header__container {
        max-width: 100%;
        gap: 20px;
    }
    
    .header__logo {
        width: 200px;
        height: 47px;
    }

    .header__nav{
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .header {
        height: auto;
        min-height: 80px;
    }

    .header__container {
        height: auto;
        min-height: 80px;
        padding: 0 20px;
        flex-wrap: wrap;
    }

    .header__toggle {
        display: flex;
        order: 2;
        margin-left: auto;
        width: calc(100vw - 279px);
    }

    .header__toggle-icon {
        display: block;
        width: 56px;
        height: 56px;
        margin-left: auto;
    }

    .header__logo {
        order: 1;
        width: 200px;
        height: 50px;
    }

    .header__button {
        display: none;
    }

    .header__nav {
        order: 3;
        width: 100%;
        height: auto;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .header__nav.active {
        max-height: 500px;
    }

    .header__menu {
        flex-direction: column;
        height: auto;
        width: 100%;
        gap: 0;
    }

    .header__menu li {
        width: 100%;
        height: auto;
        padding: 15px 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .header__toggle.active .header__toggle-icon {
        opacity: 0.8;
    }
}

/* Footer Styles */
.footer {
    width: 100%;
    background-color: rgba(43, 43, 43, 1);
    padding: 77px 0 0;
}

.footer__container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 300px;
}

.footer__top {
    display: flex;
    gap: 120px;
    padding-bottom: 76px;
}

.footer__column {
    flex: 1;
}

.footer__column--about {
    max-width: 378px;
}

.footer__column--contact {
    max-width: 280px;
}

.footer__column--menu {
    max-width: 153px;
}

/* Footer Logo */
.footer__logo {
    width: 254px;
    height: 62px;
    margin-bottom: 30px;
}

.footer__logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Footer Description */
.footer__description{
    margin-bottom: 30px;
}

.footer__description p {
    color: rgba(207, 199, 178, 1);
    font-size: 16px;
    font-family: var(--font-family);
    line-height: 1.5;
 
}

.footer__description p {
    margin: 0;
}

/* Footer Social */
.footer__social {
    display: flex;
    gap: 16px;
}

.footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.footer__social-link:hover {
    opacity: 0.8;
}

.footer__social-link svg {
    display: block;
}

/* Footer Title */
.footer__title {
    color: rgba(207, 199, 178, 1);
    font-size: 24px;
    font-family: var(--font-family);
    font-weight: bold;
    margin: 0 0 30px 0;
}

/* Footer Contact List */
.footer__contact-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer__contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.footer__contact-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}

.footer__contact-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.footer__contact-text {
    color: rgba(207, 199, 178, 1);
    font-size: 16px;
    font-family: var(--font-family);
    line-height: 1.75;
}

.footer__contact-text a {
    color: rgba(207, 199, 178, 1);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__contact-text a:hover {
    color: rgba(255, 255, 255, 1);
}

/* Footer Menu */
.footer__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer__menu li {
    margin: 0;
    padding: 0;
    position: relative;
    padding-left: 22px;
}

.footer__menu li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1px;
    width: 8px;
    height: 21px;
    background-image: url("data:image/svg+xml,%3Csvg width='8' height='21' viewBox='0 0 8 21' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.78152 5.25L7.28152 10C7.40652 10.1458 7.46902 10.3125 7.46902 10.5C7.46902 10.6875 7.40652 10.8646 7.28152 11.0312L2.78152 15.7812C2.44819 16.0729 2.10444 16.0729 1.75027 15.7812C1.43777 15.4479 1.42735 15.0938 1.71902 14.7188L5.71902 10.5L1.71902 6.25C1.42735 5.89583 1.43777 5.55208 1.75027 5.21875C2.10444 4.92708 2.44819 4.9375 2.78152 5.25Z' fill='%23CFC7B2' /%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.footer__menu a {
    color: rgba(207, 199, 178, 1);
    font-size: 16px;
    font-family: var(--font-family);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__menu a:hover {
    color: rgba(255, 255, 255, 1);
}

/* Footer Bottom */
.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid rgba(207, 199, 178, 0.2);
}

.footer__copyright p{
    color: rgba(207, 199, 178, 1);
    font-size: 16px;
    font-family: var(--font-family);
}

.footer__copyright p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.footer__copyright svg {
    flex-shrink: 0;
}

.footer__copyright-brand {
    font-weight: 600;
}

.footer__links {
    display: flex;
    gap: 20px;
}

.footer__link {
    color: rgba(207, 199, 178, 1);
    font-size: 16px;
    font-family: var(--font-family);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__link:hover {
    color: rgba(255, 255, 255, 1);
}

/* Footer Responsive */
@media (max-width: 1600px) {
    .footer__container {
        padding: 0 100px;
    }
}

@media (max-width: 1200px) {
    .footer__container {
        padding: 0 40px;
    }

    .footer__top {
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 0;
    }

    .footer__container {
        padding: 0 20px;
    }

    .footer__top {
        flex-direction: column;
        gap: 40px;
        padding-bottom: 40px;
    }

    .footer__column,
    .footer__column--about,
    .footer__column--contact,
    .footer__column--menu {
        max-width: 100%;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .footer__links {
        flex-direction: column;
        gap: 10px;
    }
}

/* ============================================
   INNER PAGE TEMPLATE STYLES
   ============================================ */

.inner-page {
    background-color: #2b2b2b;
}

/* Inner Page Content */
.inner-page__content {
    background-color: #2b2b2b;
}

/* Content Width for Inner Pages */
.inner-page__content > .wp-block-group,
.inner-page__content > section,
.inner-page__content > .acf-block-preview {
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
}
