/* ═══════════════════════════════════════════════════════════════════════════
   ranidae.net — Site Stylesheet
   Shared across all pages. Import with: <link rel="stylesheet" href="/css/site.css">
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Variables ────────────────────────────────────────────────────────────── */
:root {
    --pond-green:    #2D6A4F;
    --lily-green:    #52B788;
    --bright-green:  #74C69D;
    --pale-green:    #D8F3DC;
    --water-blue:    #48CAE4;
    --deep-water:    #0077B6;
    --sun-yellow:    #FFD60A;
    --warm-cream:    #FFFDF5;
    --soft-white:    #F8FFF9;
    --dark-mud:      #1B2F1E;
    --mid-mud:       #3D5A40;
    --text-dark:     #1a2e1c;
    --text-mid:      #3d5a40;
    --text-light:    #6b8f71;

    --font-display:  'Fraunces', Georgia, serif;
    --font-body:     'Nunito', 'Trebuchet MS', sans-serif;

    --radius-sm:     8px;
    --radius-md:     16px;
    --radius-lg:     32px;
    --radius-xl:     48px;

    --shadow-sm:     0 2px 8px rgba(45, 106, 79, 0.12);
    --shadow-md:     0 8px 32px rgba(45, 106, 79, 0.18);
    --shadow-lg:     0 20px 60px rgba(45, 106, 79, 0.25);

    --header-height: 72px;
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--warm-cream);
    color: var(--text-dark);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--pond-green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ───────────────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    background: rgba(255, 253, 245, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--pale-green);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-frog {
    font-size: 1.8rem;
    display: inline-block;
    animation: logo-bob 3s ease-in-out infinite;
}

@keyframes logo-bob {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50%       { transform: translateY(-4px) rotate(5deg); }
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--pond-green);
    letter-spacing: -0.02em;
}

.logo-dot { color: var(--bright-green); }

.site-nav {
    display: flex;
    gap: 0.25rem;
    margin-left: auto;
}

.site-nav a {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-mid);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    text-decoration: none;
}

.site-nav a:hover {
    background: var(--pale-green);
    color: var(--pond-green);
    text-decoration: none;
}

.site-nav a.active {
    background: var(--pond-green);
    color: white;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--pond-green);
    margin-left: auto;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-lg);
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--dark-mud);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    color: white;
}

.btn-ghost {
    background: transparent;
    color: var(--pond-green);
    border: 2px solid var(--pond-green);
}

.btn-ghost:hover {
    background: var(--pale-green);
    text-decoration: none;
    color: var(--pond-green);
}

/* ── Hero Section ─────────────────────────────────────────────────────────── */
.hero {
    min-height: calc(100vh - var(--header-height));
    background: linear-gradient(135deg, #e8f5e9 0%, #f1fdf3 40%, #e0f4f8 100%);
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    padding: 4rem 4rem 4rem 6rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-bg-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--bright-green) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.2;
    pointer-events: none;
}

/* Floating decorative elements */
.lily-pad {
    position: absolute;
    font-size: 3rem;
    opacity: 0.25;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}
.lily-pad-1 { top: 10%; left: 5%;  animation-delay: 0s;   font-size: 4rem; }
.lily-pad-2 { top: 70%; left: 45%; animation-delay: 2s;   font-size: 3rem; }
.lily-pad-3 { top: 20%; right: 5%; animation-delay: 4s;   font-size: 2.5rem; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50%       { transform: translateY(-20px) rotate(5deg); }
}

.floating-flies { position: absolute; inset: 0; pointer-events: none; }
.fly { position: absolute; font-size: 1.5rem; animation: flutter 8s ease-in-out infinite; }
.fly-1 { top: 15%; left: 30%; animation-delay: 0s; }
.fly-2 { top: 60%; left: 20%; animation-delay: 3s; }
.fly-3 { top: 40%; right: 30%; animation-delay: 1.5s; }

@keyframes flutter {
    0%   { transform: translate(0, 0) rotate(0deg); opacity: 0.6; }
    25%  { transform: translate(20px, -15px) rotate(15deg); opacity: 1; }
    50%  { transform: translate(-10px, -30px) rotate(-10deg); opacity: 0.8; }
    75%  { transform: translate(15px, -10px) rotate(20deg); opacity: 1; }
    100% { transform: translate(0, 0) rotate(0deg); opacity: 0.6; }
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: slide-in-left 0.8s ease both;
}

