/* SureClear Website Styles */
/* Based on brand guidelines with Deep Navy, Teal, and Cyan color palette */

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

:root {
    /* Brand Colors */
    --primary-navy: #0B1A2B;
    --secondary-blue: #2E4D78;
    --slate-gray: #707B8C;
    --light-gray: #E5E8EC;
    --off-white: #F9FAFC;
    --accent-teal: #17B3A3;
    --accent-cyan: #00C8FF;
    --warm-orange: #FF9E47;
    
    /* Typography */
    --font-primary: 'Inter', system-ui, sans-serif;
    --font-display: 'Poppins', system-ui, sans-serif;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 80px 0;
    --element-spacing: 24px;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 24px;
    color: var(--primary-navy);
    background-color: var(--off-white);
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(11, 26, 43, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(11, 26, 43, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 60px;
    width: auto;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-teal);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-blue) 100%);
    color: white;
    padding: 140px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    color: var(--light-gray);
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-cyan) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(23, 179, 163, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-navy);
}

.btn-full {
    width: 100%;
}

/* Settlement Flow Visual */
.settlement-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.flow-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.flow-icon {
    font-size: 32px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flow-arrow {
    font-size: 24px;
    color: var(--accent-teal);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--slate-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    padding: var(--section-padding);
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.service-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--light-gray);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 24px;
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 16px;
}

.service-card p {
    color: var(--slate-gray);
    line-height: 1.6;
}

/* Features Section */
.features {
    padding: var(--section-padding);
    background: var(--off-white);
}

.features-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon {
    font-size: 32px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-cyan) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-text h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 8px;
}

.feature-text p {
    color: var(--slate-gray);
    line-height: 1.6;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.stat-item {
    text-align: center;
    padding: 32px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    color: var(--accent-teal);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--slate-gray);
    font-weight: 500;
}

/* Contact Section */
.contact {
    padding: var(--section-padding);
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 24px;
}

.contact-info p {
    font-size: 18px;
    color: var(--slate-gray);
    line-height: 1.6;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: center;
}

.contact-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-cyan) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item h4 {
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--slate-gray);
    margin: 0;
}

/* Contact Form */
.contact-form {
    background: var(--off-white);
    padding: 40px;
    border-radius: 16px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-teal);
}

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

/* Powered By Section */
.powered-by {
    padding: 60px 0;
    background: var(--primary-navy);
    border-top: 1px solid var(--secondary-blue);
}

.powered-by-content {
    text-align: center;
}

.powered-by h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 500;
    color: var(--light-gray);
    margin-bottom: 32px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.partner-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.partner-link {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.partner-link:hover {
    transform: translateY(-4px);
    opacity: 0.8;
}

.partner-logo {
    height: 80px;
    width: auto;
    max-width: 200px;
    transition: opacity 0.3s ease;
}

.partner-link:hover .partner-logo {
    opacity: 0.8;
}

.and-text {
    font-size: 16px;
    color: var(--light-gray);
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--primary-navy);
    color: white;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-teal);
}

.footer-text {
    text-align: right;
}

.footer-text p {
    margin: 0;
    color: var(--light-gray);
}

.footer-text p:first-child {
    font-weight: 500;
    margin-bottom: 4px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .features-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .settlement-flow {
        flex-direction: column;
        gap: 16px;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-text {
        text-align: center;
    }
    
    .partner-logos {
        flex-direction: column;
        gap: 20px;
    }
    
    .and-text {
        order: -1;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .contact-info h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .service-card,
    .contact-form {
        padding: 24px;
    }
    
    .btn {
        padding: 14px 24px;
        font-size: 14px;
    }
}

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

.service-card,
.feature-item,
.stat-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--accent-teal);
    outline-offset: 2px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 26, 43, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    animation: slideIn 0.3s ease;
    position: relative;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-blue) 100%);
    color: white;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: white;
    transition: color 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: var(--accent-teal);
}

.modal-body {
    padding: 32px;
}

.modal-body p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--primary-navy);
    margin: 0;
}

.modal-footer {
    padding: 0 32px 32px;
    text-align: center;
}

.modal-footer .btn {
    min-width: 120px;
}

/* Modal Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Success Modal Variant */
.modal.success .modal-header {
    background: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-cyan) 100%);
}

.modal.success .modal-header h3::before {
    content: "✓ ";
    font-size: 28px;
}

/* Error Modal Variant */
.modal.error .modal-header {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.modal.error .modal-header h3::before {
    content: "⚠ ";
    font-size: 28px;
}

/* Loading Modal Variant */
.modal.loading .modal-header {
    background: linear-gradient(135deg, var(--warm-orange) 0%, #e67e22 100%);
}

.modal.loading .modal-header h3::before {
    content: "⏳ ";
    font-size: 28px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }
    
    .modal-header h3 {
        font-size: 20px;
    }
}
