/*
Theme Name: Tiba SaaS Prime
Author: Nyumbani
Description: A conversion-focused theme for selling Booking Software.
Version: 1.0.0
Text Domain: tiba-saas
*/

:root {
    /* Brand Colors (Navy & Electric Blue) */
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --surface: #f8fafc;
    --white: #ffffff;
    
    /* Text */
    --text-main: #334155;
    --text-muted: #64748b;
    
    /* Spacing & Layout */
    --container: 1200px;
    --header-height: 80px;
    --radius: 12px;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--text-main); line-height: 1.6; background: var(--surface); }
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; transition: 0.2s; }

/* Layout Utilities */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 100px 0; }
.text-center { text-align: center; }
.grid { display: grid; gap: 30px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* Components */
.btn { display: inline-block; padding: 12px 24px; border-radius: 8px; font-weight: 600; font-size: 1rem; cursor: pointer; border: none; }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--primary-light); color: var(--primary); background: transparent; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* TIBA PLUGIN OVERRIDES (Make it look native) */
#tiba-reservation-app { box-shadow: none !important; border: 1px solid #e2e8f0; }
.tiba-review-card { border: 1px solid #e2e8f0 !important; box-shadow: var(--shadow) !important; }

/* Mobile */
@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.5rem !important; }
    .nav-links { display: none; } /* Add JS toggle later */
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ---------------------------------------------------------------------
 * TIBA CONTACT FORM STYLES
 * Matches "SaaS Prime" Aesthetic
 * --------------------------------------------------------------------- */

/* Grid Layout */
.tiba-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Responsive Columns */
.tiba-field.half { grid-column: span 1; }
.tiba-field.full { grid-column: span 2; }

/* Labels */
.tiba-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-primary, #0f172a);
    margin-bottom: 8px;
}

/* Inputs & Textarea */
.tiba-input {
    width: 100%;
    background: #fff;
    border: 1px solid #e2e8f0; /* Light Slate */
    border-radius: 8px;        /* Matches theme radius */
    padding: 14px 16px;
    font-size: 1rem;
    color: var(--text-main, #334155);
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Focus State (Electric Blue Glow) */
.tiba-input:focus {
    border-color: var(--brand-accent, #2563eb);
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Submit Button Override (Full Width) */
.wpcf7-submit.btn-block {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .tiba-form-grid { grid-template-columns: 1fr; gap: 20px; }
    .tiba-field.half { grid-column: span 1; }
    .tiba-field.full { grid-column: span 1; }
}

/* Fix for CF7 Loader Spinner positioning */
.wpcf7-spinner {
    position: absolute;
    margin: 15px 0 0 15px;
}

/* Utility: Prose (Readability) */
.prose {
    max-width: 100%;
}
.prose p {
    margin-bottom: 1.5em;
}
.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.prose blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 20px;
    font-style: italic;
    color: var(--text-muted);
    background: var(--surface);
    padding: 20px;
    border-radius: 0 8px 8px 0;
}

/* Card Component Utility */
.card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius, 12px);
    padding: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Button Hover State (ensure this exists) */
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}