/* =========================================
   Two Trees Software — Modern Heritage
   A distinctive design system rooted in
   nature, refined by craft.
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Outfit:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
    /* Primary — Forest */
    --primary: #2D6A4F;
    --primary-light: #40916C;
    --primary-dark: #1B4332;
    --primary-50: #EDF5F0;
    --primary-100: #D8F3DC;

    /* Secondary — Antique Gold */
    --secondary: #C9A96E;
    --secondary-light: #D4B98A;
    --secondary-dark: #B08D57;

    /* Accent */
    --accent: #C9A96E;
    --accent-light: #D4B98A;
    --coral: #C17E5A;
    --teal: #2D6A4F;

    /* Neutral — Warm */
    --gray-50: #FAF9F6;
    --gray-100: #F5F3EE;
    --gray-200: #E8E4DB;
    --gray-300: #D4CFC3;
    --gray-400: #9B9484;
    --gray-500: #7A7265;
    --gray-600: #5C5549;
    --gray-700: #3D3830;
    --gray-800: #2A2520;
    --gray-900: #1A1714;

    /* Semantic */
    --bg-primary: #FFFBF5;
    --bg-secondary: #F7F4ED;
    --bg-tertiary: #F0ECE3;
    --text-primary: #1A1714;
    --text-secondary: #6B6556;
    --text-light: #9B9484;

    /* Shadows — warm-tinted */
    --shadow-sm: 0 1px 2px rgba(26, 23, 20, 0.04);
    --shadow: 0 2px 4px rgba(26, 23, 20, 0.06), 0 1px 2px rgba(26, 23, 20, 0.03);
    --shadow-md: 0 4px 16px rgba(26, 23, 20, 0.06), 0 2px 4px rgba(26, 23, 20, 0.03);
    --shadow-lg: 0 12px 32px rgba(26, 23, 20, 0.08), 0 4px 8px rgba(26, 23, 20, 0.03);
    --shadow-xl: 0 24px 48px rgba(26, 23, 20, 0.1), 0 8px 16px rgba(26, 23, 20, 0.05);

    /* Radii — slightly less rounded for refined feel */
    --radius-sm: 0.25rem;
    --radius: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}


/* ── Reset ──────────────────────────────── */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.65;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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


/* ── Entrance Animations ────────────────── */

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

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideInLine {
    from { width: 0; }
    to   { width: 60px; }
}


/* ── Navigation ─────────────────────────── */

