/* ============================================
   Guia de Oficinas - Pedrinho Auto Peças
   Premium Design 2026
   ============================================ */

/* ============================================
   Reset & Variables
   ============================================ */
:root {
    /* Royal Blue & Gold Theme */
    --primary-900: #0f172a;
    /* Slate 900 - Deep Background */
    --primary-800: #1e293b;
    --primary-700: #334155;

    --white: #ffffff;
    --black: #000000;
    --transparent: transparent;

    --accent-500: #f59e0b;
    /* Amber 500 - Gold */
    --accent-600: #d97706;
    /* Amber 600 */
    --accent-400: #fbbf24;

    --blue-600: #2563eb;
    /* Royal Blue */
    --blue-700: #1d4ed8;

    /* Text Colors */
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --text-white: #ffffff;

    /* Backgrounds */
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-alt: #f1f5f9;

    /* Semantic */
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;

    /* Shadows (Premium/Soft) */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

    /* Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --ease-out: cubic-bezier(0.165, 0.84, 0.44, 1);
    --transition-fast: all 0.2s var(--ease-out);
    --transition-normal: all 0.3s var(--ease-out);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
}

/* ============================================
   Typography
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-main);
    letter-spacing: -0.025em;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

/* ============================================
   Layout & Container
   ============================================ */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.main-content {
    min-height: 80vh;
}

/* ============================================
   Components: Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition-normal);
    cursor: pointer;
    border: 2px solid transparent;
    letter-spacing: 0.01em;
}

.btn i {
    font-size: 1.1em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
    color: white;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, var(--blue-700), var(--blue-600));
}

.btn-secondary {
    background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
    color: white;
    box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background: white;
    color: var(--primary-900);
    border-color: white;
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--blue-600);
    color: var(--blue-600);
}

.btn-outline-primary:hover {
    background: var(--blue-600);
    color: white;
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* ============================================
   Components: Header
   ============================================ */
.header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.75rem 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand .logo {
    height: 88px;
    width: auto;
    filter: brightness(0) invert(1);
    /* Make logo white if it's black */
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.navbar-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

.navbar-nav a:hover,
.navbar-nav a.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* User Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 120%;
    right: 0;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    min-width: 220px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-fast);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-main);
    border-radius: var(--radius-md);
}

.dropdown-menu a:hover {
    background: var(--bg-surface-alt);
    color: var(--blue-600);
}

/* Toggler */
.navbar-toggler {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ============================================
   Section: Hero
   ============================================ */
.hero {
    position: relative;
    background: radial-gradient(circle at 10% 20%, rgb(30, 44, 75) 0%, rgb(15, 23, 42) 90%);
    padding: 6rem 0 8rem;
    color: white;
    text-align: center;
    overflow: hidden;
}

/* Abstract Background Shapes */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, rgba(0, 0, 0, 0) 60%);
    transform: rotate(30deg);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, rgba(0, 0, 0, 0) 60%);
    transform: rotate(-30deg);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-weight: 300;
}

/* Search Box - Floating */
.search-box {
    background: rgba(255, 255, 255, 0.98);
    padding: 0.75rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    display: inline-block;
    width: 100%;
    max-width: 900px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-form {
    display: grid;
    grid-template-columns: 2fr 1.5fr auto;
    gap: 0.5rem;
}

.search-input-group,
.search-location-group {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-surface-alt);
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
}

.search-input-group:focus-within,
.search-location-group:focus-within {
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.search-input-group i,
.search-location-group i {
    position: absolute;
    left: 1.25rem;
    color: var(--blue-600);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text-main);
    border-radius: var(--radius-lg);
}

.search-input:focus {
    outline: none;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-item i {
    font-size: 1.5rem;
    color: var(--accent-400);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-item strong {
    font-size: 2rem;
    display: block;
    line-height: 1;
}

.stat-item span {
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* ============================================
   Section: Featured Workshops (Cards)
   ============================================ */
.featured-workshops {
    padding: 6rem 0;
    background: var(--bg-body);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    color: var(--primary-900);
    position: relative;
    display: inline-block;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-top: 0.5rem;
}

.grid {
    display: grid;
    gap: 3rem;
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Workshop Card v2 */
.workshop-card {
    background: white;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.workshop-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: rgba(37, 99, 235, 0.1);
}

.workshop-card-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Gradient Overlay on Image */
.workshop-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.workshop-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg-surface);
    color: var(--accent-600);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: var(--shadow-md);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-body h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-900);
}

.workshop-location {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.workshop-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.workshop-meta {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bg-surface-alt);
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
}

.workshop-meta span i {
    color: var(--blue-600);
    margin-right: 0.25rem;
}

/* Browse All Banner */
.browse-all-banner {
    margin-top: 4rem;
    padding: 0;
}

.banner-content {
    background: linear-gradient(135deg, var(--primary-900), var(--blue-600));
    border-radius: var(--radius-2xl);
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    box-shadow: var(--shadow-2xl);
    position: relative;
    overflow: hidden;
}

.banner-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 1;
}

.banner-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.banner-icon i {
    font-size: 2.5rem;
    color: white;
}

.banner-text {
    flex: 1;
    position: relative;
    z-index: 2;
}

.banner-text h3 {
    font-size: 2rem;
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.banner-text p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.banner-content .btn {
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    background: white;
    color: var(--primary-900);
    font-weight: 600;
    padding: 1rem 2rem;
    white-space: nowrap;
}

.banner-content .btn:hover {
    background: var(--accent-50);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.banner-content .btn i {
    margin-left: 0.5rem;
}

/* ============================================
   Section: How it Works
   ============================================ */
.how-it-works {
    padding: 6rem 0;
    background: white;
}

.feature-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-2xl);
    background: var(--bg-surface-alt);
    transition: var(--transition-normal);
}

.feature-card:hover {
    background: white;
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2rem;
    font-size: 2rem;
    background: white;
    color: var(--blue-600);
    box-shadow: var(--shadow-md);
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    color: var(--primary-900);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ============================================
   Section: Call to Action
   ============================================ */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.cta-text p {
    font-size: 1.25rem;
    opacity: 0.9;
}

.cta-actions .btn {
    background: white;
    color: var(--accent-600);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cta-actions .btn:hover {
    background: var(--bg-surface-alt);
    transform: translateY(-2px) scale(1.05);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--primary-900);
    color: var(--text-light);
    padding: 5rem 0 2rem;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-section h4 {
    color: white;
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-fast);
    display: block;
    margin-bottom: 0.75rem;
}

.footer-section a:hover {
    color: var(--accent-400);
    transform: translateX(4px);
}

.social-links a {
    display: inline-flex;
    margin-right: 0.5rem;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: white;
    text-decoration: none;
    transition: var(--transition-fast);
}

.social-links a i {
    font-size: 1.1em;
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {

    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar-menu {
        display: none;
        /* Use JS to toggle */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-900);
        padding: 1rem;
        flex-direction: column;
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-toggler {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .search-form {
        grid-template-columns: 1fr;
    }

    .grid-cols-2 {
        grid-template-columns: 1fr;
    }

    .cta-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}