/* =============================================
   ronri.org - Mid-Century Wave Laboratory
   Ethereal-Blue Palette | Asymmetric Layout
   ============================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.8;
    color: #4A6A9A;
    background-color: #EEF2FA;
    overflow-x: hidden;
}

/* --- SVG Defs (hidden) --- */
.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 700;
    color: #1A2A4A;
    line-height: 1.2;
}

.hero-title {
    font-size: clamp(2.5rem, 5.5vw, 5rem);
    letter-spacing: -0.02em;
    margin-bottom: 0.3em;
}

.hero-title .accent-dot {
    color: #C4663A;
}

.hero-subtitle {
    font-family: 'Source Sans 3', sans-serif;
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 700;
    color: #3A8AD9;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.2em;
}

.hero-description {
    font-size: 1.1rem;
    color: #4A6A9A;
    max-width: 480px;
    line-height: 1.8;
}

.section-heading {
    font-size: clamp(2rem, 4.5vw, 4rem);
    margin-bottom: 0.5em;
}

.section-body {
    font-size: 1.05rem;
    color: #4A6A9A;
    line-height: 1.8;
    max-width: 560px;
}

/* --- Leaf Decorations (Nature Elements) --- */
.leaf-decoration {
    position: absolute;
    width: 80px;
    height: 120px;
    opacity: 0.12;
    z-index: 0;
    pointer-events: none;
    animation: leafSway 6s ease-in-out infinite;
}

.leaf-decoration::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: #3A8AD9;
    clip-path: polygon(50% 0%, 80% 25%, 95% 60%, 75% 95%, 50% 100%, 25% 95%, 5% 60%, 20% 25%);
}

.leaf-1 {
    top: 8%;
    right: 12%;
    transform: rotate(15deg);
    animation-delay: 0s;
}

.leaf-2 {
    bottom: 15%;
    left: 5%;
    width: 60px;
    height: 90px;
    transform: rotate(-20deg);
    animation-delay: -2s;
}

.leaf-3 {
    top: 10%;
    right: 8%;
    width: 70px;
    height: 105px;
    transform: rotate(30deg);
    animation-delay: -1s;
}

.leaf-4 {
    bottom: 20%;
    left: 10%;
    width: 90px;
    height: 135px;
    transform: rotate(-10deg);
    animation-delay: -3s;
}

.leaf-5 {
    top: 15%;
    left: 6%;
    width: 50px;
    height: 75px;
    transform: rotate(25deg);
    animation-delay: -4s;
}

@keyframes leafSway {
    0%, 100% { transform: rotate(var(--leaf-rotate, 0deg)) translateX(0); }
    25% { transform: rotate(var(--leaf-rotate, 0deg)) translateX(5px); }
    75% { transform: rotate(var(--leaf-rotate, 0deg)) translateX(-5px); }
}

.leaf-1 { --leaf-rotate: 15deg; }
.leaf-2 { --leaf-rotate: -20deg; }
.leaf-3 { --leaf-rotate: 30deg; }
.leaf-4 { --leaf-rotate: -10deg; }
.leaf-5 { --leaf-rotate: 25deg; }

/* --- Hero Section --- */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 5% 4rem;
    background-color: #EEF2FA;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* --- Hero Visual (Wave Circle) --- */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.wave-circle {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wave-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid #3A8AD9;
    opacity: 0.25;
    animation: waveExpand 4s ease-out infinite;
}

.wave-ring-1 {
    width: 160px;
    height: 160px;
    animation-delay: 0s;
}

.wave-ring-2 {
    width: 160px;
    height: 160px;
    animation-delay: 1.3s;
}

.wave-ring-3 {
    width: 160px;
    height: 160px;
    animation-delay: 2.6s;
}

.wave-core {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3A8AD9, #C4663A);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 30px rgba(58, 138, 217, 0.3);
}

@keyframes waveExpand {
    0% {
        width: 60px;
        height: 60px;
        opacity: 0.5;
    }
    100% {
        width: 320px;
        height: 320px;
        opacity: 0;
    }
}

/* --- Wave Dividers --- */
.wave-divider {
    position: relative;
    width: 100%;
    line-height: 0;
    margin-top: -1px;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 80px;
}

.wave-divider-1 {
    background-color: #EEF2FA;
}

.wave-divider-2 {
    background-color: #F5F8FC;
}

.wave-divider-3 {
    background-color: #EEF2FA;
}

.wave-divider-4 {
    background-color: #F5F8FC;
}

/* --- Research Section --- */
.section-research {
    position: relative;
    background-color: #F5F8FC;
    padding: 6rem 5%;
    overflow: hidden;
}

.research-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
    position: relative;
    z-index: 1;
}

.research-card {
    background: #EEF2FA;
    border-radius: 12px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.card-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #3A8AD9, #C4663A);
    border-radius: 4px 0 0 4px;
}

/* --- Sidebar Blocks --- */
.research-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 1rem;
}

.sidebar-block {
    background: #EEF2FA;
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 3px solid #3A8AD9;
    transition: border-left-color 0.3s ease;
}

.sidebar-block:hover {
    border-left-color: #C4663A;
}

