/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;800&family=Source+Sans+Pro:wght@300;400;600&display=swap');

/* CSS Custom Properties */
:root {
    --rh4-primary: #4f46e5;
    --rh4-secondary: #4338ca;
    --rh4-accent: #10b981;
    --rh4-background: #eef2ff;
    --rh4-text: #1e1b4b;
    --rh4-muted: #818cf8;
    --rh4-light-gray: #f9fafb;
    --rh4-dark-gray: #374151;
    --rh4-white: #ffffff;
    --rh4-border-radius: 8px;
    --rh4-transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.6;
    color: var(--rh4-text);
    background-color: var(--rh4-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: var(--rh4-accent);
    color: var(--rh4-white);
}

a {
    color: var(--rh4-primary);
    text-decoration: none;
    transition: color var(--rh4-transition-speed) ease;
}

a:hover {
    color: var(--rh4-secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito', sans-serif;
    color: var(--rh4-text);
    line-height: 1.2;
    margin-bottom: 0.8em;
}

h1 {
    font-size: 3.2em;
    font-weight: 800;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 2.5em;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.8em;
    font-weight: 700;
    letter-spacing: -0.01em;
}

h4 {
    font-size: 1.5em;
    font-weight: 700;
}

h5 {
    font-size: 1.2em;
    font-weight: 700;
}

h6 {
    font-size: 1em;
    font-weight: 700;
    color: var(--rh4-muted);
}

p {
    margin-bottom: 1em;
}

/* Utility Classes */
.ct-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.ct-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.ct-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.ct-text-center {
    text-align: center;
}

.ct-text-primary {
    color: var(--rh4-primary);
}

.ct-bg-primary {
    background-color: var(--rh4-primary);
}

.ct-bg-secondary {
    background-color: var(--rh4-secondary);
    color: var(--rh4-white);
}

.ct-bg-light {
    background-color: var(--rh4-white);
}

/* Section Spacing */
.ct-section {
    padding: 6rem 0;
    position: relative;
}

.ct-section:nth-of-type(odd) {
    background-color: var(--rh4-white);
}

.ct-section:nth-of-type(even) {
    background-color: var(--rh4-background);
}

/* Buttons */
.ct-btn {
    display: inline-block;
    padding: 0.9em 1.8em;
    border-radius: var(--rh4-border-radius);
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all var(--rh4-transition-speed) ease;
    white-space: nowrap;
    border: 2px solid transparent;
}

.ct-btn-primary {
    background-color: var(--rh4-primary);
    color: var(--rh4-white);
}

.ct-btn-primary:hover {
    background-color: var(--rh4-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ct-btn-secondary {
    background-color: var(--rh4-accent);
    color: var(--rh4-white);
}

.ct-btn-secondary:hover {
    background-color: #0d966e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ct-btn-outline {
    background-color: transparent;
    border-color: var(--rh4-primary);
    color: var(--rh4-primary);
}

.ct-btn-outline:hover {
    background-color: var(--rh4-primary);
    color: var(--rh4-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Navigation */
.ct-header {
    background-color: var(--rh4-white);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

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

.ct-logo {
    font-family: 'Nunito', sans-serif;
    font-size: 1.8em;
    font-weight: 800;
    color: var(--rh4-primary);
}

.ct-logo span {
    color: var(--rh4-accent);
}

.ct-nav-links {
    list-style: none;
    display: flex;
    margin: 0 auto; /* Center navigation links */
    gap: 2.5rem;
}

.ct-nav-links a {
    color: var(--rh4-text);
    font-weight: 600;
    position: relative;
    padding: 0.5rem 0;
}

.ct-nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--rh4-primary);
    transition: width var(--rh4-transition-speed) ease;
}

.ct-nav-links a:hover::after {
    width: 100%;
}

.ct-nav-cta {
    margin-left: auto; /* Push CTA to the right */
}

.ct-hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 25px;
    height: 20px;
    position: relative;
    z-index: 1100;
}

.ct-hamburger div {
    width: 100%;
    height: 2px;
    background-color: var(--rh4-text);
    transition: all 0.3s ease;
}

/* Mobile Menu */
.ct-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--rh4-secondary);
    color: var(--rh4-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    z-index: 999;
    list-style: none;
    padding: 0;
}

.ct-mobile-menu.active {
    transform: translateX(0);
}

.ct-mobile-menu li {
    margin: 1.5rem 0;
}

.ct-mobile-menu a {
    color: var(--rh4-white);
    font-size: 1.8em;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: color var(--rh4-transition-speed) ease;
}

.ct-mobile-menu a:hover {
    color: var(--rh4-accent);
}

/* Hero Section */
.ct-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--rh4-white);
    position: relative;
    padding: 4rem 0;
    overflow: hidden;
}

.ct-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.ct-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.8) 0%, rgba(67, 56, 202, 0.8) 100%);
    z-index: -1;
}

