/* Base reset and typography */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #1f2937;
    background: #f8fafc;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

.container {
    width: min(100%, 1200px);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #16a34a;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    line-height: 1.15;
}

h1 { font-size: clamp(2.5rem, 4vw, 4rem); }
h2 { font-size: clamp(2rem, 3vw, 3rem); }
h3 { font-size: 1.3rem; }

p {
    margin: 0;
    color: #475569;
}

.btn,
.btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.95rem 1.75rem;
    font-weight: 600;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn:hover,
.btn-link:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background-color: #16a34a;
    color: #ffffff;
}

.btn-secondary,
.btn-link {
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    color: #111827;
}

.site-header {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid #e5e7eb;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 80px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.primary-navigation {
    display: flex;
    gap: 1.5rem;
}

.primary-navigation ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-navigation a {
    color: #1f2937;
    font-weight: 500;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    padding: 0.85rem;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #111827;
    margin-bottom: 5px;
}

.hero {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: linear-gradient(135deg, #0f172a 0%, #111827 35%, #064e3b 100%);
    color: #f8fafc;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.hero-copy h1,
.page-hero-copy h1 {
    margin-bottom: 1rem;
    color: #ffffff;
}

.hero-text {
    max-width: 40rem;
    margin-bottom: 2rem;
    color: #d1d5db;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-media {
    display: grid;
    gap: 1.25rem;
}

.hero-card {
    padding: 1.75rem;
    border-radius: 1.5rem;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
}

.hero-card h2 {
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.hero-card-accent {
    background: rgba(22,163,74,0.15);
}

.section {
    padding: clamp(3rem, 5vw, 5rem) 0;
}

.section h2,
.page-hero-copy h2 {
    margin-bottom: 1rem;
}

.grid {
    display: grid;
    gap: 1.75rem;
}

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

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.product-card,
.testimonial-card,
.blog-card,
.feature-item,
.portfolio-item {
    background: #ffffff;
    border-radius: 1.25rem;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
    padding: 2rem;
}

.service-card h3,
.product-card h3,
.feature-item h3,
.portfolio-content h3,
.testimonial-card strong {
    margin-bottom: 0.75rem;
}

.portfolio-item img {
    width: 100%;
    border-radius: 1.25rem;
    margin-bottom: 1rem;
}

.footer-inner,
.contact-cta-inner,
.about-inner,
.contact-grid,
.testimonial-grid,
.blog-grid,
.service-grid {
    display: grid;
    gap: 1.75rem;
}

.footer-inner {
    padding: 3rem 0;
}

.site-footer {
    background: #111827;
    color: #d1d5db;
}

.footer-navigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-navigation a {
    color: #d1d5db;
}

.site-info {
    margin-top: 2rem;
    font-size: 0.95rem;
}

.page-hero {
    padding: clamp(4rem, 6vw, 5rem) 0;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.page-hero-copy p {
    color: #334155;
    max-width: 40rem;
}

.contact-cta {
    background: #111827;
    color: #ffffff;
}

.contact-cta-inner {
    grid-template-columns: 1.6fr 0.8fr;
    align-items: center;
}

.contact-details a {
    color: #16a34a;
}

@media (max-width: 980px) {
    .hero-inner,
    .grid-2,
    .grid-3,
    .contact-cta-inner,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .primary-navigation {
        position: absolute;
        inset: 80px 1.5rem auto auto;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 1rem;
        padding: 1rem;
        flex-direction: column;
        width: calc(100% - 3rem);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .primary-navigation.active {
        max-height: 360px;
    }

    .menu-toggle {
        display: inline-flex;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding-top: 3rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .section {
        padding: 3rem 0;
    }
}
