/* ====================================
   FORJA — Premium Design System
   ================================= */

/* --- CSS Custom Properties --- */
:root {
    /* Core palette – dark industrial with hot accent */
    --bg-primary:    #0a0a0f;
    --bg-secondary:  #111118;
    --bg-card:       #16161f;
    --bg-card-hover: #1c1c28;
    --bg-elevated:   #1e1e2a;

    --text-primary:   #f0f0f5;
    --text-secondary: #9a9ab0;
    --text-muted:     #5e5e76;

    --accent:        #f97316;      /* bold orange – forge fire */
    --accent-light:  #fb923c;
    --accent-dark:   #ea580c;
    --accent-glow:   rgba(249, 115, 22, 0.35);

    --border:        rgba(255, 255, 255, 0.06);
    --border-hover:  rgba(255, 255, 255, 0.12);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body:    'Space Grotesk', sans-serif;

    /* Spacing */
    --section-py: clamp(4.5rem, 10vw, 8rem);
    --container-px: clamp(1.25rem, 4vw, 3rem);
    --container-max: 1200px;
    
    /* Layout with fixed logo */
    --left-sidebar-w: clamp(250px, 30vw, 450px);

    /* Radius */
    --radius-sm:  8px;
    --radius-md:  14px;
    --radius-lg:  20px;
    --radius-xl:  28px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --duration: 0.4s;

    /* Header */
    --header-h: 72px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.15;
    font-weight: 700;
}

::selection {
    background: var(--accent);
    color: var(--bg-primary);
}

/* --- Utility --- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-px);
}

.section-padding {
    padding: var(--section-py) 0;
}

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

/* ====================================
   GIANT FIXED LOGO
   ================================= */
.fixed-giant-logo {
    position: fixed;
    top: 50%;
    left: 2rem;
    transform: translateY(-50%);
    width: var(--left-sidebar-w);
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    z-index: 10;
    pointer-events: none; /* Let clicks pass through empty spaces */
}

.giant-logo-img {
    height: auto;
    width: auto;
    max-width: 90%;
    max-height: 52vh;
    object-fit: contain;
    filter: drop-shadow(0 0 40px rgba(249, 115, 22, 0.3))
            drop-shadow(0 0 80px rgba(220, 38, 38, 0.15));
    animation: logoFloat 6s ease-in-out infinite;
    z-index: 2;
    position: relative;
}

.fixed-contact-cards {
    width: 100%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    pointer-events: auto; /* Make buttons clickable */
    z-index: 2;
    position: relative;
    margin-top: -2rem;
}

.fixed-logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, rgba(220, 38, 38, 0.05) 40%, transparent 70%);
    z-index: 1;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-15px); }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
    50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.1); }
}

/* ====================================
   MAIN LAYOUT ADJUSTMENT
   ================================= */
.main-content-wrapper {
    position: relative;
    z-index: 20; /* Above the fixed logo */
    margin-left: calc(var(--left-sidebar-w) + 2rem);
    background: var(--bg-primary);
    box-shadow: -20px 0 50px rgba(0,0,0,0.5); /* separation shadow */
}

/* ====================================
   HEADER
   ================================= */
.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid var(--border);
    transition: background var(--duration) var(--ease-out),
                box-shadow var(--duration) var(--ease-out);
    /* Adjust header width based on wrapper */
    left: calc(var(--left-sidebar-w) + 2rem);
    width: calc(100% - var(--left-sidebar-w) - 2rem);
}

.header.scrolled {
    background: rgba(10, 10, 15, 0.92);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 0.12em;
    color: var(--text-primary);
    cursor: pointer;
}

.logo-img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

/* Nav */
.nav ul {
    display: flex;
    gap: 0.25rem;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: color var(--duration) var(--ease-out),
                background var(--duration) var(--ease-out);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.nav-link.cta-link {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    font-weight: 600;
}

.nav-link.cta-link:hover {
    filter: brightness(1.12);
    box-shadow: 0 0 24px var(--accent-glow);
}

/* Mobile toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
}

.mobile-toggle .bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.mobile-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ====================================
   HERO
   ================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 40% at 50% 55%, rgba(249, 115, 22, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse 40% 35% at 50% 60%, rgba(220, 38, 38, 0.10) 0%, transparent 55%),
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(249, 115, 22, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 80% 70%, rgba(220, 38, 38, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-primary) 0%, rgba(10, 10, 15, 0.92) 40%, var(--bg-primary) 100%);
}

/* Animated particles (canvas injected by JS) */
.hero-particles {
    position: absolute;
    inset: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: calc(var(--header-h) + 2rem) var(--container-px) 4rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.3rem;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-light);
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.18);
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s var(--ease-out) 0.3s both;
}

