/* =============================================
   Dev Tech MS — site.css
   Paleta: Navy #0f2236 | Teal #2e8b6e | Orange #e07820
   ============================================= */

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

:root {
    --navy:        hsl(207, 58%, 12%);
    --navy-mid:    hsl(207, 50%, 21%);
    --teal:        hsl(155, 51%, 36%);
    --orange:      hsl(28, 81%, 50%);
    --bg:          #ffffff;
    --bg-muted:    hsl(210, 20%, 96%);
    --fg:          hsl(207, 50%, 13%);
    --fg-muted:    hsl(207, 20%, 40%);
    --border:      hsl(210, 20%, 90%);
    --card-bg:     #ffffff;
    --radius:      0.75rem;
    --font-sans:   'Exo 2', sans-serif;
    --font-mono:   'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
}

.teal  { color: var(--teal); }
.text-center { text-align: center; }

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- HEADER ---------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    transition: background .3s, backdrop-filter .3s, box-shadow .3s;
}

.site-header.scrolled {
    background: rgba(15, 34, 54, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px rgba(0,0,0,.3);
}

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

.logo { text-decoration: none; display: flex; gap: .25rem; }
.logo-dev  { font-size: 1.25rem; font-weight: 800; color: var(--teal); }
.logo-rest { font-size: 1.25rem; font-weight: 800; color: #fff; }

.desktop-nav { display: flex; gap: 2rem; }
.desktop-nav a {
    color: rgba(255,255,255,.8);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    transition: color .2s;
}
.desktop-nav a:hover { color: var(--teal); }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    background: rgba(15,34,54,.97);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(46,139,110,.2);
    padding: 0 1.5rem 1rem;
}

.mobile-nav.open { display: flex; }

.mobile-nav-link {
    display: block;
    padding: .75rem 0;
    color: rgba(255,255,255,.8);
    text-decoration: none;
    font-size: .95rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(46,139,110,.1);
    transition: color .2s;
}
.mobile-nav-link:last-child { border-bottom: none; }
.mobile-nav-link:hover { color: var(--teal); }

/* ---------- Shared section helpers ---------- */
.section { padding: 6rem 0; }
.bg-white { background: var(--bg); }
.bg-muted  { background: var(--bg-muted); }

.section-eyebrow {
    font-family: var(--font-mono);
    font-size: .8rem;
    letter-spacing: .15em;
    color: var(--teal);
    margin-bottom: .5rem;
    display: block;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--fg);
    margin-bottom: 2rem;
}

.section-text {
    font-size: 1.05rem;
    color: var(--fg-muted);
    max-width: 720px;
    margin: 0 auto 1.25rem;
    line-height: 1.8;
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
    animation: fadeUp .6s ease-out forwards;
    opacity: 0;
}

@keyframes bounce {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}
.animate-bounce { animation: bounce 1.5s infinite; }

.fade-in-view {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease-out, transform .7s ease-out;
}
.fade-in-view.in-view { opacity: 1; transform: translateY(0); }

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

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(46,139,110,.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46,139,110,.07) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 600px; height: 600px;
    border-radius: 50%;
    background: rgba(46,139,110,.05);
    filter: blur(120px);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 8rem 1.5rem 4rem;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-size: 1.1rem;
    color: rgba(255,255,255,.7);
    line-height: 1.75;
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.highlight-badge {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(46,139,110,.2);
    border-radius: var(--radius);
    padding: .5rem 1rem;
    font-size: .875rem;
    color: rgba(255,255,255,.8);
}

.btn-orange {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--orange);
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    text-decoration: none;
    transition: background .2s;
}
.btn-orange:hover { background: hsl(28, 81%, 42%); }

.hero-arrow {
    margin-top: 3.5rem;
    color: rgba(46,139,110,.5);
    font-size: 1.5rem;
}

/* ---------- SOBRE — badges ---------- */
.badge-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
    margin-top: 2rem;
}

.pill-badge {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: var(--bg-muted);
    border-radius: 9999px;
    padding: .625rem 1.25rem;
    font-size: .875rem;
    font-weight: 500;
    color: var(--fg);
}

