/* Main CSS - Public Site */

:root {
    --primary-color: #ff6b6b;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --dark-color: #212529;
}

/* ── Mobile-first base ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
    font-size: 100%;             /* 1rem = 16 px (user-scalable) */
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-width: 320px;
}

/* ── Responsive images / media — always ─────────────────── */
img, video, iframe, canvas, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ── Navigation — Modern minimalist ─────────────────────────────────── */
.navbar {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 107, 107, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: clamp(1.1rem, 3vw, 1.5rem);  
    color: #1a1a1a !important;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: #6b7280 !important;
    transition: color 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6b6b, #ffa94d);
    transition: width 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: #1a1a1a !important;
}

.nav-link:hover::after {
    width: 100%;
}

/* ── Cards — Modern minimalist ───────────────────────────── */
.card {
    border: 1px solid rgba(255, 107, 107, 0.1);
    border-radius: 14px;
    background: #ffffff;
    transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(255, 107, 107, 0.15);
    border-color: rgba(255, 107, 107, 0.2);
}

/* ── Buttons — modern minimalist with smooth interactions ───────────── */
.btn {
    border-radius: 10px;
    padding: 0.75rem 1.75rem;  
    font-weight: 600;
    font-size: 0.95rem;
    min-height: 44px;
    min-width:  44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1.5px solid transparent;
    letter-spacing: 0.3px;
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.18);
}

.btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.12);
    transition-duration: 0.1s;
}

/* ── Links — micro-interaction ───────────────────────────── */
a:not(.btn):not([role="button"]) {
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:not(.btn):not([role="button"]):hover {
    opacity: 0.82;
}

/* ── Form inputs — clean modern styling ────────────────────────────── */
input, textarea, select {
    border-radius: 8px;
    border: 1.5px solid rgba(255, 107, 107, 0.15);
    background: rgba(255, 107, 107, 0.02);
    transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 0.95rem;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1), 0 4px 12px rgba(255, 107, 107, 0.12);
    border-color: rgba(255, 107, 107, 0.4) !important;
    background: rgba(255, 107, 107, 0.04);
}

/* ── Footer — Modern minimalist ──────────────────────────── */
footer {
    margin-top: auto;
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f2f5 100%);
    border-top: 1px solid rgba(255, 107, 107, 0.1);
    color: #6b7280;
}

footer a {
    text-decoration: none;
    transition: color 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: #ff6b6b;
    font-weight: 500;
}

footer a:hover {
    color: #ff5252 !important;
}
}

/* ── Responsive overrides ────────────────────────────────── */
/* Mobile (320 px – 480 px) */
@media (max-width: 480px) {
    .hero-section h1 {
        font-size: clamp(1.6rem, 8vw, 2.25rem);
    }

    .feature-icon {
        font-size: 2rem !important;
    }

    /* stack any flex row into a column */
    .flex-row-mobile-stack {
        flex-direction: column !important;
        align-items: stretch !important;
    }
}

/* Tablet (481 px – 768 px) */
@media (min-width: 481px) and (max-width: 768px) {
    .hero-section h1 {
        font-size: clamp(2rem, 6vw, 2.75rem);
    }
}

/* Desktop (1024 px+) */
@media (min-width: 1024px) {
    .hero-section h1 {
        font-size: clamp(2.75rem, 4vw, 4rem);
    }
}

/* ── Reduced motion — respect OS preference ──────────────── */
@media (prefers-reduced-motion: reduce) {
    .btn, .card, a, input, textarea, select {
        transition: none !important;
        animation: none !important;
    }
}
