/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #ffffff;
    --color-text: #0f172a;
    --color-text-light: #3d3d3d;
    --color-primary: #2563eb;
    --color-primary-hover: #1d4ed8;
    --color-border: #e5e7eb;
    --color-overlay: rgba(0, 0, 0, 0);

    --max-width: 1200px;
    --spacing: 80px;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 21px;
    font-weight: 500;
    color: var(--color-text);
    background: var(--color-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

/* Header */
header {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

header .container {
    max-width: 100%;
    padding: 12px 12px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    padding: 0;
}

.logo img {
    height: 32px;
    width: auto;
    display: block;
}

nav {
    display: flex;
    gap: 40px;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    transition: all 0.2s;
}

@media (min-width: 769px) {
    nav a {
        font-size: 16px;
        letter-spacing: 0.05em;
        padding-bottom: 4px;
        border-bottom: 2px solid transparent;
    }

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

    nav a.active {
        color: var(--color-text);
        border-bottom-color: var(--color-text);
    }
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    header .container {
        position: relative;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid var(--color-border);
        flex-direction: column;
        gap: 0;
        padding: 0;
        display: none;
        width: 100%;
        z-index: 1000;
    }

    nav.active {
        display: flex;
    }

    nav a {
        padding: 15px 24px;
        border: none;
        border-bottom: 1px solid var(--color-border);
        font-size: 14px;
        letter-spacing: 0.05em;
        display: block;
        line-height: 1;
    }

    nav a:last-child {
        border-bottom: none;
    }

    nav a.active {
        border-bottom: 1px solid var(--color-border);
        background: #f9fafb;
    }

    nav a:last-child.active {
        border-bottom: none;
    }
}

/* Hero */
.hero {
    position: relative;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-overlay);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 32px;
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.4;
}

/* Services Preview */
.services-preview {
    padding: 0 0 20px 0;
}

.services-preview .container {
    padding: 0 24px;
}

.section-heading {
    font-size: 30px;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin: 40px 0 20px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: white;
    border: none;
    border-radius: 0;
    overflow: hidden;
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 16px 0 12px 0;
    letter-spacing: 0.05em;
}

.service-card p {
    color: var(--color-text-light);
    margin: 0 0 24px 0;
    font-size: 15px;
    line-height: 24px;
    font-weight: 400;
}

.service-card .btn {
    display: inline-block;
    margin: 0 0 24px 0;
    color: #666;
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0;
}

.service-card .btn:hover {
    color: #000;
}

/* About Preview */
.about-preview {
    background: #aecde9;
    padding: 50px 0;
}

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

.about-image img {
    width: 100%;
    border-radius: 8px;
}

.about-text h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    line-height: 1.4;
}

.about-text p {
    color: var(--color-text-light);
    margin-bottom: 28px;
    font-size: 18px;
    line-height: 1.7;
}

.btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: 0;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.05em;
    transition: background 0.2s;
}

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

/* Main content area */
main {
    flex: 1;
}

/* Footer */
footer {
    background: #254973;
    color: white;
    padding: 60px 0 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h4 {
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.footer-description {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.7;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    max-width: 200px;
    height: auto;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
}

.footer-section a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 400;
}

.footer-section a:hover {
    color: #9ca3af;
}

.footer-bottom {
    background: #252525;
    border-top: none;
    padding: 24px 40px;
    margin: 0;
}

.footer-bottom p {
    color: #9ca3af;
    font-size: 13px;
    text-align: center;
}

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

@media (max-width: 768px) {
    :root {
        --spacing: 60px;
    }

    nav a {
        font-size: 13px;
    }

    .hero {
        height: 400px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

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

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 32px;
    }

    .hero {
        height: 350px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .about-text h2 {
        font-size: 28px;
    }

    .about-text p {
        font-size: 16px;
    }
}

/* Page Hero (for services, about, contact pages) */
.page-hero {
    position: relative;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.page-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.page-hero h1 {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: white;
}

.page-hero.hero-dark-text h1 {
    color: #000000;
}

.page-hero p {
    font-size: 18px;
    font-weight: 500;
    margin-top: 12px;
    letter-spacing: 0.05em;
}

/* Services Detail Page */
.service-detail {
    padding: var(--spacing) 0;
}

.services-heading {
    text-align: center;
    margin-bottom: 60px;
}

.services-heading h2 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.service-detail-item {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--color-border);
}

.service-detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.service-detail-left {
    text-align: right;
    padding-right: 20px;
}

.service-detail-item h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.01em;
}

.service-detail-right p {
    color: var(--color-text-light);
    font-size: 18px;
    line-height: 1.7;
    margin: 0;
}

/* About Page Content */
.content-section {
    padding: var(--spacing) 0;
}

.content-block {
    max-width: 800px;
    margin: 0 auto 64px auto;
    text-align: center;
}

.content-block h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.content-block p {
    color: var(--color-text-light);
    font-size: 18px;
    line-height: 1.7;
}

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

.value-item h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.value-item p {
    color: var(--color-text-light);
    font-size: 16px;
    line-height: 1.7;
}

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

.contact-intro {
    max-width: 800px;
    margin: 0 auto 64px auto;
    text-align: center;
}

.contact-intro h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.contact-intro p {
    color: var(--color-text-light);
    font-size: 18px;
    line-height: 1.7;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-method {
    text-align: center;
    padding: 40px;
    border: 1px solid var(--color-border);
    border-radius: 0;
}

.contact-method h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.1em;
    color: var(--color-text-light);
}

.contact-method a {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    transition: color 0.2s;
}

.contact-method a:hover {
    color: var(--color-primary-hover);
}

/* Additional Responsive Styles */
@media (max-width: 768px) {
    .page-hero {
        height: 300px;
    }

    .page-hero h1 {
        font-size: 40px;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-methods {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .service-detail-item {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-detail-left {
        text-align: left;
        padding-right: 0;
    }

    .service-detail-item h2 {
        font-size: 24px;
    }

    .service-detail-right p {
        font-size: 16px;
    }

    .content-block h2 {
        font-size: 28px;
    }

    .contact-intro h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .page-hero {
        height: 250px;
    }

    .page-hero h1 {
        font-size: 32px;
    }

    .page-hero p {
        font-size: 16px;
    }

    .contact-method {
        padding: 28px;
    }

    .contact-method a {
        font-size: 18px;
    }
}
