/* ateliertaisuri.ro — Knife Sharpening Business */

:root {
    --bg-dark: #0f0f0f;
    --bg-card: #181818;
    --bg-elevated: #1f1f1f;
    --text: #e8e6e3;
    --text-muted: #9a968f;
    --accent: #c9a227;
    --accent-dim: #8b7324;
    --border: #2a2a2a;
    --font-display: "Cormorant Garamond", Georgia, serif;
    --font-body: "Outfit", system-ui, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg-dark);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #e0c04a;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 1.5rem;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.header.scrolled {
    border-color: var(--border);
}

.nav {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.02em;
}

.logo:hover {
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--text);
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 0.5rem;
}

.lang-btn {
    background: none;
    border: none;
    padding: 0.25rem 0.4rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
}

.lang-btn:hover {
    color: var(--text);
}

.lang-btn.active {
    color: var(--accent);
}

.lang-sep {
    color: var(--border);
    font-size: 0.8rem;
    user-select: none;
}

.nav-cart-wrap {
    display: flex;
    align-items: center;
}

.cart-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
}

.cart-icon {
    font-size: 1.35rem;
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 4px;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.1rem;
    text-align: center;
    color: var(--bg-dark);
    background: var(--accent);
    border-radius: 50%;
    visibility: hidden;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 15, 15, 0.95);
        padding: 1.5rem;
        border-bottom: 1px solid var(--border);
    }

    .nav-toggle {
        display: flex;
    }
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 1.5rem 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(15, 15, 15, 0.92) 0%, rgba(15, 15, 15, 0.75) 50%, rgba(15, 15, 15, 0.88) 100%),
        url('https://images.pexels.com/photos/35478609/pexels-photo-35478609.jpeg?auto=compress&cs=tinysrgb&w=1920') center / cover no-repeat;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
}

.hero-tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 1rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 1.25rem;
    color: var(--text);
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 0 0 2rem;
    max-width: 480px;
}

.btn {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: #e0c04a;
    transform: translateY(-1px);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent-dim), transparent);
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    margin: 0 0 2.5rem;
    color: var(--text);
}

/* Services */
.services {
    background: var(--bg-card);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 2rem;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
    border-color: var(--accent-dim);
    transform: translateY(-2px);
}

.service-icon {
    color: var(--accent);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--text);
}

.service-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* About */
.about {
    background: var(--bg-dark);
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-lead {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--text-muted);
    margin: 0 0 1rem;
}

.about-list {
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.about-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.about-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.about-visual {
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 440px;
}

.gallery-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.gallery-img:hover {
    transform: scale(1.03);
    border-color: var(--accent-dim);
}

@media (max-width: 768px) {
    .about-inner {
        grid-template-columns: 1fr;
    }

    .about-visual {
        min-height: 200px;
    }
}

/* Pricing */
.pricing {
    background: var(--bg-card);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.price-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 2rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.price-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    color: var(--text);
}

.price-detail {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: auto 0 0.5rem;
}

.price {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--accent);
    margin: 0;
}

.btn-add-cart {
    margin-top: 1.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.btn-add-cart:hover {
    border-color: var(--accent-dim);
    background: var(--bg-elevated);
}

.pricing-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.google-pay-block {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.google-pay-heading {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.35rem;
}

.google-pay-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0 0 1.25rem;
}

.google-pay-amount {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.google-pay-amount select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 0;
    cursor: pointer;
}

.google-pay-amount select:focus {
    outline: none;
    border-color: var(--accent-dim);
}

#google-pay-button-container {
    min-height: 40px;
}

#google-pay-button-container iframe {
    min-height: 40px !important;
}

.google-pay-unavailable {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Cart drawer */
body.cart-open {
    overflow: hidden;
}

.cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 199;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.cart-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    width: 100%;
    max-width: 380px;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.cart-drawer.is-open {
    transform: translateX(0);
}

.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.cart-drawer-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0;
    color: var(--text);
}

.cart-close {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    font-size: 1.5rem;
    line-height: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
}

.cart-close:hover {
    color: var(--text);
}

.cart-drawer-body {
    flex: 1;
    overflow: auto;
    padding: 1.5rem;
}

.cart-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cart-item {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 0.5rem;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.cart-item-name {
    color: var(--text);
}

.cart-item-qty {
    color: var(--text-muted);
}

.cart-item-price {
    color: var(--accent);
    font-weight: 500;
}

.cart-item-remove {
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    font-size: 1.2rem;
    line-height: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
}

.cart-item-remove:hover {
    color: var(--text);
}

.cart-empty {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.cart-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.cart-total-line {
    font-size: 1.1rem;
    margin: 0 0 1rem;
    color: var(--text);
}

.btn-checkout {
    width: 100%;
}

/* Checkout section */
.checkout-section {
    position: fixed;
    inset: 0;
    z-index: 201;
    background: var(--bg-dark);
    overflow: auto;
    padding: 5rem 1.5rem 3rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.checkout-section.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.checkout-container {
    max-width: 480px;
    margin: 0 auto;
}

.checkout-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0 0 1.5rem;
    color: var(--text);
}

.checkout-summary {
    margin-bottom: 1rem;
}

.checkout-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.checkout-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 0.95rem;
}

.checkout-total-line {
    font-size: 1.25rem;
    margin: 1rem 0 1.5rem;
    color: var(--text);
}

.checkout-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkout-actions #checkout-google-pay-container iframe {
    min-height: 40px !important;
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--text-muted);
}

@media (max-width: 600px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact */
.contact {
    background: var(--bg-dark);
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info p {
    color: var(--text-muted);
    margin: 0 0 1.5rem;
}

.contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-list li {
    margin-bottom: 1.25rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-list strong {
    color: var(--text);
    font-weight: 500;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0;
    transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-dim);
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form button {
    align-self: flex-start;
}

@media (max-width: 700px) {
    .contact-inner {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.footer {
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--bg-card);
}

.footer .container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.footer-social {
    margin: 0.25rem 0;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.2s ease;
}

.footer-social-link:hover {
    color: #1877F2;
}

.footer-social-icon {
    flex-shrink: 0;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
}

.footer-legal a {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-legal a:hover {
    color: var(--accent);
}

.footer-sep {
    color: var(--border);
    font-size: 0.85rem;
    user-select: none;
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.footer-payments {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-payments-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-card-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-card-icon {
    display: flex;
    align-items: center;
    padding: 0.2rem;
    border-radius: 4px;
    transition: opacity 0.2s ease;
}

.footer-card-icon:hover {
    opacity: 0.85;
}

.footer-card-icon .card-logo {
    display: block;
    height: 24px;
    width: auto;
}

.card-logo-visa {
    width: 36px;
}

.card-logo-mastercard {
    width: 28px;
}

.footer-anpc-sal {
    display: inline-block;
    line-height: 0;
    transition: opacity 0.2s ease;
}

.footer-anpc-sal:hover {
    opacity: 0.9;
}

.anpc-sal-banner {
    display: block;
    max-width: 280px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border);
}

/* Lightbox */
.lightbox {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    color: var(--accent);
}