/*
Theme Name: AMPro
Theme URI: https://alisonmedeiros.com.br
Author: Alison Medeiros
Description: Tema institucional da AMPro para engenharia, cursos e plugins Revit/AutoCAD.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: ampro
*/

:root {
  --bg-primary: #1a1d28;
  --bg-secondary: #242936;
  --bg-card: #2a2f3f;
  --bg-card-hover: #323847;
  --text-primary: #f5f6f8;
  --text-secondary: #c4c9d4;
  --text-muted: #9299aa;
  --accent-primary: #ff8c42;
  --accent-secondary: #ffb366;
  --accent-gradient: linear-gradient(135deg, #ff8c42 0%, #ffa359 100%);
  --border-color: rgba(255,255,255,.09);
  --shadow-md: 0 18px 50px rgba(0,0,0,.23);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --max-width: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  color: var(--text-primary);
  font: 400 16px/1.7 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 8%, rgba(255,140,66,.09), transparent 30%),
    radial-gradient(circle at 85% 25%, rgba(255,179,102,.05), transparent 28%),
    var(--bg-primary);
}
body.admin-bar .site-header { top: 32px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.container { width: min(var(--max-width), calc(100% - 48px)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link:focus { clip: auto; width: auto; height: auto; top: 8px; left: 8px; z-index: 9999; padding: 10px 14px; background: #fff; color: #111; }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 1000;
  background: rgba(26,29,40,.84); backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--border-color);
}
.nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--accent-primary); font-size: 1.15rem; }
.brand img { width: 42px; height: 42px; object-fit: contain; border-radius: 10px; }
.site-menu { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.site-menu a { display: block; padding: 9px 13px; color: var(--text-secondary); font-weight: 650; font-size: .84rem; letter-spacing: .035em; border-radius: 9px; }
.site-menu a:hover, .site-menu a:focus { color: var(--accent-primary); background: rgba(255,140,66,.1); }
.header-contact { color: var(--text-secondary); font-size: .9rem; white-space: nowrap; }
.header-contact strong { color: var(--accent-primary); margin-right: 6px; }
.menu-toggle { display: none; border: 1px solid var(--border-color); background: var(--bg-card); color: #fff; border-radius: 10px; padding: 8px 12px; font-size: 1.1rem; }

.hero { min-height: 100vh; display: flex; align-items: center; padding: 130px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(42px,7vw,92px); }
.eyebrow { margin: 0 0 14px; color: var(--accent-primary); text-transform: uppercase; letter-spacing: .18em; font-weight: 800; font-size: .78rem; }
.hero h1 { margin: 0; font-size: clamp(3.4rem,8vw,7rem); line-height: .88; letter-spacing: -.065em; }
.hero h1 span { display: block; color: var(--accent-primary); }
.hero-role { margin: 24px 0 12px; color: var(--accent-secondary); font-size: clamp(1.15rem,2vw,1.45rem); font-weight: 700; }
.hero-copy { max-width: 670px; margin: 0; color: var(--text-secondary); font-size: 1.05rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 21px; border-radius: 11px; border: 1px solid var(--border-color); font-weight: 750; transition: .2s ease; }
.btn-primary { color: #fff; background: var(--accent-gradient); border-color: transparent; box-shadow: 0 10px 28px rgba(255,140,66,.22); }
.btn-secondary { color: var(--text-primary); background: rgba(255,255,255,.045); }
.btn:hover { transform: translateY(-2px); }
.hero-portrait { position: relative; isolation: isolate; }
.hero-portrait::before { content: ""; position: absolute; inset: 12% -8% -4% 7%; background: var(--accent-gradient); border-radius: 48% 48% 24px 24px; opacity: .85; z-index: -1; }
.hero-portrait::after { content: "AMPro"; position: absolute; right: -7%; bottom: 1%; color: rgba(255,255,255,.055); font-size: clamp(4rem,10vw,8.5rem); font-weight: 900; letter-spacing: -.08em; z-index: -1; }
.hero-portrait img { max-height: 680px; margin-inline: auto; object-fit: contain; filter: drop-shadow(0 28px 35px rgba(0,0,0,.3)); }

.section { padding: 96px 0; }
.section-alt { background: rgba(255,255,255,.022); border-block: 1px solid var(--border-color); }
.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading h2 { margin: 5px 0 12px; font-size: clamp(2rem,4vw,3.2rem); line-height: 1.1; letter-spacing: -.035em; }
.section-heading p { margin: 0; color: var(--text-secondary); }
.about-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(36px,6vw,78px); align-items: center; }
.about-photo { border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-card); border: 1px solid var(--border-color); box-shadow: var(--shadow-md); }
.about-photo img { width: 100%; max-height: 620px; object-fit: contain; object-position: bottom; }
.about-copy h2 { margin: 0 0 6px; font-size: clamp(2rem,4vw,3rem); }
.about-copy h3 { margin: 0 0 18px; color: var(--accent-primary); font-size: 1.15rem; }
.about-copy p { color: var(--text-secondary); }
.facts { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-top: 25px; }
.fact { padding: 15px 17px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-sm); }
.fact small { display: block; color: var(--text-muted); }
.fact strong { font-size: .96rem; }

