/* base.css
   Variables, reset, buttons, shared card base, feature lists, keyframes.
   Loaded first on every page. */

/* ===== CSS VARIABLES ===== */
:root {
    --primary: #206D99;
    --primary-dark: #1D4ED8;
    --primary-light: #3B82F6;
    --primary-bg-start: #1E40AF;
    --secondary: #14B8A6;
    --cyan: #38BDF8;
    --dark: #F9FAFB;
    --darker: #F3F4F6;
    --light: #FFFFFF;
    --gray: #6B7280;
    --light-gray: #D1D5DB;
    --border: #E5E7EB;
    --text-primary: #111827;
    --text-secondary: #374151;
    --text-muted: #6B7280;
    --error: #ef4444;
    --error-bg: #fef2f2;

    /* RGB triplets for use in rgba(var(--x-rgb), alpha) */
    --primary-rgb: 32, 109, 153;
    --primary-light-rgb: 59, 130, 246;
    --secondary-rgb: 20, 184, 166;

    /* Shared tokens */
    --primary-tint: rgba(var(--primary-rgb), 0.06);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-card-hover: 0 25px 50px rgba(0, 0, 0, 0.3);
    --ease-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background-color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

section {
    padding: clamp(50px, 8vw, 80px) 0;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    margin-top: -10px;
}

.section-subtitle {
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition-property: transform, box-shadow, background-color, border-color, color;
    transition-duration: 0.4s;
    transition-timing-function: var(--ease-bounce);
    border: none;
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(var(--primary-light-rgb), 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(var(--primary-light-rgb), 0.4);
}

.btn-secondary {
    background-color: rgba(30, 41, 59, 0.8);
    color: white;
    border: 2px solid var(--border);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(51, 65, 85, 0.8);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

/* ===== SHARED CARD BASE =====
   Common surface, shadow and hover for all card-style blocks.
   Per-card differences are set in each card's own section below. */
.benefit-card,
.result-card,
.testimonial-card,
.content-block,
.integration-card,
.pricing-card,
.story-card,
.blog-card,
.related-card,
.featured-post,
.case-study-card {
    background: var(--light);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    transition-property: transform, box-shadow, border-color;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}

.benefit-card:hover,
.result-card:hover,
.testimonial-card:hover,
.content-block:hover,
.integration-card:hover,
.pricing-card:hover,
.story-card:hover,
.blog-card:hover,
.related-card:hover,
.featured-post:hover,
.case-study-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-card-hover);
}

/* ===== FEATURE LISTS (merged from two definitions) ===== */
.feature-list {
    list-style: none;
    margin: 14px 0;
    padding-left: 18px;
}

.feature-list li {
    margin-bottom: 6px;
    display: flex;
    align-items: flex-start;
    color: var(--text-secondary);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    line-height: 1.4;
}

.feature-list i {
    color: var(--secondary);
    margin-right: 12px;
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ===== ANIMATIONS ===== */
/* Kept in case it is referenced from HTML or JS; not used in this file */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Transform only, so it runs on the compositor without repaints */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(0.5deg); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .btn {
        width: 100%;
        text-align: center;
    }

    .container {
        padding: 0 15px;
    }

    section {
        padding: 60px 0;
    }
}

/* Lets <picture> wrappers lay out exactly as a bare <img> would */
picture {
    display: contents;
}

/* .calendly-overlay .calendly-popup-close {
    display: none;
} */
