/* Base styling and typography */
:root {
    --primary: #4a7aa2;
    --primary-dark: #3a6282;
    --secondary: #f1ece4;
    --accent: #e6917c;
    --text: #46484a;
    --text-light: #7c8288;
    --background: #f7f3eb;
    --card-bg: #ffffff;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --border-radius: 16px;
    --shadow: 0 8px 20px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-soft: 0 6px 15px rgba(0, 0, 0, 0.04), 0 2px 6px rgba(0, 0, 0, 0.02);
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
}

/* Add subtle grain texture to background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.02;
    pointer-events: none;
    z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 2.75rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

.features h2, .clients h2, .how-it-works h2, .why h2, .contact h2 {
    text-align: center;
    display: block;
}

.features h2::after, .clients h2::after, .how-it-works h2::after, .why h2::after, .contact h2::after {
    left: 50%;
    transform: translateX(-50%);
}

h3 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--spacing-sm);
}

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

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

a:hover {
    color: var(--primary-dark);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 0.85rem 1.8rem;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.08),
        inset 1px 1px 3px rgba(255, 255, 255, 0.4),
        inset -1px -1px 3px rgba(0, 0, 0, 0.05);
}

.btn:active {
    transform: translateY(2px);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 1px 1px 3px rgba(255, 255, 255, 0.4),
        inset -1px -1px 3px rgba(0, 0, 0, 0.05);
}

.primary {
    background-color: var(--primary);
    color: white;
    border: none;
}

.primary:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.accent {
    background-color: var(--accent);
    color: white;
    border: none;
    font-weight: 600;
}

.accent:hover {
    background-color: #d27e6a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.secondary {
    background-color: white;
    color: var(--text);
    border: 1px solid #e0e0e0;
}

.secondary:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
}

/* Navigation */
.navbar {
    padding: var(--spacing-sm) 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--card-bg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

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

.navbar .logo {
    display: flex;
    align-items: center;
    height: 60px;
}

.navbar .logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
    object-position: center;
    display: block;
}

.navbar .logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
}

.navbar .logo a:hover {
    color: var(--primary);
}

.navbar nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.navbar nav a {
    color: var(--text);
    font-weight: 500;
    position: relative;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
}

.navbar nav a:hover {
    color: var(--primary);
    background-color: rgba(74, 122, 162, 0.05);
}

.navbar nav .cta {
    color: white;
    background-color: var(--primary);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.navbar nav .cta:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.navbar nav .accent-nav {
    background-color: var(--accent);
    color: white;
}

.navbar nav .accent-nav:hover {
    background-color: #d27e6a;
    color: white;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .navbar nav a:not(.accent-nav) {
        display: none;
    }
    
    .navbar .container {
        justify-content: space-between;
    }
}

/* Promo Banner */
.promo-banner {
    background-color: var(--accent);
    color: white;
    padding: 0.6rem 0;
    text-align: center;
    font-size: 0.9rem;
    position: relative;
    z-index: 10;
}

.promo-banner p {
    margin-bottom: 0;
}

.promo-banner .highlight {
    font-weight: 700;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-right: 0.5rem;
}

.promo-banner a {
    color: white;
    font-weight: 600;
    text-decoration: underline;
    white-space: nowrap;
}

.promo-banner a:hover {
    color: #fff;
    text-decoration: none;
}

/* Hero section */
.hero {
    padding: var(--spacing-xl) 0;
    background-color: var(--secondary);
    text-align: left;
    border-radius: 0 0 30px 30px;
    margin-bottom: var(--spacing-md);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 122, 162, 0.08) 0%, rgba(230, 145, 124, 0.08) 100%);
    z-index: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero h1 {
    max-width: 100%;
    margin: 0 0 var(--spacing-sm);
    font-size: 2.9rem;
    line-height: 1.2;
    color: var(--text);
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    max-width: 100%;
}

