/* ================================================================
   NUMENOR STRATEGY — GLOBAL STYLESHEET
   Source of truth: numenor-design-tokens.md
   Updated: February 10, 2026
   
   This file contains ALL shared styles across numenorstrategy.com.
   Page-specific styles remain in each HTML file's <style> block.
   ================================================================ */


/* ================================================================
   1. TOKENS & RESET
   ================================================================ */

:root {
    --black: #0c0c0c;
    --charcoal: #1a1a1a;
    --graphite: #2d2d2d;
    --stone: #6b6b6b;
    --pearl: #e8e6e3;
    --cream: #f8f7f5;
    --white: #ffffff;
    --gold: #b8956e;
    --serif: 'Cormorant', Georgia, serif;
    --sans: 'Outfit', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
::selection { background: var(--gold); color: var(--black); }
html { scroll-behavior: smooth; }


/* ================================================================
   2. TYPOGRAPHY
   ================================================================ */

body {
    font-family: var(--sans);
    background: var(--cream);
    color: var(--stone);
    line-height: 1.65;
    font-weight: 400;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 500;
    color: var(--black);
    letter-spacing: -0.02em;
}

h1 em, h2 em, h3 em {
    font-style: italic;
    color: var(--gold);
}

h2 {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    line-height: 1.15;
    margin-bottom: 24px;
}

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover { color: var(--black); }
.section-dark a:hover,
.section-black a:hover { color: var(--cream); }

/* Long-form body text */
.body-text {
    font-size: 1.15rem;
    line-height: 1.85;
    max-width: 700px;
}
.section-dark .body-text { color: rgba(248, 247, 245, 0.8); }
.section-black .body-text { color: rgba(248, 247, 245, 0.7); }

/* Section labels / eyebrows */
.section-label {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}


/* ================================================================
   3. SECTION BASE
   ================================================================ */

section {
    padding: 120px 48px;
}
@media (max-width: 768px) {
    section { padding: 80px 24px; }
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}


/* ================================================================
   4. SECTION BACKGROUNDS
   ================================================================ */

.section-light {
    background: var(--cream);
    color: var(--stone);
}

.section-white {
    background: var(--white);
    color: var(--stone);
}

.section-dark {
    background: var(--charcoal);
    color: rgba(248, 247, 245, 0.8);
}
.section-dark h1,
.section-dark h2,
.section-dark h3 {
    color: var(--cream);
}
.section-dark strong {
    color: var(--cream);
    font-weight: 500;
}

.section-black {
    background: var(--black);
    color: rgba(248, 247, 245, 0.7);
}
.section-black h1,
.section-black h2,
.section-black h3 {
    color: var(--cream);
}
.section-black strong {
    color: var(--cream);
    font-weight: 500;
}


/* ================================================================
   5. NAVIGATION
   ================================================================ */

nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 20px 48px;
    background: rgba(248, 247, 245, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
@media (max-width: 768px) {
    nav { padding: 16px 24px; }
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 44px;
    width: auto;
    display: block;
}
@media (max-width: 768px) {
    .logo-img { height: 36px; }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}
@media (max-width: 768px) {
    .nav-links { display: none; }
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--stone);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}
.nav-links a:hover { color: var(--black); }
.nav-links a.active { color: var(--black); }
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gold);
}

/* Nav CTA — black bg, variant of button system */
.nav-cta {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--black);
    text-decoration: none;
    padding: 14px 28px;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-cta:hover {
    background: var(--gold);
    color: var(--black);
}


/* ================================================================
   6. MOBILE MENU
   ================================================================ */

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
@media (max-width: 768px) {
    .mobile-menu-toggle { display: block; }
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--black);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--cream);
    padding: 100px 40px 40px;
    transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 999;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}
@media (max-width: 768px) {
    .mobile-menu { display: block; }
}
.mobile-menu.open { right: 0; }

.mobile-menu a {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    color: var(--black);
    text-decoration: none;
    padding: 16px 0;
    border-bottom: 1px solid var(--pearl);
}
.mobile-menu a:hover { color: var(--gold); }

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.mobile-overlay.open {
    display: block;
    opacity: 1;
}


/* ================================================================
   7. BUTTONS
   ================================================================ */

/* Primary — gold bg, sitewide default */
.btn-primary {
    display: inline-block;
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--gold);
    color: var(--black);
    text-decoration: none;
    padding: 20px 44px;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-primary:hover {
    background: var(--cream);
    color: var(--black);
    transform: translateY(-2px);
}