/* ---------- SERVIÇOS — cards ---------- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 960px;
    margin: 0 auto;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: border-color .3s, box-shadow .3s;
}
.service-card:hover {
    border-color: var(--teal);
    box-shadow: 0 8px 32px rgba(46,139,110,.12);
}

.card-icon {
    width: 3.5rem; height: 3.5rem;
    border-radius: .75rem;
    background: rgba(46,139,110,.1);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    color: var(--teal);
    transition: background .3s;
}
.service-card:hover .card-icon { background: rgba(46,139,110,.2); }

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--fg);
    margin-bottom: .75rem;
}

.service-card p {
    font-size: .95rem;
    color: var(--fg-muted);
    line-height: 1.7;
}

/* ---------- PRODUTOS — placeholder ---------- */
.products-wrapper { max-width: 720px; margin: 0 auto; }

.products-placeholder {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 3rem;
    text-align: center;
    margin-bottom: 2rem;
}

.products-icon {
    font-size: 3rem;
    color: rgba(0,0,0,.15);
    display: block;
    margin-bottom: 1.25rem;
}
.products-text    { font-size: 1.05rem; color: var(--fg-muted); margin-bottom: .4rem; }
.products-subtext { font-size: .875rem; color: rgba(0,0,0,.35); }

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

.skeleton-card {
    height: 8rem;
    border-radius: var(--radius);
    background: linear-gradient(90deg, #e8eaed 25%, #f5f5f5 50%, #e8eaed 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border: 1px solid var(--border);
}

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---------- CONTATO ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 960px;
    margin: 0 auto;
}

.contact-intro {
    font-size: 1.05rem;
    color: var(--fg-muted);
    line-height: 1.75;
    margin-bottom: 2rem;
}

.contact-links { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }

.contact-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: var(--fg);
    text-decoration: none;
    font-size: 1rem;
    transition: color .2s;
}
.contact-link:hover { color: var(--teal); }

.contact-icon-wrap {
    width: 2.5rem; height: 2.5rem;
    border-radius: .5rem;
    background: rgba(46,139,110,.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    color: var(--teal);
    flex-shrink: 0;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--teal);
    color: #fff;
    font-weight: 600;
    padding: .75rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    transition: background .2s;
}
.btn-whatsapp:hover { background: hsl(155, 51%, 28%); }

/* Form */
.contact-form-wrap { display: flex; flex-direction: column; gap: .25rem; }

.form-group { display: flex; flex-direction: column; gap: .25rem; margin-bottom: 1rem; }

.form-input, .form-textarea {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .75rem 1rem;
    font-family: var(--font-sans);
    font-size: .95rem;
    color: var(--fg);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.form-input:focus, .form-textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(46,139,110,.12);
}
.form-textarea { resize: vertical; }

.field-error { font-size: .8rem; color: hsl(0,84%,60%); }

.btn-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    background: var(--orange);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    padding: .875rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background .2s;
}
.btn-submit:hover { background: hsl(28,81%,42%); }

/* Alerts */
.alert-success, .alert-error {
    max-width: 960px;
    margin: 0 auto 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .95rem;
}
.alert-success { background: rgba(46,139,110,.12); color: hsl(155,51%,28%); border: 1px solid rgba(46,139,110,.25); }
.alert-error   { background: rgba(220,38,38,.08);  color: hsl(0,72%,45%);   border: 1px solid rgba(220,38,38,.2); }

/* ---------- FOOTER ---------- */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,.9);
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo { font-size: 1.25rem; font-weight: 800; }
.footer-tagline { font-size: .875rem; color: rgba(255,255,255,.5); margin-top: .5rem; max-width: 280px; }

.footer-heading { font-weight: 600; margin-bottom: .75rem; }

.footer-links { display: flex; flex-direction: column; gap: .5rem; }
.footer-links a {
    display: flex; align-items: center; gap: .5rem;
    font-size: .875rem; color: rgba(255,255,255,.6);
    text-decoration: none; transition: color .2s;
}
.footer-links a:hover { color: var(--teal); }

.social-icons { display: flex; gap: .75rem; }
.social-icons a {
    width: 2.25rem; height: 2.25rem;
    border-radius: .5rem;
    background: rgba(255,255,255,.06);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.5);
    text-decoration: none;
    font-size: 1rem;
    transition: color .2s, background .2s;
}
.social-icons a:hover { color: var(--teal); background: rgba(46,139,110,.15); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 1.5rem;
    text-align: center;
    font-size: .8rem;
    color: rgba(255,255,255,.3);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .menu-toggle  { display: flex; align-items: center; }

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

    .products-skeleton-grid { grid-template-columns: repeat(2, 1fr); }

    .section { padding: 4rem 0; }
}

@media (max-width: 480px) {
    .products-skeleton-grid { grid-template-columns: 1fr; }
}
