:root {
    --orange: #ff7a1a;
    --orange-dark: #cc5f10;
    --black: #111111;
    --gray-dark: #222222;
    --gray: #444444;
    --gray-light: #f2f2f2;
    --silver: #c0c0c0;
    --accent: #ffb347;
    --radius: 10px;
}

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #101010;
    color: #f5f5f5;
}

a {
    color: var(--orange);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

.page-wrapper {
    min-height: 80vh;
}

/* Header and nav */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 4vw;
    background: linear-gradient(90deg, #111111, #1e1e1e);
    border-bottom: 1px solid #222;
    position: sticky;
    top: 0;
    z-index: 20;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}
.logo-title {
    font-weight: 700;
    color: var(--orange);
}
.logo-subtitle {
    font-size: 0.85rem;
    color: #ddd;
}

.main-nav {
    display: flex;
    gap: 14px;
    align-items: center;
}
.main-nav a {
    color: #ddd;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.95rem;
}
.main-nav a.active,
.main-nav a:hover {
    background: #222;
    color: var(--orange);
}

.nav-cta .btn-whats {
    background: #25D366;
    color: #111;
    padding: 8px 14px;
    border-radius: 20px;
    font-weight: 600;
}

/* Hero */

.hero {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    padding: 40px 4vw;
    background-image: url('../assets/oficina_bg.jpg');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255,122,26,0.6), rgba(0,0,0,0.9));
}

.hero-content {
    position: relative;
    max-width: 640px;
    z-index: 1;
    color: #fff;
}
.hero h1 {
    font-size: 2.3rem;
    margin-bottom: 12px;
}
.hero p {
    margin-bottom: 16px;
    color: #eee;
}
.hero-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}
.hero-info {
    font-size: 0.9rem;
    color: #ddd;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Buttons */

.btn-primary,
.btn-secondary {
    display: inline-block;
    border: none;
    cursor: pointer;
    font-weight: 600;
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 0.95rem;
    text-align: center;
}

.btn-primary {
    background: var(--orange);
    color: #111;
}
.btn-primary:hover {
    background: var(--orange-dark);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid #555;
}
.btn-secondary:hover {
    border-color: var(--orange);
}

/* Sections */

.section {
    padding: 32px 4vw;
    background: #101010;
}
.section:nth-of-type(even) {
    background: #141414;
}
.section h1,
.section h2 {
    margin-bottom: 10px;
}
.section p {
    margin-bottom: 10px;
    color: #ddd;
}

.two-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 24px;
}

/* Grid */

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

/* Cards */

.service-card,
.feature-card,
.post-card,
.wiki-card,
.os-status-card {
    background: #181818;
    border-radius: var(--radius);
    padding: 16px;
    border: 1px solid #262626;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.service-icon,
.feature-icon {
    font-size: 1.8rem;
    margin-bottom: 6px;
}

.service-benefits {
    font-size: 0.9rem;
    color: #ccc;
    margin-top: 6px;
}

.link-more {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.9rem;
}

/* About */

.about-highlight ul {
    list-style: disc;
    margin-left: 18px;
}

/* Carrossel */

.banner-carousel {
    padding: 24px 4vw;
    background: #141414;
    position: relative;
}
.carousel-track {
    position: relative;
    overflow: hidden;
}
.carousel-item {
    display: none;
    position: relative;
}
.carousel-item img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: var(--radius);
}
.carousel-caption {
    position: absolute;
    bottom: 12px;
    left: 16px;
    right: 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    padding: 10px;
    border-radius: 0 0 var(--radius) var(--radius);
}
.carousel-caption h3 {
    margin-bottom: 4px;
}
.carousel-controls {
    position: absolute;
    top: 50%;
    right: 4vw;
    transform: translateY(-50%);
    display: flex;
    gap: 6px;
}
.carousel-prev,
.carousel-next {
    background: rgba(0,0,0,0.7);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
}

/* Map */

.map-embed iframe {
    border-radius: var(--radius);
}

/* Forms */

.form {
    max-width: 520px;
}
.form-row {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
}
.form-row label {
    margin-bottom: 4px;
    font-size: 0.9rem;
}
.form-row input,
.form-row textarea,
.form-row select {
    border-radius: 6px;
    border: 1px solid #444;
    padding: 8px;
    background: #111;
    color: #eee;
}

.inline-form {
    display: flex;
    gap: 10px;
    max-width: 420px;
    margin-top: 10px;
}
.inline-form input {
    flex: 1;
}

