/* Layout Components - Header, Footer, Navigation */

/* Header Navigation */
header {
    background: rgba(26, 26, 28, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1002;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--color-text-medium);
    text-decoration: none;
    font-weight: 300;
    font-size: 0.95rem;
    font-family: 'Lexend', sans-serif;
    transition: color var(--transition-normal);
}

.nav-links a:hover {
    color: #FFFFFF;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-dropdown > a::after {
    content: '▼';
    font-size: 0.7rem;
    transition: transform var(--transition-normal);
    position: relative;
    top: 2px;
}

.nav-dropdown:hover > a::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 1rem;
    background: rgba(26, 26, 28, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-sm);
    min-width: 220px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal), margin-top var(--transition-normal);
    box-shadow: var(--shadow-md);
}

/* Two-column layout for More Treatments dropdown */
.nav-dropdown:nth-child(2) .dropdown-menu {
    min-width: 440px;
    columns: 2;
    column-gap: 0;
    padding: 0;
}

.nav-dropdown:nth-child(2) .dropdown-menu a {
    break-inside: avoid;
    display: block;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 0.5rem;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--color-text-medium);
    text-decoration: none;
    font-size: 0.95rem;
    font-family: 'Lexend', sans-serif;
    font-weight: 300;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #FFFFFF;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1003;
    position: relative;
    width: 44px;
    height: 44px;
}

.hamburger span {
    width: 26px;
    height: 2px;
    background: var(--color-primary);
    transition: all var(--transition-normal);
    border-radius: 2px;
    display: block;
    position: absolute;
}

.hamburger span:nth-child(1) {
    top: 14px;
}

.hamburger span:nth-child(2) {
    top: 21px;
}

.hamburger span:nth-child(3) {
    top: 28px;
}

.hamburger.active span:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(26, 26, 28, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1001;
    padding: 100px 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-nav.active {
    transform: translateX(0);
    animation: slideInFromRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), transparent);
    z-index: -1;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.mobile-nav.active .mobile-nav-links a {
    animation: slideInMenuItem 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.mobile-nav-links a {
    color: var(--color-text-medium);
    text-decoration: none;
    font-weight: 300;
    font-size: 1.5rem;
    font-family: 'Lexend', sans-serif;
    transition: all var(--transition-normal);
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 10px;
    opacity: 0;
    transform: translateX(50px);
}

.mobile-nav-links a:nth-child(1) { animation-delay: 0.05s; }
.mobile-nav-links a:nth-child(2) { animation-delay: 0.1s; }
.mobile-nav-links a:nth-child(3) { animation-delay: 0.15s; }
.mobile-nav-links a:nth-child(4) { animation-delay: 0.2s; }
.mobile-nav-links a:nth-child(5) { animation-delay: 0.25s; }
.mobile-nav-links a:nth-child(6) { animation-delay: 0.3s; }

.mobile-nav-links a:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

/* Mobile Dropdown */
.mobile-nav-dropdown {
    display: flex;
    flex-direction: column;
}

.mobile-nav-dropdown > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-dropdown-toggle {
    font-size: 1.2rem;
    transition: transform var(--transition-normal);
}

.mobile-nav-dropdown.active .mobile-dropdown-toggle {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.mobile-nav-dropdown.active .mobile-dropdown-menu {
    display: flex;
}

.mobile-dropdown-menu a {
    font-size: 1.2rem;
    padding: 0.8rem 1rem;
    border-left: 2px solid rgba(212, 175, 55, 0.3);
    font-family: 'Lexend', sans-serif;
    font-weight: 300;
}

/* Footer */
footer {
    background: var(--color-bg-darker);
    padding: 3rem 2rem 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-section ul li a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--transition-normal);
    font-size: 0.95rem;
}

.footer-section ul li a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-dark);
    font-size: 0.9rem;
}

/* Mobile Responsive - Header/Nav/Footer Only */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}