.hero-title {
    font-size: clamp(2.6rem, 7vw, 5rem);
    font-weight: 900;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
}

.hero-title-line {
    display: block;
    animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
}

.hero-title-line.accent {
    background: linear-gradient(135deg, var(--accent-light), var(--accent), var(--accent-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation-delay: 0.55s;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    animation: fadeInUp 0.8s var(--ease-out) 0.7s both;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s var(--ease-out) 0.9s both;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--duration) var(--ease-out);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(249, 115, 22, 0.45);
}

.btn-primary:hover i {
    transform: translateX(3px);
}

.btn-primary i {
    transition: transform 0.3s var(--ease-out);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-hover);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    margin-top: 4rem;
    animation: fadeInUp 0.8s var(--ease-out) 1.1s both;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    color: var(--text-primary);
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.25rem;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-hover);
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    animation: fadeInUp 0.8s var(--ease-out) 1.4s both;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* ====================================
   SECTION HEADERS
   ================================= */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 1rem auto 0;
    font-size: 1rem;
}

/* ====================================
   ABOUT
   ================================= */
.about {
    background: var(--bg-secondary);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
}

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

.about-lead {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.about-lead strong {
    color: var(--accent-light);
}

.about-text > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    transition: all var(--duration) var(--ease-out);
}

