/* =========================================
   Krommax - Vulcanizare Timisoara Styles
   Design: Modern Auto (Carbon / Yellow)
   ========================================= */

:root {
    --bg-dark: #0f1115;
    --bg-darker: #08090b;
    --bg-card: #181b21;
    
    --brand-primary: #f5b301; /* Vibrant Yellow/Orange */
    --brand-primary-hover: #e0a300;
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    
    --border-color: #272a30;
    
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

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

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

:target {
    scroll-margin-top: 96px;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--brand-primary);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1100;
    padding: 12px 16px;
    transform: translateY(-160%);
    background: var(--brand-primary);
    color: #000;
    font-weight: 700;
    border-radius: 8px;
}

.skip-link:focus {
    transform: translateY(0);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--brand-primary);
    border-radius: 4px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--brand-primary);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--brand-primary-hover);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.btn-secondary {
    background-color: #272a30;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #373b44;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Header */
.header {
    background-color: rgba(8, 9, 11, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.logo-dot {
    color: var(--brand-primary);
}

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

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.nav a:hover {
    color: var(--brand-primary);
}

.header-contact {
    display: flex;
    gap: 1rem;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 100px;
    background: radial-gradient(circle at 80% 20%, #1e2229 0%, var(--bg-dark) 50%);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-visual {
    position: absolute;
    inset: 0 0 0 auto;
    width: min(64%, 1100px);
    overflow: hidden;
}

.hero-visual picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--bg-dark) 0%, rgba(15, 17, 21, 0.94) 30%, rgba(15, 17, 21, 0.72) 55%, rgba(15, 17, 21, 0.55) 100%);
    content: "";
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
}

.tldr-badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: rgba(245, 179, 1, 0.1);
    color: var(--brand-primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(245, 179, 1, 0.2);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero h1 span {
    color: var(--brand-primary);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

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

.business-summary {
    background-color: var(--bg-card);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--brand-primary);
    font-size: 0.95rem;
    color: var(--text-muted);
}

.business-summary strong {
    color: #fff;
}

/* Stats / Trust Bar */
.stats-bar {
    background-color: var(--bg-darker);
    border-bottom: 1px solid var(--border-color);
    padding: 36px 0;
}

.google-rating-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    text-align: center;
    margin-bottom: 28px;
    padding: 10px 18px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background-color: var(--bg-card);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-main);
    font-size: 0.9rem;
    transition: var(--transition);
}

.google-rating-badge:hover,
.google-rating-badge:focus-visible {
    border-color: var(--brand-primary);
    background-color: #1f232b;
}

.google-rating-stars {
    color: var(--brand-primary);
    letter-spacing: 2px;
    font-size: 1rem;
}

.google-rating-text strong {
    color: #fff;
}

.google-rating-arrow {
    color: var(--brand-primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--brand-primary);
    line-height: 1.1;
}

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

.stat-label small {
    display: block;
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 16px;
    }

    .stat-number {
        font-size: 1.7rem;
    }
}

/* Services */
.services {
    padding: 100px 0;
    background-color: var(--bg-darker);
}

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

