/* ============================================================
   MOON-PEINTURE — Global Stylesheet
   ============================================================ */

/* --- Variables --- */
:root {
    --ink: #1a1a1a;
    --paper: #f5f2ed;
    --accent: #c4a882;
    --accent-dark: #a68b6b;
    --soft: #e8e2d9;
    --muted: #8c8579;
    --white: #ffffff;
    --radius: 16px;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'DM Sans', sans-serif;
    background: var(--paper);
    color: var(--ink);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: 'Syne', sans-serif; }

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 1.2rem 2.5rem;
    display: flex; justify-content: space-between; align-items: center;
    transition: all 0.4s ease;
}
nav.scrolled {
    background: rgba(245, 242, 237, 0.92);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    padding: 0.8rem 2.5rem;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}
.nav-logo {
    font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.3rem;
    letter-spacing: -0.02em; color: var(--ink); text-decoration: none;
}
.nav-logo span { color: var(--accent-dark); }

.nav-links { display: flex; gap: 2.2rem; align-items: center; }
.nav-links a {
    font-size: 0.86rem; font-weight: 400; letter-spacing: 0.02em;
    position: relative; transition: color 0.3s; color: var(--ink);
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 1.5px; background: var(--accent-dark);
    transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--accent-dark); font-weight: 500; }
.nav-links a.active::after { width: 100%; }

.nav-cta {
    background: var(--ink) !important; color: var(--paper) !important;
    padding: 0.6rem 1.4rem; border-radius: 100px;
    font-size: 0.84rem !important; font-weight: 500;
    transition: transform 0.3s, box-shadow 0.3s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(0,0,0,0.15); }

.hamburger {
    display: none; flex-direction: column; gap: 5px;
    cursor: pointer; z-index: 1001; background: none; border: none;
}
.hamburger span { width: 24px; height: 2px; background: var(--ink); transition: all 0.3s; display: block; }

.mobile-menu {
    display: none; position: fixed; inset: 0; background: var(--paper);
    z-index: 999; flex-direction: column; justify-content: center;
    align-items: center; gap: 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    font-family: 'Syne', sans-serif; font-weight: 600; font-size: 1.6rem;
    color: var(--ink); letter-spacing: -0.02em;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
    display: inline-block; background: var(--ink); color: var(--paper);
    padding: 0.9rem 2rem; border-radius: 100px; font-size: 0.92rem;
    font-weight: 500; letter-spacing: 0.01em; transition: all 0.3s;
    border: none; cursor: pointer; font-family: 'DM Sans', sans-serif;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.15); }

.btn-secondary {
    display: inline-block; background: transparent; color: var(--ink);
    padding: 0.9rem 2rem; border-radius: 100px; font-size: 0.92rem;
    font-weight: 400; border: 1px solid rgba(0,0,0,0.15); transition: all 0.3s;
}
.btn-secondary:hover { border-color: var(--ink); }

.btn-accent {
    display: inline-block; background: var(--accent-dark); color: var(--white);
    padding: 0.9rem 2rem; border-radius: 100px; font-size: 0.92rem;
    font-weight: 500; transition: all 0.3s; border: none; cursor: pointer;
    font-family: 'DM Sans', sans-serif;
}
.btn-accent:hover { background: var(--ink); transform: translateY(-2px); }

/* ============================================================
   SECTION HELPERS
   ============================================================ */
section { padding: 6rem 2.5rem; }
.container { max-width: 1100px; margin: 0 auto; }

