/* ==========================================
   CSS Variables - Brand Colors & Theming
   ========================================== */
:root {
    --primary: #00674f;
    --secondary: #9e2ca0;
    --accent: #4320ac;
    --bg-color: #f5f2ef;
    --text-dark: #2a2722;
    --text-light: #ffffff;
    --gray-light: #e8e4df;
    --gray-medium: #c4bfb8;
    --shadow: rgba(42, 39, 34, 0.1);
    --shadow-hover: rgba(42, 39, 34, 0.15);
}

/* ==========================================
   Reset & Base Styles
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-color);
    line-height: 1.6;
    font-size: 16px;
}

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

/* ==========================================
   Typography
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 600;
    color: var(--text-dark);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

/* ==========================================
   Header & Navigation
   ========================================== */
.header {
    background-color: var(--text-light);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo-img {
    height: 40px;
    width: auto;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1rem;
}

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

.nav-link.cta-link {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link.cta-link:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-hover);
}

.btn-secondary {
    background-color: #ffffff;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-hover);
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
}

.btn-white {
    background-color: var(--text-light);
    color: var(--primary);
}

.btn-white:hover {
    background-color: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-hover);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--text-light);
    padding: 6rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================
   Section Styles
   ========================================== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-dark);
    opacity: 0.8;
}

/* ==========================================
   About Section
   ========================================== */
.about {
    padding: 5rem 0;
    background-color: var(--text-light);
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.capability-category {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.category-title {
    color: var(--primary);
    border-bottom: 3px solid var(--secondary);
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}

.capability-card {
    background-color: var(--bg-color);
    padding: 1.75rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow);
}

.capability-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px var(--shadow-hover);
}

.capability-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.capability-title {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.capability-description {
    color: var(--text-dark);
    opacity: 0.85;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ==========================================
   Demo Section
   ========================================== */
.demos {
    padding: 5rem 0;
    background-color: var(--bg-color);
}

.demo-tabs {
    margin-top: 2rem;
}

.tab-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.tab-button {
    padding: 0.875rem 2rem;
    background-color: var(--text-light);
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.tab-button.active {
    background-color: var(--primary);
    color: var(--text-light);
    border-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Carousel Container */
.carousel-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.demo-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--gray-light);
}

.demo-carousel::-webkit-scrollbar {
    height: 8px;
}

.demo-carousel::-webkit-scrollbar-track {
    background: var(--gray-light);
    border-radius: 4px;
}

.demo-carousel::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.demo-carousel::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

.demo-item {
    background-color: var(--text-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow);
    transition: all 0.3s ease;
    flex: 0 0 calc(33.333% - 1.35rem);
    min-width: 280px;
}

.demo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px var(--shadow-hover);
}

/* Carousel Navigation Buttons */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--text-light);
    border: 2px solid var(--primary);
    color: var(--primary);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px var(--shadow);
}

.carousel-nav:hover {
    background-color: var(--primary);
    color: var(--text-light);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
    left: -24px;
}

.carousel-next {
    right: -24px;
}

.video-container {
    position: relative;
    width: 100%;
    background-color: var(--text-dark);
}

.demo-title {
    padding: 1.25rem 1.5rem 0.5rem;
    color: var(--text-dark);
}

.demo-description {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-dark);
    opacity: 0.75;
    margin-bottom: 0;
}

/* Placeholder Video Styles */
.placeholder-video {
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--gray-medium) 100%);
    padding-bottom: 177.77%; /* Match Loom aspect ratio */
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-dark);
    padding: 2rem;
}

.placeholder-content p:first-child {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.placeholder-content p {
    margin-bottom: 0.5rem;
}

.placeholder-note {
    font-size: 0.875rem;
    opacity: 0.7;
    font-style: italic;
}

/* ==========================================
   Experience Section
   ========================================== */
.experience {
    padding: 5rem 0;
    background-color: var(--text-light);
}

.experience-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.experience-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--shadow);
}

.info-card h3 {
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.suggestion-list {
    list-style: none;
    padding: 0;
}

.suggestion-list li {
    padding: 0.75rem 0;
    padding-left: 1.75rem;
    position: relative;
    border-bottom: 1px solid var(--gray-light);
}

.suggestion-list li:last-child {
    border-bottom: none;
}

.suggestion-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.disclaimer {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1.25rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.disclaimer strong {
    color: var(--text-dark);
}

/* Jotform Container */
.jotform-container {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--shadow);
    min-height: 400px;
}

.jotform-placeholder {
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--bg-color) 100%);
    border: 2px dashed var(--gray-medium);
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
}

.jotform-placeholder h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.jotform-placeholder p {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.placeholder-instruction {
    font-weight: 600;
    color: var(--primary);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.placeholder-steps {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
    padding-left: 1.5rem;
}

.placeholder-steps li {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* ==========================================
   Booking Section
   ========================================== */
.booking {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    color: var(--text-light);
    text-align: center;
}

.booking-content {
    max-width: 700px;
    margin: 0 auto;
}

.booking-title {
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

.booking-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    background-color: var(--text-dark);
    color: var(--text-light);
    padding: 2.5rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo-img {
    height: 35px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-text {
    opacity: 0.8;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ==========================================
   Responsive Design - Tablets
   ========================================== */
@media (max-width: 768px) {
    .nav {
        gap: 1rem;
    }

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

    .nav-link.cta-link {
        padding: 0.4rem 1rem;
    }

    .hero {
        padding: 4rem 0;
    }

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

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }

    .capabilities-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .experience-content {
        grid-template-columns: 1fr;
    }

    .demo-item {
        flex: 0 0 calc(50% - 1rem);
        min-width: 250px;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
    }

    .carousel-prev {
        left: -20px;
    }

    .carousel-next {
        right: -20px;
    }

    .about,
    .demos,
    .experience,
    .booking {
        padding: 3.5rem 0;
    }
}

/* ==========================================
   Responsive Design - Mobile
   ========================================== */
@media (max-width: 480px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .nav-link {
        text-align: center;
    }

    .hero {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .tab-buttons {
        flex-direction: column;
    }

    .tab-button {
        width: 100%;
    }

    .demo-item {
        flex: 0 0 85%;
        min-width: 280px;
    }

    .carousel-nav {
        display: none;
    }

    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .about,
    .demos,
    .experience,
    .booking {
        padding: 2.5rem 0;
    }

    .capability-card,
    .info-card {
        padding: 1.5rem;
    }

    .jotform-container {
        padding: 1.5rem;
    }
}
