/* ==========================================================================
   Harju Mets – Redesign v4 (Modern)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --hm-green:      #22c55e;
    --hm-green-dark: #16a34a;
    --hm-green-soft: rgba(34, 197, 94, 0.08);
    --hm-navy:       #0F172A;
    --hm-bg:         #fafbfc;
    --hm-text:       #1e293b;
    --hm-muted:      #64748b;
    --hm-border:     rgba(0, 0, 0, 0.06);
    --hm-font:       'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --hm-radius:     16px;
    --hm-radius-lg:  24px;
    --hm-shadow-sm:  0 1px 2px rgba(0,0,0,0.04);
    --hm-shadow:     0 1px 3px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
    --hm-shadow-lg:  0 4px 12px rgba(0,0,0,0.06), 0 20px 48px rgba(0,0,0,0.08);
    --hm-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Global ---------- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}

body {
    font-family: var(--hm-font) !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    background: var(--hm-bg);
    color: var(--hm-text);
}

h1, h2, h3, h4, h5, h6,
.elementor-heading-title {
    font-family: var(--hm-font) !important;
}

::selection {
    background: rgba(34, 197, 94, 0.15);
}

/* ---------- Header ---------- */
html body,
html body.logged-in {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove gap above header */
.ast-main-header-wrap,
.main-header-bar-wrap {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.site-header {
    margin-top: 0 !important;
}

#page {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Transparent header on hero — no visible bar */
.ast-theme-transparent-header .ast-primary-header-bar,
.ast-primary-header-bar {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    transition: all 0.3s ease;
}

.ast-primary-header-bar .site-primary-header-wrap {
    padding-top: 4px;
    padding-bottom: 4px;
}

.main-navigation ul li a,
.ast-header-break-point .main-navigation ul li a {
    font-family: var(--hm-font) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.85) !important;
    transition: color 0.2s ease;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a {
    color: #ffffff !important;
}

.site-title a,
.ast-site-identity .site-title a {
    font-family: var(--hm-font) !important;
    font-weight: 800 !important;
    letter-spacing: -0.04em;
    color: var(--hm-navy) !important;
}

/* =====================================================
   HERO
   ===================================================== */
.hm-hero {
    min-height: 100dvh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-image: url('/wp-content/uploads/2025/01/germany-black-forest-hero-1600.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
}

/* Serve WebP to supporting browsers */
html.webp .hm-hero {
    background-image: url('/wp-content/uploads/2025/01/germany-black-forest-hero-1600.webp') !important;
}

.hm-hero > .elementor-background-overlay {
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.30) 0%,
        rgba(0, 0, 0, 0.50) 50%,
        rgba(0, 0, 0, 0.70) 100%) !important;
    opacity: 1 !important;
}

/* Hero inner column */
.hm-hero > .e-con-inner > .e-con {
    text-align: center !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
}

.hm-hero > .e-con-inner > .e-con > .e-con-inner {
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
}

/* "Harju Mets" heading */
.hm-hero .elementor-heading-title {
    font-size: clamp(3.5rem, 9vw, 7rem) !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    letter-spacing: -0.04em !important;
    line-height: 1 !important;
    text-align: center !important;
    margin-bottom: 0.4em !important;
}

/* Subtitle */
.hm-hero .elementor-widget-text-editor {
    text-align: center !important;
}

.hm-hero .elementor-widget-text-editor .elementor-widget-container,
.hm-hero .elementor-widget-text-editor .elementor-widget-container p {
    font-size: clamp(1rem, 2vw, 1.15rem) !important;
    color: rgba(255, 255, 255, 0.85) !important;
    max-width: 460px;
    margin: 0 auto !important;
    line-height: 1.7 !important;
    font-weight: 400 !important;
    text-align: center !important;
    letter-spacing: 0.01em;
}

/* CTA pill button */
.hm-cta .elementor-button {
    border-radius: 999px !important;
    background: var(--hm-green-dark) !important;
    color: #ffffff !important;
    padding: 16px 44px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    font-family: var(--hm-font) !important;
    letter-spacing: 0.01em;
    transition: all var(--hm-transition) !important;
    border: none !important;
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.3) !important;
}
.hm-cta .elementor-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 32px rgba(22, 163, 74, 0.4) !important;
    background: #15803d !important;
}

/* =====================================================
   SERVICES
   ===================================================== */
.hm-services {
    padding: 96px 0 !important;
    background: #ffffff !important;
    scroll-margin-top: 72px;
}