.service-card {
    background-color: var(--bg-card);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.service-card:hover {
    border-color: rgba(245, 179, 1, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

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

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    color: var(--brand-primary);
    font-weight: 600;
}

.service-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Inner pages */
.page-hero {
    padding: 150px 0 72px;
    background: radial-gradient(circle at 80% 20%, #1e2229 0%, var(--bg-dark) 60%);
}

.page-hero h1 {
    max-width: 900px;
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    letter-spacing: -1px;
}

.page-hero p {
    max-width: 760px;
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.page-content {
    padding: 72px 0 100px;
}

.content-column {
    max-width: 860px;
    margin: 0 auto;
}

.content-photo {
    margin: 2rem 0;
}

.content-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 4px;
}

.content-photo figcaption {
    margin-top: 0.65rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.rim-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.rim-photo-grid figure {
    min-width: 0;
}

.rim-photo-grid img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 4px;
}

.rim-photo-grid figcaption {
    margin-top: 0.65rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .rim-photo-grid {
        grid-template-columns: 1fr;
    }
}

.content-column h2 {
    margin: 2.5rem 0 1rem;
    font-size: 1.8rem;
}

.content-column h2:first-child {
    margin-top: 0;
}

.content-column h3 {
    margin: 1.75rem 0 0.75rem;
    font-size: 1.25rem;
}

.content-column p,
.content-column li {
    color: var(--text-muted);
    font-size: 1rem;
}

.content-column p + p {
    margin-top: 1rem;
}

.content-column ul,
.content-column ol {
    margin: 1rem 0 1rem 1.4rem;
}

.content-column li + li {
    margin-top: 0.65rem;
}

.content-column a:not(.btn) {
    color: var(--brand-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.content-card {
    margin: 1.5rem 0;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.contact-actions,
.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.breadcrumb {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--brand-primary);
}

.site-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-top: 1.5rem;
}

.site-footer-nav a {
    color: var(--text-muted);
}

.site-footer-nav a:hover {
    color: var(--brand-primary);
}

/* Pricing Table */
.pricing {
    padding: 100px 0;
}

.table-container {
    overflow-x: auto;
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table th, .pricing-table td {
    padding: 20px 24px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.pricing-table th {
    background-color: rgba(0,0,0,0.2);
    font-weight: 600;
    color: #fff;
}

.pricing-table tr:last-child td {
    border-bottom: none;
}

.pricing-table td:not(:first-child) {
    font-weight: 600;
    color: var(--brand-primary);
}

.center-text {
    text-align: center !important;
}

.pricing-note {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pricing-note a {
    color: var(--brand-primary);
    font-weight: 600;
}

/* FAQ */
.faq-section {
    padding: 100px 0;
    background-color: var(--bg-darker);
}

.faq-group + .faq-group {
    margin-top: 40px;
}

.faq-group-title {
    margin: 0 0 16px;
    color: var(--text-main);
    font-size: 1.4rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.faq-card {
    background-color: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.faq-card h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--brand-primary);
}

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

.faq-index-card {
    grid-column: 1 / -1;
}

.faq-index-tables {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 16px 0;
}

.faq-index-table-container {
    min-width: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.faq-index-table {
    min-width: 260px;
    font-size: 0.9rem;
}

.faq-index-table caption {
    padding: 0 0 8px;
    color: var(--text-main);
    font-weight: 600;
    text-align: left;
}

.faq-index-table th,
.faq-index-table td {
    padding: 8px 12px;
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-dark);
}

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

.footer-info p {
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 300px;
}

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

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
    background-color: var(--brand-primary);
    color: var(--bg-dark);
}

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Mobile Action Bar */
.mobile-action-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    padding: 10px 16px;
    padding-bottom: env(safe-area-inset-bottom, 10px);
}

.action-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 8px;
}

.call-btn { background-color: var(--brand-primary); color: #000; }
.wa-btn { background-color: #075E54; color: #fff; }
.nav-btn { background-color: #174EA6; color: #fff; }

/* Responsive */
@media (max-width: 900px) {
    .header-container { justify-content: flex-end; gap: 1rem; }
    .logo { margin-right: auto; }
    .menu-toggle { display: flex; }
    .nav {
        display: none;
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;
        padding: 8px 24px 16px;
        flex-direction: column;
        gap: 0;
        background-color: rgba(8, 9, 11, 0.98);
        border-bottom: 1px solid var(--border-color);
    }
    .nav.is-open { display: flex; }
    .nav a { padding: 12px 0; }
    .hero h1 { font-size: clamp(2.5rem, 6vw, 3rem); }
    .footer-container { grid-template-columns: 1fr; }
    .faq-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
    .faq-index-tables { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero-buttons { flex-direction: column; }
    .header-contact { display: none; }

    .hero-visual { width: 100%; }
    .hero::after {
        background: linear-gradient(90deg, rgba(15, 17, 21, 0.94), rgba(15, 17, 21, 0.78)),
                    linear-gradient(0deg, var(--bg-dark), transparent);
    }
    
    /* Show mobile action bar */
    .mobile-action-bar {
        display: flex;
        gap: 10px;
    }
    
    body {
        padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    }
    
    .table-container {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
