/* =========================================================
   AME Web Solutions — Design tokens
   ========================================================= */
:root {
    --ink: #16233F;
    --ink-soft: #4B5769;
    --paper: #F4F5F7;
    --white: #FFFFFF;
    --accent: #FF6B35;
    --accent-deep: #E8501A;
    --accent-soft: #FFE3D6;
    --success: #1B8A5A;
    --line: #E1E4EA;
    --shadow: 0 10px 30px rgba(22, 35, 63, 0.08);
    --radius: 12px;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1.15;
}

p {
    color: var(--ink-soft);
}

a {
    color: inherit;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    text-align: center;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 3rem;
    font-size: 1.05rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.85rem 1.75rem;
    border-radius: 8px;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-deep);
}

.btn-ghost {
    background: transparent;
    border-color: var(--ink);
    color: var(--ink);
}

.btn-ghost:hover {
    background: var(--ink);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border-color: var(--accent);
    color: var(--accent-deep);
    width: 100%;
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--white);
}

.btn-sm {
    padding: 0.55rem 1.25rem;
    font-size: 0.85rem;
}

.btn-full {
    width: 100%;
}

/* =========================================================
   Header & Nav
   ========================================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(244, 245, 247, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
}

.logo span {
    color: var(--accent);
}

nav#mainNav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav#mainNav a:not(.btn) {
    text-decoration: none;
    color: var(--ink-soft);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

nav#mainNav a:not(.btn):hover {
    color: var(--accent-deep);
}

#mainNavSimple a {
    text-decoration: none;
    color: var(--ink-soft);
    font-weight: 500;
    font-size: 0.95rem;
}

#mainNavSimple a:hover {
    color: var(--accent-deep);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
    position: relative;
    padding: 9rem 2rem 5rem;
    overflow: hidden;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--line) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to bottom, black, transparent 85%);
    opacity: 0.8;
}

.hero-inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-deep);
    background: var(--accent-soft);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    margin-bottom: 1.25rem;
}

.hero-copy h1 {
    font-size: clamp(2.2rem, 4vw, 3.1rem);
    margin-bottom: 1.25rem;
}

.hero-copy p {
    font-size: 1.15rem;
    max-width: 480px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-trust {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    flex-direction: column;
}

.trust-item strong {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--ink);
}

.trust-item span {
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.hero-visual {
    filter: drop-shadow(var(--shadow));
}

.mockup-svg {
    width: 100%;
    height: auto;
}

/* =========================================================
   Benefits
   ========================================================= */
.benefits, .process, .pricing, .extras {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.benefit-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
}

.icon-wrap svg {
    width: 22px;
    height: 22px;
}

.icon-wrap.small {
    width: 38px;
    height: 38px;
}

.icon-wrap.small svg {
    width: 19px;
    height: 19px;
}

.benefit-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.benefit-card p {
    font-size: 0.95rem;
}

/* =========================================================
   Process
   ========================================================= */
.process {
    background: var(--white);
    border-radius: 24px;
}

.process-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
}

.process-track::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: var(--line);
    z-index: 0;
}

.process-step {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 1rem;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.process-step h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.process-step p {
    font-size: 0.95rem;
}

/* =========================================================
   Pricing
   ========================================================= */
.pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: start;
}

.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.card.popular {
    border: 2px solid var(--accent);
    box-shadow: var(--shadow);
}

.badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--white);
    padding: 0.3rem 1.1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
}

.card-tagline {
    font-size: 0.9rem;
    color: var(--ink-soft);
    margin-bottom: 1.25rem;
    min-height: 2.2em;
}

.price {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 1.5rem;
}

.features-list {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.features-list li {
    margin-bottom: 0.85rem;
    color: var(--ink-soft);
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
}

.features-list li::before {
    content: "✓";
    color: var(--success);
    font-weight: bold;
    margin-right: 0.65rem;
    flex-shrink: 0;
}

/* =========================================================
   Extras
   ========================================================= */
.extras-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.extra-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
}

.extra-card h4 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.extra-card p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.tag-free, .tag-cost {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
}

.tag-free {
    background: #E4F5EC;
    color: var(--success);
}

.tag-cost {
    background: var(--accent-soft);
    color: var(--accent-deep);
}

/* =========================================================
   Contact
   ========================================================= */
.contact {
    padding: 5rem 2rem;
    background: var(--ink);
}

.contact-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
    align-items: center;
}

.contact-intro h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-intro p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.contact-detail {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.25rem;
}

.contact-detail .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.contact-detail a, .contact-detail span:not(.label) {
    color: var(--white);
    text-decoration: none;
    font-size: 1.05rem;
}

.contact-container {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.4rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--ink);
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
    background: var(--paper);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--white);
}

select.form-control {
    background-color: var(--paper);
}