.about-feature:hover {
    border-color: var(--accent-glow);
    background: rgba(249, 115, 22, 0.04);
    transform: translateX(6px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(249, 115, 22, 0.05));
    color: var(--accent);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.about-feature h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.about-feature p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* About Visual – Card Stack */
.about-visual {
    display: flex;
    justify-content: center;
}

.about-card-stack {
    position: relative;
    width: 280px;
    height: 340px;
}

.about-card {
    position: absolute;
    width: 240px;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
    will-change: transform;
}

.about-card i {
    font-size: 2rem;
    color: var(--accent);
}

.about-card.card-1 {
    top: 0;
    left: 0;
    z-index: 3;
    transform: rotate(-6deg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.about-card.card-2 {
    top: 30px;
    left: 50px;
    z-index: 2;
    transform: rotate(2deg);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.about-card.card-3 {
    top: 60px;
    left: 20px;
    z-index: 1;
    transform: rotate(8deg);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.about-card-stack:hover .card-1 {
    transform: rotate(-12deg) translateY(-10px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.about-card-stack:hover .card-2 {
    transform: rotate(6deg) translateX(20px);
}

.about-card-stack:hover .card-3 {
    transform: rotate(14deg) translateY(10px);
}

/* ====================================
   SERVICES
   ================================= */
.services {
    background: var(--bg-primary);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.service-card {
    position: relative;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all var(--duration) var(--ease-out);
}

.service-card:hover {
    border-color: rgba(249, 115, 22, 0.25);
    background: var(--bg-card-hover);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                0 0 40px var(--accent-glow);
}

.service-card-glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 70% 30%, var(--accent-glow), transparent 60%);
    opacity: 0;
    transition: opacity 0.6s var(--ease-out);
    pointer-events: none;
}

.service-card:hover .service-card-glow {
    opacity: 0.15;
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(249, 115, 22, 0.05));
    color: var(--accent);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    transition: transform var(--duration) var(--ease-out),
                box-shadow var(--duration) var(--ease-out);
}

.service-card:hover .service-icon {
    transform: scale(1.08);
    box-shadow: 0 0 24px var(--accent-glow);
}

.service-number {
    position: absolute;
    top: 1.75rem;
    right: 2rem;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    pointer-events: none;
    transition: color var(--duration) var(--ease-out);
}

.service-card:hover .service-number {
    color: rgba(249, 115, 22, 0.08);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.service-card > p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-tags li {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    border: 1px solid var(--border);
    transition: all var(--duration) var(--ease-out);
}

.service-card:hover .service-tags li {
    border-color: rgba(249, 115, 22, 0.15);
    color: var(--text-secondary);
}

/* ====================================
   CONTACT
   ================================= */
.contact {
    background: var(--bg-secondary);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 700px;
    margin: 0 auto;
    gap: 3rem;
    align-items: start;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all var(--duration) var(--ease-out);
    width: 100%;
    box-sizing: border-box;
}

.contact-card:hover {
    border-color: rgba(249, 115, 22, 0.2);
    transform: translateX(6px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-card-icon.instagram {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    color: #fff;
}

.contact-card-icon.email {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
}

.contact-card-icon.whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
}

.contact-card-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.contact-card-info span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.contact-card-arrow {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: transform 0.3s var(--ease-out), color 0.3s;
}

.contact-card:hover .contact-card-arrow {
    color: var(--accent);
    transform: translate(2px, -2px);
}

/* Contact Form */
.contact-form-wrapper {
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
}

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

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color var(--duration) var(--ease-out),
                box-shadow var(--duration) var(--ease-out);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239a9ab0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ====================================
   FOOTER
   ================================= */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 3rem var(--container-px);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: color 0.3s;
}

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

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 1rem;
    transition: all 0.3s var(--ease-out);
}

.footer-social a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1.5rem var(--container-px);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ====================================
   WHATSAPP FAB
   ================================= */
.whatsapp-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 900;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
    transition: all 0.3s var(--ease-out);
    opacity: 0;
    transform: scale(0.8) translateY(20px);
}

.whatsapp-fab.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.whatsapp-fab:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

/* ====================================
   REVEAL ANIMATIONS
   ================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ====================================
   KEYFRAMES
   ================================= */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50%      { opacity: 0.4; transform: scaleY(0.6); }
}

/* ====================================
   RESPONSIVE
   ================================= */
@media screen and (max-width: 992px) {
    /* Mudar layout da logo gigante no mobile */
    .fixed-giant-logo {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        height: auto;
        padding: 6rem 2rem 2rem;
        background: var(--bg-primary);
    }
    .giant-logo-img {
        max-width: 250px;
    }
    
    .main-content-wrapper {
        margin-left: 0;
        box-shadow: none;
    }
    
    .header {
        left: 0;
        width: 100%;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-visual {
        order: -1;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        inset: 0;
        z-index: 999;
        background: rgba(10, 10, 15, 0.97);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 6rem;
        padding-bottom: 2rem;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s var(--ease-out), visibility 0.4s;
    }

    .nav.open {
        opacity: 1;
        visibility: visible;
    }

    .nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .nav-link {
        font-size: 1.5rem;
        padding: 0.75rem 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-number,
    .stat-suffix {
        font-size: 1.5rem !important;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .about-card-stack {
        width: 220px;
        height: 280px;
    }

    .about-card {
        width: 200px;
        padding: 2rem 1.5rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }
}

/* ====================================
   CATALOG PAGE (FERRAMENTAS)
   ================================= */
.catalog-page {
    padding-top: var(--header-h);
}

.catalog-hero {
    text-align: center;
    padding: 4rem 1rem 2rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
}

.catalog-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

.catalog-subtitle {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.catalog-section {
    padding: 4rem 0;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.brand-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.1em;
}

.brand-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border), var(--accent-glow));
}

.brand-line:last-child {
    background: linear-gradient(270deg, var(--border), var(--accent-glow));
}

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

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--duration) var(--ease-out), box-shadow var(--duration);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.3);
}

.product-img-wrap {
    height: 200px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border);
}

.product-placeholder {
    color: var(--text-muted);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-placeholder i {
    font-size: 2.5rem;
    color: rgba(249, 115, 22, 0.2);
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-brand {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex: 1;
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.qty-control {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    height: 40px;
}

.qty-btn {
    width: 32px;
    height: 100%;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.qty-input {
    width: 40px;
    height: 100%;
    background: none;
    border: none;
    color: var(--text-primary);
    text-align: center;
    font-weight: 600;
    font-family: var(--font-body);
    outline: none;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.add-to-cart-btn {
    flex: 1;
    padding: 0 1rem;
    height: 40px;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* ====================================
   CART SIDEBAR & HEADER BADGE
   ================================= */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: background 0.3s;
}

.cart-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
    transition: transform 0.3s;
}

.cart-badge.pop {
    transform: scale(1.3);
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--bg-card);
    z-index: 1060;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    transition: right 0.4s var(--ease-out);
    border-left: 1px solid var(--border);
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.cart-header h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
}

.cart-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: color 0.3s;
}

.cart-close:hover {
    color: var(--accent);
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    position: relative;
}

.cart-empty-msg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-muted);
    width: 100%;
}

