/* ========================================
   ppuzzl.bar - Wabi-Sabi Design System
   Colors: #5a8a8a #7a8c5a #fdf8ef #c8a96e #f5ead0 #9a9080 #e8b84b #2d2a22
   Fonts: Jost (substitute for Futura PT), EB Garamond (substitute for Garamond Premier Pro)
   ======================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'EB Garamond', Georgia, serif;
    color: #2d2a22;
    background-color: #fdf8ef;
    line-height: 1.7;
    overflow-x: hidden;
}

/* --- Typography Scale (Editorial Flow) --- */
h1, h2, h3, h4 {
    font-family: 'Jost', 'Futura', sans-serif;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
}

/* --- Hero Section --- */
#hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    background-color: #f5ead0;
}

.hero-mountain-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.mountain-svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Lens Flare Effects */
.lens-flare {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
}

.lens-flare-1 {
    width: 400px;
    height: 400px;
    top: 5%;
    right: 15%;
    background: radial-gradient(circle, rgba(232, 184, 75, 0.25) 0%, rgba(232, 184, 75, 0.08) 40%, transparent 70%);
    animation: flareFloat1 8s ease-in-out infinite;
}

.lens-flare-2 {
    width: 250px;
    height: 250px;
    top: 15%;
    right: 25%;
    background: radial-gradient(circle, rgba(200, 169, 110, 0.2) 0%, rgba(200, 169, 110, 0.05) 50%, transparent 70%);
    animation: flareFloat2 12s ease-in-out infinite;
}

.lens-flare-3 {
    width: 150px;
    height: 150px;
    top: 25%;
    right: 10%;
    background: radial-gradient(circle, rgba(253, 248, 239, 0.3) 0%, rgba(253, 248, 239, 0.1) 40%, transparent 70%);
    animation: flareFloat3 6s ease-in-out infinite;
}

@keyframes flareFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.8; }
    50% { transform: translate(-20px, 10px) scale(1.05); opacity: 1; }
}

@keyframes flareFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    50% { transform: translate(15px, -15px) scale(1.1); opacity: 0.9; }
}

@keyframes flareFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
    50% { transform: translate(-10px, -10px) scale(1.15); opacity: 1; }
}

.hero-warm-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(245, 234, 208, 0.1) 0%,
        rgba(245, 234, 208, 0.3) 50%,
        rgba(253, 248, 239, 0.6) 100%
    );
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Navigation --- */
#main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 3rem;
}

.nav-logo {
    font-family: 'Jost', 'Futura', sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: #2d2a22;
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-family: 'Jost', 'Futura', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #2d2a22;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #c8a96e;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #5a8a8a;
}

/* --- Hero Text --- */
.hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 3rem;
    max-width: 800px;
    padding-bottom: 8rem;
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 300;
    color: #2d2a22;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.3s forwards;
}

.hero-title em {
    font-style: italic;
    font-family: 'EB Garamond', Georgia, serif;
    color: #5a8a8a;
}

.hero-subtitle {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: #9a9080;
    max-width: 540px;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease 0.6s forwards;
}

/* --- CTA Button --- */
.cta-button {
    font-family: 'Jost', 'Futura', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 1rem 2.5rem;
    background-color: #2d2a22;
    color: #fdf8ef;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    opacity: 0;
    animation: fadeInUp 1s ease 0.9s forwards;
}

.cta-button:hover {
    background-color: #5a8a8a;
    transform: translateY(-2px);
}

/* Pulse Attention Animation */
.pulse-attention {
    animation: fadeInUp 1s ease 0.9s forwards, pulseScale 2s ease-in-out 2s infinite;
}

@keyframes pulseScale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

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

/* --- Wabi-Sabi Decorative Lines --- */
.wabi-sabi-line {
    display: block;
    width: 100%;
    opacity: 0.6;
}

.hero-line {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 5;
    height: 30px;
}

.section-divider {
    max-width: 720px;
    margin: 3rem auto 0;
    height: 20px;
}

.quote-line {
    max-width: 720px;
    margin: 0 auto;
    height: 20px;
}

.footer-line {
    max-width: 400px;
    margin: 1.5rem auto;
    height: 16px;
}

/* --- Editorial Sections --- */
.editorial-section {
    padding: 6rem 3rem;
}

.editorial-container {
    max-width: 720px;
    margin: 0 auto;
}

.section-label {
    font-family: 'Jost', 'Futura', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #9a9080;
    display: block;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    color: #2d2a22;
    margin-bottom: 2.5rem;
    line-height: 1.05;
}

.section-title-large {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 300;
    color: #2d2a22;
    margin-bottom: 3rem;
    line-height: 0.95;
    letter-spacing: -0.03em;
}

