/* landing.css — replaces Tailwind CDN for index.html */

/* ── VARIABLES ─────────────────────────────────── */
:root {
    --primary: #20c997 /*#25D366*/;
    --secondary: #075E54;
    --accent: #128C7E;
    --dark: #1F2937;
    --light: #F9FAFB;
}

/* ── BASE ──────────────────────────────────────── */
html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }
body { font-family: 'Inter', system-ui, sans-serif; margin: 0; }
a { cursor: pointer; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; background: none; }
input, textarea { font-family: inherit; border: none; outline: none; background: none;}

/* ── DISPLAY ───────────────────────────────────── */
.hidden      { display: none !important; }
.block       { display: block; }
.flex        { display: flex; }
.inline-flex { display: inline-flex; }
.grid        { display: grid; }

/* ── FLEX ──────────────────────────────────────── */
.flex-col      { flex-direction: column; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center  { align-items: center; }
.items-start   { align-items: flex-start; }
.items-baseline{ align-items: baseline; }
.justify-between{ justify-content: space-between; }
.justify-center { justify-content: center; }

/* ── SPACING GAPS ──────────────────────────────── */
.gap-4  { gap: 1rem; }
.gap-6  { gap: 1.5rem; }
.gap-8  { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* space-x / space-y */
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* ── GRID ──────────────────────────────────────── */
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ── POSITION ──────────────────────────────────── */
.sticky   { position: sticky; }
.fixed    { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.inset-0  { top: 0; right: 0; bottom: 0; left: 0; }
.top-0    { top: 0; }
.right-0  { right: 0; }
.z-50     { z-index: 50; }

/* ── SIZE ──────────────────────────────────────── */
.w-full    { width: 100%; }
.w-10      { width: 2.5rem; }
.w-12      { width: 3rem; }
.h-10      { height: 2.5rem; }
.h-12      { height: 3rem; }
.min-h-screen { min-height: 100vh; }
.max-w-md  { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }

/* ── CONTAINER ─────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1200px;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: auto;
    margin-right: auto;
}

/* ── MARGIN ────────────────────────────────────── */
.mx-auto { margin-left: auto; margin-right: auto; }
.mx-4    { margin-left: 1rem; margin-right: 1rem; }
.mb-1    { margin-bottom: 0.25rem; }
.mb-2    { margin-bottom: 0.5rem; }
.mb-3    { margin-bottom: 0.75rem; }
.mb-4    { margin-bottom: 1rem; }
.mb-6    { margin-bottom: 1.5rem; }
.mb-8    { margin-bottom: 2rem; }
.mb-10   { margin-bottom: 2.5rem; }
.mb-12   { margin-bottom: 3rem; }
.mt-5    { margin-top: 1.25rem; }
.mt-8    { margin-top: 2rem; }
.ml-1    { margin-left: 0.25rem; }
.ml-2    { margin-left: 0.5rem; }
.ml-3    { margin-left: 0.75rem; }
.mr-2    { margin-right: 0.5rem; }
.mr-3    { margin-right: 0.75rem; }
.pt-8    { padding-top: 2rem; }

/* ── PADDING ───────────────────────────────────── */
.px-4    { padding-left: 1rem;    padding-right: 1rem; }
.px-5    { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6    { padding-left: 1.5rem;  padding-right: 1.5rem; }
.px-8    { padding-left: 2rem;    padding-right: 2rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2    { padding-top: 0.5rem;   padding-bottom: 0.5rem; }
.py-3    { padding-top: 0.75rem;  padding-bottom: 0.75rem; }
.py-4    { padding-top: 1rem;     padding-bottom: 1rem; }
.py-12   { padding-top: 3rem;     padding-bottom: 3rem; }
.py-20   { padding-top: 5rem;     padding-bottom: 5rem; }
.py-24   { padding-top: 6rem;     padding-bottom: 6rem; }
.p-4     { padding: 1rem; }
.p-6     { padding: 1.5rem; }
.p-8     { padding: 2rem; }

/* ── TYPOGRAPHY ────────────────────────────────── */
.text-sm     { font-size: 0.875rem;  line-height: 1.25rem; }
.text-xl     { font-size: 1.25rem;   line-height: 1.75rem; }
.text-2xl    { font-size: 1.5rem;    line-height: 2rem; }
.text-3xl    { font-size: 1.875rem;  line-height: 2.25rem; }
.text-4xl    { font-size: 2.25rem;   line-height: 2.5rem; }
.text-6xl    { font-size: 3.75rem;   line-height: 1; }
.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.font-sans     { font-family: 'Inter', system-ui, sans-serif; }
.leading-tight   { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.text-center { text-align: center; }

/* ── TEXT COLOR ────────────────────────────────── */
.text-white     { color: #ffffff; }
.text-dark      { color: var(--dark); }
.text-primary   { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent    { color: var(--accent); }
.text-gray-400  { color: #9CA3AF; }
.text-gray-500  { color: #6B7280; }
.text-gray-600  { color: #4B5563; }
.text-gray-700  { color: #374151; }
.text-green-100 { color: #DCFCE7; }
.text-green-200 { color: #BBF7D0; }
.text-green-300 { color: #86EFAC; }
.text-yellow-300{ color: #FDE047; }

/* ── BACKGROUND COLOR ──────────────────────────── */
.bg-white    { background-color: #ffffff; }
.bg-dark     { background-color: var(--dark); }
.bg-primary  { background-color: var(--primary); }
.bg-accent   { background-color: var(--accent); }
.bg-light    { background-color: var(--light); }
.bg-green-50 { background-color: #F0FDF4; }
.bg-green-100{ background-color: #DCFCE7; }
.bg-gray-700 { background-color: #374151; }

/* background opacity combos */
.bg-white.bg-opacity-10 { background-color: rgba(255,255,255,0.10); }
.bg-white.bg-opacity-20 { background-color: rgba(255,255,255,0.20); }
.bg-black.bg-opacity-50 { background-color: rgba(0,0,0,0.50); }

/* ── GRADIENT ──────────────────────────────────── */
.bg-gradient-to-br.from-secondary.to-accent {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
}

/* ── BORDER ────────────────────────────────────── */
.border   { border: 1px solid; }
.border-2 { border: 2px solid; }
.border-b { border-bottom: 1px solid; }
.border-t { border-top: 1px solid; }
.border-gray-200    { border-color: #E5E7EB; }
.border-gray-300    { border-color: #D1D5DB; }
.border-gray-700    { border-color: #374151; }
.border-primary     { border-color: var(--primary); }
.border-white       { border-color: #ffffff; }
.border-transparent { border-color: transparent; }

/* ── BORDER RADIUS ─────────────────────────────── */
.rounded      { border-radius: 0.25rem; }
.rounded-lg   { border-radius: 0.5rem; }
.rounded-xl   { border-radius: 0.75rem; }
.rounded-2xl  { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.rounded-l-lg { border-top-left-radius: 0.5rem; border-bottom-left-radius: 0.5rem; }
.rounded-r-lg { border-top-right-radius: 0.5rem; border-bottom-right-radius: 0.5rem; }
.rounded-bl-lg{ border-bottom-left-radius: 0.5rem; }
.rounded-tr-xl{ border-top-right-radius: 0.75rem; }

/* ── SHADOW ────────────────────────────────────── */
.shadow-sm  { box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); }
.shadow-lg  { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.10), 0 4px 6px -2px rgba(0,0,0,0.05); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }

/* ── TRANSFORM ─────────────────────────────────── */
.transform.scale-105 { transform: scale(1.05); }

/* ── FOCUS ─────────────────────────────────────── */
.focus\:outline-none:focus     { outline: none; }
.focus\:ring-2:focus           { box-shadow: 0 0 0 2px rgba(37,211,102,0.40); }
.focus\:ring-primary:focus     { box-shadow: 0 0 0 2px rgba(37,211,102,0.40); }
.focus\:border-transparent:focus{ border-color: transparent; }

/* ── HOVER ─────────────────────────────────────── */
.hover\:text-primary:hover   { color: var(--primary); }
.hover\:text-secondary:hover { color: var(--secondary); }
.hover\:text-accent:hover    { color: var(--accent); }
.hover\:text-white:hover     { color: #ffffff; }
.hover\:text-gray-700:hover  { color: #374151; }
.hover\:bg-accent:hover      { background-color: var(--accent); }
.hover\:bg-gray-100:hover    { background-color: #F3F4F6; }
.hover\:bg-white:hover       { background-color: #ffffff; }
.hover\:border-primary:hover { border-color: var(--primary); }
.hover\:shadow-lg:hover      { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.10), 0 4px 6px -2px rgba(0,0,0,0.05); }

/* ── TRANSITIONS ───────────────────────────────── */
.transition-colors { transition: color 0.2s, background-color 0.2s, border-color 0.2s; }
.transition-shadow { transition: box-shadow 0.2s; }
.transition-all    { transition: all 0.2s; }

/* ── RESPONSIVE md (768px) ─────────────────────── */
@media (min-width: 768px) {
    .hidden.md\:flex,
    .md\:flex          { display: flex; }
    .md\:text-4xl      { font-size: 2.25rem; line-height: 2.5rem; }
    .md\:text-6xl      { font-size: 3.75rem; line-height: 1; }
    .md\:grid-cols-2   { grid-template-columns: repeat(2, 1fr); }
    .md\:grid-cols-3   { grid-template-columns: repeat(3, 1fr); }
    .md\:grid-cols-4   { grid-template-columns: repeat(4, 1fr); }
}

/* ── RESPONSIVE sm (640px) ─────────────────────── */
@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row; }
}

/* ── RESPONSIVE lg (1024px) ────────────────────── */
@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}

/* ── EXTRA SPACING ─────────────────────────────── */
.px-2   { padding-left: 0.5rem;  padding-right: 0.5rem; }
.px-3   { padding-left: 0.75rem; padding-right: 0.75rem; }
.py-6   { padding-top: 1.5rem;   padding-bottom: 1.5rem; }
.py-8   { padding-top: 2rem;     padding-bottom: 2rem; }
.py-16  { padding-top: 4rem;     padding-bottom: 4rem; }
.mt-2   { margin-top: 0.5rem; }
.mt-4   { margin-top: 1rem; }
.mt-6   { margin-top: 1.5rem; }
.ml-4   { margin-left: 1rem; }
.mb-5   { margin-bottom: 1.25rem; }

/* ── EXTRA TYPOGRAPHY ──────────────────────────── */
.text-lg  { font-size: 1.125rem; line-height: 1.75rem; }
.text-5xl { font-size: 3rem;     line-height: 1; }

/* ── FORM CONTROL (for ASP.NET server controls) ── */
.form-control {
    display: block; width: 100%; box-sizing: border-box;
    padding: 0.75rem 1rem;
    border: 1px solid #D1D5DB; border-radius: 0.5rem;
    font-family: inherit; font-size: 1rem; line-height: 1.5;
    color: #1F2937; background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(32,201,151,0.2);
}
select.form-control { cursor: pointer; }
textarea.form-control { min-height: 120px; resize: vertical; }
.alert-success {
    display: block; padding: 0.75rem 1rem; margin-bottom: 1rem;
    background: #F0FDF4; color: #166534;
    border: 1px solid var(--primary); border-radius: 0.5rem;
    font-size: 0.875rem;
}

/* ── PAGE HEADER ───────────────────────────────── */
.page-header {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    color: white; padding: 4rem 1rem; text-align: center;
}
.page-header h1 { font-size: 2.5rem; font-weight: 700; margin: 0 0 0.75rem; }
.page-header p  { font-size: 1.1rem; opacity: 0.85; margin: 0; }

/* ── NAV DESKTOP / HAMBURGER ───────────────────── */
.nav-desktop {
    display: none;
    align-items: center;
    gap: 0.25rem;
}
@media (min-width: 768px) { .nav-desktop { display: flex; } }

.nav-mobile-menu {
    display: none;
    flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: white; padding: 1rem;
    box-shadow: 0 4px 16px rgba(0,0,0,.12); z-index: 100;
    gap: 0.25rem;
}
.nav-mobile-menu.open { display: flex; }
@media (min-width: 768px) { .nav-mobile-menu { display: none !important; } }

.nav-link { color: var(--dark); padding: 0.5rem 0.75rem; border-radius: 0.5rem; transition: color 0.2s; display: inline-block; }
.nav-link:hover, .nav-link.active { color: var(--primary); }

.nav-hamburger {
    display: flex; flex-direction: column; gap: 5px;
    cursor: pointer; padding: 8px; border: none; background: none;
}
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--dark); border-radius: 2px; }
@media (min-width: 768px) { .nav-hamburger { display: none; } }

/* ── RTL OVERRIDES ─────────────────────────────── */
[dir="rtl"] .space-x-2 > * + * { margin-left: 0; margin-right: 0.5rem; }
[dir="rtl"] .space-x-3 > * + * { margin-left: 0; margin-right: 0.75rem; }
[dir="rtl"] .space-x-4 > * + * { margin-left: 0; margin-right: 1rem; }
[dir="rtl"] .space-x-6 > * + * { margin-left: 0; margin-right: 1.5rem; }
[dir="rtl"] .mr-2 { margin-right: 0; margin-left: 0.5rem; }
[dir="rtl"] .mr-3 { margin-right: 0; margin-left: 0.75rem; }
[dir="rtl"] .ml-1 { margin-left: 0; margin-right: 0.25rem; }
[dir="rtl"] .ml-2 { margin-left: 0; margin-right: 0.5rem; }
[dir="rtl"] .ml-3 { margin-left: 0; margin-right: 0.75rem; }
[dir="rtl"] .ml-4 { margin-left: 0; margin-right: 1rem; }
[dir="rtl"] .rounded-bl-lg { border-bottom-left-radius: 0; border-bottom-right-radius: 0.5rem; }
[dir="rtl"] .rounded-tr-xl { border-top-right-radius: 0;  border-top-left-radius: 0.75rem; }
[dir="rtl"] .rounded-l-lg  { border-radius: 0; border-top-right-radius: 0.5rem; border-bottom-right-radius: 0.5rem; }
[dir="rtl"] .rounded-r-lg  { border-radius: 0; border-top-left-radius: 0.5rem;  border-bottom-left-radius: 0.5rem; }
[dir="rtl"] .nav-mobile-menu { left: 0; right: 0; }
[dir="rtl"] .absolute.top-0.right-0 { right: auto; left: 0; }
[dir="rtl"] .text-left { text-align: right; }
