/* ===========================
   INDEX.CSS - Homepage Styles
   Homepage-specific styles
   (hero, stats/critical moment, zigzag, communities bar, collection showcase, CTA)
   =========================== */

/* ===========================
    HERO SECTION
=========================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0 5% 8% 5%;
    overflow: hidden;
    margin-top: 0;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
}

/* Local slideshow backgrounds */
.hero-slide:nth-child(1) {
    background-image: url('../web_photos/slide1.jpg');
}

.hero-slide:nth-child(2) {
    background-image: url('../web_photos/slide2.jpg');
}

.hero-slide:nth-child(3) {
    background-image: url('../web_photos/slide3.jpg');
}

.hero-slide:nth-child(4) {
    background-image: url('../web_photos/slide4.jpg');
}

.hero-slide:nth-child(5) {
    background-image: url('../web_photos/slide5.jpg');
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(115deg,
                transparent 0%,
                transparent 51%,
                rgba(0, 0, 0, 0.4) 56%,
                rgba(0, 0, 0, 0.75) 61%,
                rgba(0, 0, 0, 0.93) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 600px;
    text-align: left;
    animation: fadeInUp 1s ease-out;
    margin-right: 7%;
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    right: -120px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: 70px;
    margin-bottom: 36px;
    color: var(--text-white);
    letter-spacing: 5px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    font-weight: 700;
    line-height: 0.99;
    font-family: 'Aboreto', serif;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.hero-content h1 .line1 {
    align-self: flex-start;
    font-size: 0.88em;
    text-shadow: 2px 2px 12px rgba(0,0,0,0.9);
}

.hero-content h1 .line2 {
    align-self: flex-start;
    margin-left: 140px;
    font-size: 0.32em;
    font-weight: 400;
    text-transform: lowercase;
}

.hero-content h1 .line3 {
    align-self: flex-start;
    margin-left: 90px;
    font-size: 1.2em;
    text-shadow: 2px 2px 12px rgba(0,0,0,0.9);
}

/* Rotating word container - prevents layout shift */
.rotating-word-container {
    position: relative;
    min-width: 600px; /* Wide enough for longest word "TRADITIONS" */
    display: inline-block;
    vertical-align: baseline;
    min-height: 1.3em; /* Ensure proper vertical space */
}

/* Individual rotating words */
.rotating-word {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    white-space: nowrap;
}

.rotating-word.active {
    opacity: 1;
    transform: translateY(0);
}

.rotating-word.exiting {
    opacity: 0;
    transform: translateY(-15px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    .rotating-word {
        transition: none;
        transform: none;
    }

    .rotating-word:not(.active) {
        display: none;
    }

    .rotating-word.active {
        position: static;
        opacity: 1;
    }
}

.hero-content p {
    font-size: 21px;
    margin-bottom: 0;
    color: var(--text-white);
    font-weight: 500;
    letter-spacing: 0.3px;
    font-family: 'Lato', sans-serif;
    line-height: 1.85;
    max-width: 510px;
    text-align: left;
    margin-left: 90px;
}

.hero-content p:first-of-type {
    margin-bottom: 0;
}

.hero-content p + p {
    margin-top: 1rem;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    margin-left: 90px;
}

/* ===========================
    STATISTICS + CRITICAL MOMENT MERGED SECTION
=========================== */
.stats-critical-merged-section {
    background: var(--dark-bg);
    padding: 0;
    position: relative;
}

/* Stats Container - Pure Black Background */
.stats-critical-merged-section .stats-container {
    background: var(--dark-bg);
    padding: 50px 5%;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.stat-card {
    background: rgba(42, 42, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    overflow: visible;
}

.stat-card.animate {
    animation: fadeInUpStats 0.8s ease-out forwards;
}

@keyframes fadeInUpStats {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.4s;
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-number {
    font-size: 5rem;
    font-family: 'Aboreto', serif;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 0 25px rgba(218, 165, 32, 0.25);
}

.stat-label {
    font-size: 1.4rem;
    color: #d0d0d0;
    font-weight: 500;
    letter-spacing: 1.5px;
    font-family: 'Lato', serif;
}

/* Critical Moment Content - Gradient Background on Right */
.critical-moment-content {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-gray) 100%);
    padding: 6rem 5%;
    text-align: center;
    position: relative;
    max-width: 100%;
}

.critical-moment-content h2 {
    font-size: 3.5rem;
    color: var(--text-white);
    margin-bottom: 2.5rem;
    font-family: 'Aboreto', serif;
    letter-spacing: 2px;
    font-weight: 700;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.critical-moment-content .lead {
    font-size: 1.35rem;
    line-height: 1.9;
    color: var(--text-gray);
    margin-bottom: 1.8rem;
    font-family: 'Lato', serif;
    font-weight: 400;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.critical-moment-content .tagline {
    font-size: 2rem;
    color: var(--accent-gold);
    font-family: 'Aboreto', serif;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-top: 4.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.critical-moment-content .tagline:last-of-type {
    margin-bottom: 0;
    margin-top: 0.5rem;
}

/* ===========================
   ZIGZAG WHO/WHAT/HOW LAYOUT
   =========================== */
.zigzag-section {
    background: var(--dark-bg);
    padding: 0;
    padding-top: 3rem;
    position: relative;
}

.zigzag-section .eastlake {
    padding: 60px 5%;
    margin: 0 auto;
}

.zigzag-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 5%;
    align-items: center;
}

.zigzag-panel.reverse {
    grid-template-columns: 1fr 1fr;
}

.zigzag-panel.reverse .zigzag-image {
    order: 1;
}

.zigzag-panel.reverse .zigzag-text {
    order: 2;
}

.zigzag-text {
    padding: 0 4rem;
}

.zigzag-text h2 {
    font-size: 3.5rem;
    color: var(--accent-gold);
    margin-bottom: 2rem;
    font-family: 'Aboreto', serif;
    letter-spacing: 2px;
    font-weight: 700;
}

.zigzag-text p {
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    font-family: 'Lato', serif;
}

.zigzag-text strong {
    color: var(--accent-gold);
}

.zigzag-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}


.zigzag-image img {
    width: 100%;
    height: auto;
    max-height: 700px;
    object-fit: contain;
    border-radius: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.zigzag-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

/* Translation Slideshow - For "How We Work" section */
.translation-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.translation-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
    max-height: 700px;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

/* First slide (original manuscript) visible by default */
.translation-slide:first-child {
    opacity: 1;
}

/* Prevent scale hover effect on translation slides */
.translation-slide:hover {
    transform: translate(-50%, -50%) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

/* Desktop: Hover effect to show translation */
@media (min-width: 969px) {
    .translation-slideshow:hover .translation-slide:first-child {
        opacity: 0;
    }

    .translation-slideshow:hover .translation-slide:nth-child(2) {
        opacity: 1;
    }
}

/* Mobile/Tablet: Use active class from JavaScript */
@media (max-width: 968px) {
    .translation-slide.active {
        opacity: 1;
    }
}

/* Hover indicator overlay */
.hover-indicator {
    position: absolute;
    top: calc(8% + 70px);
    right: 8%;
    background: rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 10px;
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 3px;
    font-size: 0.95rem;
    font-family: 'Lato', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 10;
}

.hover-indicator.visible {
    opacity: 1;
}

.hover-indicator.fade-out {
    opacity: 0;
}

.hover-indicator span:last-child {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hover-indicator .hover-icon {
    font-size: 1rem;
    display: inline-block;
    animation: wave-cursor 1.2s ease-in-out infinite;
}

@keyframes wave-cursor {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}

/* Hide indicator on hover (desktop only) */
@media (min-width: 969px) {
    .translation-slideshow:hover .hover-indicator {
        opacity: 0 !important;
    }
}

/* Reposition indicator on smaller screens - keep near top right of image */
@media (max-width: 1375px) and (min-width: 1150px) {
    .hover-indicator {
        top: 50%;
        right: auto;
        left: 50%;
        transform: translate(calc(-50% + 200px), calc(-50% + -140px)) scale(0.9);
    }
}

@media (max-width: 1149px) and (min-width: 1000px) {
    .hover-indicator {
        top: 50%;
        right: auto;
        left: 50%;
        transform: translate(calc(-50% + 170px), calc(-50% + -120px)) scale(0.85);
    }
}

@media (max-width: 999px) and (min-width: 969px) {
    .hover-indicator {
        top: 50%;
        right: auto;
        left: 50%;
        transform: translate(calc(-50% + 140px), calc(-50% + -100px)) scale(0.8);
    }
}

/* Hide indicator on mobile/tablet since it uses tap */
@media (max-width: 968px) {
    .hover-indicator {
        display: none;
    }
}

/* ===========================
   THREE COMMUNITIES - HORIZONTAL BAR
   =========================== */
.communities-bar-section {
    background: radial-gradient(ellipse at 50% 50%, rgba(200, 200, 200, 0.12) 0%, var(--dark-gray) 25%, var(--dark-bg) 80%);
    padding: 50px 5%;
    padding-bottom: 9rem;
    position: relative;
}

.communities-bar-title {
    font-size: 2.5rem;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 3rem;
    font-family: 'Aboreto', serif;
    letter-spacing: 2px;
}

.communities-bar {
    background: var(--dark-bg);
    border: 2px solid var(--accent-gold);
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    padding: 3rem 0;
    border-radius: 0;
    position: relative;
    box-shadow:
        0 0 80px 30px rgba(200, 200, 200, 0.08),
        0 -40px 60px rgba(200, 200, 200, 0.10),
        0 40px 60px rgba(200, 200, 200, 0.10),
        -40px 0 60px rgba(200, 200, 200, 0.10),
        40px 0 60px rgba(200, 200, 200, 0.10),
        0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Communities Bar Corner Ornaments */
.comm-corner {
    position: absolute;
    width: 50px;
    height: 50px;
    pointer-events: none;
}

.comm-corner.top-left { top: 0; left: 0; }
.comm-corner.top-right { top: 0; right: 0; transform: scaleX(-1); }
.comm-corner.bottom-left { bottom: 0; left: 0; transform: scaleY(-1); }
.comm-corner.bottom-right { bottom: 0; right: 0; transform: scale(-1, -1); }

.comm-corner .outer-angle {
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    border-top: 2px solid var(--accent-gold);
    border-left: 2px solid var(--accent-gold);
}

.comm-corner .mid-angle {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 32px;
    height: 32px;
    border-top: 1px solid var(--accent-gold);
    border-left: 1px solid var(--accent-gold);
}

.comm-corner .inner-angle {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 20px;
    height: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.5);
    border-left: 1px solid rgba(212, 175, 55, 0.5);
}

.comm-corner .diamond {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 10px;
    height: 10px;
    border: 2px solid var(--accent-gold);
    transform: rotate(45deg);
}

.comm-corner .diamond::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: var(--accent-gold);
}

.comm-corner .corner-rosette {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 6px;
    height: 6px;
    border: 1px solid var(--accent-gold);
    border-radius: 50%;
}

.community-column {
    padding: 0 3rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.community-column h4 {
    font-size: 1.8rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-family: 'Aboreto', serif;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.community-column p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-gray);
    font-family: 'Lato', serif;
}

.community-divider {
    width: 1px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(212, 175, 55, 0.3) 20%,
        rgba(212, 175, 55, 0.5) 50%,
        rgba(212, 175, 55, 0.3) 80%,
        transparent 100%
    );
    margin: 0;
}

/* ===========================
   MASONRY GRID - MEDIA SHOWCASE
   =========================== */
.masonry-showcase {
    background: var(--dark-bg);
    padding: 8rem 5%;
    margin-bottom: 7rem;
    text-align: center;
    position: relative;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.masonry-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    cursor: default;
}

.masonry-item.masonry-tall {
    grid-row: span 2;
}

.masonry-item.masonry-wide {
    grid-column: span 2;
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Headline card - wide card with title */
.masonry-headline {
    background: var(--dark-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 10px;
    position: relative;
    overflow: visible;
    --overlay-opacity: 0.2;
}

.masonry-headline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%;
    height: 450%;
    background: radial-gradient(ellipse,
        rgba(0, 0, 0, calc(0.8 * var(--overlay-opacity))) 0%,
        rgba(0, 0, 0, calc(0.5 * var(--overlay-opacity))) 40%,
        transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.masonry-headline h2 {
    font-size: 3.2rem;
    color: var(--accent-gold);
    font-family: 'Aboreto', serif;
    letter-spacing: 4px;
    font-weight: 700;
    margin: 0;
    text-align: center;
    line-height: 1.3;
    text-shadow: 0 2px 20px rgba(212, 175, 55, 0.4);
    animation: shimmer 3s ease-in-out infinite;
    max-width: 100%;
    opacity: 0.2;
    position: relative;
    z-index: 2;
}

.masonry-headline .headline-subtitle {
    font-family: 'Lato', sans-serif;
    color: #cccccc;
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;
    padding-top: 2px;
    text-align: center;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
    opacity: 0.2;
}

/* Placeholder card */
.masonry-placeholder {
    background: rgba(40, 40, 40, 0.5);
    border: 2px dashed rgba(212, 175, 55, 0.3);
}

@keyframes shimmer {
    0%, 100% {
        text-shadow: 0 2px 20px rgba(212, 175, 55, 0.), 0 0 40px rgba(212, 175, 55, 0.4);
    }
    50% {
        text-shadow: 0 2px 25px rgba(212, 175, 55, 0.5), 0 0 60px rgba(212, 175, 55, 0.25);
    }
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
    padding: 100px 5%;
    max-width: 95%;
    margin: 0 auto;
    position: relative;
    background: var(--dark-bg);
}

/* =============================================
   ART DECO FRAME
   ============================================= */
.deco-frame {
    position: absolute;
    inset: 30px;
    pointer-events: none;
}

/* Corner Ornaments */
.corner {
    position: absolute;
    width: 70px;
    height: 70px;
}

.corner.top-left { top: 0; left: 0; }
.corner.top-right { top: 0; right: 0; transform: scaleX(-1); }
.corner.bottom-left { bottom: 0; left: 0; transform: scaleY(-1); }
.corner.bottom-right { bottom: 0; right: 0; transform: scale(-1, -1); }

.corner .outer-angle {
    position: absolute;
    top: 0;
    left: 0;
    width: 70px;
    height: 70px;
    border-top: 3px solid var(--accent-gold);
    border-left: 3px solid var(--accent-gold);
}

.corner .mid-angle {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 45px;
    height: 45px;
    border-top: 1px solid var(--accent-gold);
    border-left: 1px solid var(--accent-gold);
}

.corner .inner-angle {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 28px;
    height: 28px;
    border-top: 1px solid rgba(212, 175, 55, 0.5);
    border-left: 1px solid rgba(212, 175, 55, 0.5);
}

.corner .diamond {
    position: absolute;
    top: 22px;
    left: 22px;
    width: 14px;
    height: 14px;
    border: 2px solid var(--accent-gold);
    transform: rotate(45deg);
}

.corner .diamond::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 5px;
    height: 5px;
    background: var(--accent-gold);
}

.corner .corner-rosette {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 8px;
    height: 8px;
    border: 1px solid var(--accent-gold);
    border-radius: 50%;
}

/* Frame Lines */
.frame-line {
    position: absolute;
    background: var(--accent-gold);
}

.frame-line.top {
    top: 0;
    left: 80px;
    right: 80px;
    height: 3px;
}

.frame-line.bottom {
    bottom: 0;
    left: 80px;
    right: 80px;
    height: 3px;
}

.frame-line.left {
    left: 0;
    top: 80px;
    bottom: 80px;
    width: 3px;
}

.frame-line.right {
    right: 0;
    top: 80px;
    bottom: 80px;
    width: 3px;
}

/* Inner Frame Lines */
.frame-line-inner {
    position: absolute;
    background: rgba(212, 175, 55, 0.5);
}

.frame-line-inner.top {
    top: 8px;
    left: 80px;
    right: 80px;
    height: 1px;
}

.frame-line-inner.bottom {
    bottom: 8px;
    left: 80px;
    right: 80px;
    height: 1px;
}

.frame-line-inner.left {
    left: 8px;
    top: 80px;
    bottom: 80px;
    width: 1px;
}

.frame-line-inner.right {
    right: 8px;
    top: 80px;
    bottom: 80px;
    width: 1px;
}

/* Side Midpoint Ornaments */
.frame-side-ornament {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-bg);
}

.frame-side-ornament.left,
.frame-side-ornament.right {
    flex-direction: column;
    gap: 4px;
    padding: 10px 0;
}

.frame-side-ornament.left {
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
}

.frame-side-ornament.right {
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
}

.frame-side-ornament .pip {
    width: 6px;
    height: 6px;
    background: var(--accent-gold);
    border-radius: 50%;
}

.frame-side-ornament .bar {
    width: 2px;
    height: 15px;
    background: var(--accent-gold);
}

/* Center Top Ornament - Enhanced */
.frame-center-ornament {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--dark-bg);
    padding: 0 15px;
}

.frame-center-ornament .rosette {
    width: 14px;
    height: 14px;
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    position: relative;
}

.frame-center-ornament .rosette::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 5px;
    height: 5px;
    background: var(--accent-gold);
    border-radius: 50%;
}

.frame-center-ornament .small-diamond {
    width: 8px;
    height: 8px;
    border: 1px solid var(--accent-gold);
    transform: rotate(45deg);
}

.frame-center-ornament .sunflower {
    width: 36px;
    height: 36px;
    position: relative;
}

.frame-center-ornament .sunflower .petal {
    position: absolute;
    width: 8px;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 3px;
    top: 50%;
    left: 50%;
    transform-origin: left center;
}

.frame-center-ornament .sunflower .petal:nth-child(1) { transform: translateY(-50%) rotate(0deg) translateX(6px); }
.frame-center-ornament .sunflower .petal:nth-child(2) { transform: translateY(-50%) rotate(45deg) translateX(6px); }
.frame-center-ornament .sunflower .petal:nth-child(3) { transform: translateY(-50%) rotate(90deg) translateX(6px); }
.frame-center-ornament .sunflower .petal:nth-child(4) { transform: translateY(-50%) rotate(135deg) translateX(6px); }
.frame-center-ornament .sunflower .petal:nth-child(5) { transform: translateY(-50%) rotate(180deg) translateX(6px); }
.frame-center-ornament .sunflower .petal:nth-child(6) { transform: translateY(-50%) rotate(225deg) translateX(6px); }
.frame-center-ornament .sunflower .petal:nth-child(7) { transform: translateY(-50%) rotate(270deg) translateX(6px); }
.frame-center-ornament .sunflower .petal:nth-child(8) { transform: translateY(-50%) rotate(315deg) translateX(6px); }

.frame-center-ornament .sunflower .center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    background: var(--dark-bg);
}

.frame-center-ornament .sunflower .center::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 5px;
    height: 5px;
    background: var(--accent-gold);
    border-radius: 50%;
}

.frame-center-ornament .bar {
    width: 30px;
    height: 2px;
    background: var(--accent-gold);
}

/* =============================================
   SECTION HEADER
   ============================================= */
.section-header {
    text-align: center;
    margin-bottom: 50px;
    padding-top: 30px;
}

.cta-section .section-title {
    font-family: 'Aboreto', serif;
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--accent-gold);
    margin-bottom: 2rem;
    text-align: center;
    transform: scale(1);
    transform-origin: center;
}

.cta-section .section-title.grow {
    animation: slowGrow 3s ease-out forwards;
}

@keyframes slowGrow {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.15);
    }
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto 4rem auto;
    line-height: 1.8;
    font-family: 'Lato', serif;
    text-align: center;
}