.navbar {
    background: rgba(255, 251, 245, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1.1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(212, 207, 195, 0.5);
    box-shadow: none;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container a {
    display: flex;
    align-items: center;
}

.logo {
    height: 48px;
    width: auto;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.logo:hover {
    transform: scale(1.06);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--secondary);
    transition: width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-link:hover {
    color: var(--primary-dark);
}

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


/* ── Hero Section ───────────────────────── */

.hero {
    background: linear-gradient(170deg, #1B4332 0%, #152D23 40%, #0F1F18 100%);
    padding: 130px 0 110px;
    text-align: center;
    position: relative;
    overflow: hidden;

    /* Override text-secondary for dark hero */
    --text-secondary: rgba(255, 251, 245, 0.55);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 25% 0%, rgba(45, 106, 79, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse at 75% 100%, rgba(201, 169, 110, 0.12) 0%, transparent 55%),
        radial-gradient(circle at 50% 50%, rgba(64, 145, 108, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* Decorative circle */
.hero::after {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(201, 169, 110, 0.07);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 4.5rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: #FFFBF5;
    -webkit-text-fill-color: #FFFBF5;
    background: none;
    background-clip: unset;
    -webkit-background-clip: unset;
    letter-spacing: -0.01em;
    line-height: 1.1;
    animation: fadeInUp 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.hero-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 1.75rem;
    color: var(--secondary);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    animation: fadeInUp 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s both;
}

.hero-description {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    color: rgba(255, 251, 245, 0.65);
    line-height: 1.9;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
}

.cta-button {
    display: inline-block;
    background: var(--secondary);
    color: var(--gray-900);
    padding: 15px 42px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 20px rgba(201, 169, 110, 0.3);
    border: none;
    animation: fadeInUp 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 169, 110, 0.45);
    background: var(--secondary-light);
}


/* ── Section Titles ─────────────────────── */

.section-title {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 2.75rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--secondary);
    margin: 1.25rem auto 2rem;
}


/* ── About Section ──────────────────────── */

.about {
    padding: 100px 0;
    background: var(--bg-primary);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: white;
    padding: 55px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-secondary);
    font-weight: 300;
}


/* ── Services / Our Apps ────────────────── */

.services {
    padding: 100px 0;
    background: var(--bg-secondary);
}

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

.service-card {
    background: white;
    padding: 44px 34px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary);
}

/* "Learn More" links inside cards */
.service-card a[href] {
    transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.service-card a[href]:hover {
    color: var(--secondary-dark) !important;
    letter-spacing: 0.02em;
}

.service-icon {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 1.55rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 0.98rem;
    font-weight: 300;
}


/* ── App Badges ─────────────────────────── */

.app-badges {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.badge-link {
    display: inline-block;
    background: var(--secondary);
    color: var(--gray-900);
    padding: 14px 32px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.82rem;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 20px rgba(201, 169, 110, 0.3);
}

.badge-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 169, 110, 0.45);
    background: var(--secondary-light);
}


/* ── Features Grid ──────────────────────── */

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

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.feature-icon {
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 1.4rem;
    margin-bottom: 0.85rem;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 0.95rem;
    font-weight: 300;
}


/* ── Tech Grid ──────────────────────────── */

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

.tech-item {
    background: white;
    padding: 35px 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tech-item:hover {
    border-color: var(--secondary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.tech-item h4 {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.tech-item p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.65;
    font-weight: 300;
}


/* ── Contact Section ────────────────────── */

.contact {
    padding: 100px 0;
    background: linear-gradient(170deg, var(--primary-50) 0%, var(--bg-primary) 100%);
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    background: white;
    padding: 60px 44px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.contact-text {
    font-size: 1.05rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    line-height: 1.85;
    font-weight: 300;
}

.contact-email {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    color: var(--gray-900);
    background: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    padding: 15px 38px;
    border-radius: var(--radius);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 20px rgba(201, 169, 110, 0.25);
    border: none;
    cursor: pointer;
}

.contact-email:hover {
    background: var(--secondary-light);
    box-shadow: 0 8px 30px rgba(201, 169, 110, 0.4);
    transform: translateY(-2px);
}

.contact-note {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}


/* ── Footer ─────────────────────────────── */

.footer {
    background: linear-gradient(170deg, #1B4332 0%, #0F1F18 100%);
    color: var(--gray-400);
    padding: 44px 0;
    text-align: center;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
}


/* ── Responsive ─────────────────────────── */

@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        gap: 1.25rem;
    }

    .nav-links {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-link {
        font-size: 0.78rem;
    }

    .hero {
        padding: 85px 0 70px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-description {
        font-size: 0.98rem;
    }

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

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

    .about-text {
        font-size: 1rem;
    }

    .contact-text {
        font-size: 1rem;
    }

    .logo {
        height: 42px;
    }

    .about-content,
    .contact-content {
        padding: 40px 28px;
    }

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

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

    .app-badges {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 65px 0 55px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .cta-button {
        padding: 14px 34px;
        font-size: 0.82rem;
    }

    .about,
    .services,
    .contact {
        padding: 70px 0;
    }

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

    .service-card {
        padding: 36px 24px;
    }

    .contact-note {
        font-size: 0.82rem;
    }

    .container {
        padding: 0 18px;
    }
}


/* ── Carousel ───────────────────────────── */

.carousel-wrapper {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding: 0 80px;
}

.carousel-container {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    touch-action: pan-y pinch-zoom;
}

.carousel-slide {
    min-width: 100%;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.carousel-slide img {
    width: 100%;
    max-width: 260px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin: 0 auto 1.5rem;
    display: block;
}

.carousel-slide h3 {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.carousel-slide p {
    margin: 0;
    font-size: 0.98rem;
}

.carousel-btn {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid var(--gray-200);
    color: var(--text-primary);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 10;
}

.carousel-btn:hover:not(.disabled) {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.carousel-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--gray-300);
    cursor: pointer;
    transition: all 0.35s ease;
}

.carousel-dot.active {
    background: var(--secondary);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .carousel-wrapper {
        padding: 0 20px;
    }

    .carousel-btn {
        display: none;
    }
}