@keyframes slide-in-left {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}

.eyebrow {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.ribbit {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--lily-green);
    background: rgba(82, 183, 136, 0.15);
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    border: 1.5px solid var(--lily-green);
    animation: bounce-in 0.6s ease both;
}

.ribbit:nth-child(2) { animation-delay: 0.1s; }
.ribbit:nth-child(3) { animation-delay: 0.2s; }

@keyframes bounce-in {
    0%   { opacity: 0; transform: scale(0.5) translateY(10px); }
    70%  { transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.hero-title {
    font-family: var(--font-display);
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

.title-line-1 {
    display: block;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 300;
    color: var(--text-mid);
    font-style: italic;
}

.title-line-2 {
    display: block;
    font-size: clamp(4rem, 9vw, 7rem);
    font-weight: 900;
    color: var(--pond-green);
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.title-punct {
    color: var(--lily-green);
    display: inline-block;
    animation: punct-bounce 2s ease-in-out infinite;
}

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

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-mid);
    margin-bottom: 2.5rem;
    max-width: 480px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Frog showcase */
.frog-showcase {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: slide-in-right 0.8s ease 0.2s both;
}

@keyframes slide-in-right {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

.frog-frame {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid white;
    max-width: 520px;
    width: 100%;
    animation: gentle-rock 8s ease-in-out infinite;
}

@keyframes gentle-rock {
    0%, 100% { transform: rotate(-1deg) scale(1); }
    50%       { transform: rotate(1deg) scale(1.01); }
}

.frog-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(ellipse at center, rgba(82, 183, 136, 0.4) 0%, transparent 70%);
    z-index: -1;
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50%       { opacity: 1;   transform: scale(1.05); }
}

.frog-hero-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.frog-frame:hover .frog-hero-img {
    transform: scale(1.03);
}

.frog-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(29, 53, 32, 0.85) 0%, transparent 100%);
    color: white;
    padding: 2rem 1.5rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1rem;
    font-weight: 400;
}

.caption-icon { font-size: 1.1rem; }

.frog-bubbles {
    position: absolute;
    top: -1rem;
    right: -1rem;
    pointer-events: none;
}

.bubble {
    background: white;
    border: 2px solid var(--pale-green);
    border-radius: var(--radius-md);
    padding: 0.4rem 0.9rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--pond-green);
    box-shadow: var(--shadow-sm);
    position: absolute;
    white-space: nowrap;
    animation: bubble-float 4s ease-in-out infinite;
}

.b1 { top: 0;    right: 0;    animation-delay: 0s; }
.b2 { top: 3rem; right: 4rem; animation-delay: 1.5s; font-size: 1.3rem; }
.b3 { top: 6rem; right: -1rem;animation-delay: 0.8s; }

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

/* ── Welcome Section ──────────────────────────────────────────────────────── */
.welcome-section {
    padding: 6rem 2rem;
    background: white;
    position: relative;
    overflow: hidden;
}

.welcome-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 5rem;
    align-items: center;
    position: relative;
}

.welcome-blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--pale-green) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    pointer-events: none;
    border-radius: 50%;
}

.welcome-text h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--pond-green);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.wave {
    display: inline-block;
    animation: wave 1.5s ease-in-out infinite;
    transform-origin: 70% 70%;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    20%       { transform: rotate(14deg); }
    40%       { transform: rotate(-8deg); }
    60%       { transform: rotate(14deg); }
    80%       { transform: rotate(-4deg); }
}

