/* Alpha Tech - main stylesheet */
:root {
  --primary: #7B312D;
  --primary-dark: #5A211E;
  --primary-light: #A44A44;
  --accent: #E2A43B;
  --ink: #1E1716;
  --text: #3B3231;
  --muted: #6E6260;
  --bg: #FFFFFF;
  --soft: #FAF4F2;
  --line: #ECE0DC;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(60, 20, 18, .08);
  --font-head: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.65; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }
.ic { flex-shrink: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px 12px; z-index: 999; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 600; font-family: var(--font-head); font-size: .95rem; border: 2px solid var(--primary); cursor: pointer; transition: background .2s, transform .2s, color .2s; }
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.btn-sm { padding: 9px 18px; font-size: .88rem; }
.btn-outline { background: transparent; color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-light { background: #fff; color: var(--primary); border-color: #fff; }
.btn-light:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-light:hover { background: #fff; color: var(--primary); border-color: #fff; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #fff; border-color: #fff; color: var(--primary); }

/* Top bar */
.topbar { background: var(--primary-dark); color: #f3e3df; font-size: .85rem; }
.topbar-in { display: flex; gap: 20px; align-items: center; min-height: 38px; flex-wrap: wrap; }
.topbar a { color: #f3e3df; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--accent); }
.topbar-social { margin-left: auto; display: flex; gap: 12px; }
@media (max-width: 600px) { .topbar-in > a:first-child span { display: none; } .topbar-social { gap: 10px; } }

/* Header and navigation */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; min-height: 74px; }
.brand img { height: 48px; width: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; align-items: center; gap: 4px; }
.nav > ul > li > a { display: block; padding: 10px 12px; color: var(--ink); font-weight: 500; font-size: .95rem; border-radius: 8px; }
.nav > ul > li > a:hover, .nav > ul > li > a.on { color: var(--primary); }
.nav > ul > li > a.on { box-shadow: inset 0 -2px 0 var(--primary); border-radius: 0; }
.nav > ul > li > a.nav-cta { color: #fff; margin-left: 8px; box-shadow: none; border-radius: 999px; padding: 9px 18px; }
.caret { font-size: .7em; }
.has-mega { position: relative; }
.sub-toggle { display: none; }
.mega { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px); width: 620px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; opacity: 0; visibility: hidden; transition: .2s; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-title { font-family: var(--font-head); font-weight: 700; color: var(--primary); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.mega a { display: block; padding: 5px 0; color: var(--text); font-size: .9rem; }
.mega a:hover { color: var(--primary); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }

@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - 74px); height: calc(100dvh - 74px); background: #fff; overflow-y: auto; display: none; padding: 12px 16px 90px; border-top: 1px solid var(--line); }
  .nav.open { display: block; animation: navIn .2s ease-out; }
  @keyframes navIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid var(--line); position: relative; }
  .nav > ul > li > a { padding: 14px 4px; font-size: 1.05rem; }
  .nav > ul > li > a.on { box-shadow: none; }
  .nav > ul > li > a.nav-cta { margin: 16px 0 0; text-align: center; }
  .caret { display: none; }
  .sub-toggle { display: block; position: absolute; right: 0; top: 6px; width: 44px; height: 40px; border: 0; background: var(--soft); border-radius: 8px; font-size: 1rem; color: var(--primary); cursor: pointer; }
  .mega { position: static; transform: none; width: auto; box-shadow: none; border: 0; padding: 0 0 12px 8px; grid-template-columns: 1fr; gap: 8px; opacity: 1; visibility: visible; display: none; }
  .has-mega:hover .mega { transform: none; }
  .has-mega.open .mega { display: grid; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Hero */
.hero { position: relative; background: radial-gradient(1200px 500px at 85% -10%, rgba(226,164,59,.25), transparent 60%), linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%); color: #fff; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 88px 0 96px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 1.15rem; color: #f6e7e3; max-width: 560px; }
.eyebrow { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); background: rgba(123,49,45,.08); padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }
.hero .eyebrow { color: var(--accent); background: rgba(255,255,255,.1); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 22px; padding: 28px; backdrop-filter: blur(6px); }
.hero-card h3 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.hero-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.hero-list li { display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,.08); border-radius: 12px; padding: 12px 14px; font-weight: 500; }
.hero-list .ic { color: var(--accent); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 40px; }
.hero-stats strong { display: block; font-family: var(--font-head); font-size: 1.8rem; color: #fff; }
.hero-stats span { font-size: .85rem; color: #f0d9d4; }
@media (max-width: 900px) { .hero-in { grid-template-columns: 1fr; padding: 56px 0 64px; gap: 32px; } }

/* Page hero (inner pages) */
.page-hero { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; padding: 64px 0 56px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 10px; }
.page-hero p { color: #f3e1dd; max-width: 720px; font-size: 1.08rem; margin: 0; }
.crumbs { font-size: .85rem; margin-bottom: 14px; color: #ead2cd; }
.crumbs a { color: #fff; }
.crumbs a:hover { color: var(--accent); }

/* Sections */
.section { padding: 80px 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
@media (max-width: 600px) { .section { padding: 56px 0; } }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card p { color: var(--muted); margin-bottom: 0; }
.card-icon { width: 56px; height: 56px; border-radius: 14px; background: rgba(123,49,45,.08); color: var(--primary); display: grid; place-items: center; margin-bottom: 18px; }
a.card { display: block; color: inherit; }
a.card .more { display: inline-flex; gap: 6px; align-items: center; margin-top: 14px; color: var(--primary); font-weight: 600; font-size: .9rem; }

.tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.tab { padding: 10px 22px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-family: var(--font-head); cursor: pointer; color: var(--ink); font-size: .92rem; }
.tab.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.tab-panel[hidden] { display: none; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.check-list { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list li::before { content: ""; flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 13px no-repeat; }
.check-list.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .check-list.two { grid-template-columns: 1fr; } }

.feature-box { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; border-radius: 22px; padding: 40px; position: relative; overflow: hidden; }
.feature-box h3, .feature-box h2 { color: #fff; }
.feature-box p { color: #f3e1dd; }
.feature-box .big { font-family: var(--font-head); font-size: 3rem; font-weight: 800; color: var(--accent); line-height: 1; }

.steps { counter-reset: step; }
.step { position: relative; padding-top: 56px; }
.step::before { counter-increment: step; content: "0" counter(step); position: absolute; top: 0; left: 0; font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; color: rgba(123,49,45,.18); }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; }

.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; margin-bottom: 12px; background: #fff; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; font-family: var(--font-head); color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 16px; margin: 0; }

/* Content pages (policies, blog posts) */
.prose { max-width: 800px; margin: 0 auto; font-size: 1.05rem; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { border-left: 4px solid var(--primary); margin: 1.5em 0; padding: .4em 1.2em; background: var(--soft); border-radius: 0 10px 10px 0; }
.prose img { border-radius: 12px; margin: 1.5em 0; }
.prose .updated { color: var(--muted); font-size: .9rem; }

/* Blog */
.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.post-thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--primary), var(--primary-light)); display: grid; place-items: center; color: rgba(255,255,255,.85); overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: .82rem; color: var(--muted); margin-bottom: 8px; }
.post-body h3 { font-size: 1.1rem; }
.post-cover { border-radius: 18px; margin: 0 auto 32px; max-width: 900px; width: 100%; }
.pager { display: flex; justify-content: center; gap: 12px; margin-top: 40px; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-item:last-child { border: 0; }
.info-item .card-icon { margin: 0; width: 48px; height: 48px; }
.info-item strong { display: block; font-family: var(--font-head); color: var(--ink); }
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: .9rem; color: var(--ink); display: block; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=url], input[type=file], select, textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(123,49,45,.12); }
textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-weight: 500; }
.alert-ok { background: #e8f6ec; color: #1d6b35; }
.alert-err { background: #fdecea; color: #a12a20; }
.map { border: 0; width: 100%; height: 360px; border-radius: var(--radius); display: block; }

/* Social page */
.social-card { display: flex; align-items: center; gap: 18px; }
.social-card .s-ico { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.s-facebook { background: #1877F2; } .s-instagram { background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF); } .s-linkedin { background: #0A66C2; }
.s-tiktok { background: #111; } .s-youtube { background: #FF0000; } .s-x { background: #111; } .s-whatsapp { background: #25D366; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; padding: 56px 0; }
.cta-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: #f3e1dd; margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer */
.site-footer { background: #1A1312; color: #c9bcb9; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding: 64px 16px 40px; }
@media (min-width: 768px) { .footer-grid { padding: 64px 24px 40px; } }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #c9bcb9; }
.site-footer a:hover { color: var(--accent); }
.footer-logo { height: 48px; width: auto; margin-bottom: 16px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; }
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .ic { color: var(--accent); margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: .85rem; }
.footer-bottom-in { padding-right: 76px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom a { color: #fff; font-weight: 600; }
.version { display: inline-block; background: rgba(255,255,255,.08); padding: 2px 8px; border-radius: 6px; font-family: ui-monospace, monospace; font-size: .8rem; color: var(--accent); }

.wa-float { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.2); z-index: 60; }
.wa-float:hover { color: #fff; transform: scale(1.06); }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
