/* ============================================
   BADIN TREEHOUSE CO. — STYLESHEET
   ============================================ */

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

:root {
    --emerald-900: #064e3b;
    --emerald-800: #065f46;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --emerald-500: #10b981;
    --emerald-100: #d1fae5;
    --emerald-50:  #ecfdf5;
    
    --cream-50:  #faf9f6;
    --cream-100: #f5f0e8;
    --cream-200: #ede5d5;
    --cream-300: #e0d5c0;
    
    --warm-500:  #d4a574;
    --warm-600:  #c4915d;
    --warm-700:  #b07d4a;
    
    --text-900:  #1a1a1a;
    --text-700:  #3a3a3a;
    --text-600:  #555555;
    --text-500:  #6b7280;
    --text-400:  #9ca3af;
    
    --radius-sm:  8px;
    --radius-md:  14px;
    --radius-lg:  22px;
    --radius-xl:  32px;
    
    --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:  0 4px 14px rgba(0,0,0,0.07), 0 2px 6px rgba(0,0,0,0.04);
    --shadow-lg:  0 10px 30px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
    --shadow-xl:  0 20px 50px rgba(0,0,0,0.10), 0 8px 20px rgba(0,0,0,0.05);
    
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body:    'Nunito', 'Segoe UI', sans-serif;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    color: var(--text-700);
    background-color: var(--cream-50);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--emerald-700);
    background: var(--emerald-50);
    border: 1px solid var(--emerald-100);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-900);
    line-height: 1.2;
    margin-bottom: 20px;
}

.section-title em {
    color: var(--emerald-700);
    font-style: italic;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-500);
    max-width: 560px;
    line-height: 1.8;
}

.center { text-align: center; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-lg);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--emerald-800);
    color: #fff;
    box-shadow: 0 4px 14px rgba(6, 95, 70, 0.3);
}

.btn-primary:hover {
    background: var(--emerald-700);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 95, 70, 0.35);
}

.btn-secondary {
    background: #fff;
    color: var(--emerald-800);
    border: 2px solid var(--emerald-200, var(--cream-200));
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--emerald-600);
    background: var(--emerald-50);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 249, 246, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(250, 249, 246, 0.95);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--emerald-800);
    font-weight: 400;
}

.nav-logo-icon {
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    padding: 8px 18px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-700);
}

.nav-links a:hover {
    background: var(--emerald-50);
    color: var(--emerald-800);
}

.nav-cta {
    background: var(--emerald-800) !important;
    color: #fff !important;
    margin-left: 8px;
}

.nav-cta:hover {
    background: var(--emerald-700) !important;
    color: #fff !important;
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--emerald-800);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--cream-50);
    padding-top: 72px;
    position: relative;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 540px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--warm-700);
    background: linear-gradient(135deg, #fdf4e0, #fce8c8);
    padding: 8px 18px;
    border-radius: 50px;
    margin-bottom: 28px;
    border: 1px solid rgba(212, 165, 116, 0.3);
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    line-height: 1.1;
    color: var(--text-900);
    margin-bottom: 24px;
}

.hero-headline em {
    color: var(--emerald-700);
    font-style: italic;
}

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

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--emerald-800);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-500);
    font-weight: 600;
    margin-top: 4px;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--cream-300);
}

/* Hero Image */
.hero-image {
    position: relative;
}

.hero-img-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-img-wrapper img {
    width: 100%;
    height: 700px;
    object-fit: cover;
}

.hero-img-accent {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 120px;
    height: 120px;
    background: var(--emerald-100);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.hero-floating-card {
    position: absolute;
    bottom: 40px;
    left: -40px;
    background: #fff;
    padding: 16px 22px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 2;
}

.floating-card-icon {
    width: 44px;
    height: 44px;
    background: var(--emerald-50);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.floating-card-title {
    display: block;
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--text-900);
}

.floating-card-desc {
    display: block;
    font-size: 0.78rem;
    color: var(--text-500);
    margin-top: 2px;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
}

/* --- About --- */
.about {
    background: var(--cream-100);
    padding: 100px 0;
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image-group {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img-main img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.about-img-secondary {
    position: absolute;
    bottom: -30px;
    right: -30px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 5px solid var(--cream-100);
}

.about-img-secondary img {
    width: 400px;
    height: 350px;
    object-fit: cover;
}

.about-experience-badge {
    position: absolute;
    top: -20px;
    right: 40px;
    background: var(--emerald-800);
    color: #fff;
    padding: 18px 24px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.exp-number {
    display: block;
    font-family: var(--font-display);
    font-size: 1.6rem;
    line-height: 1;
}

.exp-text {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.85;
    margin-top: 4px;
}

.about-content {
    padding: 20px 0;
}

.about-text {
    font-size: 1.05rem;
    color: var(--text-600);
    line-height: 1.9;
    margin-bottom: 18px;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 36px;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.value-icon {
    width: 48px;
    height: 48px;
    background: var(--emerald-50);
    border: 1px solid var(--emerald-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.value-item strong {
    display: block;
    font-size: 1rem;
    color: var(--text-900);
    margin-bottom: 2px;
}

.value-item span {
    font-size: 0.88rem;
    color: var(--text-500);
}

/* --- Offerings --- */
.offerings {
    background: var(--cream-50);
    padding: 100px 0;
}

.offerings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 56px;
}

.offering-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.04);
    transition: var(--transition);
}

.offering-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.offering-img {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.offering-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.offering-card:hover .offering-img img {
    transform: scale(1.06);
}

.offering-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--emerald-800);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 14px;
    border-radius: 50px;
}

.offering-body {
    padding: 26px 28px 30px;
}

.offering-body h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--text-900);
    margin-bottom: 10px;
}

.offering-body p {
    font-size: 0.95rem;
    color: var(--text-500);
    line-height: 1.8;
}

/* --- Community --- */
.community {
    background: var(--emerald-800);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.community::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}

.community::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}