.big-welcome {
    font-size: 1.15rem;
    color: var(--text-mid);
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.welcome-text p:last-of-type {
    color: var(--text-mid);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.welcome-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.badge {
    background: var(--pale-green);
    color: var(--pond-green);
    border: 1.5px solid var(--bright-green);
    border-radius: 999px;
    padding: 0.4rem 1rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Pond art */
.pond-scene {
    width: 320px;
    height: 320px;
    background: radial-gradient(ellipse at 50% 60%, var(--water-blue) 0%, #a8e6cf 40%, var(--pale-green) 100%);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 20px 60px rgba(72, 202, 228, 0.3), inset 0 -10px 30px rgba(0, 119, 182, 0.2);
    animation: pond-shimmer 4s ease-in-out infinite;
    overflow: hidden;
}

@keyframes pond-shimmer {
    0%, 100% { box-shadow: 0 20px 60px rgba(72, 202, 228, 0.3), inset 0 -10px 30px rgba(0, 119, 182, 0.2); }
    50%       { box-shadow: 0 20px 80px rgba(72, 202, 228, 0.5), inset 0 -10px 40px rgba(0, 119, 182, 0.3); }
}

.pond-water {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ripple {
    position: absolute;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    animation: ripple-out 3s ease-out infinite;
}

.r1 { width: 60px;  height: 60px;  animation-delay: 0s; }
.r2 { width: 120px; height: 120px; animation-delay: 1s; }
.r3 { width: 200px; height: 200px; animation-delay: 2s; }

@keyframes ripple-out {
    0%   { opacity: 0.6; transform: scale(0.8); }
    100% { opacity: 0;   transform: scale(1.4); }
}

.pond-emoji   { position: absolute; font-size: 3rem; top: 20%;  left: 20%;  animation: float 5s ease-in-out infinite; }
.pond-frog    { position: absolute; font-size: 3.5rem; bottom: 25%; right: 25%; animation: float 4s ease-in-out infinite 1s; }
.pond-dragonfly { position: absolute; font-size: 2rem; top: 15%; right: 20%; animation: flutter 6s ease-in-out infinite; }

/* ── Cards Section ────────────────────────────────────────────────────────── */
.cards-section {
    padding: 5rem 2rem 6rem;
    background: var(--soft-white);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--pond-green);
    text-align: center;
    margin-bottom: 3rem;
}

.cards-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--pale-green);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--bright-green);
}

.card-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.25rem;
}

.card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pond-green);
}

.card p {
    color: var(--text-mid);
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
}

.card-link {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--pond-green);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
    transition: gap 0.2s ease;
}

.card-link:hover {
    text-decoration: none;
    gap: 0.6rem;
    color: var(--dark-mud);
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--dark-mud);
    color: rgba(255,255,255,0.7);
    padding: 3rem 2rem;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-frog {
    font-size: 2.5rem;
    flex-shrink: 0;
    animation: logo-bob 4s ease-in-out infinite;
}

.footer-text { flex: 1; min-width: 200px; }

.footer-tagline {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1rem;
    color: var(--bright-green);
    margin-bottom: 0.25rem;
}

.footer-copy {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.footer-links {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--bright-green);
    text-decoration: none;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 3rem 2rem;
        text-align: center;
        min-height: auto;
    }

    .hero-content { order: 1; }
    .frog-showcase { order: 0; max-width: 400px; margin: 0 auto; }
    .hero-cta { justify-content: center; }
    .eyebrow { justify-content: center; }

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

    .welcome-art { display: flex; justify-content: center; }
    .welcome-badges { justify-content: center; }

    .cards-grid { grid-template-columns: 1fr; max-width: 480px; }

    .site-nav { display: none; }
    .nav-toggle { display: flex; }

    .site-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--warm-cream);
        border-bottom: 2px solid var(--pale-green);
        padding: 1rem 2rem;
        gap: 0.5rem;
        box-shadow: var(--shadow-md);
    }

    .frog-bubbles { display: none; }
}

@media (max-width: 600px) {
    .hero-cta { flex-direction: column; align-items: center; }
    .btn { width: 100%; justify-content: center; max-width: 300px; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
    .pond-scene { width: 240px; height: 240px; }
}

/* ── Coming Soon links ────────────────────────────────────────────────────── */
[title="Coming soon!"] {
    opacity: 0.55;
    cursor: not-allowed;
    position: relative;
}

.site-nav [title="Coming soon!"]:hover,
.footer-links [title="Coming soon!"]:hover {
    background: transparent;
    color: var(--text-mid);
    text-decoration: none;
}

.site-nav [title="Coming soon!"]::after,
.footer-links [title="Coming soon!"]::after {
    content: " 🚧";
    font-size: 0.7em;
}