.card-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.card { position: relative; min-height: 100%; padding: 25px; background: linear-gradient(155deg,rgba(255,255,255,.055),rgba(255,255,255,.025)); border: 1px solid var(--border-color); border-radius: var(--radius-md); transition: .25s ease; }
.card:hover { transform: translateY(-5px); background: var(--bg-card-hover); border-color: rgba(255,140,66,.35); box-shadow: var(--shadow-md); }
.card-icon { width: 49px; height: 49px; display: grid; place-items: center; margin-bottom: 17px; color: #fff; background: var(--accent-gradient); border-radius: 13px; font-size: 1.22rem; }
.card h3 { margin: 0 0 9px; font-size: 1.17rem; }
.card p { margin: 0; color: var(--text-secondary); }
.card-link { display: inline-flex; margin-top: 17px; color: var(--accent-primary); font-weight: 750; }
.product-card { overflow: hidden; }
.product-card::after { content: attr(data-mark); position: absolute; right: -10px; bottom: -35px; font-size: 5rem; font-weight: 900; color: rgba(255,255,255,.035); }
.tag { display: inline-flex; padding: 5px 9px; margin-bottom: 16px; border: 1px solid rgba(255,140,66,.28); border-radius: 99px; color: var(--accent-secondary); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }

.portfolio-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.portfolio-item { overflow: hidden; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); }
.portfolio-item iframe { width: 100%; height: 310px; display: block; border: 0; background: #111; }
.portfolio-copy { padding: 20px; }
.portfolio-copy h3 { margin: 0 0 4px; }
.portfolio-copy p { margin: 0; color: var(--text-secondary); }

.contact-panel { display: grid; grid-template-columns: 1.25fr .75fr; gap: 30px; align-items: center; padding: clamp(28px,5vw,54px); border: 1px solid rgba(255,140,66,.25); border-radius: var(--radius-lg); background: linear-gradient(135deg,rgba(255,140,66,.11),rgba(255,255,255,.025)); }
.contact-panel h2 { margin: 0 0 8px; font-size: clamp(2rem,4vw,3rem); line-height: 1.12; }
.contact-panel p { margin: 0; color: var(--text-secondary); }
.contact-panel .actions { margin: 0; justify-content: flex-end; }

.site-footer { padding: 42px 0; color: var(--text-secondary); border-top: 1px solid var(--border-color); }
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 38px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a:hover { color: var(--accent-primary); }

.content-page { min-height: 70vh; padding: 140px 0 80px; }
.content-page article { max-width: 900px; }
.entry-title { font-size: clamp(2.4rem,5vw,4.5rem); line-height: 1; }
.entry-content { color: var(--text-secondary); }
.entry-content a { color: var(--accent-primary); text-decoration: underline; }

@media (max-width: 980px) {
  .header-contact { display: none; }
  .hero-grid, .about-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .card-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 760px) {
  body.admin-bar .site-header { top: 46px; }
  .container { width: min(100% - 30px, var(--max-width)); }
  .menu-toggle { display: block; }
  .site-menu { display: none; position: absolute; top: 70px; left: 15px; right: 15px; padding: 12px; flex-direction: column; align-items: stretch; background: #202431; border: 1px solid var(--border-color); border-radius: 14px; box-shadow: var(--shadow-md); }
  .site-menu.is-open { display: flex; }
  .hero { min-height: auto; padding-top: 126px; }
  .hero-grid, .about-grid, .contact-panel { grid-template-columns: 1fr; }
  .hero-portrait { order: -1; max-width: 430px; margin-inline: auto; }
  .hero-portrait img { max-height: 430px; }
  .card-grid, .portfolio-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .contact-panel .actions { justify-content: flex-start; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
  .section { padding: 72px 0; }
}

