/* Pahad Rituals navigation and standalone pages. Homepage layout styles remain in style.css. */

.site-header {
    position: relative;
}

.menu-toggle {
    position: absolute;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    z-index: 5;
    width: 42px;
    height: 42px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(181, 151, 90, 0.45);
    border-radius: 2px;
    background: rgba(239, 236, 230, 0.72);
    color: var(--forest-primary, #21382A);
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease;
}
.menu-toggle:hover { background: rgba(181, 151, 90, .12); border-color: #B5975A; }
.menu-toggle span { display: block; width: 17px; height: 1px; background: currentColor; transition: transform .25s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.site-menu {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: flex;
    justify-content: flex-end;
    background: rgba(21, 37, 27, 0);
    visibility: hidden;
    pointer-events: none;
    transition: background .28s ease, visibility .28s ease;
}
.site-menu.is-open {
    visibility: visible;
    pointer-events: auto;
    background: rgba(21, 37, 27, .36);
}
.site-menu-panel {
    width: min(430px, 100%);
    min-height: 100%;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    display: flex;
    flex-direction: column;
    background: #EFECE6;
    box-shadow: -14px 0 40px rgba(21, 37, 27, .12);
    transform: translateX(102%);
    transition: transform .3s ease;
}
.site-menu.is-open .site-menu-panel { transform: translateX(0); }
.site-menu-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1.4rem; border-bottom: 1px solid rgba(181, 151, 90, .35); }
.site-menu-label, .site-menu-footer { font-family: var(--font-body, Montserrat, sans-serif); font-size: .62rem; letter-spacing: 2.2px; color: #6C7A70; }
.menu-close { position: relative; width: 38px; height: 38px; border: 1px solid rgba(181,151,90,.45); background: transparent; cursor: pointer; }
.menu-close span { position: absolute; left: 10px; top: 18px; width: 17px; height: 1px; background: #21382A; transform: rotate(45deg); }
.menu-close span:last-child { transform: rotate(-45deg); }
.site-menu-heading { margin: 3rem 0 1.5rem; font-family: var(--font-heading, Georgia, serif); font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 400; color: #21382A; }
.site-menu-link { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 0; border-top: 1px solid rgba(181,151,90,.3); color: #21382A; text-decoration: none; font-family: var(--font-heading, Georgia, serif); font-size: 1.65rem; transition: color .2s ease; }
.site-menu-link:hover { color: #B5975A; }
.site-menu-link span { font-family: var(--font-body, sans-serif); font-size: .9rem; color: #B5975A; }
.site-menu-footer { margin-top: auto; padding-top: 2rem; border-top: 1px solid rgba(181,151,90,.3); }

body.menu-open { overflow: hidden; }

/* Standalone story/contact page layout */
.content-page { min-height: 100vh; }
.content-page .site-header { flex-shrink: 0; }
.content-page-main { width: min(1040px, 100%); margin: auto; padding: clamp(3rem, 8vw, 7rem) clamp(1.5rem, 5vw, 3rem); position: relative; z-index: 1; }
.page-eyebrow { color: #B5975A; font-size: .65rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 1.25rem; }
.page-title { max-width: 760px; color: #21382A; font-family: var(--font-heading, Georgia, serif); font-size: clamp(3rem, 7vw, 5.8rem); font-weight: 400; line-height: .98; letter-spacing: -.7px; }
.page-title em { color: #B5975A; font-weight: 400; }
.page-intro { max-width: 680px; margin-top: 1.8rem; color: #4A5D50; font-family: var(--font-heading, Georgia, serif); font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.5; }
.page-rule { width: 48px; height: 1px; background: #B5975A; margin: 2.5rem 0; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.story-copy p { color: #4A5D50; font-size: .9rem; line-height: 1.95; margin-bottom: 1.2rem; }
.story-aside { padding: 1.6rem; border: 1px solid rgba(181,151,90,.38); background: rgba(255,255,255,.28); }
.story-aside .quote-mark { display: block; color: #B5975A; font-family: var(--font-heading, Georgia, serif); font-size: 2.5rem; line-height: 1; }
.story-aside p { color: #21382A; font-family: var(--font-heading, Georgia, serif); font-size: 1.55rem; line-height: 1.35; }
.page-cta { display: inline-flex; align-items: center; gap: .7rem; margin-top: 1.5rem; padding: .9rem 1.1rem; border: 1px solid #21382A; color: #21382A; text-decoration: none; font-size: .68rem; letter-spacing: 1.5px; text-transform: uppercase; transition: background .2s ease, color .2s ease; }
.page-cta:hover { background: #21382A; color: #EFECE6; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(230px, .9fr); gap: clamp(2rem, 7vw, 6rem); margin-top: 3rem; }
.contact-block { padding: 1.5rem 0; border-top: 1px solid rgba(181,151,90,.4); }
.contact-label { display: block; color: #6C7A70; font-size: .62rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: .8rem; }
.contact-email { color: #21382A; font-family: var(--font-heading, Georgia, serif); font-size: clamp(1.3rem, 3vw, 1.8rem); text-decoration-color: rgba(181,151,90,.7); text-underline-offset: 5px; overflow-wrap: anywhere; }
.contact-socials { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; }
.contact-socials a { color: #21382A; font-size: .72rem; letter-spacing: 1.2px; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid #B5975A; padding-bottom: .3rem; }
.contact-socials a:hover { color: #B5975A; }
.content-page .site-footer { margin-top: auto; }

@media (max-width: 900px) {
    .menu-toggle { right: 1.5rem; }
    .story-grid, .contact-layout { grid-template-columns: 1fr; }
    .story-aside { max-width: 520px; }
}
@media (max-width: 480px) {
    .menu-toggle { right: 1rem; width: 38px; height: 38px; }
    .site-header { padding-left: 1rem; padding-right: 1rem; }
    .brand-tagline { letter-spacing: 1.7px; }
}
@media (prefers-reduced-motion: reduce) {
    .site-menu, .site-menu-panel, .menu-toggle span { transition: none !important; }
}
