/* ========================================
   HABITRY™ GLOBAL STYLES
   Main stylesheet for all pages
======================================== */

/* CSS Variables */
:root {
    --deep-charcoal: #1C1C1C;
    --habitry-orange: #de6e26;
    --calm-gray: #F5F5F5;
    --white: #ffffff;
    --light-orange: #fff5f0;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--deep-charcoal);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--deep-charcoal);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

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

.logo img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--deep-charcoal);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--habitry-orange);
}

.nav-item-dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: var(--deep-charcoal);
    font-weight: 500;
    transition: color 0.3s ease;
}

.dropdown-toggle:hover {
    color: var(--habitry-orange);
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nav-item-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 240px;
    padding: 10px 0;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    margin-top: 10px;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--deep-charcoal);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background: var(--light-orange);
    color: var(--habitry-orange);
    padding-left: 25px;
}

.programs-dropdown {
    min-width: 280px;
}

.program-section {
    padding: 5px 0;
}

.program-section:not(:last-child) {
    border-bottom: 1px solid var(--light-orange);
    margin-bottom: 5px;
}

.program-section-title {
    padding: 8px 20px;
    font-weight: 600;
    color: var(--deep-charcoal);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.program-section a {
    padding-left: 30px;
    font-size: 0.9rem;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: left 0.3s ease;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
    list-style: none;
}

.mobile-nav-links a {
    text-decoration: none;
    color: var(--deep-charcoal);
    font-size: 1.3rem;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 15px 30px;
    border-radius: 10px;
}

.mobile-nav-links a:hover {
    color: var(--habitry-orange);
    background: var(--light-orange);
}

.mobile-dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--deep-charcoal);
    font-size: 1.3rem;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 15px 30px;
    border-radius: 10px;
}

.mobile-nav-links > li {
    margin: 0;
}

.mobile-dropdown-toggle:hover {
    color: var(--habitry-orange);
    background: var(--light-orange);
}

.mobile-dropdown-arrow {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.mobile-dropdown-toggle.active {
    color: var(--habitry-orange);
    background: var(--light-orange);
}

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

.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 0;
    margin-top: 0;
}

.mobile-dropdown-menu.active {
    max-height: 800px;
    margin-top: 10px;
}

.mobile-dropdown-menu li {
    list-style: none;
    margin: 10px 0;
}

.mobile-dropdown-menu a {
    font-size: 1.1rem;
    padding: 10px 20px;
    margin-left: 20px;
}

.mobile-program-section {
    margin: 10px 0;
}

.mobile-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--habitry-orange);
    padding: 5px 20px;
    margin-left: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-program-section a {
    font-size: 1rem;
    margin-left: 40px;
}

.cta-button {
    background: var(--habitry-orange);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(222, 110, 38, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(222, 110, 38, 0.4);
}

/* Footer Styles */
footer {
    background: var(--deep-charcoal);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-family: 'Comfortaa', sans-serif;
    margin-bottom: 20px;
    color: var(--habitry-orange);
}

.footer-section p,
.footer-section a {
    color: white;
    opacity: 0.8;
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--habitry-orange);
}

/* Responsive */
@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .dropdown-menu {
        display: none;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}