/*
Theme Name: DASIE
Theme URI: https://dasie.ro
Author: DASIE SRL
Description: Custom block (Full Site Editing) theme for DASIE SRL, converted from the original WordPress.com site. Header, footer, and page layout are editable templates/template parts (Appearance > Editor), colors/typography/spacing are editable via Styles, and page content is built with core WordPress blocks (plus Jetpack Forms/Slideshow/Map blocks where noted) so everything stays fully editable in the block editor.
Version: 1.3.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: dasie
*/

/* ==========================================================================
   Base layout / typography (color/spacing/typography presets are loaded
   automatically by WordPress from theme.json - this file only holds
   hand-written structural + brand styles theme.json doesn't cover: hero
   slideshow chrome, service cards, footer layout, header background).
   ========================================================================== */

* { box-sizing: border-box; }

body {
    margin: 0;
    background: #fff;
}

a { color: inherit; }

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

.site-main { overflow-x: hidden; }

/* ---------- Header ---------- */
/* Structure (logo, site title, nav menu, Contact button) lives in
   parts/header.html as real blocks - edit it from Appearance > Editor >
   Patterns > Header. This file only adds brand-specific visual touches the
   block editor's own controls don't cover. */

.site-header {
    background: #ffffff;
    background-image: linear-gradient(323deg, rgba(188,225,225,0.45) 0%, rgb(241,238,238) 36%, rgb(243,243,236) 55%, rgb(255,255,255) 77%);
}

.site-branding img.custom-logo,
.site-branding .wp-block-site-logo img {
    border-radius: 8px;
    display: block;
}

.site-title, .site-branding .wp-block-site-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #0d2d6b;
}

.site-branding .wp-block-site-title a { text-decoration: none; color: inherit; }

.primary-menu a,
.wp-block-navigation.primary-menu .wp-block-navigation-item__content {
    text-decoration: none;
    color: var(--wp--preset--color--theme-4, #5c7a7a);
    font-weight: 500;
    font-size: 0.95rem;
}

.primary-menu a:hover,
.wp-block-navigation.primary-menu .wp-block-navigation-item__content:hover {
    color: #0d2d6b;
}

.header-cta .wp-block-button__link {
    display: inline-block;
    background: #0d2d6b;
    color: #fff !important;
    padding: 0.55rem 1.4rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

/* ---------- Hero slideshow ---------- */

.dasie-hero-slider .wp-block-jetpack-slideshow {
    position: relative;
    height: min(70vh, 640px);
    overflow: hidden;
}
.dasie-hero-slider .wp-block-jetpack-slideshow_container,
.dasie-hero-slider .swiper { height: 100%; }
.dasie-hero-slider .wp-block-jetpack-slideshow_swiper-wrapper {
    list-style: none; margin: 0; padding: 0; height: 100%; position: relative;
}
.dasie-hero-slider .wp-block-jetpack-slideshow_slide {
    position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease;
}
.dasie-hero-slider .wp-block-jetpack-slideshow_slide.is-active { opacity: 1; }
.dasie-hero-slider .wp-block-jetpack-slideshow_slide figure { margin: 0; height: 100%; }
.dasie-hero-slider .wp-block-jetpack-slideshow_image {
    width: 100%; height: 100%; object-fit: cover;
}
.dasie-hero-slider .wp-block-jetpack-slideshow_caption {
    position: absolute; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #fff; padding: 2rem 2rem 1.5rem; font-size: 1.1rem; margin: 0;
}
.dasie-hero-slider .wp-block-jetpack-slideshow_button-prev,
.dasie-hero-slider .wp-block-jetpack-slideshow_button-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,0.85); cursor: pointer; z-index: 5;
}
.dasie-hero-slider .wp-block-jetpack-slideshow_button-prev { left: 1rem; }
.dasie-hero-slider .wp-block-jetpack-slideshow_button-next { right: 1rem; }
.dasie-hero-slider .wp-block-jetpack-slideshow_pagination {
    position: absolute; bottom: 0.75rem; left: 50%; transform: translateX(-50%);
    z-index: 5; display: flex; gap: 6px;
}

/* ---------- Service cards / grid ---------- */

.dasie-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}
.dasie-service-card { transition: box-shadow 0.2s ease, transform 0.2s ease; }
.dasie-service-card:hover { box-shadow: 0 8px 24px rgba(13,45,107,0.12); transform: translateY(-2px); }
.dasie-service-icon { font-size: 2rem; line-height: 1; }

/* ---------- Footer ---------- */
/* Structure (columns, social links, bottom bar) lives in parts/footer.html as
   real blocks - edit it from Appearance > Editor > Patterns > Footer.
   Background/text color and padding are already set via the block's own
   attributes there; this file only adds layout touches. */

.site-footer .footer-columns { margin-bottom: 2.5rem; }
.site-footer .footer-col { flex: 1 1 220px; }
.site-footer .footer-logo img { border-radius: 8px; margin-bottom: 0.75rem; }
.site-footer .footer-tagline { opacity: 0.7; font-size: 0.9rem; }
.site-footer h4 {
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em;
    opacity: 0.55; margin: 0 0 1rem;
}
.site-footer .wp-block-list { list-style: none; margin: 0; padding: 0; }
.site-footer .wp-block-list li { margin-bottom: 0.6rem; }
.site-footer .wp-block-list a { text-decoration: none; font-size: 0.92rem; }
.site-footer .wp-block-list a:hover { text-decoration: underline; }
.site-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 1.25rem;
    margin-top: 1rem;
    font-size: 0.78rem;
    opacity: 0.45;
}
.site-footer .footer-bottom p { margin: 0; }

/* ---------- Generic content wrapper ---------- */

.entry-content { overflow-x: hidden; }
.entry-content > * { margin-top: 0; margin-bottom: 0; }