.trust-badge {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: var(--spacing-md);
    font-weight: 500;
    color: var(--text);
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-highlight {
    background-color: rgba(255, 255, 255, 0.8);
    padding: var(--spacing-sm);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-md);
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.9);
    max-width: 550px;
}

.testimonial-highlight::before {
    content: """;
    position: absolute;
    top: -15px;
    left: 15px;
    font-size: 3rem;
    line-height: 1;
    color: var(--accent);
    opacity: 0.2;
    font-family: 'Georgia', serif;
}

.testimonial-highlight p {
    font-style: italic;
    margin-bottom: var(--spacing-xs);
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.testimonial-highlight cite {
    font-style: normal;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.85rem;
}

.star-rating {
    color: #FFD700;
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: var(--spacing-xs);
}

.hero .cta-buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin: var(--spacing-xs) 0 var(--spacing-sm) 0;
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-main-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.hero-placeholder {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero-icon {
    width: 100px;
    height: 100px;
    margin-bottom: var(--spacing-sm);
    filter: saturate(0.9);
}

.placeholder-text {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.2rem;
}

/* Features Section */
.features {
    padding: var(--spacing-xl) 0;
}

.features h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(to right, 
        rgba(139, 195, 138, 0.5), 
        rgba(230, 145, 124, 0.5), 
        rgba(74, 122, 162, 0.5), 
        rgba(187, 162, 218, 0.5));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.card:hover::before {
    opacity: 1;
}

.card:nth-child(1)::before {
    background: linear-gradient(to right, rgba(139, 195, 138, 0.5), rgba(139, 195, 138, 0.2));
}

.card:nth-child(2)::before {
    background: linear-gradient(to right, rgba(230, 145, 124, 0.5), rgba(230, 145, 124, 0.2));
}

.card:nth-child(3)::before {
    background: linear-gradient(to right, rgba(74, 122, 162, 0.5), rgba(74, 122, 162, 0.2));
}

.card:nth-child(4)::before {
    background: linear-gradient(to right, rgba(187, 162, 218, 0.5), rgba(187, 162, 218, 0.2));
}

.icon-container {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
    background-color: var(--secondary);
    transition: var(--transition);
    box-shadow: 
        2px 2px 5px rgba(0, 0, 0, 0.05),
        -2px -2px 5px rgba(255, 255, 255, 0.8),
        inset 1px 1px 3px rgba(255, 255, 255, 0.6),
        inset -1px -1px 3px rgba(0, 0, 0, 0.05);
}

.card:nth-child(1) .icon-container {
    background-color: rgba(139, 195, 138, 0.2);
}

.card:nth-child(2) .icon-container {
    background-color: rgba(230, 145, 124, 0.2);
}

.card:nth-child(3) .icon-container {
    background-color: rgba(74, 122, 162, 0.2);
}

.card:nth-child(4) .icon-container {
    background-color: rgba(187, 162, 218, 0.2);
}

.icon-container img {
    width: 30px;
    height: 30px;
    filter: saturate(0.9);
}

/* How it works section */
.how-it-works {
    padding: var(--spacing-xl) 0;
    background-color: var(--secondary);
    border-radius: 30px;
    margin: var(--spacing-lg) 0;
}

.how-it-works h2 {
    text-align: center;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.process-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.process-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background-color: rgba(230, 145, 124, 0.2);
    transition: var(--transition);
}

.process-card:hover::after {
    height: 8px;
    background-color: rgba(230, 145, 124, 0.4);
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.number {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    background-color: var(--accent);
    color: white;
    margin-bottom: var(--spacing-sm);
    box-shadow: 
        0 6px 12px rgba(230, 145, 124, 0.2),
        inset 1px 1px 3px rgba(255, 255, 255, 0.3),
        inset -1px -1px 3px rgba(0, 0, 0, 0.1);
}

/* Why section */
.why {
    padding: var(--spacing-xl) 0;
    background-color: var(--secondary);
    border-radius: 30px;
    margin: var(--spacing-lg) 0;
}

.why h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.why-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.benefit {
    text-align: center;
    padding: var(--spacing-sm);
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.benefit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: var(--accent);
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.benefit:hover::before {
    opacity: 1;
}

.benefit h3 {
    margin-bottom: var(--spacing-xs);
    color: var(--primary);
    font-weight: 600;
}

.client-section {
    margin-top: var(--spacing-lg);
}

.client-heading {
    text-align: center;
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.client-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--accent);
    border-radius: 2px;
}

/* Testimonials */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.testimonials .testimonial {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
}

.testimonials .testimonial::before {
    content: """;
    position: absolute;
    top: -15px;
    left: 20px;
    font-size: 5rem;
    color: var(--accent);
    opacity: 0.2;
    font-family: 'Georgia', serif;
}