/* Secondary — outline on light backgrounds */
.btn-secondary {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: transparent;
    color: var(--black);
    text-decoration: none;
    padding: 18px 36px;
    border: 1px solid var(--black);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-secondary:hover {
    background: var(--black);
    color: var(--white);
}

/* Waitlist / dark-section CTA — gold on dark */
.btn-waitlist {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: var(--gold);
    color: var(--black);
    text-decoration: none;
    padding: 18px 36px;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-waitlist:hover {
    background: var(--cream);
    color: var(--black);
}


/* ================================================================
   8. INTERIOR HERO (services, about, contact)
   ================================================================ */

.interior-hero {
    padding: 140px 48px 100px;
    background-size: cover;
    background-position: center 40%;
    position: relative;
}
@media (max-width: 768px) {
    .interior-hero { padding: 120px 24px 80px; }
}

.interior-hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

.interior-hero .section-label {
    color: var(--gold);
    opacity: 0;
    animation: fadeIn 0.8s 0.2s forwards;
}

.interior-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.1;
    color: var(--cream);
    max-width: 600px;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1s 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.interior-hero-sub {
    font-size: 1.1rem;
    color: rgba(248, 247, 245, 0.85);
    max-width: 500px;
    margin-top: 20px;
    line-height: 1.7;
    opacity: 0;
    animation: fadeUp 1s 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}


/* ================================================================
   9. ANIMATIONS
   ================================================================ */

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Fallback: show content after 2s if JS fails */
@keyframes fallbackReveal {
    to { opacity: 1; transform: translateY(0); }
}
.reveal {
    animation: fallbackReveal 0.8s 2s forwards;
}
.reveal.active {
    animation: none;
}


/* ================================================================
   10. LAYOUT HELPERS
   ================================================================ */

/* Two-column split */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
@media (max-width: 900px) {
    .split-layout { grid-template-columns: 1fr; gap: 48px; }
}

/* Image with gold offset frame */
.framed {
    position: relative;
}
.framed::after {
    content: '';
    position: absolute;
    top: 24px; left: 24px; right: -24px; bottom: -24px;
    border: 1px solid var(--gold);
    z-index: -1;
}

/* Philosophy callout — gold left border */
.philosophy-callout {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    color: var(--black);
    padding-left: 24px;
    border-left: 3px solid var(--gold);
    line-height: 1.4;
}
.philosophy-callout em {
    font-style: italic;
    color: var(--gold);
}
.section-dark .philosophy-callout,
.section-black .philosophy-callout {
    color: var(--cream);
}

/* Pull quote — italic variant for attributed quotes */
.pull-quote {
    font-family: var(--serif);
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 500;
    font-style: italic;
    line-height: 1.4;
    color: var(--black);
    padding-left: 24px;
    border-left: 3px solid var(--gold);
    margin-top: 32px;
}
.section-dark .pull-quote,
.section-black .pull-quote {
    color: var(--cream);
}


/* ================================================================
   11. CARDS
   ================================================================ */

/* Base card pattern — light sections */
.card {
    background: var(--white);
    padding: 40px;
    position: relative;
    transition: transform 0.4s ease;
}
.card:hover {
    transform: translateY(-4px);
}

/* Gold top bar */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold);
}

/* Cards on dark sections */
.section-dark .card,
.section-black .card {
    background: var(--graphite);
}

/* Card label / eyebrow */
.card-label {
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}


/* ================================================================
   12. FAQ
   ================================================================ */

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 48px;
}
@media (max-width: 900px) {
    .faq-grid { grid-template-columns: 1fr; }
}

.faq-item {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--pearl);
}

.faq-item h3 {
    font-family: var(--sans);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--black);
    margin-bottom: 8px;
}

.faq-item p {
    font-size: 1rem;
    color: var(--stone);
    line-height: 1.7;
}

/* FAQ on dark sections */
.section-dark .faq-item,
.section-black .faq-item {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.section-dark .faq-item h3,
.section-black .faq-item h3 {
    color: var(--cream);
}

.section-dark .faq-item p,
.section-black .faq-item p {
    color: rgba(248, 247, 245, 0.7);
}


/* ================================================================
   13. PRICING BOX
   ================================================================ */

.pricing-box {
    background: var(--white);
    padding: 56px 48px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.pricing-amount {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 500;
    color: var(--black);
    margin-bottom: 16px;
}

.pricing-detail {
    font-size: 1.15rem;
    color: var(--stone);
    line-height: 1.8;
    margin-bottom: 8px;
}

.pricing-highlight {
    font-size: 1rem;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 24px;
}

.pricing-note {
    padding-top: 24px;
    border-top: 1px solid var(--pearl);
    font-size: 1rem;
    color: var(--stone);
    opacity: 0.8;
}


/* ================================================================
   14. LEGAL PAGE (disclaimer, privacy)
   ================================================================ */

.legal-page {
    padding: 180px 48px 120px;
    background: var(--cream);
}
@media (max-width: 768px) {
    .legal-page { padding: 140px 24px 80px; }
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
    line-height: 1.15;
}

.legal-content .last-updated {
    font-size: 0.875rem;
    color: var(--stone);
    margin-bottom: 48px;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 48px;
    margin-bottom: 16px;
    line-height: 1.25;
}

.legal-content p {
    font-size: 1rem;
    color: var(--black);
    line-height: 1.85;
}

.legal-content ul {
    margin-bottom: 1em;
    padding-left: 24px;
    color: var(--black);
}

.legal-content li {
    margin-bottom: 8px;
    line-height: 1.85;
}


/* ================================================================
   15. FOOTER
   ================================================================ */

footer {
    background: var(--black);
    padding: 64px 48px;
}
@media (max-width: 768px) {
    footer { padding: 48px 24px; }
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 64px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--graphite);
    margin-bottom: 32px;
}
@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
}

