/* ==========================================================================
   Idėjos 3D — global stylesheet
   Dark theme with vivid gradient accents, mobile-first responsive layout.
   ========================================================================== */

:root {
    --bg: #0b0b12;
    --bg-alt: #121220;
    --surface: #16162866;
    --surface-solid: #17172a;
    --border: #2a2a40;
    --text: #f2f2f7;
    --text-muted: #a1a1b5;
    --accent-1: #7c3aed;
    --accent-2: #06b6d4;
    --accent-3: #f43f5e;
    --gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    --gradient-warm: linear-gradient(135deg, var(--accent-3), var(--accent-1));
    --radius: 16px;
    --max-width: 1160px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', 'Inter', sans-serif;
    line-height: 1.2;
    margin: 0 0 0.5em;
}

a {
    color: inherit;
}

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

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

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

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 8px 24px -8px rgba(124, 58, 237, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent-2);
}

.btn-sm {
    padding: 0.5rem 1.1rem;
    font-size: 0.9rem;
    width: 100%;
}

/* ---------- Header / Nav ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 11, 18, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.navbar {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    position: relative;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    text-decoration: none;
    color: var(--text);
}

.logo span {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.75rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.15s ease;
}

.nav-links a:hover {
    color: var(--text);
}

.cart-link {
    position: relative;
}

.cart-count {
    background: var(--gradient);
    color: #fff;
    border-radius: 999px;
    font-size: 0.7rem;
    padding: 0.1rem 0.45rem;
    margin-left: 0.35rem;
}

.nav-toggle {
    display: none;
}

.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-burger span {
    width: 26px;
    height: 2px;
    background: var(--text);
}

/* ---------- Messages ---------- */

.messages {
    max-width: var(--max-width);
    margin: 1rem auto 0;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.message {
    padding: 0.85rem 1.1rem;
    border-radius: 10px;
    font-size: 0.95rem;
    border: 1px solid var(--border);
    background: var(--surface-solid);
}

.message--success {
    border-color: var(--accent-2);
}

.message--error {
    border-color: var(--accent-3);
}

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

.hero {
    position: relative;
    overflow: hidden;
    min-height: 88vh;
    display: flex;
    align-items: center;
    padding: 3rem 1.5rem;
    isolation: isolate;
}

.hero-visual {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 20% 20%, #1a1330 0%, var(--bg) 60%);
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    animation: float 12s ease-in-out infinite;
}

.hero-blob--1 {
    width: 420px;
    height: 420px;
    background: var(--accent-1);
    top: -80px;
    right: 10%;
}

.hero-blob--2 {
    width: 360px;
    height: 360px;
    background: var(--accent-2);
    bottom: -100px;
    left: 5%;
    animation-delay: -6s;
}

.hero-grid-lines {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at center, black, transparent 75%);
}

.hero-printer {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(92vw, 640px);
    height: auto;
    transform: translate(-50%, -50%);
    opacity: 0.32;
}

.hero-content {
    position: relative;
}

.hero-content::before {
    content: "";
    position: absolute;
    inset: -2rem -3rem;
    z-index: -1;
    background: radial-gradient(ellipse at center, rgba(11, 11, 18, 0.7) 0%, transparent 70%);
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -30px) scale(1.08); }
}

.hero-content {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Sections ---------- */

.section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.section-alt {
    background: var(--bg-alt);
    max-width: 100%;
}

.section-alt > * {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.section-narrow {
    max-width: 780px;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.section-link {
    color: var(--accent-2);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.page-header {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 1.5rem 1rem;
}

.page-header p {
    color: var(--text-muted);
}

.empty-state {
    color: var(--text-muted);
}

/* ---------- Product grid / cards ---------- */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-2);
}

.product-card-media img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.product-card-placeholder {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    background: var(--gradient);
    color: rgba(255, 255, 255, 0.85);
}

.product-card-placeholder--lg {
    aspect-ratio: 4 / 3;
    font-size: 3rem;
    border-radius: var(--radius);
}

.product-card-body {
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.product-card-body h3 {
    font-size: 1.05rem;
}

.product-card-body h3 a {
    text-decoration: none;
}

.price {
    font-weight: 700;
    color: var(--accent-2);
}

.price--lg {
    font-size: 1.6rem;
}

.badge--muted {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.category-filter {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.chip {
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    text-decoration: none;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.chip--active {
    background: var(--gradient);
    color: #fff;
    border-color: transparent;
}

/* ---------- Product detail ---------- */

.product-detail {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.product-detail-media {
    max-width: 500px;
    margin: 0 auto;
}

.product-detail-media img,
.product-detail-media .product-card-placeholder {
    border-radius: var(--radius);
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    color: var(--accent-2);
    font-weight: 600;
}

.add-to-cart-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.add-to-cart-form input[type="number"] {
    width: 80px;
}

/* ---------- Services ---------- */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
}

.service-icon {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
}

/* ---------- Testimonials & gallery ---------- */

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.testimonial-card {
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 0;
}

.stars {
    color: var(--accent-2);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.testimonial-card footer {
    margin-top: 0.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.gallery-item img {
    border-radius: var(--radius);
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* ---------- Blog ---------- */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.blog-card {
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    min-height: 180px;
    overflow: hidden;
}

.blog-card img {
    border-radius: 10px;
    margin: 0 1.25rem 0.75rem 0;
    width: 120px;
    height: 120px;
    object-fit: contain;
    background: var(--surface);
    float: left;
    flex-shrink: 0;
}

.blog-card a {
    text-decoration: none;
}

.blog-post-cover {
    border-radius: var(--radius);
    margin: 0 1.5rem 1.5rem 0;
    width: 40%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
    float: left;
}

/* ---------- Forms ---------- */

.form-card {
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-row label {
    font-weight: 600;
    font-size: 0.9rem;
}

.form-row input,
.form-row select,
.form-row textarea {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--accent-2);
}

.field-help {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

.field-error {
    color: var(--accent-3);
    font-size: 0.85rem;
    margin: 0;
}

/* ---------- FAQ ---------- */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
}

.faq-item p {
    color: var(--text-muted);
    margin: 0.75rem 0 0;
}

/* ---------- About & contact ---------- */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
    align-items: center;
}

.checklist {
    padding-left: 1.2rem;
    color: var(--text-muted);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.contact-details {
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    color: var(--text-muted);
}

/* ---------- Cart ---------- */

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.cart-table th,
.cart-table td {
    text-align: left;
    padding: 0.85rem;
    border-bottom: 1px solid var(--border);
}

.cart-total {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-alt);
    margin-top: 4rem;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--text);
}

.footer-copy {
    width: 100%;
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
    .about-grid,
    .contact-grid,
    .product-detail {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .nav-burger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface-solid);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 1.5rem;
        gap: 1rem;
        display: none;
    }

    .nav-toggle:checked ~ .nav-links {
        display: flex;
    }
}