.hm-services > .e-con-inner {
    gap: 48px !important;
    max-width: 1080px !important;
    margin: 0 auto !important;
    padding: 0 40px !important;
    align-items: center !important;
    flex-direction: column !important;
}

/* Section heading */
.hm-services .hm-srv-title {
    margin-bottom: 0 !important;
}

.hm-services .elementor-widget-heading:first-child .elementor-heading-title {
    font-size: clamp(1.5rem, 3vw, 2rem) !important;
    font-weight: 700 !important;
    color: var(--hm-navy) !important;
    letter-spacing: -0.02em !important;
    line-height: 1.2 !important;
    text-align: center !important;
}

.hm-services .elementor-widget-heading:first-child .elementor-heading-title::after {
    content: '';
    display: block;
    width: 32px;
    height: 3px;
    background: var(--hm-green);
    border-radius: 99px;
    margin: 16px auto 0 !important;
}

/* Services grid — 2x2 layout */
.hm-services__grid {
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
    width: 100% !important;
}

.hm-services__grid > .e-con {
    width: 100% !important;
    --width: 100% !important;
}

/* Service card icon */
.hm-service-icon {
    color: var(--hm-green-dark) !important;
    margin-bottom: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    height: 48px !important;
    background: var(--hm-green-soft) !important;
    border-radius: 12px !important;
}
.hm-service-icon svg {
    display: block !important;
    width: 24px !important;
    height: 24px !important;
}

/* Service card container */
.hm-service-card {
    border-radius: var(--hm-radius) !important;
    background: var(--hm-bg) !important;
    padding: 32px 28px !important;
    transition: all var(--hm-transition) !important;
    border: 1px solid var(--hm-border) !important;
}
.hm-service-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--hm-shadow) !important;
    border-color: rgba(34, 197, 94, 0.15) !important;
}

/* Card heading */
.hm-service-card .elementor-heading-title {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: var(--hm-navy) !important;
    line-height: 1.3 !important;
    margin-bottom: 10px !important;
}

/* Card description */
.hm-service-card .elementor-widget-text-editor:last-child .elementor-widget-container,
.hm-service-card .elementor-widget-text-editor:last-child p {
    font-size: 0.9rem !important;
    line-height: 1.65 !important;
    color: #475569 !important;
    font-weight: 400 !important;
}

/* =====================================================
   CONTACT
   ===================================================== */
.hm-contact {
    scroll-margin-top: 72px;
    background: var(--hm-bg) !important;
    padding: 96px 0 !important;
}

.hm-contact__inner.e-con {
    --flex-direction: row !important;
}

.hm-contact > .e-con-inner,
.hm-contact__inner > .e-con-inner {
    max-width: 1080px !important;
    margin: 0 auto !important;
    padding: 0 40px !important;
    gap: 48px !important;
}

/* Contact info left side */
.hm-contact__info {
    padding-top: 8px !important;
}

.hm-contact__info .elementor-heading-title {
    font-size: clamp(1.5rem, 3vw, 2rem) !important;
    font-weight: 700 !important;
    color: var(--hm-navy) !important;
    letter-spacing: -0.02em !important;
    line-height: 1.2 !important;
    margin-bottom: 36px !important;
}

.hm-contact__info .elementor-heading-title::after {
    content: '';
    display: block;
    width: 32px;
    height: 3px;
    background: var(--hm-green);
    border-radius: 99px;
    margin-top: 16px;
}

.hm-contact__info .elementor-widget-text-editor .elementor-widget-container {
    font-size: 0.9rem !important;
    color: #475569 !important;
    line-height: 1.6 !important;
    margin-bottom: 6px !important;
}

.hm-contact__info .elementor-widget-text-editor .elementor-widget-container a {
    color: var(--hm-text) !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: color var(--hm-transition) !important;
}

.hm-contact__info .elementor-widget-text-editor .elementor-widget-container a:hover {
    color: var(--hm-green-dark) !important;
}

/* Contact detail blocks */
.hm-contact__detail {
    margin-bottom: 4px !important;
}

.hm-contact__label {
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    margin-bottom: 3px !important;
}

.hm-contact__value {
    font-size: 0.9rem !important;
    color: var(--hm-navy) !important;
    font-weight: 600 !important;
}

.hm-contact__value a {
    color: var(--hm-navy) !important;
    text-decoration: none !important;
    transition: color var(--hm-transition) !important;
}

.hm-contact__value a:hover {
    color: var(--hm-green-dark) !important;
}

.hm-contact__info .elementor-widget-social-icons {
    margin-top: 28px !important;
}

