/*
 * Hello Theme — Minimal Base
 * Blank canvas theme for CMS Page Builder.
 * All design comes from page builder sections — this file provides only:
 * reset, base typography, layout utilities, page builder structural CSS,
 * and low-specificity widget defaults via :where().
 */

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
    --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: var(--font-sans);
    --accent: #2563eb;
    --text: #1e293b;
    --text-secondary: #64748b;
    --surface: #ffffff;
    --surface-alt: #f8fafc;
    --border: #e2e8f0;
    --radius: 0.5rem;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --transition: 300ms ease;
    --container-max: 1200px;
    --container-pad: 1rem;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--surface);
    overflow-x: hidden;
}

#scroll-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#main-content {
    flex: 1;
}

img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: color-mix(in srgb, var(--accent) 80%, black); }

/* Scrollbar — hidden (native + Locomotive) */
::-webkit-scrollbar { -webkit-appearance: none; width: 0px; }
html { scrollbar-width: none; }
.c-scrollbar { display: none !important; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text);
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1em; }

/* ============================================
   LAYOUT
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
}

/* ============================================
   HEADER (PAGE BUILDER)
   ============================================ */
.site-header {
    position: relative;
    z-index: 1000;
}

/* Default header row layout */
.site-header .pb-row {
    display: flex;
    align-items: center;
    min-height: 64px;
}

/* Transparent-scroll variant */
.site-header.header-transparent-scroll {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    box-shadow: none;
    transition: background var(--transition), box-shadow var(--transition);
}

.site-header.header-transparent-scroll.scrolled {
    background: var(--header-sticky-bg, #ffffff);
    box-shadow: var(--shadow-sm);
}

/* Sticky variant */
.site-header.header-sticky {
    position: sticky;
    top: 0;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

/* Header template sub-components */
.pp-topbar { font-size: 0.85rem; }
.pp-header-socials { display: flex; gap: 0.5rem; align-items: center; }
.pp-hs-link { display: flex; align-items: center; }
.pp-header-spacer { flex: 1; }

/* ── Header Nav default styles (overridable by page builder) ── */
.site-header .nav-links {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-header .nav-links > li { position: relative; }

.site-header .nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text, #1e293b);
    text-decoration: none;
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
}
.site-header .nav-link:hover {
    color: var(--accent, #2563eb);
    background: rgba(0,0,0,0.04);
}
.site-header .nav-link .nav-chevron {
    width: 12px;
    height: 12px;
    transition: transform var(--transition);
}

/* Dropdown */
.site-header .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--surface, #fff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: all var(--transition);
    z-index: 100;
}
.site-header .nav-links > li:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.site-header .dropdown-menu .sub-menu { display: flex; flex-direction: column; }
.site-header .dropdown-menu .nav-item a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text, #1e293b);
    text-decoration: none;
    font-size: 0.875rem;
    transition: background var(--transition);
}
.site-header .dropdown-menu .nav-item a:hover {
    background: var(--surface-alt, #f8fafc);
}

/* Mobile hamburger */
.site-header .mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}
.site-header .mobile-menu-btn .burger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text, #1e293b);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

/* Mobile panel */
.site-header .mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--surface, #fff);
    z-index: 9999;
    overflow-y: auto;
    padding: 1rem;
}
.site-header .mobile-menu.open { display: block; }
.site-header .mobile-nav-links { list-style: none; margin: 0; padding: 2rem 0; }
.site-header .mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    color: var(--text, #1e293b);
    text-decoration: none;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border, #e2e8f0);
}

@media (max-width: 991px) {
    .site-header .nav-links { display: none; }
    .site-header .mobile-menu-btn { display: flex; }
}

/* Nav CTA styles */
.nav-cta-ghost {
    background: transparent;
    border: 1px solid currentColor;
    padding: 0.4em 1em;
    border-radius: var(--radius);
    transition: all var(--transition);
}
.nav-cta-link { font-weight: 600; }

/* ============================================
   FOOTER (PAGE BUILDER)
   ============================================ */
.site-footer {
    position: relative;
}

/* Footer menu block */
.footer-menu-block .footer-heading {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
}
.footer-menu-block .footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.footer-menu-block .footer-links-list a {
    text-decoration: none;
    color: inherit;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}
.footer-menu-block .footer-links-list a:hover {
    opacity: 0.7;
}

