/* ============================================
   YOGAMO — Custom Theme Styles
   Complementary styles to Tailwind CSS
   ============================================ */

/* --- Base Typography & Body --- */
body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    color: #4a4a4a;
    background-color: #FAFAFA;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.font-serif {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    color: #2d3748;
}

/* --- Smooth Scroll --- */
html {
    scroll-behavior: smooth;
}

/* --- Body Scroll Lock (menu/modal open) --- */
.menu-open {
    overflow: hidden;
}

/* --- Fullscreen Navigation Menu --- */
#fullscreen-menu {
    transition: opacity 0.5s ease, visibility 0.5s ease;
    opacity: 0;
    visibility: hidden;
}

#fullscreen-menu.active {
    opacity: 1;
    visibility: visible;
}

/* --- Centered Menu Nav --- */
.menu-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-align: center;
    overflow-y: auto;
    max-height: 100vh;
    padding: 7rem 1.5rem 3rem;
    -webkit-overflow-scrolling: touch;
}

/* Menu item group (parent + submenu) */
.menu-item-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Top-level menu links & toggle buttons */
.menu-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 1.15rem;
    color: #2d3748;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0.5rem 0;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
    text-decoration: none;
}

.menu-link:hover {
    color: #8A9A86;
}

.menu-link.active {
    color: #8A9A86;
}

/* Chevron arrow (points down ∨) */
.submenu-chevron {
    width: 0.7rem;
    height: 0.7rem;
    opacity: 0.4;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-link:hover .submenu-chevron {
    opacity: 0.7;
}

.menu-link.active .submenu-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

/* Expandable submenu items */
.submenu-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease 0.05s,
                padding 0.3s ease;
    padding: 0;
}

.menu-item-group.open .submenu-items {
    max-height: 500px;
    opacity: 1;
    padding: 0.4rem 0 0.25rem;
}

.submenu-link {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    color: #4a4a4a;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.3rem 0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.submenu-link:hover {
    color: #8A9A86;
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* --- Mobile landscape --- */
@media (max-width: 900px) and (orientation: landscape) {
    .menu-nav {
        padding-top: 5.5rem;
        gap: 0.15rem;
    }

    .menu-link {
        font-size: 0.85rem;
        padding: 0.3rem 0;
    }

    .submenu-link {
        font-size: 0.7rem;
        padding: 0.2rem 0;
    }

    .submenu-chevron {
        width: 0.55rem;
        height: 0.55rem;
    }
}

/* --- Small tablet (iPad Mini: 768–1023px) --- */
@media (min-width: 768px) and (max-width: 1023px) {
    .menu-nav {
        gap: 0.35rem;
    }

    .menu-link {
        font-size: 1.25rem;
        padding: 0.55rem 0;
    }

    .submenu-link {
        font-size: 0.95rem;
        padding: 0.35rem 0;
    }

    .submenu-chevron {
        width: 0.75rem;
        height: 0.75rem;
    }
}

/* --- Medium desktop (1024–1279px) --- */
@media (min-width: 1024px) and (max-width: 1279px) {
    .menu-nav {
        gap: 0.5rem;
    }

    .menu-link {
        font-size: 1.75rem;
        gap: 0.65rem;
        padding: 0.6rem 0;
    }

    .submenu-link {
        font-size: 1.1rem;
        padding: 0.4rem 0;
    }

    .submenu-chevron {
        width: 0.9rem;
        height: 0.9rem;
    }
}

/* --- Large desktop (1280px+) --- */
@media (min-width: 1280px) {
    .menu-nav {
        gap: 0.6rem;
    }

    .menu-link {
        font-size: 2.25rem;
        gap: 0.75rem;
        padding: 0.65rem 0;
    }

    .submenu-link {
        font-size: 1.3rem;
        padding: 0.45rem 0;
    }

    .submenu-chevron {
        width: 1rem;
        height: 1rem;
    }
}

/* --- Video Modal --- */
#video-modal {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#video-modal.active {
    opacity: 1;
    visibility: visible;
}

/* --- Minimal Form Inputs --- */
.input-minimal {
    border-bottom: 1px solid #cbd5e1;
    border-top: none;
    border-left: none;
    border-right: none;
    border-radius: 0;
    background: transparent;
    padding: 0.75rem 0;
    width: 100%;
    transition: border-color 0.3s;
    color: #4a4a4a;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 0.875rem;
}

.input-minimal:focus {
    outline: none;
    border-bottom-color: #8A9A86;
    box-shadow: none;
}

.input-minimal::placeholder {
    color: #94a3b8;
    font-weight: 300;
}

/* --- WordPress Content Prose Styling --- */
.yogamo-prose p {
    color: #4a4a4a;
    font-weight: 300;
    line-height: 2;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.yogamo-prose h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.25rem;
    color: #2d3748;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.yogamo-prose h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    color: #2d3748;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.yogamo-prose ul,
.yogamo-prose ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: #4a4a4a;
    font-weight: 300;
    line-height: 2;
}

.yogamo-prose ul {
    list-style-type: disc;
}

.yogamo-prose ol {
    list-style-type: decimal;
}

.yogamo-prose a {
    color: #8A9A86;
    text-decoration: underline;
    transition: color 0.3s;
}

.yogamo-prose a:hover {
    color: #5C6B58;
}

.yogamo-prose img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
}

.yogamo-prose blockquote {
    border-left: 2px solid #8A9A86;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.25rem;
    color: #2d3748;
}

.yogamo-prose strong {
    font-weight: 500;
    color: #2d3748;
}

/* --- Contact Form 7 Compatibility --- */
.wpcf7 .wpcf7-form-control {
    border-bottom: 1px solid #cbd5e1;
    border-top: none;
    border-left: none;
    border-right: none;
    border-radius: 0;
    background: transparent;
    padding: 0.75rem 0;
    width: 100%;
    transition: border-color 0.3s;
    color: #4a4a4a;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
}

.wpcf7 .wpcf7-form-control:focus {
    outline: none;
    border-bottom-color: #8A9A86;
    box-shadow: none;
}

.wpcf7 .wpcf7-submit {
    border: 1px solid #1a202c;
    color: #1a202c;
    background: transparent;
    padding: 1rem 3rem;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

.wpcf7 .wpcf7-submit:hover {
    background: #1a202c;
    color: white;
}

/* --- WordPress Specific Overrides --- */
.wp-block-image img {
    max-width: 100%;
    height: auto;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

/* --- Screen Reader Text --- */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}