/* --- Form container --- */
.hm-contact__form {
    background: #ffffff !important;
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius-lg) !important;
    padding: 40px 36px !important;
    box-shadow: var(--hm-shadow) !important;
    position: relative !important;
}

/* =====================================================
   WPFORMS
   ===================================================== */
.wpforms-title {
    font-family: var(--hm-font) !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: var(--hm-navy) !important;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem !important;
}

.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container input[type="tel"],
.wpforms-container input[type="number"],
.wpforms-container input[type="url"],
.wpforms-container select,
.wpforms-container textarea {
    font-family: var(--hm-font) !important;
    background: var(--hm-bg) !important;
    border: 1.5px solid transparent !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    color: var(--hm-navy) !important;
    transition: all 0.2s ease !important;
}

.wpforms-container input:focus,
.wpforms-container select:focus,
.wpforms-container textarea:focus {
    outline: none !important;
    background: #ffffff !important;
    border-color: var(--hm-green) !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.08) !important;
}

.wpforms-container textarea { resize: none !important; }

.wpforms-container .wpforms-field-textarea textarea.wpforms-field-medium {
    height: 96px !important;
}

.wpforms-container .wpforms-field-label {
    font-family: var(--hm-font) !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: #475569 !important;
    margin-bottom: 4px !important;
}

/* Submit */
.wpforms-container button[type="submit"],
.wpforms-container .wpforms-submit {
    font-family: var(--hm-font) !important;
    background: var(--hm-green-dark) !important;
    color: #fff !important;
    padding: 14px 32px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: 12px !important;
    cursor: pointer;
    transition: all var(--hm-transition) !important;
    width: 100% !important;
    letter-spacing: 0.01em;
}

.wpforms-container button[type="submit"]:hover,
.wpforms-container .wpforms-submit:hover {
    background: #15803d !important;
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.3) !important;
    transform: translateY(-1px) !important;
}

/* Trust & privacy text */
.hm-trust-text {
    font-size: 0.8rem !important;
    color: #475569 !important;
    font-weight: 500 !important;
    text-align: center !important;
    margin: 14px 0 4px !important;
    line-height: 1.5 !important;
}
.hm-privacy-text {
    font-size: 0.7rem !important;
    color: #94a3b8 !important;
    font-weight: 400 !important;
    text-align: center !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

/* =====================================================
   STICKY CTA
   ===================================================== */
.hm-sticky-cta {
    position: fixed !important;
    bottom: 28px !important;
    right: 28px !important;
    z-index: 9999 !important;
    width: auto !important;
    padding: 0 !important;
    min-height: 0 !important;
    background: transparent !important;
}
.hm-sticky-cta .elementor-button {
    border-radius: 14px !important;
    padding: 13px 28px !important;
    font-family: var(--hm-font) !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.25), var(--hm-shadow) !important;
    transition: all var(--hm-transition) !important;
    background: var(--hm-green-dark) !important;
    color: #ffffff !important;
}
.hm-sticky-cta .elementor-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 28px rgba(22, 163, 74, 0.35), var(--hm-shadow-lg) !important;
    background: #15803d !important;
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
    background: var(--hm-navy) !important;
    color: rgba(255, 255, 255, 0.6);
}

.site-footer,
.site-footer * {
    font-family: var(--hm-font) !important;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.6) !important;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: #ffffff !important;
}

.ast-builder-grid-row-3-equal .ast-builder-grid-row {
    grid-template-columns: 3fr 1fr 3fr;
}

.site-footer .ast-builder-footer-grid-columns {
    padding: 40px 0;
}

.site-footer .ast-social-element-facebook {
    background: rgba(255, 255, 255, 0.06) !important;
    transition: all 0.2s;
    border-radius: 10px !important;
}

.site-footer .ast-social-element-facebook:hover {
    background: var(--hm-green-dark) !important;
}

.site-footer .hm-footer-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
}
.site-footer .hm-footer-contact a {
    color: rgba(255, 255, 255, 0.6) !important;
}
.site-footer .hm-footer-contact a:hover {
    color: #ffffff !important;
}

/* =====================================================
   RESPONSIVE – MOBILE
   ===================================================== */