/* ============================================
   HERO CAROUSEL (homepage slider)
   ============================================ */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-carousel {
    position: relative;
    width: 100%;
    min-height: 50vh;
}

.hero-carousel-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 0;
}

.hero-carousel-slide.active {
    opacity: 1;
    position: relative;
    z-index: 1;
}

/* Content alignment */
.hero-align-top { align-items: flex-start; padding-top: 2rem; }
.hero-align-center { align-items: center; }
.hero-align-bottom { align-items: flex-end; padding-bottom: 2rem; }

/* Content layer */
.hero-content {
    position: relative;
    z-index: 3;
    padding: 3rem 0;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

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

/* Background layer */
.hero-slide-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

div.hero-slide-bg {
    background-size: cover;
    background-position: center;
}

video.hero-slide-bg {
    object-fit: cover;
}

/* Overlay */
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

/* Single slide — no transition needed */
.hero-carousel-slide:only-child {
    position: relative;
    opacity: 1;
}

/* ============================================
   CUSTOM BUTTONS (used by button template)
   ============================================ */
:where(.sec-templates) .custom-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6em 1.2em;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    transition: all var(--transition);
}
:where(.sec-templates) .custom-button:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
:where(.sec-templates) .custom-button span { color: currentColor; }
:where(.sec-templates) .custom-button svg { width: 1.2em; height: 1.2em; }
:where(.sec-templates) .custom-button .cls-1 { fill: none; stroke: currentColor; stroke-miterlimit: 10; stroke-width: 8px; }
:where(.sec-templates) .custom-button .cls-2 { fill: currentColor; }

.custom-button.primary,
.btn-lg.primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.custom-button.primary:hover,
.btn-lg.primary:hover {
    background: color-mix(in srgb, var(--accent) 80%, black);
}

.btn-lg { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75em 1.5em; font-size: 1.05rem; border-radius: var(--radius); border: none; cursor: pointer; transition: all var(--transition); text-decoration: none; }
.btn-lg svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-sm { padding: 0.4em 0.8em; font-size: 0.875rem; border-radius: var(--radius); border: none; cursor: pointer; }
.btn-sm.ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-lg.ghost { background: transparent; border: 1px solid currentColor; color: inherit; padding: 0.75em 1.5em; font-size: 1.05rem; border-radius: var(--radius); cursor: pointer; transition: all var(--transition); }
.btn-lg.ghost:hover { background: rgba(255,255,255,0.15); }

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.scroll-top svg { width: 20px; height: 20px; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ============================================
   PAGE BUILDER — STRUCTURAL
   ============================================ */
.section-container {position: relative;}

.pb-row {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    gap: var(--pb-gap, 0px);
}

.pb-col {
    position: relative;
    min-height: 1px;
}

@media (max-width: 991px) {
    .pb-stack-tablet > .pb-col { flex: 0 0 100%; max-width: 100%; }
}
@media (max-width: 767px) {
    .pb-stack-mobile > .pb-col { flex: 0 0 100%; max-width: 100%; }
}

/* ============================================
   PAGE BUILDER — TEMPLATE WIDGET DEFAULTS
   Low specificity via :where() so page builder
   inline styles and live editor always override.
   ============================================ */
:where(.sec-templates) img { max-width: 100%; height: auto; }
:where(.sec-templates) .tpl-text { word-wrap: break-word; overflow-wrap: break-word; }
:where(.sec-templates) .tpl-text p:last-child { margin-bottom: 0; }
:where(.sec-templates) .tpl-image img { display: block; }

/* Video */
:where(.sec-templates) .tpl-video iframe,
:where(.sec-templates) .tpl-video video { max-width: 100%; display: block; }

/* Gallery Grid */
:where(.sec-templates) .gallery-grid .grid-container {
    display: flex; flex-wrap: wrap; gap: 1rem; width: 100%;
}
:where(.sec-templates) .gallery-grid .grid-item { position: relative; height: 18rem; transition: all 0.3s ease; }
:where(.sec-templates) .gallery-grid .grid-item.width-100 { width: 100%; height: 28rem; }
:where(.sec-templates) .gallery-grid .grid-item.width-50 { width: calc(50% - 0.5rem); }
:where(.sec-templates) .gallery-grid .grid-item.width-75 { width: calc(75% - 0.5rem); }
:where(.sec-templates) .gallery-grid .grid-item.width-33 { width: calc(33.333% - 0.667rem); }
:where(.sec-templates) .gallery-grid .grid-item.width-25 { width: calc(25% - 0.75rem); }
:where(.sec-templates) .glight-img {
    display: block; height: 100%; width: 100%;
    background-position: center; background-size: cover; background-repeat: no-repeat;
    border-radius: var(--radius); cursor: pointer;
}

/* Gallery Swiper */
:where(.sec-templates) .gallery-swiper-wrapper { position: relative; }
:where(.sec-templates) .gallery-swiper-wrapper img { width: 100%; height: auto; object-fit: cover; border-radius: var(--radius); }
:where(.sec-templates) .navigation-arrow {
    position: absolute; top: 50%; left: 0; right: 0;
    display: flex; justify-content: space-between; padding: 0 1rem;
    transform: translateY(-50%); z-index: 5; pointer-events: none;
}
:where(.sec-templates) .prev-p, :where(.sec-templates) .next-p {
    pointer-events: auto; background: var(--accent); color: #fff;
    padding: 0.3rem 0.8rem; border-radius: var(--radius); cursor: pointer;
    transition: background var(--transition);
}
:where(.sec-templates) .prev-p:hover, :where(.sec-templates) .next-p:hover { background: color-mix(in srgb, var(--accent) 80%, black); }
:where(.sec-templates) .prev-p svg, :where(.sec-templates) .next-p svg { width: 1.2rem; height: 1.2rem; }
:where(.sec-templates) .prev-p svg { transform: rotate(180deg); }

/* Icon List */
:where(.sec-templates) .tpl-icon-list { list-style: none; padding: 0; }
:where(.sec-templates) .tpl-icon-list li { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.75rem; }
:where(.sec-templates) .tpl-icon-list .icon-list-icon { flex-shrink: 0; }

/* ════════════════════════════════════════════
   FORMS — Base Styles
   ════════════════════════════════════════════ */

/* Page form container (dynamic forms) */
.page-form {
    max-width: 100%;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1rem;
}
.form-group {
    position: relative;
    margin-bottom: 0;
}
.full-width { grid-column: 1 / -1; }

/* Structured form layout (Section → Row → Column) */
.form-sec-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 1rem;
}