.cart-empty-msg i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.cart-item-info span {
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 600;
}

.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.cart-item-remove:hover {
    text-decoration: underline;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--bg-card);
}

.cart-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

/* ====================================
   ADMIN PANEL STYLING
   ================================= */
.admin-login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - var(--header-h));
}

.admin-login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.login-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.dashboard-header-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.dashboard-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 2rem;
    align-items: start;
}

.dashboard-panel-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.dashboard-panel-card h3 {
    font-size: 1.25rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.75rem;
}

/* Inventory Table */
.inventory-table-wrap {
    overflow-x: auto;
}

.inventory-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.inventory-table th {
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.inventory-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.badge-brand {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent-light);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Table Qty Controls */
.table-qty-control {
    display: inline-flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    height: 32px;
}

.table-qty-btn {
    width: 28px;
    height: 100%;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.table-qty-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.stock-display {
    width: 32px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.delete-prod-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s, transform 0.2s;
}

.delete-prod-btn:hover {
    color: #ef4444;
    transform: scale(1.1);
}

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

@media (max-width: 576px) {
    .admin-login-card {
        padding: 1.5rem;
    }
}

/* ====================================
   ADMIN TABS & LAYOUT OVERRIDES
   ================================= */
.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.75rem 1.25rem;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    box-shadow: 0 4px 15px var(--accent-glow);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ====================================
   PDF PREVIEW (A4 SHEET) STYLE
   ================================= */
.sidebar-logged-in {
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    pointer-events: auto; /* Enable scroll and clicks on the PDF preview */
}

/* Custom scrollbar for PDF sidebar */
.sidebar-logged-in::-webkit-scrollbar {
    width: 6px;
}
.sidebar-logged-in::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}
.sidebar-logged-in::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}
.sidebar-logged-in::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.pdf-container {
    width: 100%;
    max-width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    padding: 0.5rem;
}

.pdf-sheet {
    background: #ffffff;
    color: #1a1a1a !important;
    width: 100%;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-radius: var(--radius-sm);
    font-family: Arial, sans-serif;
    line-height: 1.3;
    font-size: 0.7rem; /* compact on preview screen */
}

/* Target elements inside sheet to have black text */
.pdf-sheet, 
.pdf-sheet h1, 
.pdf-sheet h2, 
.pdf-sheet h3, 
.pdf-sheet h4, 
.pdf-sheet strong, 
.pdf-sheet span, 
.pdf-sheet td, 
.pdf-sheet th, 
.pdf-sheet p {
    color: #111111 !important;
}

/* PDF Header */
.pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #000;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.pdf-header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pdf-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.pdf-brand-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.pdf-header-right {
    text-align: right;
    font-size: 0.6rem;
    color: #555 !important;
}

.pdf-main-title {
    font-size: 0.95rem;
    font-weight: 800;
    text-align: center;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

/* PDF Metadata */
.pdf-meta-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.75rem;
}

.pdf-meta-row {
    margin-bottom: 0.25rem;
}

/* PDF Table */
.pdf-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.pdf-table th {
    background: #f1f3f5;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.65rem;
    border: 1px solid #dee2e6;
    padding: 0.4rem 0.5rem;
    text-align: left;
}

.pdf-table td {
    border: 1px solid #dee2e6;
    padding: 0.4rem 0.5rem;
}

.pdf-table tfoot td {
    border: 1px solid #dee2e6;
    background: #f8f9fa;
    padding: 0.5rem;
}

/* PDF Description Section */
.pdf-description-section {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0.75rem;
    margin-bottom: 1rem;
}

.pdf-description-section h4 {
    font-size: 0.75rem;
    border-bottom: 1px dashed #dee2e6;
    padding-bottom: 0.15rem;
}

