/* ========================================
   LAC SUB SOARE - Common Styles
   Tokens, reset, butoane, badges, header, footer, popup, WhatsApp
======================================== */

:root {
    --primary: #13453C;
    --primary-dark: #0d332c;
    --accent: #FFAA3D;
    --accent-dark: #e8962f;
    --secondary: #E17E00;
    --secondary-hover: #c46e00;
    --light-bg: #D9E4DE;
    --light-bg-2: #c8d9d0;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted: #666666;
    --border-soft: rgba(19, 69, 60, 0.1);
    --shadow: 0 4px 20px rgba(19, 69, 60, 0.1);
    --shadow-hover: 0 8px 30px rgba(19, 69, 60, 0.18);
    --header-height: 78px;
    --header-height-scrolled: 62px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1366px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   ICONS (SVG inline)
======================================== */

.icon {
    width: 28px;
    height: 28px;
    fill: currentColor;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

.icon-lg { width: 44px; height: 44px; }
.icon-xl { width: 56px; height: 56px; }
.icon-sm { width: 18px; height: 18px; }
.svg-defs { display: none; }

/* ========================================
   TYPOGRAPHY
======================================== */

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 0.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { color: var(--text-dark); }

/* ========================================
   BUTOANE
======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 28px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    line-height: 1;
}

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

.btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}
.btn-secondary:hover { background-color: var(--secondary-hover); border-color: var(--secondary-hover); }

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

.btn-outline-light {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}
.btn-outline-light:hover { background-color: var(--white); color: var(--primary); }

.btn-large { height: 50px; padding: 0 36px; font-size: 0.95rem; }
.btn-block { width: 100%; }

/* ========================================
   BADGES
======================================== */

.badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-accent { background-color: var(--accent); color: var(--white); }
.badge-primary { background-color: var(--primary); color: var(--white); }
.badge-urgent { background-color: #dc3545; color: var(--white); }
.badge-success { background-color: #28a745; color: var(--white); }

/* ========================================
   SECTION HEADER
======================================== */

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}

.section-header .eyebrow {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-muted);
    margin-top: 12px;
    font-size: 1.05rem;
}

.section-cta {
    text-align: center;
    margin-top: 40px;
}

/* ========================================
   HEADER (sticky)
======================================== */

.site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--border-soft);
    transition: box-shadow 0.25s ease, padding 0.25s ease;
}

.site-header.scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

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

.site-logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.site-logo img {
    height: 30px;
    width: auto;
    display: block;
}

@media (max-width: 480px) {
    .site-logo img { height: 24px; }
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.site-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--primary);
}

.site-nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: var(--accent);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-phone {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    margin: 5px 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

@media (max-width: 960px) {
    .site-nav,
    .header-phone {
        display: none;
    }
    .nav-toggle { display: block; }
    .site-nav.open {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--white);
        padding: 20px;
        gap: 18px;
        border-bottom: 1px solid var(--border-soft);
        box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    }
}

/* ========================================
   FOOTER + bară încredere
======================================== */

.trust-bar {
    background: var(--primary);
    color: var(--white);
    padding: 20px 0;
}

.trust-bar-inner {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    text-align: center;
}

.trust-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
}

.trust-bar-item .icon {
    color: var(--accent);
    width: 22px;
    height: 22px;
}

.site-footer {
    background: #0d332c;
    color: rgba(255, 255, 255, 0.85);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
}

.legal-badge {
    display: inline-block;
    transition: opacity 0.2s ease;
    background: transparent;
    padding: 0;
}

.legal-badge:hover { opacity: 0.85; }

.legal-badge img {
    max-width: 190px;
    height: auto;
    display: block;
}

.payment-block {
    margin-top: 6px;
}

