:root {
    --color-sage: #C1D4B1;
    --color-sage-light: #E8F0E0;
    --color-forest: #4A5D43;
    --color-forest-dark: #3A4A35;
    --color-bg: #FAFAF8;
    --color-text: #2C2C2C;
    --color-text-muted: #5A5A5A;
    --color-white: #FFFFFF;
    --font-main: "Segoe UI", system-ui, -apple-system, sans-serif;
    --shadow: 0 2px 12px rgba(74, 93, 67, 0.12);
    --radius: 8px;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

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

a {
    color: var(--color-forest);
    text-decoration: none;
    transition: color 0.2s;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-white);
    border-bottom: 3px solid var(--color-sage);
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 1rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-forest);
    text-decoration: none;
}

.logo-link:hover {
    color: var(--color-forest-dark);
}

.logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.logo-text {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    max-width: 140px;
}

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

.nav-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--color-forest);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.main-nav a {
    display: block;
    padding: 0.5rem 1rem;
    font-weight: 600;
    color: var(--color-forest);
    border-radius: var(--radius);
    transition: background 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--color-sage-light);
    color: var(--color-forest-dark);
}

/* Hero */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: calc(100svh - var(--header-height));
    background: linear-gradient(135deg, var(--color-sage-light) 0%, var(--color-sage) 100%);
    padding: 2rem 0;
    overflow: hidden;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3rem);
    width: 100%;
}

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

.hero-logo-bg {
    width: 100%;
    max-width: 420px;
    height: auto;
    object-fit: contain;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
}

.hero h1 {
    font-size: clamp(1.65rem, 3.5vw, 2.5rem);
    color: var(--color-forest);
    line-height: 1.15;
    margin: 0;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: var(--color-text-muted);
    max-width: 34rem;
    margin: 0;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-start;
    margin-top: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    text-align: center;
}

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

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

.btn-outline {
    background: transparent;
    color: var(--color-forest);
    border-color: var(--color-forest);
}

.btn-outline:hover {
    background: var(--color-forest);
    color: var(--color-white);
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-alt {
    background: var(--color-sage-light);
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    color: var(--color-forest);
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--color-text-muted);
    max-width: 650px;
    margin: 0 auto;
}

/* About */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.05rem;
    color: var(--color-text-muted);
}

.about-content p + p {
    margin-top: 1rem;
}

/* Services grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.service-card {
    display: flex;
    flex-direction: column;
    text-align: center;
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--color-forest);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(74, 93, 67, 0.18);
}

.service-card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.service-card h3 {
    font-size: 1rem;
    color: var(--color-forest);
    line-height: 1.4;
    padding: 1rem;
    margin: 0;
}

/* Preview gallery */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}

.preview-grid img,
.gallery-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.preview-grid img:hover,
.gallery-item img:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.preview-cta {
    text-align: center;
    margin-top: 2rem;
}

/* CTA band */
.cta-band {
    background: var(--color-forest);
    color: var(--color-white);
    padding: 2.5rem 0;
    text-align: center;
}

.cta-band h2 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: 0.75rem;
}

.cta-band p {
    margin-bottom: 1.25rem;
    opacity: 0.9;
}

.cta-band a {
    color: var(--color-white);
    font-weight: 700;
    font-size: 1.25rem;
}

.cta-band .btn-primary {
    background: var(--color-white);
    color: var(--color-forest);
    border-color: var(--color-white);
    margin-top: 0.5rem;
}

.cta-band .btn-primary:hover {
    background: var(--color-sage-light);
}

/* Page header */
.page-header {
    background: linear-gradient(135deg, var(--color-sage-light) 0%, var(--color-sage) 100%);
    padding: 2.5rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--color-forest);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.page-back {
    margin-bottom: 0.75rem;
}

.page-back a {
    color: var(--color-forest);
    font-weight: 600;
    text-decoration: none;
}

.page-back a:hover {
    text-decoration: underline;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    padding: 2rem 0 4rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.gallery-count {
    text-align: center;
    color: var(--color-text-muted);
    padding-bottom: 1rem;
}

.gallery-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--color-text-muted);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    padding-top: 3rem;
    padding-bottom: 4rem;
}

.contact-info h2 {
    color: var(--color-forest);
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
}

.contact-details {
    list-style: none;
    margin-bottom: 1.5rem;
}

.contact-details li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.contact-details .icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-details a {
    font-weight: 600;
}

.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 1.5rem;
}

.map-container iframe {
    width: 100%;
    height: 250px;
    border: 0;
}

.contact-form-wrapper {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-form-wrapper h2 {
    color: var(--color-forest);
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--color-forest);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-sage);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    background: var(--color-bg);
    transition: border-color 0.2s;
}

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

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

.form-group .error-msg {
    color: #c0392b;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: none;
}

.form-group.invalid .error-msg {
    display: block;
}

.form-group.invalid input,
.form-group.invalid textarea,
.form-group.invalid select {
    border-color: #c0392b;
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.site-footer {
    background: var(--color-forest);
    color: var(--color-white);
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding-top: 3rem;
    padding-bottom: 2rem;
}

.footer-brand img {
    margin-bottom: 0.75rem;
}

.footer-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.footer-brand p:last-child {
    opacity: 0.85;
    font-size: 0.9rem;
}

.footer-contact h3,
.footer-nav h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--color-sage);
}

.footer-contact address {
    font-style: normal;
    line-height: 1.8;
}

.footer-contact a,
.footer-nav a {
    color: var(--color-white);
    opacity: 0.9;
}

.footer-contact a:hover,
.footer-nav a:hover {
    opacity: 1;
    color: var(--color-sage);
}

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

.footer-nav li {
    margin-bottom: 0.4rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 1rem 0;
    font-size: 0.85rem;
    opacity: 0.8;
}

.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    text-align: center;
}

.footer-credit {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.7rem;
    line-height: 1;
    opacity: 0.55;
}

.footer-credit-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: inherit;
    text-decoration: none;
    line-height: 1;
    transition: opacity 0.2s;
}

.footer-credit-link:hover {
    opacity: 1;
    color: var(--color-sage);
}

.footer-credit-link img {
    display: block;
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 2.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 1;
}

.lightbox-close {
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
}

.lightbox-prev {
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
}

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

    .main-nav {
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-white);
        border-bottom: 3px solid var(--color-sage);
        box-shadow: var(--shadow);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .main-nav.open {
        max-height: 300px;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 0.5rem 0;
    }

    .main-nav a {
        padding: 0.85rem 1.25rem;
        border-radius: 0;
    }

    .logo-text {
        font-size: 0.85rem;
        max-width: 120px;
    }

    .hero {
        min-height: calc(100svh - var(--header-height));
        padding: 1.5rem 0;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .hero-visual {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 100%;
        z-index: 1;
        justify-content: center;
    }

    .hero-logo-bg {
        max-width: 280px;
    }

    .hero-content {
        position: relative;
        z-index: 1;
        align-items: center;
        text-align: center;
        margin-left: 0;
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .section {
        padding: 2.5rem 0;
    }

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

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-top: 2rem;
        padding-bottom: 2.5rem;
    }

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

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.5rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 2rem;
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }
}