.testimonials .testimonial:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.testimonials .testimonial p {
    margin-bottom: var(--spacing-sm);
}

.testimonials .testimonial cite {
    font-style: normal;
    color: var(--text-light);
    font-weight: 500;
}

/* Case study */
.case-study {
    text-align: center;
    margin-top: var(--spacing-md);
}

/* Contact section */
.contact {
    padding: var(--spacing-xl) 0;
}

.contact h2 {
    text-align: center;
    margin-bottom: var(--spacing-xs);
}

/* Contact form */
.contact-form {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow);
    margin-top: var(--spacing-md);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

/* Cognito form container */
.cognito-form-container {
    background-color: white;
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    box-shadow: var(--shadow);
}

/* Form rows */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background-color: #fcfcfc;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.03),
        inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 
        0 0 0 4px rgba(74, 122, 162, 0.1),
        inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

.alternative-contact {
    margin-top: var(--spacing-lg);
    text-align: center;
    padding: var(--spacing-md);
}

.alternative-contact p {
    margin-bottom: var(--spacing-xs);
}

.standalone-form-link {
    margin-top: var(--spacing-md);
}

/* Footer */
footer {
    background-color: var(--secondary);
    padding: var(--spacing-lg) 0 var(--spacing-md);
    margin-top: var(--spacing-xl);
    border-radius: 30px 30px 0 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.footer-content .logo {
    display: flex;
    align-items: center;
    height: 60px;
}

.footer-content .logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
    object-position: center;
    display: block;
}

.footer-content .logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
}

.footer-content .logo a:hover {
    color: var(--primary);
}

.footer-links {
    display: flex;
    gap: var(--spacing-sm);
}

.footer-links a {
    color: var(--text);
}

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

.copyright {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Section subtitle */
.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto var(--spacing-md);
}

/* Clients section */
.clients {
    padding: var(--spacing-xl) 0;
}

.clients h2 {
    text-align: center;
}

.hero-logo {
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.hero-logo-image {
    max-width: 220px;
    height: auto;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .navbar nav {
        gap: var(--spacing-sm);
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-main-image {
        max-width: 100%;
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-placeholder {
        min-height: 200px;
        padding: var(--spacing-md);
    }
    
    .hero-icon {
        width: 70px;
        height: 70px;
    }
    
    .hero {
        padding: var(--spacing-md) 0;
    }
    
    .hero .cta-buttons {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .hero .cta-buttons .btn {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .footer-links {
        flex-wrap: wrap;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: var(--spacing-sm);
    }

    .cognito-form-container {
        padding: 0;
    }

    .testimonials {
        grid-template-columns: 1fr;
    }
    
    .card, .process-card, .testimonials .testimonial {
        transform: none !important;
    }
    
    h2::after {
        width: 40px;
        height: 3px;
    }

    .why-content {
        gap: var(--spacing-lg);
    }
    
    .client-heading {
        font-size: 1.3rem;
    }
    
    .testimonials {
        grid-template-columns: 1fr;
    }
    
    .benefit, .testimonials .testimonial {
        transform: none !important;
    }
}