.footer-brand .footer-logo {
    height: 36px;
    width: auto;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}
@media (max-width: 768px) {
    .footer-brand .footer-logo { margin: 0 auto 16px; }
}

.footer-brand .tagline {
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(248, 247, 245, 0.7);
    margin-bottom: 8px;
}
.footer-brand .tagline em {
    font-style: italic;
    color: var(--gold);
}

.footer-brand .location {
    font-size: 1rem;
    color: rgba(248, 247, 245, 0.7);
    margin-bottom: 20px;
}

/* Social icons */
.social-links {
    display: flex;
    gap: 16px;
}
@media (max-width: 768px) {
    .social-links { justify-content: center; }
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--graphite);
    transition: all 0.3s ease;
}
.social-links a:hover {
    border-color: var(--gold);
    background: var(--gold);
}
.social-links a svg {
    width: 18px;
    height: 18px;
    fill: var(--cream);
    transition: fill 0.3s ease;
}
.social-links a:hover svg {
    fill: var(--black);
}

/* Footer navigation */
.footer-nav {
    display: flex;
    gap: 64px;
}
@media (max-width: 768px) {
    .footer-nav { justify-content: center; gap: 40px; }
}

.footer-nav-group h4 {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(248, 247, 245, 0.7);
    margin-bottom: 16px;
}

.footer-nav-group a {
    display: block;
    font-size: 1rem;
    color: var(--cream);
    text-decoration: none;
    padding: 6px 0;
    transition: color 0.3s ease;
}
.footer-nav-group a:hover { color: var(--gold); }

/* Footer bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
@media (max-width: 768px) {
    .footer-bottom { flex-direction: column; gap: 16px; }
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(248, 247, 245, 0.5);
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 24px;
}
.footer-legal a {
    font-size: 0.875rem;
    color: rgba(248, 247, 245, 0.5);
    text-decoration: none;
}
.footer-legal a:hover { color: var(--gold); }


/* ================================================================
   16. TESTIMONIALS
   ================================================================ */

/* Grid layout for testimonial sections */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 900px) {
    .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .testimonial-grid { grid-template-columns: 1fr; }
}

/* Testimonial-specific styles — layers on .card base */
.testimonial-card blockquote {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--stone);
    line-height: 1.75;
    margin: 0;
}

.section-dark .testimonial-card blockquote,
.section-black .testimonial-card blockquote {
    color: rgba(248, 247, 245, 0.75);
}

.testimonial-card .attribution {
    margin-top: 20px;
}

.testimonial-card .attribution .name {
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 500;
    color: var(--black);
}

.section-dark .testimonial-card .attribution .name,
.section-black .testimonial-card .attribution .name {
    color: var(--cream);
}

.testimonial-card .attribution .company {
    font-family: var(--sans);
    font-size: 0.875rem;
    color: var(--stone);
}

.section-dark .testimonial-card .attribution .company,
.section-black .testimonial-card .attribution .company {
    color: rgba(248, 247, 245, 0.5);
}


/* ================================================================
   17. PHOTO GALLERY
   ================================================================ */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (max-width: 900px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .gallery-grid { grid-template-columns: 1fr; }
}

.gallery-item {
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}


/* ================================================================
   18. LIGHTBOX
   ================================================================ */

.lightbox {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(12, 12, 12, 0.92);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close svg {
    width: 24px;
    height: 24px;
    stroke: var(--cream);
    transition: stroke 0.3s ease;
}

.lightbox-close:hover svg {
    stroke: var(--gold);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav svg {
    width: 24px;
    height: 24px;
    stroke: var(--cream);
    transition: stroke 0.3s ease;
}

.lightbox-nav:hover svg {
    stroke: var(--gold);
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }


/* ================================================================
   19. VIDEO EMBED
   ================================================================ */

.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
