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

:root {
    --color-primary: #4C8AC9;
    --color-primary-dark: #3a6fa3;
    --color-accent: #CC2728;
    --color-accent-dark: #a61f20;
    --color-text: #000000;
    --color-text-light: #333333;
    --color-white: #fdfdfd;
    --color-bg-light: #f5f5f5;
    --color-bg-dark: #1a1a2e;
    --font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --container-width: 1200px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-white);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-text);
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

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

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

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

.btn-accent:hover {
    background-color: var(--color-accent-dark);
    color: var(--color-white);
}

/* Header */
.header {
    background-color: var(--color-white);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #eee;
}

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

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

.nav-logo-icon {
    height: 36px;
    width: auto;
}

/* Hamburger menu button */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    left: 0;
    transition: var(--transition);
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

/* Hamburger animation when open */
.nav-toggle.nav-open .hamburger {
    background-color: transparent;
}

.nav-toggle.nav-open .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.nav-open .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

.nav-link.active {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Hero Section */
.hero {
    background-color: var(--color-white);
    min-height: 100vh;
    padding: 3rem 0 4rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.logo {
    display: inline-block;
    text-decoration: none;
    margin-bottom: 2rem;
}

.logo-full {
    max-width: 350px;
    height: auto;
}

.hero-video {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 2rem;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hero-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero h1 {
    margin-bottom: 1rem;
    font-size: 2.25rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Process Section */
.process {
    min-height: 100vh;
    padding: 5rem 0;
    background-color: var(--color-primary);
    color: var(--color-white);
    display: flex;
    align-items: center;
}

.process .section-title {
    text-align: center;
    margin-bottom: 0.75rem;
    color: var(--color-white);
    font-size: 1.75rem;
}

.section-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.process-card {
    text-align: center;
    padding: 1.5rem 1rem;
}

.process-image {
    width: 100%;
    margin-bottom: 1.25rem;
    border-radius: 8px;
    overflow: hidden;
}

.process-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.process-card:hover .process-image img {
    transform: scale(1.05);
}

.process-card h3 {
    color: var(--color-white);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.process-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Services Section */
.services {
    min-height: 100vh;
    padding: 5rem 0;
    background-color: var(--color-white);
    display: flex;
    align-items: center;
}

.services .section-title {
    text-align: center;
    margin-bottom: 0.5rem;
}

.services-subtitle {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.service-item {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 8px;
    background-color: var(--color-bg-light);
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    border-radius: 50%;
    color: var(--color-white);
}

.service-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.service-item p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 0;
}

/* AI Section */
.ai-section {
    min-height: 100vh;
    padding: 5rem 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: var(--color-white);
    display: flex;
    align-items: center;
}

.ai-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.ai-image {
    flex: 1;
    max-width: 400px;
}

.ai-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.ai-text {
    flex: 1;
    text-align: left;
}

.ai-section .section-title {
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.ai-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.ai-text .btn {
    margin-top: 1rem;
}

/* About Section */
.about {
    min-height: 100vh;
    padding: 5rem 0;
    background-color: var(--color-white);
    display: flex;
    align-items: center;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
    text-align: left;
}

.about .section-title {
    margin-bottom: 2rem;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--color-text);
    line-height: 1.8;
}

.about-image {
    flex: 1;
    max-width: 400px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* CTA Section */
.cta {
    min-height: 100vh;
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, #3a6fa3 100%);
    color: var(--color-white);
    display: flex;
    align-items: center;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta h2 {
    color: var(--color-white);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.cta p {
    font-size: 1.125rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

/* Contact Section */
.contact {
    min-height: 100vh;
    padding: 4rem 0;
    background-color: var(--color-bg-light);
    display: flex;
    align-items: center;
}

.contact-content {
    text-align: center;
}

.contact .section-title {
    margin-bottom: 0.5rem;
}

.contact p {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.service-area {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
    font-style: italic;
}

.phone-link {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.phone-link:hover {
    color: var(--color-primary-dark);
}

.contact-divider {
    display: flex;
    align-items: center;
    margin: 2.5rem auto;
    max-width: 500px;
}

.contact-divider::before,
.contact-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #ccc;
}

.contact-divider span {
    padding: 0 1.5rem;
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.hs-form-frame {
    max-width: 600px;
    margin: 0 auto;
}

/* Footer */
.footer {
    background-color: var(--color-bg-dark);
    color: var(--color-white);
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Legal Pages */
.legal-content {
    padding: 6rem 0 4rem;
    background-color: var(--color-white);
}

.legal-content h1 {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.legal-updated {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.legal-content h3 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.legal-content p,
.legal-content li {
    color: var(--color-text-light);
    line-height: 1.8;
}

.legal-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: var(--color-primary);
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-content address {
    font-style: normal;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-image img {
        height: 180px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    h2 {
        font-size: 1.5rem;
    }

    .nav {
        justify-content: space-between;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--color-white);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 0;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .nav-links.nav-open {
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links .nav-link {
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid #eee;
        font-size: 1.1rem;
    }

    .nav-logo-icon {
        height: 30px;
    }

    .hero {
        padding: 2rem 0 3rem;
    }

    .logo-full {
        max-width: 280px;
    }

    .nav-logo-icon {
        height: 30px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .process,
    .about,
    .cta {
        padding: 3.5rem 0;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .process-image img {
        height: 220px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .services,
    .ai-section {
        padding: 3.5rem 0;
    }

    .ai-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .ai-image {
        max-width: 300px;
    }

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

    .about-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .about-image {
        max-width: 300px;
        order: -1;
    }

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

    .cta h2 {
        font-size: 1.5rem;
    }

    .phone-link {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo-full {
        max-width: 220px;
    }

    .nav-logo-icon {
        height: 26px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .process .section-title {
        font-size: 1.25rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }
}