/* Labels */
.form-group label,
.template-form label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary, #333);
}

/* Inputs, textareas, selects */
.cutom-input,
.template-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.template-form textarea,
.template-form select,
.page-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.page-form textarea,
.page-form select {
    display: block;
    width: 100%;
    padding: 0.7rem 0.9rem;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.5;
    color: var(--text-primary, #333);
    background: var(--surface-alt, #fff);
    border: 1px solid var(--border, #d1d5db);
    border-radius: var(--radius, 6px);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
}

/* Focus state */
.cutom-input:focus,
.template-form input:not([type="checkbox"]):not([type="radio"]):focus,
.template-form textarea:focus,
.template-form select:focus,
.page-form input:not([type="checkbox"]):not([type="radio"]):focus,
.page-form textarea:focus,
.page-form select:focus {
    outline: none;
    border-color: var(--accent, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Placeholder */
.cutom-input::placeholder,
.template-form input::placeholder,
.template-form textarea::placeholder,
.page-form input::placeholder,
.page-form textarea::placeholder {
    color: var(--text-secondary, #9ca3af);
}

/* Textarea */
.template-form textarea,
.page-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Select (with custom arrow) */
.template-form select,
.page-form select {
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
}

/* Checkbox & Radio */
.checkbox-input {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}
.checkbox-c[type=checkbox],
.checkbox-c[type=radio] {
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    background: var(--surface-alt, #fff);
    border: 1.5px solid var(--border, #d1d5db);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}
.checkbox-c[type=radio] { border-radius: 50%; }
.checkbox-c:checked[type=checkbox],
.checkbox-c:checked[type=radio] {
    background: var(--accent, #2563eb);
    border-color: var(--accent, #2563eb);
}
.checkbox-c:checked[type=checkbox]::after {
    content: '';
    position: absolute;
    left: 4px; top: 1px;
    width: 6px; height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.checkbox-c:checked[type=radio]::after {
    content: '';
    position: absolute;
    left: 4px; top: 4px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #fff;
}
.label-check {
    font-size: 0.9rem;
    color: var(--text-secondary, #6b7280);
    line-height: 1.5;
}
.label-check a { color: var(--accent, #2563eb); text-decoration: underline; }
.label-check a:hover { opacity: 0.8; }

/* Submit button inside forms */
.form-submit-group {
    margin-top: 0.5rem;
}
.form-submit-group .custom-button {
    min-width: 160px;
}

/* Error tooltip */
.error {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ef4444;
    color: #fff;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 4px;
    margin-top: 4px;
    z-index: 10;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.error::before {
    content: '';
    position: absolute;
    top: -4px; left: 12px;
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid #ef4444;
}
.error.show { display: flex; }

/* Honeypot (anti-spam, always hidden) */
.form-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* Responsive: stack form grid on mobile */
@media (max-width: 767.98px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        flex-direction: column;
    }
    .form-row .form-col {
        flex: 0 0 100% !important;
    }
}

/* Slider */
:where(.sec-templates) .tpl-slider { position: relative; width: 100%; }

/* Testimonial */
:where(.sec-templates) .tpl-testimonial { padding: 1.5rem; border-radius: var(--radius); }
:where(.sec-templates) .tpl-testimonial-quote { font-style: italic; margin-bottom: 1rem; }
:where(.sec-templates) .tpl-testimonial-author { font-weight: 600; }

/* Counter */
:where(.sec-templates) .tpl-counter { text-align: center; }
:where(.sec-templates) .tpl-counter-number { font-size: 2.5rem; font-weight: 700; }

/* Tabs */
:where(.sec-templates) .tpl-tabs-nav { display: flex; gap: 0; border-bottom: 1px solid var(--border); }
:where(.sec-templates) .tpl-tab-btn {
    padding: 0.75rem 1.25rem; background: none; border: none; cursor: pointer;
    font-family: inherit; font-size: 1rem; color: var(--text-secondary);
    border-bottom: 2px solid transparent; transition: all var(--transition);
}
:where(.sec-templates) .tpl-tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
:where(.sec-templates) .tpl-tab-content { display: none; padding: 1.5rem 0; }
:where(.sec-templates) .tpl-tab-content.active { display: block; }

/* Team */
:where(.sec-templates) .tpl-team-photo img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
:where(.sec-templates) .tpl-team-name { font-weight: 600; }

/* Accordion / FAQ */
:where(.sec-templates) .tpl-accordion-item { border-bottom: 1px solid var(--border); }
:where(.sec-templates) .tpl-accordion-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 0; cursor: pointer; font-weight: 600;
}
:where(.sec-templates) .tpl-accordion-body { padding: 0 0 1rem; display: none; }
:where(.sec-templates) .tpl-accordion-item.open .tpl-accordion-body { display: block; }

/* Heading */
:where(.sec-templates) .tpl-heading-separator {
    width: 60px; height: 3px; background: var(--accent); margin-top: 0.75rem;
}

/* Spacer */
:where(.sec-templates) .tpl-spacer { height: 40px; }

/* Alert */
:where(.sec-templates) .tpl-alert {
    padding: 1rem 1.25rem; border-radius: var(--radius); border-left: 4px solid;
}
:where(.sec-templates) .tpl-alert-info { border-color: #3b82f6; background: #eff6ff; }
:where(.sec-templates) .tpl-alert-success { border-color: #10b981; background: #ecfdf5; }
:where(.sec-templates) .tpl-alert-warning { border-color: #f59e0b; background: #fffbeb; }
:where(.sec-templates) .tpl-alert-danger { border-color: #ef4444; background: #fef2f2; }

/* Pricing Table */
:where(.sec-templates) .tpl-pricing { border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; text-align: center; }
:where(.sec-templates) .tpl-pricing-price { font-size: 2.5rem; font-weight: 700; }
:where(.sec-templates) .tpl-pricing-features { list-style: none; padding: 0; }
:where(.sec-templates) .tpl-pricing-features li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); }

/* Timeline */
:where(.sec-templates) .tpl-timeline { position: relative; padding-left: 2rem; }
:where(.sec-templates) .tpl-timeline::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0;
    width: 2px; background: var(--border);
}
:where(.sec-templates) .tpl-timeline-item { position: relative; margin-bottom: 2rem; }
:where(.sec-templates) .tpl-timeline-dot {
    position: absolute; left: -2rem; top: 0.25rem; width: 12px; height: 12px;
    background: var(--accent); border-radius: 50%; transform: translateX(-5px);
}

/* Logo Carousel */
:where(.sec-templates) .tpl-logo-carousel img { max-height: 60px; width: auto; object-fit: contain; }

/* Progress Bar */
:where(.sec-templates) .tpl-progress { margin-bottom: 1rem; }
:where(.sec-templates) .tpl-progress-bar { height: 8px; background: var(--surface-alt); border-radius: 4px; overflow: hidden; }
:where(.sec-templates) .tpl-progress-fill { height: 100%; background: var(--accent); border-radius: 4px; transition: width 1s ease; }

/* Query Loop */
:where(.sec-templates) .pp-query-loop-grid {
    display: grid; gap: 1.5rem;
    grid-template-columns: repeat(var(--ql-cols, 3), 1fr);
}
:where(.sec-templates) .pp-query-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: box-shadow var(--transition); }
:where(.sec-templates) .pp-query-card:hover { box-shadow: var(--shadow-md); }
:where(.sec-templates) .pp-query-card img { width: 100%; height: 200px; object-fit: cover; }
:where(.sec-templates) .pp-query-card__body { padding: 1rem; }
:where(.sec-templates) .pp-query-card__title { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
:where(.sec-templates) .pp-query-card__excerpt { color: var(--text-secondary); font-size: 0.9rem; }
:where(.sec-templates) .pp-query-card__date,
:where(.sec-templates) .pp-query-card__cat { font-size: 0.8rem; color: var(--text-secondary); }

/* Also support non-:where versions for page templates */
.pp-query-loop.pp-query-grid {
    display: grid; gap: var(--gap, 1.5rem);
    grid-template-columns: repeat(var(--columns, 3), 1fr);
}
.pp-query-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: box-shadow var(--transition); }
.pp-query-card:hover { box-shadow: var(--shadow-md); }
.pp-query-card-media img { width: 100%; height: 200px; object-fit: cover; }
.pp-query-card-body { padding: 1rem; }
.pp-query-card-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.pp-query-card-excerpt { color: var(--text-secondary); font-size: 0.9rem; }
.pp-query-card-meta { font-size: 0.8rem; color: var(--text-secondary); display: block; margin-bottom: 0.25rem; }
.pp-query-card-link { color: var(--accent); font-weight: 500; font-size: 0.9rem; }

/* Map */
:where(.sec-templates) .map-container { width: 100%; height: 450px; border-radius: var(--radius); }
.map-wrapper { border-radius: var(--radius); overflow: hidden; }
.map-container { width: 100%; height: 450px; }
.map-locations-list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.map-location-item { padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: box-shadow var(--transition); }
.map-location-item:hover { box-shadow: var(--shadow-md); }
.map-location-name { font-weight: 600; margin-bottom: 0.25rem; }
.map-location-address { color: var(--text-secondary); font-size: 0.9rem; }
.map-location-link { color: var(--accent); font-size: 0.85rem; }

/* Iframe */
:where(.sec-templates) .tpl-iframe iframe { width: 100%; border: none; min-height: 400px; }

/* Dynamic Banner */
:where(.sec-templates) .tpl-dynamic-banner { position: relative; overflow: hidden; border-radius: var(--radius); }
:where(.sec-templates) .tpl-dynamic-banner img { width: 100%; display: block; }

/* Contacts / Addresses */
:where(.sec-templates) .tpl-contacts-grid { display: grid; gap: 1rem; }
:where(.sec-templates) .tpl-contact-item { padding: 1rem; background: var(--surface-alt); border-radius: var(--radius); }

/* Menu Block */
:where(.sec-templates) .tpl-menu-block ul { list-style: none; padding: 0; }
:where(.sec-templates) .tpl-menu-block li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
:where(.sec-templates) .tpl-menu-block a { color: var(--text); }
:where(.sec-templates) .tpl-menu-block a:hover { color: var(--accent); }

/* Separator */
:where(.sec-templates) .tpl-separator { border: none; border-top: 1px solid var(--border); margin: 1rem 0; }

/* ============================================
   CONTENT TEXT (PROSE)
   ============================================ */
.content-text { line-height: 1.7; }
.content-text p { margin-bottom: 1em; }
.content-text ul, .content-text ol { margin-bottom: 1em; padding-left: 1.5em; }
.content-text img { max-width: 100%; height: auto; border-radius: var(--radius); }
.content-text a { text-decoration: underline; }

/* ============================================
   TOAST / MESSAGES
   ============================================ */
/* .message-contact — styled in form-validation.css */
.message-content {
    background: #10b981; color: #fff;
    padding: 12px 24px; border-radius: var(--radius);
    display: flex; align-items: center; gap: 8px;
    font-weight: 500; box-shadow: var(--shadow-lg);
}

/* ============================================
   VISIBILITY SYSTEM (PAGE BUILDER)
   ============================================ */
body:not(.le-preview-mode) .pp-hidden-desktop { display: none !important; }

@media (max-width: 1024px) {
    body:not(.le-preview-mode) .pp-hidden-tablet { display: none !important; }
}
@media (max-width: 767px) {
    body:not(.le-preview-mode) .pp-hidden-mobile { display: none !important; }
}

/* ============================================
   PRIVATE AREA (LOGIN / RISORSE)
   ============================================ */
.login_sec { opacity: 1; visibility: visible; transition: 0.2s; }
.login_sec.hide { opacity: 0; visibility: hidden; height: 0; overflow: hidden; }

.private-area-users { opacity: 0; visibility: hidden; transition: 0.2s; display: none; }
.private-area-users.show { display: block; opacity: 1; visibility: visible; }

.contact-form-card { background: var(--surface-alt); padding: 2rem; border-radius: var(--radius); }

.view-passsord { cursor: pointer; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); }
.view-passsord .show { display: block; }
.view-passsord .hide { display: none; }

.grid-resources-private-area {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}

.item-private-area {
    background: var(--surface); padding: 1rem; display: flex;
    border-radius: var(--radius); align-items: center;
    justify-content: space-between; border: 1px solid var(--border);
}
.item-private-area svg { height: 3rem; }
.item-private-area .text p { margin: 0; font-weight: 600; font-size: 0.95rem; }

.dimension-file { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.25rem; }

.file-private-area { display: flex; align-items: center; gap: 1rem; }
.actions-file { display: flex; gap: 0.5rem; }

.btn-action-file {
    cursor: pointer; background: var(--surface-alt); border-radius: var(--radius);
    padding: 0.4rem; width: 2.2rem; height: 2.2rem;
    display: flex; align-items: center; justify-content: center;
    color: var(--text); transition: all var(--transition); position: relative; border: none;
}
.btn-action-file svg { width: 1rem; height: 1rem; }
.btn-action-file:hover { color: #fff; background: var(--accent); }
.btn-action-file.disabled { opacity: 0.5; cursor: default; }
.btn-action-file.disabled:hover { color: var(--text); background: var(--surface-alt); }

.btn-action-file .badge_to-signe {
    position: absolute; top: -2px; left: -2px;
    width: 0.6rem; height: 0.6rem;
    background: var(--accent); border-radius: 3px;
    opacity: 0; visibility: hidden; transition: all var(--transition);
}
.btn-action-file.notify .badge_to-signe { opacity: 1; visibility: visible; }
.btn-action-file:hover .badge_to-signe { opacity: 0; visibility: hidden; }

@keyframes spin { to { transform: rotate(360deg); } }
.spinning { animation: spin 1s linear infinite; }

/* Private area modals */
.modal-to-signed,
.modal-no-signed {
    position: fixed; inset: 0; display: flex;
    z-index: 99999; backdrop-filter: brightness(0.5);
    justify-content: center; align-items: center;
    visibility: hidden; opacity: 0; transition: 0.2s ease;
}
.modal-to-signed.open, .modal-no-signed.open { visibility: visible; opacity: 1; }

.content-modal-to-signed,
.content-modal-no-signed {
    background: var(--surface); width: 70vw; max-height: 90vh;
    padding: 2rem; border-radius: var(--radius);
    display: flex; flex-direction: column; justify-content: space-between;
    overflow-y: auto;
}

.view-detail-file { padding: 1rem; background: var(--surface-alt); border-radius: var(--radius); }
.view-detail-file iframe { min-height: 430px; width: 100%; }
.view-detail-file img { width: 100%; object-fit: cover; height: 430px; }
.view-detail-file video { width: 100%; height: 430px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 767px) {
    .form-grid { grid-template-columns: 1fr; }
    .grid-resources-private-area { grid-template-columns: 1fr; }
    .content-modal-to-signed, .content-modal-no-signed { width: 95vw; }
    .pp-query-loop.pp-query-grid { grid-template-columns: 1fr; }
}