/* PDF Terms / Footer text */
.pdf-terms {
    border-top: 1px solid #dee2e6;
    padding-top: 0.75rem;
    font-size: 0.52rem;
    color: #666 !important;
}

.pdf-terms-block {
    margin-bottom: 0.5rem;
}

.pdf-terms-block strong {
    display: block;
    margin-bottom: 0.1rem;
}

.pdf-terms-block p {
    margin: 0;
    line-height: 1.4;
}

/* ====================================
   PRINT RULES (@media print)
   ================================= */
@media print {
    @page { margin: 0; }
    
    /* Hide scrollbars & set full page */
    html, body {
        background: #ffffff !important;
        color: #000000 !important;
        height: auto !important;
        overflow: visible !important;
    }

    /* Hide website UI elements */
    .header, 
    .nav, 
    .admin-tabs, 
    .dashboard-header-block, 
    .main-content-wrapper, 
    .mobile-toggle, 
    .whatsapp-fab, 
    .sidebar-logged-out {
        display: none !important;
    }

    /* Expand sidebar to full page width */
    .fixed-giant-logo {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: auto !important;
        transform: none !important;
        background: #ffffff !important;
        padding: 0 !important;
        z-index: 9999 !important;
        pointer-events: auto !important;
        box-shadow: none !important;
        margin: 0 !important;
    }

    .sidebar-logged-in {
        display: block !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .pdf-container {
        background: #ffffff !important;
        padding: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .pdf-sheet {
        border: none !important;
        box-shadow: none !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 1cm !important;
        margin: 0 !important;
        border-radius: 0 !important;
        font-size: 11pt !important; /* expand to standard printable size */
    }

    /* Expand sub sections font for printing */
    .pdf-main-title {
        font-size: 16pt !important;
    }
    .pdf-brand-title {
        font-size: 22pt !important;
    }
    .pdf-meta-section {
        font-size: 11pt !important;
    }
    .pdf-table th {
        font-size: 10pt !important;
        background: #f1f3f5 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .pdf-table td {
        font-size: 10pt !important;
    }
    .pdf-description-section h4 {
        font-size: 11pt !important;
    }
    .pdf-description-section p {
        font-size: 10pt !important;
    }
    .pdf-terms {
        font-size: 8pt !important;
    }
    .pdf-logo {
        width: 100px !important;
        height: 100px !important;
    }
}

/* ====================================
   3D PRINTING SHOWCASE & GALLERY
   ================================= */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.showcase-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.showcase-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(249, 115, 22, 0.12);
    border-color: var(--accent);
}

.showcase-img-wrap {
    width: 100%;
    height: auto;
    overflow: hidden;
    background: var(--bg-secondary);
    position: relative;
}

.showcase-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.6s ease;
}

.showcase-card:hover .showcase-img-wrap img {
    transform: scale(1.05);
}

.showcase-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.showcase-info h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.showcase-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Floating WhatsApp / Quote Button */
.floating-quote-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff !important;
    padding: 1rem 1.75rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.35);
    z-index: 999;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: floatBtnPulse 2s infinite;
}

.floating-quote-btn:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5);
    background: linear-gradient(135deg, #2ae771, #16a394);
}

.floating-quote-btn i {
    font-size: 1.4rem;
}

@keyframes floatBtnPulse {
    0% {
        box-shadow: 0 8px 30px rgba(37, 211, 102, 0.35);
    }
    50% {
        box-shadow: 0 8px 45px rgba(37, 211, 102, 0.6);
    }
    100% {
        box-shadow: 0 8px 30px rgba(37, 211, 102, 0.35);
    }
}

@media (max-width: 768px) {
    .floating-quote-btn span {
        display: none;
    }
    .floating-quote-btn {
        padding: 1rem;
        right: 1.5rem;
        bottom: 1.5rem;
        border-radius: 50%;
    }
}

/* ====================================
   3D PRINTING MATERIALS LIST
   ================================= */
.materials-list-vertical {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.material-row-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.material-row-item:hover {
    border-color: var(--accent);
    box-shadow: 0 5px 15px rgba(249, 115, 22, 0.05);
}

.material-badge-col {
    flex: 0 0 220px;
}

.material-desc-col {
    flex: 1;
}

.material-badge-col span {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.material-desc-col p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .material-row-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem;
    }
    .material-badge-col {
        flex: 0 0 auto;
        width: 100%;
    }
}