.alert {
    background: #1f2a1f;
    border-left: 4px solid var(--orange);
    padding: 8px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* Status badge */

.status-badge {
    background: var(--orange);
    color: #111;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.85rem;
}

/* Wiki */

.wiki-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}
.wiki-card h2,
.wiki-card h3 {
    margin-bottom: 6px;
}
.wiki-category-badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid #555;
    margin-top: 4px;
}
.wiki-article {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
    gap: 20px;
    margin-top: 12px;
}
.wiki-content {
    background: #181818;
    border-radius: var(--radius);
    padding: 12px;
}
.wiki-video iframe {
    width: 100%;
    border-radius: var(--radius);
}

/* Video thumbs */

.video-thumb {
    margin-top: 8px;
    position: relative;
    border-radius: var(--radius);
    border: 1px dashed #444;
    padding: 16px;
    cursor: pointer;
}
.video-thumb-inner {
    text-align: center;
    font-size: 0.85rem;
    color: #ccc;
}
.video-thumb-preview {
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    overflow: hidden;
}
.video-thumb-preview iframe {
    width: 100%;
    height: 100%;
}

/* Blog */

.post-card .post-date,
.post-date {
    font-size: 0.8rem;
    color: #aaa;
}

/* Footer */

.site-footer {
    padding: 20px 4vw;
    background: #0a0a0a;
    border-top: 1px solid #222;
}
.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}
.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 10px;
    font-size: 0.8rem;
    color: #888;
}

/* Chat widget */

.chat-widget {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 50;
}

.chat-toggle {
    border-radius: 999px;
    border: none;
    padding: 10px 16px;
    background: var(--orange);
    color: #111;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.6);
}

.chat-window {
    position: absolute;
    bottom: 50px;
    right: 0;
    width: 320px;
    max-height: 430px;
    background: #181818;
    border-radius: 12px;
    border: 1px solid #333;
    display: none;
    flex-direction: column;
    overflow: hidden;
}
.chat-window.open {
    display: flex;
}
.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #202020;
    border-bottom: 1px solid #333;
}
.chat-header span {
    font-size: 0.9rem;
}
.chat-close {
    border: none;
    background: transparent;
    color: #aaa;
    cursor: pointer;
    font-size: 1.2rem;
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    font-size: 0.85rem;
}
.chat-message {
    margin-bottom: 6px;
    padding: 6px 8px;
    border-radius: 10px;
    max-width: 85%;
}
.chat-user {
    align-self: flex-end;
    background: var(--orange);
    color: #111;
}
.chat-bot {
    align-self: flex-start;
    background: #262626;
    color: #f5f5f5;
}
.chat-form {
    display: flex;
    gap: 4px;
    padding: 6px;
    border-top: 1px solid #333;
}
.chat-form input {
    flex: 1;
    background: #111;
    border-radius: 999px;
    border: 1px solid #444;
    color: #eee;
    padding: 6px 10px;
    font-size: 0.85rem;
}
.chat-form button {
    border-radius: 999px;
    border: none;
    background: var(--orange);
    color: #111;
    font-size: 0.85rem;
    padding: 0 10px;
    cursor: pointer;
}
.chat-hint {
    font-size: 0.7rem;
    padding: 4px 8px;
    color: #aaa;
}
/* BOTÃO FLUTUANTE DO WHATSAPP */
.whatsapp-float {
  position: fixed;
  bottom: 55px;
  right: 25px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 22px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 100;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.8);
  animation: pulse 2.2s infinite;
  z-index: 999;
  transition: all 0.3s ease;
}

.whatsapp-float img {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.4));
}

.whatsapp-float:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(37, 211, 102, 1);
}

.whatsapp-text {
  font-family: "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0.5px;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 10px rgba(37, 211, 102, 0.6);
  }
  50% {
    box-shadow: 0 0 25px rgba(37, 211, 102, 1);
  }
  100% {
    box-shadow: 0 0 10px rgba(37, 211, 102, 0.6);
  }
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 15px;
    right: 15px;
    padding: 12px 18px;
    font-size: 16px;
  }
  .whatsapp-float img {
    width: 28px;
    height: 28px;
  }
}


/* Responsive */

@media (max-width: 768px) {
    .site-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    .two-columns,
    .wiki-article {
        grid-template-columns: 1fr;
    }
    .hero {
        min-height: 260px;
    }
    .hero h1 {
        font-size: 1.6rem;
    }
    .chat-window {
        width: 94vw;
    }
}