.section-tag {
    font-family: 'Syne', sans-serif; font-size: 0.72rem;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--accent-dark); font-weight: 600; margin-bottom: 1rem;
}
.section-title {
    font-weight: 700; font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15; letter-spacing: -0.02em; max-width: 600px;
}
.section-desc {
    color: var(--muted); font-size: 1rem; line-height: 1.7;
    max-width: 520px; margin-top: 1rem; font-weight: 300;
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
    padding: 10rem 2.5rem 4rem; position: relative; overflow: hidden;
}
.page-hero::before {
    content: ''; position: absolute; top: -30%; right: -20%;
    width: 600px; height: 600px; border-radius: 50%;
    background: radial-gradient(circle, rgba(196,168,130,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.page-hero .section-tag { animation: fadeUp 0.6s ease both; }
.page-hero h1 {
    font-weight: 800; font-size: clamp(2.5rem, 6vw, 4.2rem);
    line-height: 1.08; letter-spacing: -0.03em; max-width: 700px;
    animation: fadeUp 0.6s ease 0.1s both;
}
.page-hero h1 em { font-style: italic; color: var(--accent-dark); }
.page-hero .section-desc { animation: fadeUp 0.6s ease 0.2s both; }

/* ============================================================
   CARDS (generic)
   ============================================================ */
.card {
    padding: 2.2rem; border-radius: var(--radius);
    border: 1px solid var(--soft); transition: all 0.4s ease;
    position: relative; overflow: hidden; background: var(--white);
}
.card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 3px; background: var(--accent);
    transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
}
.card:hover {
    border-color: var(--accent); transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}
.card:hover::before { transform: scaleX(1); }
.card-icon {
    width: 44px; height: 44px; border-radius: 12px; background: var(--paper);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.2rem; font-size: 1.2rem;
}
.card h3 {
    font-weight: 600; font-size: 1.05rem; margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}
.card p { color: var(--muted); font-size: 0.88rem; line-height: 1.65; font-weight: 300; }

/* ============================================================
   DARK SECTION
   ============================================================ */
.dark-section {
    background: var(--ink); color: var(--paper);
    border-radius: 32px; margin: 0 1rem; padding: 5rem 3rem;
    position: relative; overflow: hidden;
}
.dark-section::before {
    content: ''; position: absolute; top: -50%; right: -30%;
    width: 600px; height: 600px; border-radius: 50%;
    background: radial-gradient(circle, rgba(196,168,130,0.08) 0%, transparent 70%);
}
.dark-section .section-tag { color: var(--accent); }
.dark-section .section-title { color: var(--paper); }
.dark-section .section-desc { color: rgba(245,242,237,0.55); }

/* ============================================================
   WHITE SECTION
   ============================================================ */
.white-section {
    background: var(--white); border-radius: 32px;
    margin: 0 1rem; padding: 5rem 3rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: var(--ink); color: var(--paper);
    padding: 3.5rem 2.5rem 2rem;
    border-radius: 24px 24px 0 0; margin: 0 1rem;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem; max-width: 1100px; margin: 0 auto 3rem;
}
.footer-brand h2 { font-weight: 700; font-size: 1.3rem; margin-bottom: 0.8rem; }
.footer-brand h2 span { color: var(--accent); }
.footer-brand p { color: rgba(245,242,237,0.5); font-size: 0.85rem; line-height: 1.6; max-width: 280px; font-weight: 300; }

.footer-col h4 {
    font-family: 'Syne', sans-serif; font-size: 0.75rem;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 1rem; font-weight: 600;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { color: rgba(245,242,237,0.6); font-size: 0.85rem; font-weight: 300; transition: color 0.3s; }
.footer-col a:hover { color: var(--paper); }
.footer-col p { color: rgba(245,242,237,0.6); font-size: 0.85rem; line-height: 1.6; font-weight: 300; }

.footer-bottom {
    max-width: 1100px; margin: 0 auto; padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.78rem; color: rgba(245,242,237,0.35);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}
.reveal {
    opacity: 0; transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
    nav { padding: 1rem 1.5rem; }
    nav.scrolled { padding: 0.8rem 1.5rem; }
    .nav-links { display: none; }
    .hamburger { display: flex; }

    section { padding: 4rem 1.5rem; }
    .page-hero { padding: 8rem 1.5rem 3rem; }
    .white-section, .dark-section { margin: 0 0.5rem; padding: 3rem 1.5rem; }
    footer { margin: 0 0.5rem; }

    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
