.js .hero-visual, .js .hero-content > * { will-change: transform, opacity; }
/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #742224;
    --secondary-color: #a04d45;
    --accent-color: #d9b7a0;
    --text-dark: #2b1414;
    --text-light: #8d6b6b;
    --bg-light: #f7f1ee;
    --white: #ffffff;
    --gradient-1: linear-gradient(135deg, #742224 0%, #2f0d0d 100%);
    --gradient-2: linear-gradient(135deg, #a04d45 0%, #742224 100%);
    --gradient-3: linear-gradient(135deg, #e0c9c0 0%, #b97c6f 100%);
    --gradient-4: linear-gradient(135deg, #4a1516 0%, #742224 100%);
    --shadow-sm: 0 2px 10px rgba(79, 22, 23, 0.08);
    --shadow-md: 0 6px 24px rgba(79, 22, 23, 0.12);
    --shadow-lg: 0 18px 45px rgba(47, 13, 13, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: clamp(16px, 4vw, 48px);
    padding-right: clamp(16px, 4vw, 48px);
    width: 100%;
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 9999;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: -2px;
    background: url('public/images/key.svg') no-repeat center / contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

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

.nav-links a.active {
    color: var(--primary-color);
}
.nav-links a.active::after {
    width: 100%;
}

/* Language select */
.lang-select {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}

.visually-hidden {
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
    background: transparent;
    border: none;
    z-index: 10001;
}

.hamburger:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-1);
    position: relative;
    overflow: hidden;
    padding: clamp(6rem, 10vh, 8rem) 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(320px, 1.1fr) minmax(280px, 0.9fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
}

.hero-content {
    color: var(--white);
    padding: 0;
    text-align: left;
    max-width: clamp(460px, 44vw, 620px);
}

/* Vertical rhythm inside hero text */
.hero-content > * + * {
    margin-top: clamp(0.5rem, 1.2vw, 1rem);
}

.hero-eyebrow {
    font-size: 0.9rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 1rem;
    display: inline-block;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-summary {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
    max-width: 60ch;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}


.hero-media {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.hero-book {
    width: clamp(240px, 35vw, 320px);
    margin: 0;
    filter: drop-shadow(0 25px 45px rgba(0, 0, 0, 0.35));
}

.hero-book picture {
    display: block;
    border-radius: 18px;
    overflow: hidden;
}

.hero-photo-stack {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
}

/* Visual container controls aspect ratio and cropping */
.hero-visual {
    width: clamp(420px, 42vw, 720px);
    aspect-ratio: 16/10;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    transition: transform 600ms ease, opacity 600ms ease;
}
.hero-visual picture,
.hero-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Animate hero smoothly when section enters viewport */
.js section.animate-in .hero-visual { opacity: 1; transform: none; }
.js section.animate-in .hero-content > * { opacity: 1; transform: none; }
.js .hero-visual { opacity: 0; transform: translateY(16px); }
.js .hero-content > * { opacity: 0; transform: translateY(12px); transition: transform 500ms ease, opacity 500ms ease; }


/* Featured single photo in hero when book/stand removed */
/* .hero-photo-feature retained in markup but styles moved to .hero-visual */

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    filter: brightness(1.05);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 2px solid var(--white);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-outline {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid var(--white);
    border-radius: 20px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

/* ===== ANIMATIONS ===== */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes scroll {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 24px; }
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

.fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

.fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SECTIONS ===== */
section {
    padding: 5rem 0;
    /* Improve anchor scrolling with fixed navbar */
    scroll-margin-top: 80px;
    /* Render offscreen sections lazily where supported */
    content-visibility: auto;
    contain-intrinsic-size: 800px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--primary-color);
}

.section-title.centered {
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

/* ===== ABOUT SECTION ===== */
.about {
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image picture {
    display: block;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-caption {
    margin-top: 1rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
}

.image-placeholder {
    aspect-ratio: 3/4;
    background: var(--gradient-2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.image-placeholder svg {
    width: 100px;
    height: 100px;
    color: var(--white);
    opacity: 0.7;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

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

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===== BOOK SECTION ===== */
.book {
    background: var(--white);
}

.book-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.book-3d {
    perspective: 1000px;
}

.book-front {
    width: 100%;
    aspect-ratio: 2/3;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
}

.book-cover:hover .book-front {
    transform: rotateY(-15deg);
}

.book-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-3);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--white);
    text-align: center;
}

.book-placeholder svg {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.book-placeholder h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Real book cover image inside 3D frame */
.book-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

.book-description h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.book-description p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.book-features {
    margin: 2rem 0;
}

.feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    font-size: 2rem;
}

.feature h4 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.feature p {
    font-size: 0.9rem;
    margin: 0;
}

.book-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* ===== PRINCIPLES SECTION ===== */
.principles {
    background: var(--white);
    padding: 5rem 0;
}

.principles .section-title {
    position: relative;
}
.principles .section-title::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(120px, 18vw, 220px);
    height: clamp(120px, 18vw, 220px);
    background: url('public/images/labyrinth.svg') no-repeat center / contain;
    opacity: 0.08;
    pointer-events: none;
}
@media (max-width: 768px) {
    .principles .section-title::after {
        position: static;
        display: block;
        margin: 1rem auto 0 auto;
        transform: none;
    }
}

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

@media (max-width: 768px) {
    .principles-grid {
        grid-template-columns: 1fr;
    }
}

.principle-card {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    transition: all 0.4s ease;
    border-left: 4px solid rgba(116, 34, 36, 0.4);
}

.principle-card:nth-child(even) {
    border-left-color: rgba(217, 183, 160, 0.75);
}

.principle-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--primary-color);
    background: var(--white);
}

.principle-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-2);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.principle-card:nth-child(even) .principle-number {
    background: var(--gradient-3);
}

.principle-card h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-right: 3rem;
    line-height: 1.4;
}

.principle-card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Quote title styling inside principle #10 */
.quote-title {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 0.2px;
}

/* ===== FAIR SECTION ===== */
.fairs {
    background: var(--bg-light);
}

.fair-photo {
    width: 100%;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.fair-photo img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.fair-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.fair-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: all 0.3s ease;
}

.fair-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.fair-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.upcoming-badge {
    background: var(--gradient-4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.fair-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.fair-card h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.fair-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.fair-details {
    margin: 1.5rem 0;
}

.fair-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.fair-detail .icon {
    font-size: 1.2rem;
}

.fair-highlight {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.fair-highlight strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.75rem;
}

.fair-highlight ul {
    list-style: none;
    padding: 0;
}

.fair-highlight li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    background: var(--white);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stars {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
}

/* Gallery and Lightbox styles removed for minimalist design */

/* ===== CONTACT SECTION ===== */
.contact {
    background: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

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

.contact-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--text-light);
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    padding: 0.5rem 1rem;
    background: var(--gradient-1);
    color: var(--white);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--bg-light);
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.contact-form .btn {
    width: 100%;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-section ul li a:hover {
    opacity: 1;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 968px) {
    .hero {
        padding: 6rem 0 5rem;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-meta {
        justify-content: center;
    }

    .hero-media {
        max-width: 680px;
        margin: 0 auto;
        justify-content: center;
    }

    .hero-photo-stack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 9998;
    }

    .nav-links.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    .about-content,
    .book-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }

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

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

    .fair-cards {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

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

    .book-cover {
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .subtitle {
        font-size: clamp(0.9rem, 3vw, 1.2rem);
    }

    .hero-visual {
        width: 100%;
        aspect-ratio: 16/9;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

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

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .lightbox-content {
        max-width: 95vw;
        max-height: 90vh;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .navbar .container {
        padding: 0.75rem 16px;
    }

    .logo {
        font-size: 1.25rem;
    }

    .hero {
        min-height: calc(100vh - 60px);
    }

    .hero-content {
        padding: 1rem;
    }

    section {
        padding: 2.5rem 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .principle-card h3 {
        font-size: 1.05rem;
        padding-right: 2.5rem;
    }

    .principle-number {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .fair-card {
        padding: 1.5rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .book-features {
        gap: 1rem;
    }

    .feature {
        padding: 0.75rem;
    }
}

/* ===== ACCESSIBILITY & FOCUS STATES ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

.btn:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 4px;
}

/* ===== SMOOTH LOADING ===== */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

picture {
    display: block;
}

/* Prevent layout shift during image load */
.gallery-item img,
.fair-photo,
.about-photo,
.book-front img {
    background: var(--bg-light);
}

/* ===== ANIMATION PERFORMANCE ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .hero-photo-feature { animation: none !important; }
    .hero-photo-stack { grid-template-columns: 1fr; }
    .hero-visual, .hero-content > * { transform: none !important; opacity: 1 !important; }
}