.ct-hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 1.5rem;
}

.ct-hero h1 {
    color: var(--rh4-white);
    margin-bottom: 0.5em;
    font-size: 4em;
}

.ct-hero p {
    font-size: 1.4em;
    margin-bottom: 2em;
    font-weight: 300;
    opacity: 0.9;
}

/* Card Components */
.ct-card {
    background-color: var(--rh4-white);
    padding: 2rem;
    border-radius: var(--rh4-border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform var(--rh4-transition-speed) ease, box-shadow var(--rh4-transition-speed) ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ct-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.ct-card-icon {
    font-size: 3.5rem;
    color: var(--rh4-primary);
    margin-bottom: 1rem;
}

.ct-card h3 {
    margin-bottom: 0.6rem;
    color: var(--rh4-secondary);
}

.ct-card img {
    border-radius: var(--rh4-border-radius);
    margin-bottom: 1rem;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Form Styling */
.ct-form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.ct-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--rh4-text);
}

.ct-form-group input[type="text"],
.ct-form-group input[type="email"],
.ct-form-group input[type="tel"],
.ct-form-group textarea {
    width: 100%;
    padding: 0.8em 1em;
    border: 1px solid #d1d5db;
    border-radius: var(--rh4-border-radius);
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1em;
    color: var(--rh4-text);
    background-color: var(--rh4-white);
    transition: border-color var(--rh4-transition-speed) ease, box-shadow var(--rh4-transition-speed) ease;
}

.ct-form-group input:focus,
.ct-form-group textarea:focus {
    outline: none;
    border-color: var(--rh4-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.ct-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.ct-form-message {
    margin-top: 1rem;
    padding: 0.8em 1em;
    border-radius: var(--rh4-border-radius);
    display: none;
}

.ct-form-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #34d399;
}

.ct-form-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* Trust/Badge Elements */
.ct-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background-color: rgba(79, 70, 229, 0.08);
    padding: 0.7em 1.2em;
    border-radius: 50px;
    font-weight: 600;
    color: var(--rh4-primary);
    margin: 0.5rem;
}

.ct-trust-item svg {
    color: var(--rh4-accent);
    font-size: 1.2em;
}

/* Testimonials */
.ct-testimonial-card {
    background-color: var(--rh4-white);
    padding: 2.5rem;
    border-radius: var(--rh4-border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    text-align: left;
}

.ct-testimonial-card::before {
    content: '\201C';
    font-family: 'Nunito', sans-serif;
    font-size: 5em;
    color: var(--rh4-muted);
    position: absolute;
    top: 10px;
    left: 20px;
    opacity: 0.1;
    z-index: 0;
    line-height: 1;
}

.ct-testimonial-card p {
    font-style: italic;
    font-size: 1.1em;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.ct-testimonial-author {
    font-weight: 700;
    color: var(--rh4-secondary);
    margin-bottom: 0.3rem;
}

.ct-testimonial-role {
    font-size: 0.9em;
    color: var(--rh4-muted);
}

/* FAQ Section */
.ct-faq-item {
    background-color: var(--rh4-white);
    border: 1px solid #e5e7eb;
    border-radius: var(--rh4-border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all var(--rh4-transition-speed) ease;
}

.ct-faq-q {
    padding: 1.5rem;
    font-weight: 700;
    color: var(--rh4-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--rh4-transition-speed) ease;
}

.ct-faq-q:hover {
    background-color: #f9fafb;
}

.ct-faq-q::after {
    content: '+';
    font-size: 1.5em;
    line-height: 1;
    transition: transform var(--rh4-transition-speed) ease;
}

.ct-faq-item.active .ct-faq-q::after {
    content: '-';
    transform: rotate(180deg);
}

.ct-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding: 0 1.5rem;
    color: var(--rh4-dark-gray);
}

.ct-faq-item.active .ct-faq-a {
    max-height: 500px; /* Adjust as needed */
    padding-bottom: 1.5rem;
}

/* Footer */
.ct-footer {
    background-color: var(--rh4-text);
    color: var(--rh4-light-gray);
    padding: 5rem 0 2rem;
    font-size: 0.9em;
}

.ct-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.ct-footer-col h4 {
    color: var(--rh4-white);
    margin-bottom: 1.5rem;
    font-size: 1.2em;
}

.ct-footer-col ul {
    list-style: none;
}

.ct-footer-col ul li {
    margin-bottom: 0.8rem;
}

.ct-footer-col a {
    color: var(--rh4-light-gray);
    transition: color var(--rh4-transition-speed) ease;
}

.ct-footer-col a:hover {
    color: var(--rh4-accent);
}

.ct-footer-contact-info p {
    margin-bottom: 0.5rem;
}

.ct-footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ct-social-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.ct-social-links a {
    color: var(--rh4-light-gray);
    font-size: 1.5em;
    transition: color var(--rh4-transition-speed) ease;
}

.ct-social-links a:hover {
    color: var(--rh4-accent);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ct-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.ct-animate.ct-animated {
    opacity: 1;
    transform: translateY(0);
}

.ct-animate-slideInLeft {
    opacity: 0;
    transform: translateX(-50px);
}

.ct-animate-slideInLeft.ct-animated {
    animation: slideInLeft 0.8s ease-out forwards;
}

/* Visual Separators */
.ct-section-separator {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, rgba(0,0,0,0), var(--rh4-muted), rgba(0,0,0,0));
    margin: 4rem 0;
    opacity: 0.3;
}

/* Underline text for CTAs */
.ct-cta-underline {
    position: relative;
    display: inline-block;
    font-weight: 700;
    padding-bottom: 3px;
}

.ct-cta-underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: var(--rh4-accent);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .ct-nav-links {
        gap: 1.5rem;
    }
    .ct-hero h1 {
        font-size: 3.5em;
    }
    .ct-hero p {
        font-size: 1.2em;
    }
    h1 {
        font-size: 2.8em;
    }
    h2 {
        font-size: 2.2em;
    }
    .ct-section {
        padding: 5rem 0;
    }
}

@media (max-width: 768px) {
    .ct-nav-links, .ct-nav-cta {
        display: none;
    }
    .ct-hamburger {
        display: flex;
    }
    .ct-navbar {
        justify-content: space-between;
    }
    .ct-hero {
        min-height: 60vh;
        padding: 3rem 0;
    }
    .ct-hero h1 {
        font-size: 2.8em;
    }
    .ct-hero p {
        font-size: 1em;
    }
    h1 {
        font-size: 2.5em;
    }
    h2 {
        font-size: 2em;
    }
    h3 {
        font-size: 1.6em;
    }
    .ct-grid {
        grid-template-columns: 1fr;
    }
    .ct-section {
        padding: 4rem 0;
    }
    .ct-footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .ct-container {
        padding: 0 1rem;
    }
    .ct-hero h1 {
        font-size: 2.2em;
    }
    .ct-hero p {
        font-size: 0.9em;
    }
    h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 1.8em;
    }
    .ct-card {
        padding: 1.5rem;
    }
    .ct-faq-q {
        padding: 1rem;
        font-size: 0.9em;
    }
    .ct-faq-a {
        padding: 0 1rem 1rem;
    }
    .ct-section {
        padding: 3rem 0;
    }
}


/* === Quality polish === */
button, [class*="btn"], [class*="cta"] { transition: all 0.3s ease; cursor: pointer; }
button:hover, [class*="btn"]:hover, [class*="cta"]:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); filter: brightness(1.05); }