/*
Theme Name:  Webza Theme
Theme URI:   https://webza.dk
Author:      Webza
Author URI:  https://webza.dk
Description: Blankt starttema bygget af Webza. Optimeret til Elementor Pro og WooCommerce. Ingen distraherende styling – fuld kontrol via Elementor.
Version:     1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: webza-theme
Tags:        blank, elementor, woocommerce, custom-logo, custom-menu
*/

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

/* =========================================================
   ELEMENTOR – fjern unødvendig WordPress-styling
   ========================================================= */
.elementor-section-wrap,
.elementor-inner,
.elementor-container {
    width: 100%;
}

/* Fjern standard WordPress image borders */
img {
    max-width: 100%;
    height: auto;
    border: none;
}

/* Fjern WordPress default link styling – styres via Elementor */
a {
    color: inherit;
    text-decoration: none;
}

/* =========================================================
   LAYOUT – minimal wrapper
   ========================================================= */
#page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#content {
    flex: 1;
}

/* =========================================================
   ELEMENTOR PRO – Header/Footer Builder support
   ========================================================= */
.elementor-location-header,
.elementor-location-footer {
    width: 100%;
}

/* Skjul standard WP header/footer når Elementor Pro overtager */
body.elementor-template-full-width .site-header,
body.elementor-template-full-width .site-footer {
    display: none;
}

/* Fallback header (vises kun hvis Elementor Pro IKKE er aktivt) */
.site-header {
    padding: 1rem 2rem;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

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

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

.site-branding .site-description {
    font-size: 0.85rem;
    color: #666;
}

/* Custom logo */
.custom-logo {
    max-height: 60px;
    width: auto;
}

/* Fallback navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.main-navigation a {
    font-size: 0.95rem;
    color: inherit;
    text-decoration: none;
}

.main-navigation a:hover {
    opacity: 0.7;
}

/* Fallback footer */
.site-footer {
    padding: 2rem;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 0.85rem;
    color: #999;
}

/* =========================================================
   WOOCOMMERCE – nulstil standard WC styling
   ========================================================= */
.woocommerce,
.woocommerce-page {
    /* WooCommerce tilføjer egne styles – her kan du overskrive */
}

/* Fjern WC default column layouts (styres via Elementor) */
.woocommerce-page .content-area,
.woocommerce-page .site-main {
    width: 100%;
    float: none;
}

/* =========================================================
   HJÆLPEKLASSER
   ========================================================= */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =========================================================
   ELEMENTOR CANVAS TEMPLATE – fuld blank side
   ========================================================= */
.elementor-template-canvas #page {
    min-height: unset;
}