.payment-cards {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.payment-cards span {
    background: var(--white);
    color: var(--primary);
    font-size: 0.68rem;
    padding: 6px 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.payment-image {
    max-width: 220px;
    height: auto;
    display: block;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.footer-col p,
.footer-col li {
    font-size: 0.92rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
}

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

.footer-col a:hover { color: var(--accent); }

.footer-brand .site-logo {
    display: inline-block;
    margin-bottom: 18px;
}

.footer-brand .site-logo img {
    height: 36px;
    filter: brightness(0) invert(1);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.92rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
}

.footer-contact-item .icon {
    color: var(--accent);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 4px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.footer-social a:hover { background: var(--accent); }

.footer-social a svg {
    width: 18px;
    height: 18px;
    fill: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ========================================
   FLOATING WHATSAPP
======================================== */

.whatsapp-float {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 58px;
    height: 58px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 99;
    transition: transform 0.2s ease;
}

.whatsapp-float:hover { transform: scale(1.08); }

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: var(--white);
}

/* ========================================
   POPUP LEAD-GEN
======================================== */

.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 51, 44, 0.75);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.popup-overlay.open { display: flex; }

.popup {
    background: var(--white);
    max-width: 480px;
    width: 100%;
    padding: 40px 32px;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.35s ease;
}

.popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: 0;
    font-size: 1.6rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

.popup-close:hover { color: var(--primary); }

.popup-emoji {
    color: var(--accent);
    margin-bottom: 12px;
}

.popup h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.popup p { color: var(--text-muted); margin-bottom: 22px; }

.popup form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.popup input[type="email"],
.popup input[type="text"] {
    padding: 14px 16px;
    border: 1px solid var(--border-soft);
    font-family: inherit;
    font-size: 1rem;
}

.popup input:focus {
    outline: none;
    border-color: var(--primary);
}

.popup small {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-top: 4px;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ========================================
   NEWSLETTER (înlocuiește secțiunea oferte)
======================================== */

.newsletter-section {
    padding: 80px 0;
    background: var(--light-bg);
    text-align: center;
}

.newsletter-section .container { max-width: 720px; }

.newsletter-icon {
    color: var(--accent);
    margin-bottom: 18px;
}

.newsletter-section h2 { margin-bottom: 16px; }

.newsletter-section .lead {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 36px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    flex-direction: row;
    gap: 0;
    max-width: 720px;
    margin: 0 auto 16px;
    box-shadow: var(--shadow);
}

.newsletter-form input {
    flex: 1;
    min-width: 0;
    padding: 16px 20px;
    border: 1px solid var(--primary);
    border-right: 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    background: var(--white);
    color: var(--text-dark);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent);
    position: relative;
    z-index: 2;
}

.newsletter-form button {
    height: 50px;
    padding: 0 28px;
    border: 1px solid var(--primary);
    background: var(--primary);
    color: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    cursor: pointer;
    transition: background 0.25s ease;
    white-space: nowrap;
}

.newsletter-form input { height: 50px; padding: 0 20px; }

.newsletter-form button:hover { background: #0d332c; }

.newsletter-section .privacy-note {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 6px;
}

@media (max-width: 720px) {
    .newsletter-form { flex-direction: column; box-shadow: none; }
    .newsletter-form input { border-right: 1px solid var(--primary); border-bottom: 0; }
    .newsletter-form input:last-of-type { border-bottom: 0; }
    .newsletter-form button { padding: 16px; }
}

/* ========================================
   SISTEM FIDELIZARE
======================================== */

.loyalty-section {
    background: var(--light-bg);
    padding: 60px 0;
}

.loyalty-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.loyalty-card {
    background: var(--white);
    padding: 28px 24px;
    text-align: center;
    border-top: 3px solid var(--accent);
}

.loyalty-card .icon {
    color: var(--primary);
    margin-bottom: 12px;
}

.loyalty-card h4 {
    margin-bottom: 8px;
    color: var(--primary);
}

.loyalty-card p { color: var(--text-muted); font-size: 0.95rem; }

@media (max-width: 768px) {
    .loyalty-grid { grid-template-columns: 1fr; }
}

/* ========================================
   UTILITIES
======================================== */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 16px; }
.mt-2 { margin-top: 32px; }
.mb-1 { margin-bottom: 16px; }
.mb-2 { margin-bottom: 32px; }