.community-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.community .section-label {
    background: rgba(255,255,255,0.12);
    color: var(--emerald-100);
    border-color: rgba(255,255,255,0.15);
}

.community .section-title {
    color: #fff;
}

.community .section-title em {
    color: var(--warm-500);
}

.community-text {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.9;
    margin-bottom: 36px;
}

.community-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-item strong {
    display: block;
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 4px;
}

.feature-item span {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
}

.community-image {
    position: relative;
}

.community-img-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.community-img-main img {
    width: 100%;
    height: 640px;
    object-fit: cover;
}

.community-img-float {
    position: absolute;
    bottom: -24px;
    right: -24px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 5px solid var(--emerald-800);
}

.community-img-float img {
    width: 300px;
    height: 200px;
    object-fit: cover;
}

/* --- Visit / Contact --- */
.visit {
    background: var(--cream-100);
    padding: 100px 0;
}

.visit-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.visit-text {
    font-size: 1.05rem;
    color: var(--text-500);
    line-height: 1.9;
    margin-bottom: 36px;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 24px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.04);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
    border-color: var(--emerald-100);
}

.contact-card-icon {
    width: 50px;
    height: 50px;
    background: var(--emerald-50);
    border: 1px solid var(--emerald-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-card strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-900);
    margin-bottom: 2px;
}

.contact-card span {
    font-size: 0.88rem;
    color: var(--text-500);
}

/* Form */
.visit-form-wrapper {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 44px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,0.04);
}

.visit-form-header {
    margin-bottom: 30px;
}

.visit-form-header h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--text-900);
    margin-bottom: 8px;
}

.visit-form-header p {
    font-size: 0.92rem;
    color: var(--text-500);
    line-height: 1.7;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-700);
    margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--cream-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-900);
    background: var(--cream-50);
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-400);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--emerald-600);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Success state */
.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.form-success.show {
    display: block;
}

.success-icon {
    width: 72px;
    height: 72px;
    background: var(--emerald-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.form-success h4 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-900);
    margin-bottom: 10px;
}

.form-success p {
    font-size: 0.95rem;
    color: var(--text-500);
    line-height: 1.7;
}

/* --- Footer --- */
.footer {
    background: var(--text-900);
    color: rgba(255,255,255,0.6);
    padding: 64px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding-bottom: 48px;
}

.footer-brand p {
    margin-top: 16px;
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 300px;
}

.footer-brand .nav-logo {
    color: #fff;
}

.footer-links {
    display: flex;
    gap: 48px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col strong {
    color: #fff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.footer-col a,
.footer-col span {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
}

.footer-col a:hover {
    color: var(--warm-500);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

/* --- Animations --- */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-aos].aos-delay-1 { transition-delay: 0.1s; }
[data-aos].aos-delay-2 { transition-delay: 0.2s; }
[data-aos].aos-delay-3 { transition-delay: 0.3s; }
[data-aos].aos-delay-4 { transition-delay: 0.4s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-container,
    .about-inner,
    .community-inner,
    .visit-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-image { order: -1; }
    .hero-content { max-width: 100%; }
    
    .hero-img-wrapper img {
        height: 480px;
    }
    
    .hero-floating-card {
        left: 20px;
        bottom: 20px;
    }
    
    .about-img-secondary {
        right: 0;
        bottom: -20px;
    }
    
    .about-img-main img {
        height: 450px;
    }
    
    .community-img-main img {
        height: 450px;
    }
    
    .community-img-float img {
        width: 240px;
        height: 160px;
    }
    
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(250, 249, 246, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 20px 24px;
        gap: 4px;
        border-bottom: 1px solid rgba(0,0,0,0.06);
        transform: translateY(-120%);
        opacity: 0;
        transition: var(--transition);
        pointer-events: none;
    }
    
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-links a {
        width: 100%;
        padding: 14px 18px;
    }
    
    .nav-cta {
        margin-left: 0 !important;
        text-align: center;
        justify-content: center;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 80px;
    }
    
    .hero-container {
        padding: 40px 24px;
    }
    
    .hero-stats {
        gap: 16px;
    }
    
    .offerings-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .visit-form-wrapper {
        padding: 28px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .footer-links {
        gap: 32px;
    }
    
    .about-img-secondary {
        position: relative;
        right: 0;
        bottom: 0;
        margin-top: 16px;
        border: 3px solid var(--cream-100);
    }
    
    .about-img-main img,
    .about-img-secondary img {
        height: auto;
    }
    
    .about-image-group {
        max-width: 500px;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-floating-card {
        display: none;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .about, .offerings, .community, .visit {
        padding: 64px 0;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 24px;
    }
}