.sidebar-label {
    display: block;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #3A8AD9;
    margin-bottom: 0.3em;
}

.sidebar-value {
    display: block;
    font-size: 1.1rem;
    color: #1A2A4A;
    font-weight: 700;
    font-family: 'Source Sans 3', sans-serif;
}

/* --- Principles Section --- */
.section-principles {
    position: relative;
    background-color: #EEF2FA;
    padding: 6rem 5%;
    overflow: hidden;
}

.principles-grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* --- Leaf Cluster (Principle Visual) --- */
.leaf-cluster {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto;
}

.leaf-shape {
    position: absolute;
    background: #3A8AD9;
    opacity: 0.2;
    animation: leafSway 5s ease-in-out infinite;
}

.leaf-a {
    width: 120px;
    height: 180px;
    top: 10%;
    left: 25%;
    clip-path: polygon(50% 0%, 85% 20%, 100% 55%, 85% 85%, 50% 100%, 15% 85%, 0% 55%, 15% 20%);
    animation-delay: 0s;
    --leaf-rotate: 0deg;
}

.leaf-b {
    width: 90px;
    height: 135px;
    top: 5%;
    right: 10%;
    clip-path: polygon(50% 0%, 80% 30%, 95% 65%, 70% 95%, 50% 100%, 30% 95%, 5% 65%, 20% 30%);
    background: #C4663A;
    opacity: 0.15;
    animation-delay: -1.5s;
    --leaf-rotate: 15deg;
}

.leaf-c {
    width: 100px;
    height: 150px;
    bottom: 5%;
    left: 15%;
    clip-path: polygon(50% 0%, 78% 22%, 98% 58%, 80% 90%, 50% 100%, 20% 90%, 2% 58%, 22% 22%);
    animation-delay: -3s;
    --leaf-rotate: -12deg;
}

/* --- Tags --- */
.principle-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.tag {
    display: inline-block;
    padding: 0.4em 1.2em;
    border-radius: 100px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.tag-primary {
    background: rgba(58, 138, 217, 0.12);
    color: #3A8AD9;
    border: 1px solid rgba(58, 138, 217, 0.25);
}

.tag-secondary {
    background: rgba(196, 102, 58, 0.1);
    color: #C4663A;
    border: 1px solid rgba(196, 102, 58, 0.2);
}

/* --- Wave Lab Section --- */
.section-wavelab {
    position: relative;
    background-color: #F5F8FC;
    padding: 6rem 5%;
    overflow: hidden;
}

.wavelab-grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
    position: relative;
    z-index: 1;
}

.wavelab-intro {
    padding-top: 1rem;
}

.wavelab-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.wave-card {
    background: #EEF2FA;
    border-radius: 12px;
    padding: 2rem 2.5rem;
    transition: box-shadow 0.4s ease, transform 0.4s ease;
    position: relative;
    overflow: hidden;
}

.wave-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #3A8AD9, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wave-card:hover::after {
    opacity: 1;
}

.wave-card-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.8em;
}

.wave-number {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #3A8AD9;
    opacity: 0.3;
    line-height: 1;
}

.wave-card-title {
    font-size: 1.3rem;
    color: #1A2A4A;
}

.wave-card-body {
    color: #4A6A9A;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* --- Pulse-Attention Animation --- */
.pulse-element {
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.pulse-element.is-pulsing {
    box-shadow: 0 0 20px rgba(58, 138, 217, 0.3);
    transform: scale(1.02);
}

/* --- Contact / Footer --- */
.section-contact {
    position: relative;
    background-color: #EEF2FA;
    padding: 6rem 5% 2rem;
    overflow: hidden;
}

.contact-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
    position: relative;
    z-index: 1;
}

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

.contact-block {
    background: #F5F8FC;
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 3px solid #C4663A;
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.contact-label {
    display: block;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #C4663A;
    margin-bottom: 0.3em;
}

.contact-value {
    display: block;
    font-size: 1.05rem;
    color: #1A2A4A;
    font-weight: 700;
    font-family: 'Source Sans 3', sans-serif;
}

.footer-bar {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(58, 138, 217, 0.15);
    text-align: center;
}

.footer-text {
    font-size: 0.85rem;
    color: #4A6A9A;
    opacity: 0.7;
    letter-spacing: 0.05em;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .hero-grid,
    .research-grid,
    .principles-grid,
    .wavelab-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-visual {
        order: -1;
    }

    .wave-circle {
        width: 240px;
        height: 240px;
    }

    @keyframes waveExpand {
        0% {
            width: 50px;
            height: 50px;
            opacity: 0.5;
        }
        100% {
            width: 240px;
            height: 240px;
            opacity: 0;
        }
    }

    .principle-visual {
        order: -1;
    }

    .leaf-cluster {
        width: 200px;
        height: 200px;
    }

    .section-body {
        max-width: 100%;
    }

    .hero-description {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    #hero {
        padding: 4rem 5% 3rem;
    }

    .section-research,
    .section-principles,
    .section-wavelab,
    .section-contact {
        padding: 4rem 5%;
    }

    .research-card {
        padding: 2rem;
    }

    .wave-card {
        padding: 1.5rem;
    }

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