/* =============================================
   CARDS GRID
   ============================================= */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 25px;
    align-items: center;
    padding: 0 30px 30px;
}

/* Base Card Styles */
.card {
    padding: 35px 30px;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.5);
    position: relative;
    background: rgba(25, 25, 25, 1);
    transition: border-color 0.3s ease;
}

.card:hover {
    border-color: var(--accent-gold);
}

.card-title {
    font-family: 'Aboreto', serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.card-text {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-family: 'Lato', serif;
}

.card-button {
    display: inline-block;
    padding: 12px 28px;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    font-family: 'Aboreto', serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
}

.card-button:hover {
    background: var(--accent-gold);
    color: var(--dark-bg);
}

/* =============================================
   FEATURED CARD - ENHANCED
   ============================================= */
.card.featured {
    padding: 50px 40px;
    border: 2px solid var(--accent-gold);
    position: relative;
    z-index: 2;
    animation: borderGlowPulse 3s ease-in-out infinite;
}

/* Double Border Effect */
.card.featured::after {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(212, 175, 55, 0.5);
    pointer-events: none;
}

/* Animated Border Glow for Featured Card */
@keyframes borderGlowPulse {
    0%, 100% {
        box-shadow:
            0 0 20px rgba(200, 200, 200, 0.4),
            0 0 40px rgba(200, 200, 200, 0.2),
            0 0 60px rgba(200, 200, 200, 0.1);
    }
    50% {
        box-shadow:
            0 0 30px rgba(200, 200, 200, 0.6),
            0 0 60px rgba(200, 200, 200, 0.4),
            0 0 90px rgba(200, 200, 200, 0.2);
    }
}

/* Corner Brackets - More Elaborate */
.card.featured .corner-bracket {
    position: absolute;
    width: 25px;
    height: 25px;
    border-color: var(--accent-gold);
    border-style: solid;
    border-width: 0;
}

.card.featured .corner-bracket.tl {
    top: 12px;
    left: 12px;
    border-top-width: 2px;
    border-left-width: 2px;
}

.card.featured .corner-bracket.tr {
    top: 12px;
    right: 12px;
    border-top-width: 2px;
    border-right-width: 2px;
}

.card.featured .corner-bracket.bl {
    bottom: 12px;
    left: 12px;
    border-bottom-width: 2px;
    border-left-width: 2px;
}

.card.featured .corner-bracket.br {
    bottom: 12px;
    right: 12px;
    border-bottom-width: 2px;
    border-right-width: 2px;
}

/* Corner Rosettes */
.card.featured .corner-rosette {
    position: absolute;
    width: 8px;
    height: 8px;
    border: 1px solid var(--accent-gold);
    border-radius: 50%;
}

.card.featured .corner-rosette.tl { top: 14px; left: 14px; }
.card.featured .corner-rosette.tr { top: 14px; right: 14px; }
.card.featured .corner-rosette.bl { bottom: 14px; left: 14px; }
.card.featured .corner-rosette.br { bottom: 14px; right: 14px; }

.card.featured .card-title {
    font-size: 2rem;
}

.card.featured .card-text {
    font-size: 1.1rem;
}

/* Enhanced Title Ornament */
.card.featured .title-ornament {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-bottom: 15px;
}

.card.featured .title-ornament .line {
    width: 35px;
    height: 1px;
    background: var(--accent-gold);
}

.card.featured .title-ornament .diamond {
    width: 10px;
    height: 10px;
    border: 1px solid var(--accent-gold);
    transform: rotate(45deg);
    position: relative;
}

.card.featured .title-ornament .diamond::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: var(--accent-gold);
}