/* ====================================
   MOBILE ADMIN PREVIEW FLOATING BUTTON & OVERLAY
   ================================= */
.floating-pdf-btn {
    display: none;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--accent);
    color: #ffffff;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.4);
    z-index: 9999;
    cursor: pointer;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.floating-pdf-btn i {
    font-size: 1.1rem;
}

.floating-pdf-btn:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.5);
}

@media screen and (max-width: 992px) {
    /* Hide the admin sidebar entirely on mobile/tablet by default */
    #admin-sidebar {
        display: none !important;
    }
    
    /* Make the content wrapper take up full width on mobile/tablet */
    .main-content-wrapper {
        margin-left: 0 !important;
        box-shadow: none !important;
    }
    
    /* Show the floating button when user is logged in as admin */
    body.logged-in-admin .floating-pdf-btn {
        display: flex !important;
    }
    
    /* When active, show the sidebar as a full screen overlay */
    #admin-sidebar.active-mobile-pdf {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        z-index: 99999 !important;
        background: rgba(10, 10, 15, 0.98) !important;
        padding: 5rem 1rem 2rem !important; /* pad from the header */
        overflow-y: auto !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        transform: none !important;
    }
    
    /* Show the close button on mobile inside the overlay */
    #admin-sidebar.active-mobile-pdf .mobile-pdf-close-btn {
        display: flex !important;
    }
    
    /* Ensure PDF Sheet fits nicely inside full screen mobile view */
    #admin-sidebar.active-mobile-pdf .pdf-container {
        width: 100% !important;
        max-width: 600px !important;
    }
    
    #admin-sidebar.active-mobile-pdf .pdf-sheet {
        width: 100% !important;
        height: auto !important;
        min-height: 800px !important;
        padding: 1.5rem !important;
        font-size: 0.7rem !important;
    }
}

@media (max-width: 576px) {
    /* Form fields stack vertically in two-column rows to prevent squishing */
    .form-group-row {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
    
    /* Action buttons in budget generator stack vertically on mobile */
    .cart-actions-container {
        flex-direction: column !important;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* New PDF proposal layout styles */
.pdf-meta-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
}
.pdf-meta-left {
    flex: 1;
}
.pdf-meta-right {
    text-align: right;
    width: 220px;
}
.pdf-totals-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.75rem;
    line-height: 1.4;
}
.pdf-totals-row {
    display: flex;
    justify-content: flex-end;
    width: 250px;
    margin-bottom: 0.15rem;
}
.pdf-totals-label {
    text-align: right;
    font-weight: bold;
    flex: 1;
    padding-right: 1.5rem;
}
.pdf-totals-value {
    text-align: right;
    width: 100px;
    padding-right: 0.5rem;
}
.pdf-totals-final {
    font-size: 1.15rem;
    font-weight: 800;
    margin-top: 0.35rem;
    border-top: 1.5px solid #111;
    padding-top: 0.35rem;
}

/* PDF Boxes (gray headers) */
.pdf-box {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-bottom: 1rem;
    overflow: hidden;
    background: #fff;
}
.pdf-box-header {
    background: #f1f3f5;
    padding: 0.4rem 0.6rem;
    font-weight: bold;
    font-size: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}
.pdf-box-body {
    padding: 0.6rem;
    font-size: 0.7rem;
    color: #333 !important;
    line-height: 1.4;
}
.pdf-box-body p {
    margin: 0 0 0.25rem 0;
}
.pdf-box-body p:last-child {
    margin: 0;
}

/* Modern Grid Layout */
.pdf-grid-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 0.75rem;
    margin-bottom: 1rem;
}
.pdf-grid-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0.4rem 0.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
}
.pdf-grid-card strong {
    color: #111;
}
.pdf-grid-card span {
    color: #333 !important;
}

/* Print Specific adjustments */
@media print {
    .pdf-totals-final {
        font-size: 16pt !important;
    }
    .pdf-box-header {
        font-size: 11pt !important;
        background: #f1f3f5 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .pdf-box-body {
        font-size: 10pt !important;
    }
    .pdf-grid-card {
        font-size: 10pt !important;
        background: #f8f9fa !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}