/* --- About Section --- */
.editorial-body .lead-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #2d2a22;
    margin-bottom: 1.5rem;
}

.editorial-body p {
    font-size: 1.1rem;
    color: #9a9080;
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

.editorial-body p:last-child {
    margin-bottom: 0;
}

/* --- Philosophy Section --- */
.philosophy-section {
    background-color: #f5ead0;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 2rem;
}

.philosophy-card {
    text-align: center;
    padding: 2rem 1rem;
    transition: transform 0.3s ease;
}

.philosophy-card:hover {
    transform: translateY(-4px);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.wabi-icon {
    width: 100%;
    height: 100%;
}

.philosophy-card h3 {
    font-family: 'Jost', 'Futura', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
    color: #2d2a22;
    letter-spacing: 0.02em;
}

.philosophy-card p {
    font-size: 1rem;
    color: #9a9080;
    line-height: 1.7;
}

/* --- Pieces Section --- */
.pieces-section {
    background-color: #fdf8ef;
}

.pieces-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.piece-item {
    background-color: #f5ead0;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.piece-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(45, 42, 34, 0.1);
}

.piece-large {
    grid-column: 1 / -1;
}

.piece-visual {
    width: 100%;
    overflow: hidden;
}

.piece-svg {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.piece-item:hover .piece-svg {
    transform: scale(1.02);
}

.piece-info {
    padding: 1.5rem 2rem 2rem;
}

.piece-info h3 {
    font-family: 'Jost', 'Futura', sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #2d2a22;
}

.piece-info p {
    font-size: 1rem;
    color: #9a9080;
    line-height: 1.6;
}

/* --- Quote Section --- */
.quote-section {
    background-color: #f5ead0;
    text-align: center;
    padding: 8rem 3rem;
}

.featured-quote {
    position: relative;
    max-width: 720px;
    margin: 0 auto 2rem;
}

.quote-mark {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 8rem;
    line-height: 0;
    color: #c8a96e;
    opacity: 0.4;
    position: absolute;
    top: 0.5rem;
    left: -1rem;
}

.featured-quote p {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-style: italic;
    color: #2d2a22;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.featured-quote cite {
    font-family: 'Jost', 'Futura', sans-serif;
    font-size: 0.8rem;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #9a9080;
}

/* --- Contact Section --- */
.contact-section {
    background-color: #fdf8ef;
}

.contact-intro {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.2rem;
    color: #9a9080;
    margin-bottom: 3rem;
    line-height: 1.7;
}

.contact-form-wrap {
    max-width: 540px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-family: 'Jost', 'Futura', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #9a9080;
}

.form-group input,
.form-group textarea {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.05rem;
    padding: 0.8rem 0;
    border: none;
    border-bottom: 1px solid #c8a96e;
    background: transparent;
    color: #2d2a22;
    outline: none;
    transition: border-color 0.3s ease;
    resize: vertical;
}

.form-group input:hover,
.form-group textarea:hover,
.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: #5a8a8a;
}

.form-group textarea {
    min-height: 100px;
}

.contact-form .cta-button {
    align-self: flex-start;
    margin-top: 1rem;
    opacity: 1;
    animation: none;
}

.contact-form .cta-button.pulse-attention {
    animation: pulseScale 2s ease-in-out infinite;
}

/* --- Footer --- */
#footer {
    background-color: #2d2a22;
    padding: 4rem 3rem;
    text-align: center;
}

.footer-content {
    max-width: 720px;
    margin: 0 auto;
}

.footer-logo {
    font-family: 'Jost', 'Futura', sans-serif;
    font-size: 1.8rem;
    font-weight: 500;
    color: #f5ead0;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1rem;
    font-style: italic;
    color: #9a9080;
}

.footer-line {
    opacity: 0.4;
}

.footer-copy {
    font-family: 'Jost', 'Futura', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9a9080;
    opacity: 0.6;
}

/* --- Scroll Reveal Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    #main-nav {
        padding: 1.5rem 1.5rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .nav-links a {
        font-size: 0.75rem;
    }

    .hero-text {
        padding: 0 1.5rem;
        padding-bottom: 5rem;
    }

    .editorial-section {
        padding: 4rem 1.5rem;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pieces-grid {
        grid-template-columns: 1fr;
    }

    .lens-flare-1 {
        width: 250px;
        height: 250px;
    }

    .lens-flare-2 {
        width: 150px;
        height: 150px;
    }

    .lens-flare-3 {
        width: 100px;
        height: 100px;
    }

    #footer {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 3rem;
    }

    .section-title-large {
        font-size: 3.5rem;
    }
}