.card.featured .title-ornament .pip {
    width: 4px;
    height: 4px;
    background: var(--accent-gold);
    border-radius: 50%;
}

/* Bottom Ornament Under Button */
.card.featured .bottom-ornament {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.card.featured .bottom-ornament .line {
    width: 20px;
    height: 1px;
    background: rgba(212, 175, 55, 0.5);
}

.card.featured .bottom-ornament .rosette {
    width: 10px;
    height: 10px;
    border: 1px solid var(--accent-gold);
    border-radius: 50%;
    position: relative;
}

.card.featured .bottom-ornament .rosette::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: var(--accent-gold);
    border-radius: 50%;
}

/* Shimmer Effect on Featured Button */
.card.featured .card-button {
    position: relative;
    overflow: hidden;
    background: var(--accent-gold);
    color: var(--dark-bg);
    border-color: var(--accent-gold);
}

.card.featured .card-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: buttonShimmer 2.5s ease-in-out infinite;
}

@keyframes buttonShimmer {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.card.featured .card-button:hover {
    background: rgba(212, 175, 55, 0.8);
    border-color: rgba(212, 175, 55, 0.8);
}

/* ===========================
    RESPONSIVE STYLES
=========================== */

/* Responsive adjustments for merged section */
@media (max-width: 968px) {
    .critical-moment-content h2 {
        font-size: 2.5rem;
    }

    .critical-moment-content .lead {
        font-size: 1.2rem;
    }

    .critical-moment-content .tagline {
        font-size: 1.6rem;
    }

    .zigzag-panel {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 4rem 5%;
    }

    .zigzag-panel.reverse {
        grid-template-columns: 1fr;
    }

    /* Text always comes first on mobile */
    .zigzag-text,
    .zigzag-panel.reverse .zigzag-text {
        order: 1;
        padding: 0;
    }

    .zigzag-image,
    .zigzag-panel.reverse .zigzag-image {
        order: 2;
    }

    .zigzag-text h2 {
        font-size: 2.5rem;
        text-align: center;
    }

    .zigzag-text p {
        font-size: 1.15rem;
    }

    /* Fix translation slideshow on mobile */
    .translation-slideshow {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    .translation-slide {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
    }

    .translation-slide:nth-child(2) {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .communities-bar {
        grid-template-columns: 1fr auto 1fr auto 1fr;
        padding: 2.5rem 0;
    }

    .community-column {
        padding: 0 2rem;
    }

    .community-column h4 {
        font-size: 1.5rem;
    }

    .community-column p {
        font-size: 1rem;
    }

    .communities-bar-title {
        font-size: 2.2rem;
    }

    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
        gap: 15px;
    }

    .masonry-headline h2 {
        font-size: 2rem;
        letter-spacing: 3px;
    }

    .masonry-item.masonry-wide {
        grid-column: span 2;
    }

    .masonry-item.masonry-tall {
        grid-row: span 2;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }

    .card.featured {
        order: -1;
    }

    .deco-frame {
        inset: 15px;
    }

    .cta-section .section-title {
        font-size: 3rem;
    }

    .frame-side-ornament {
        display: none;
    }
}

@media (max-width: 768px) {
    .critical-moment-content h2 {
        font-size: 2rem;
    }

    .critical-moment-content .lead {
        font-size: 1.1rem;
    }

    .critical-moment-content .tagline {
        font-size: 1.4rem;
    }

    .zigzag-panel {
        padding: 3rem 5%;
    }

    .zigzag-text h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .zigzag-text p {
        font-size: 1.1rem;
    }

    .communities-bar {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
    }

    .community-column {
        padding: 2.5rem 2rem;
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    }

    .community-column:last-of-type {
        border-bottom: none;
    }

    .community-divider {
        display: none;
    }

    .communities-bar-title {
        font-size: 2rem;
    }

    .masonry-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 300px;
        gap: 20px;
    }

    .masonry-item.masonry-wide,
    .masonry-item.masonry-tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .masonry-headline h2 {
        font-size: 1.6rem;
        letter-spacing: 2px;
    }

    .masonry-showcase {
        padding: 4rem 5%;
    }
}

@media (max-width: 480px) {
    .stats-critical-merged-section .stats-container {
        padding: 50px 5% 30px 5%;
    }

    .critical-moment-content {
        padding: 4rem 5%;
    }

    .critical-moment-content h2 {
        font-size: 1.8rem;
    }

    .critical-moment-content .lead {
        font-size: 1rem;
    }

    .critical-moment-content .tagline {
        font-size: 1.3rem;
    }

    .zigzag-panel {
        padding: 2.5rem 5%;
        gap: 2rem;
    }

    .zigzag-text h2 {
        font-size: 1.8rem;
    }

    .zigzag-text p {
        font-size: 1rem;
    }

    .community-column {
        padding: 2rem 1.5rem;
    }

    .community-column h4 {
        font-size: 1.4rem;
    }

    .communities-bar-title {
        font-size: 1.8rem;
    }

    .masonry-grid {
        grid-auto-rows: 250px;
    }

    .masonry-headline h2 {
        font-size: 1.2rem;
        letter-spacing: 1.5px;
    }

    .masonry-subtitle p {
        font-size: 0.95rem;
        padding: 15px;
    }
}

/* Full hamburger menu - hero adjustments */
@media (max-width: 1000px) {
    /* Remove staggered headline, center hero content */
    .hero {
        justify-content: center;
        align-items: center;
        padding: 120px 5% 130px 5%;
    }

    .hero-content {
        text-align: center;
        margin-right: 0;
        margin-left: 0;
        right: 0;
        align-items: center;
        max-width: 90%;
        background: transparent;
        padding: 110px 20px 80px 20px;
        border-radius: 0;
    }

    .hero-overlay {
        background: rgba(0, 0, 0, 0.68) !important;
    }

    .hero-content h1 .line1,
    .hero-content h1 .line2,
    .hero-content h1 .line3 {
        text-shadow: 2px 2px 10px rgba(0,0,0,0.9);
    }

    .hero-content p {
        text-shadow: 1px 1px 8px rgba(0,0,0,0.85);
    }

    .btn-hero {
        text-shadow: 1px 1px 6px rgba(0,0,0,0.8);
    }

    .hero-content h1 {
        align-items: center;
    }

    .hero-content h1 .line1,
    .hero-content h1 .line2,
    .hero-content h1 .line3 {
        margin-left: 0;
        align-self: center;
    }

    .rotating-word-container {
        min-width: 450px; /* Adjust for medium screens */
    }

    .rotating-word {
        left: 50%;
        transform: translateX(-50%);
    }

    .rotating-word.exiting {
        transform: translateX(-50%);
    }

    .rotating-word.active {
        transform: translateX(-50%);
    }

    .hero-content p {
        text-align: center;
        margin-left: 0;
    }

    .hero-buttons {
        justify-content: center;
        margin-left: 0;
    }

    .hero-overlay {
        background: linear-gradient(18deg,
                    rgba(0, 0, 0, 0.3) 0%,
                    rgba(0, 0, 0, 0.5) 100%);
    }
}

/* Mid-range: Keep 3 cards side-by-side but reduce sizes */
@media (max-width: 1075px) {
    .stat-card {
        padding: 2.5rem 1.5rem;
    }

    .stat-number {
        font-size: 4rem;
    }

    .stat-label {
        font-size: 1.25rem;
    }

    .stats-container {
        gap: 25px;
    }
}

@media (max-width: 900px) {
    .stat-card {
        padding: 2rem 1.5rem;
    }

    .stat-number {
        font-size: 3.5rem;
    }

    .stat-label {
        font-size: 1.2rem;
    }

    .stats-container {
        gap: 20px;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .hero-content {
        padding: 110px 20px 80px 20px;
    }

    .hero-content h1 {
        font-size: 3.5rem;
        line-height: 1.2;
    }

    .rotating-word-container {
        min-width: 350px; /* Smaller width for tablet */
    }

    .hero-content p {
        font-size: 1.15rem;
        max-width: 100%;
        line-height: 1.65;
    }

    .hero-content p + p {
        margin-bottom: 20px;
    }

    .hero-buttons {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .stat-card {
        padding: 2rem 1.5rem;
    }

    .stat-number {
        font-size: 3.5rem;
    }

    .stat-label {
        font-size: 1.2rem;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .hero-content {
        padding: 110px 15px 80px 15px;
    }

    .hero-content h1 {
        font-size: 3rem;
        line-height: 1.15;
    }

    .rotating-word-container {
        min-width: 240px; /* Much smaller for mobile */
    }

    .hero-content p {
        font-size: 1rem;
        line-height: 1.65;
    }

    .hero-content p + p {
        margin-bottom: 38px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        align-items: stretch;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-card:nth-child(3) {
        grid-column: auto;
        max-width: none;
    }

    .stat-number {
        font-size: 2.8rem;
    }
}