/* Câmp honeypot — ascuns vizual, dar prezent în DOM pentru a păcăli boții */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-status {
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    min-height: 1.2em;
}

.form-status-success {
    color: var(--success);
}

.form-status-error {
    color: var(--accent-deep);
}

/* Theming widget ALTCHA (captcha) */
altcha-widget {
    --altcha-color-base: var(--paper);
    --altcha-color-border: var(--line);
    --altcha-color-text: var(--ink);
    --altcha-color-border-focus: var(--accent);
    --altcha-border-radius: 8px;
    font-family: var(--font-body);
    max-width: 100%;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
    background: var(--ink);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3.5rem 2rem 1.5rem;
}

.footer-columns {
    max-width: 1200px;
    margin: 0 auto 2.5rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2rem;
}

.footer-col .logo {
    color: var(--white);
}

.footer-desc {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
    margin-top: 0.75rem;
    max-width: 260px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

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

.footer-list li {
    margin-bottom: 0.6rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88rem;
}

.footer-list a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

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

.link-btn {
    background: none;
    border: none;
    padding: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88rem;
    font-family: var(--font-body);
    cursor: pointer;
    text-align: left;
}

.link-btn:hover {
    color: var(--accent);
}

.footer-disputes {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-disputes p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.82rem;
}

.footer-disputes a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: underline;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

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

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

/* =========================================================
   Cookie banner
   ========================================================= */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: 760px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 20px 45px rgba(22, 35, 63, 0.18);
    padding: 1.5rem;
    z-index: 2000;
    display: none;
}

.cookie-banner.visible {
    display: block;
}

.cookie-banner-inner p {
    font-size: 0.9rem;
    margin-bottom: 1.1rem;
}

.cookie-banner-inner a {
    color: var(--accent-deep);
    font-weight: 600;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Cookie preferences modal */
.cookie-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(22, 35, 63, 0.55);
    z-index: 2100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.cookie-modal-overlay.visible {
    display: flex;
}

.cookie-modal {
    background: var(--white);
    border-radius: var(--radius);
    max-width: 520px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2rem;
}

.cookie-modal h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.cookie-modal-intro {
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
}

.cookie-category {
    border-top: 1px solid var(--line);
    padding: 1rem 0;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-family: var(--font-display);
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

.cookie-category p {
    font-size: 0.85rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--line);
    border-radius: 24px;
    transition: 0.2s;
}

.slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: var(--white);
    border-radius: 50%;
    transition: 0.2s;
}

.switch input:checked + .slider {
    background: var(--accent);
}

.switch input:checked + .slider::before {
    transform: translateX(18px);
}

.switch.disabled .slider {
    background: var(--success);
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* =========================================================
   Legal pages (Terms, Privacy, Cookies)
   ========================================================= */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 9rem 1.5rem 5rem;
}

.legal-page h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.legal-updated {
    color: var(--ink-soft);
    font-size: 0.85rem;
    margin-bottom: 2.5rem;
}

.legal-page h2 {
    font-size: 1.3rem;
    margin: 2.25rem 0 0.75rem;
}

.legal-page h3 {
    font-size: 1.05rem;
    margin: 1.5rem 0 0.5rem;
}

.legal-page p, .legal-page li {
    color: var(--ink-soft);
    font-size: 0.97rem;
    margin-bottom: 0.85rem;
}

.legal-page ul, .legal-page ol {
    padding-left: 1.4rem;
    margin-bottom: 1rem;
}

.legal-page a {
    color: var(--accent-deep);
    font-weight: 600;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
    font-size: 0.9rem;
}

.legal-table th, .legal-table td {
    border: 1px solid var(--line);
    padding: 0.6rem 0.75rem;
    text-align: left;
    color: var(--ink-soft);
}

.legal-table th {
    background: var(--white);
    color: var(--ink);
    font-family: var(--font-display);
}

.legal-notice {
    background: var(--accent-soft);
    border-left: 3px solid var(--accent);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.legal-notice p {
    color: var(--ink);
    font-size: 0.9rem;
    margin: 0;
}

.back-to-site {
    display: inline-block;
    margin-top: 2.5rem;
    font-weight: 600;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }
    .hero-visual {
        order: -1;
    }
    .contact-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    nav#mainNav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem 2rem;
        gap: 1.25rem;
        border-bottom: 1px solid var(--line);
        display: none;
    }
    nav#mainNav.open {
        display: flex;
    }
    .hero {
        padding: 7rem 1.25rem 3rem;
    }
    .hero-trust {
        gap: 1.5rem;
    }
    .process-track {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .process-track::before {
        display: none;
    }
    .benefits, .process, .pricing, .extras, .contact {
        padding: 3.5rem 1.25rem;
    }
}