@media (max-width: 767px) {
    .hm-hero {
        min-height: 100dvh !important;
    }

    .hm-hero > .e-con-inner > .e-con {
        padding: 0 20px !important;
    }

    .hm-hero .elementor-heading-title {
        font-size: 2.75rem !important;
        letter-spacing: -0.03em !important;
        padding: 0 !important;
    }

    .hm-hero .elementor-widget-text-editor .elementor-widget-container,
    .hm-hero .elementor-widget-text-editor .elementor-widget-container p {
        font-size: 0.9rem !important;
        max-width: 300px;
    }

    /* Services section */
    .hm-services {
        padding: 56px 0 !important;
    }

    .hm-services > .e-con-inner {
        padding: 0 20px !important;
        flex-direction: column !important;
        gap: 32px !important;
    }

    .hm-services__grid,
    .hm-contact__form {
        width: 100% !important;
    }

    .hm-services .elementor-widget-heading:first-child .elementor-heading-title {
        font-size: 1.4rem !important;
    }

    /* Service cards — single column on mobile */
    .hm-services__grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .hm-service-card {
        padding: 22px 20px !important;
        border-radius: 14px !important;
    }

    /* Contact section mobile */
    .hm-contact {
        padding: 56px 0 !important;
    }

    .hm-contact > .e-con-inner,
    .hm-contact__inner > .e-con-inner {
        padding: 0 12px !important;
        gap: 32px !important;
    }

    .hm-contact__inner.e-con {
        --flex-direction: column-reverse !important;
    }

    .hm-contact__info .elementor-heading-title {
        font-size: 1.4rem !important;
        margin-bottom: 24px !important;
    }

    /* Form card */
    .hm-contact__form {
        padding: 24px 16px !important;
        position: static !important;
        border-radius: 20px !important;
    }

    .wpforms-title {
        font-size: 1.1rem !important;
    }

    .wpforms-container input[type="text"],
    .wpforms-container input[type="email"],
    .wpforms-container input[type="tel"],
    .wpforms-container input[type="number"],
    .wpforms-container select,
    .wpforms-container textarea {
        padding: 14px 16px !important;
        font-size: 16px !important;
        border-radius: 14px !important;
    }

    .wpforms-container button[type="submit"],
    .wpforms-container .wpforms-submit {
        padding: 16px 32px !important;
        font-size: 15px !important;
        border-radius: 12px !important;
    }

    /* Sticky CTA – full-width bar on mobile */
    .hm-sticky-cta {
        bottom: 0 !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        border-radius: 0 !important;
        padding: 12px 20px !important;
        background: rgba(15, 23, 42, 0.95) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border-top: 1px solid rgba(255,255,255,0.06) !important;
    }
    .hm-sticky-cta .elementor-button {
        border-radius: 12px !important;
        width: 100% !important;
        padding: 14px !important;
    }

    /* Space for sticky CTA — on footer, not body, to avoid gap below */
    .site-footer {
        padding-bottom: 70px !important;
    }

    /* Sections should scroll flush to top on mobile (no fixed header) */
    html {
        scroll-padding-top: 0px !important;
    }
    .hm-services,
    .hm-contact {
        scroll-margin-top: 0px !important;
    }

    /* Mobile burger trigger */
    .ast-mobile-menu-trigger-fill {
        background: rgba(15, 23, 42, 0.7) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        border-radius: 12px !important;
        padding: 10px !important;
        border: 1px solid rgba(255,255,255,0.15) !important;
    }
    .ast-mobile-menu-trigger-fill .ast-mobile-svg {
        fill: #ffffff !important;
        width: 22px !important;
        height: 22px !important;
    }

    /* Mobile dropdown menu */
    .ast-mobile-header-content {
        font-family: var(--hm-font) !important;
        background: #ffffff !important;
        border-bottom: 1px solid var(--hm-border) !important;
        box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
    }

    .ast-mobile-header-content .main-navigation ul li a,
    .ast-header-break-point .ast-mobile-header-content .main-navigation ul li a {
        font-size: 1rem !important;
        font-weight: 600 !important;
        color: var(--hm-navy) !important;
        text-shadow: none !important;
        padding: 14px 20px !important;
        letter-spacing: 0.02em !important;
        text-transform: none !important;
    }

    .ast-mobile-header-content .menu-item {
        border-bottom: 1px solid var(--hm-border) !important;
    }

    .ast-mobile-header-content .menu-item:last-child {
        border-bottom: none !important;
    }

    .ast-mobile-header-content .main-navigation ul li a:hover,
    .ast-header-break-point .ast-mobile-header-content .main-navigation ul li a:hover {
        color: var(--hm-green-dark) !important;
    }

    /* Footer mobile */
    .site-footer .ast-builder-footer-grid-columns {
        padding: 32px 0;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
    .hm-services > .e-con-inner {
        gap: 40px !important;
        padding: 0 32px !important;
    }

    .hm-contact > .e-con-inner,
    .hm-contact__inner > .e-con-inner {
        padding: 0 32px !important;
    }
}
