/*
Theme Name: GAT Professional
Theme URI: https://gabinete-do-trabalhador.eu/
Author: GAT – Gabinete de Apoio ao Trabalhador
Author URI: https://gabinete-do-trabalhador.eu/
Description: Tema WordPress personalizado para o GAT – design black & gold premium.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: gat-theme
*/

:root {
  --gold:      #c5a021;
  --dark:      #000000;
  --white:     #ffffff;
  --bg-0:      #000000;
  --bg-1:      #0b0b0b;
  --card:      #101010;
  --stroke:    #222222;
  --text:      #f4f4f4;
  --muted:     #bdbdbd;
  --wa:        #25d366;
  --radius:    14px;
  --shadow:    0 18px 60px rgba(0,0,0,.45);
  --container: 1120px;
}

*  { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--gold); text-decoration: none; }
a:hover { opacity: .88; }
img { max-width: 100%; height: auto; }

.container {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
}

/* ── TOPBAR ─────────────────────────────────────────────────────────────── */
.site-topbar {
  border-bottom: 1px solid #191919;
  background: #060606;
  color: var(--muted);
  font-size: .85rem;
}
.site-topbar .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .5rem 0;
}
.topbar-right { display: flex; align-items: center; gap: .9rem; }
.topbar-right a { color: var(--muted); font-weight: 600; }
.topbar-right a:hover { color: var(--gold); }

/* ── HEADER ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(0,0,0,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #171717;
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 0;
}

/* Logo */
.brand { display: inline-flex; align-items: center; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo-link img,
.brand img { display: block; max-height: 88px; width: auto; }

/* Nav */
.main-nav-wrap { display: flex; align-items: center; gap: .9rem; }
.main-nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1rem;
  padding: 0; margin: 0;
}
.main-nav a { color: #e8e8e8; font-weight: 600; font-size: .92rem; }
.main-nav .current-menu-item > a { color: #fff; }

/* Dropdown */
.main-nav .menu-item-has-children { position: relative; }
.main-nav .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 240px;
  background: #0d0d0d;
  border: 1px solid #2a2a2a;
  border-radius: var(--radius);
  padding: .5rem;
  box-shadow: 0 22px 60px rgba(0,0,0,.6);
  z-index: 999;
}
.main-nav .menu-item-has-children:hover > .sub-menu { display: block; }
.main-nav .sub-menu li { margin: 0; }
.main-nav .sub-menu a {
  display: block;
  padding: .7rem .85rem;
  border-radius: 10px;
  color: #f2f2f2;
  font-weight: 600;
  font-size: .88rem;
}
.main-nav .sub-menu a:hover { background: rgba(197,160,33,.12); color: var(--gold); }

/* Header CTA buttons */
.btn-book {
  border-radius: 0 !important;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .76rem;
  padding: .8rem 1rem;
  border-color: rgba(197,160,33,.7);
  color: #fff;
  background: transparent;
}
.btn-book:hover { background: rgba(197,160,33,.1); border-color: var(--gold); color: var(--gold); }

.btn-wa-mini {
  border-radius: 0 !important;
  padding: .8rem .9rem;
  background: linear-gradient(90deg,#9f7f14,var(--gold));
  color: #141414;
  border: none;
}

/* ── BUTTONS ─────────────────────────────────────────────────────────────── */
.btn, button, input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: .82rem 1.45rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: all .2s ease;
  font-family: inherit;
  font-size: .9rem;
}
.btn-primary { background: var(--gold); color: #111; }
.btn-primary:hover { background: #d6b238; color: #111; }
.btn-outline { background: transparent; color: #fff; border-color: #2a2a2a; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-whatsapp { background: linear-gradient(90deg,#9f7f14,var(--gold)); color: #141414; border: none; }

/* ── HERO ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 10% 10%, rgba(197,160,33,.2), transparent 35%),
    url("https://images.unsplash.com/photo-1505664194779-8beaceb93744?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat;
  border-bottom: 1px solid #1d1d1d;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.88) 25%, rgba(0,0,0,.65) 70%, rgba(0,0,0,.74));
}
.hero .container { position: relative; z-index: 2; }
.hero-grid {
  min-height: 520px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 4rem 0;
}
.kicker {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .82rem;
  font-weight: 700;
}
h1,h2,h3,h4 { margin-top: 0; color: #fff; line-height: 1.2; }
.hero h1 {
  font-size: clamp(2rem,5vw,4rem);
  margin: .5rem 0 1rem;
  max-width: 13ch;
  font-weight: 800;
}
.hero h1 .gold { color: var(--gold); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }

.hero-card, .card {
  background: rgba(16,16,16,.82);
  border: 1px solid #2a2a2a;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-card { padding: 1.6rem; }
.hero-card ul { list-style: none; padding-left: 0; margin: .8rem 0 0; }
.hero-card li { margin: .65rem 0; padding-left: 1.4rem; position: relative; }
.hero-card li::before {
  content: "\f058";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--gold);
  position: absolute;
  left: 0; top: .05rem;
}

/* ── SECTIONS ────────────────────────────────────────────────────────────── */
.section { padding: 4.5rem 0; }
.section.alt {
  background: var(--bg-1);
  border-top: 1px solid #191919;
  border-bottom: 1px solid #191919;
}
.section-head { margin-bottom: 1.8rem; }
.section-head h2 { font-size: clamp(1.8rem,3vw,2.8rem); margin-bottom: .5rem; }

/* ── SERVICES GRID ───────────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
}
.service-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid #222;
  background: #0a0a0a;
  transition: transform .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-3px); border-color: #353535; }
.service-card h3 { color: var(--gold); margin-bottom: .5rem; }
.service-card p { color: var(--muted); margin-bottom: .9rem; }

/* ── TESTIMONIALS ────────────────────────────────────────────────────────── */
.testimonials-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.testimonial {
  padding: 1.35rem;
  border-radius: var(--radius);
  border: 1px solid #222;
  background: #0c0c0c;
}
.testimonial .author {
  display: flex; align-items: center; gap: .8rem;
  margin-top: .9rem; color: var(--muted); font-size: .95rem;
}
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: .86rem;
}

/* ── CTA BAND ────────────────────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(95deg, rgba(197,160,33,.23), rgba(16,16,16,.95));
  border: 1px solid #2a2a2a;
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* ── PAGE HERO ───────────────────────────────────────────────────────────── */
.page-hero {
  background:
    linear-gradient(90deg, rgba(0,0,0,.87), rgba(0,0,0,.72)),
    url("https://images.unsplash.com/photo-1505664194779-8beaceb93744?auto=format&fit=crop&w=1600&q=80") center/cover;
  border-bottom: 1px solid #1d1d1d;
  padding: 4rem 0;
}
.breadcrumb { color: var(--muted); margin-bottom: 1rem; }

/* ── PAGE LAYOUT ─────────────────────────────────────────────────────────── */
.page-layout { display: grid; grid-template-columns: 1.8fr 1fr; gap: 1.4rem; }
.page-content, .sidebar-card {
  background: #0a0a0a;
  border: 1px solid #202020;
  border-radius: var(--radius);
  padding: 1.5rem;
}
.page-content ul { padding-left: 1.1rem; }
.sidebar-card + .sidebar-card { margin-top: 1rem; }
.sidebar-card h3 { color: var(--gold); margin-bottom: .8rem; }
.sidebar-card ul { list-style: none; padding: 0; margin: 0; }
.sidebar-card li { margin: .55rem 0; }

/* ── SOBRE PHOTO ─────────────────────────────────────────────────────────── */
.sobre-photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid rgba(197,160,33,.35);
  display: block;
  margin: 0 auto .9rem;
  opacity: .88;
}

/* ── FORM ────────────────────────────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
input, textarea, select {
  width: 100%;
  background: #111;
  color: #fff;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: .8rem .95rem;
  font-family: inherit;
}
textarea { min-height: 130px; resize: vertical; }
label { display: block; margin-bottom: .3rem; font-size: .88rem; color: var(--muted); }

/* ── NOTICE ──────────────────────────────────────────────────────────────── */
.notice {
  border-left: 3px solid var(--gold);
  background: rgba(197,160,33,.08);
  padding: .8rem 1rem;
  border-radius: 6px;
}
.status-message {
  background: #103716;
  border: 1px solid #1f5630;
  color: #d4ffdc;
  padding: .7rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* ── PRICING ─────────────────────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.pricing-card {
  background: #0d0d0d;
  border: 1px solid #242424;
  border-radius: var(--radius);
  padding: 1.4rem;
}
.pricing-card.featured { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(197,160,33,.2); }
.pricing-card h3 { margin-bottom: .7rem; }
.price-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .52rem 0;
  border-bottom: 1px solid #1d1d1d;
}
.price-row:last-child { border-bottom: 0; }

/* ── PAYMENT METHODS ─────────────────────────────────────────────────────── */
.payment-methods { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.2rem; }
.payment-btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .9rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}
.payment-btn-mbway {
  background: #e30613;
  color: #fff;
  border: none;
}
.payment-btn-mbway:hover { background: #c00510; color: #fff; opacity: 1; }
.payment-btn-transfer {
  background: transparent;
  color: #fff;
  border: 1px solid #2a2a2a;
}
.payment-btn-transfer:hover { border-color: var(--gold); color: var(--gold); }

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid #171717;
  padding: 2rem 0 1.8rem;
  background: #070707;
}
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0 0 1rem;
}
.footer-disclaimer {
  text-align: center;
  color: var(--muted);
  max-width: 780px;
  margin: 0 auto 1rem;
  font-style: italic;
}
.footer-copy { text-align: center; color: #8b8b8b; }

/* ── WHATSAPP FLOAT ──────────────────────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  right: 18px; bottom: 18px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  z-index: 100;
  box-shadow: 0 8px 30px rgba(37,211,102,.4);
}

/* ── MOBILE TOGGLE ───────────────────────────────────────────────────────── */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid #282828;
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 10px;
  padding: 0;
}
.mobile-menu { display: none; }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .mobile-toggle { display: inline-flex; }
  .hero-grid, .page-layout, .pricing-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .mobile-menu {
    position: fixed; inset: 0; z-index: 120;
    background: rgba(0,0,0,.97);
    padding: 2rem;
  }
  .mobile-menu.open { display: block; }
  .mobile-menu .menu { list-style: none; padding: 0; margin: 2rem 0 0; }
  .mobile-menu .menu li { border-bottom: 1px solid #181818; }
  .mobile-menu .menu a {
    display: block; padding: .65rem 0;
    color: #fff; font-size: 1.3rem; font-weight: 700;
  }
  /* mobile sub-menu */
  .mobile-menu .sub-menu { display: block; padding-left: 1rem; }
  .mobile-menu .sub-menu a { font-size: .85rem; color: var(--muted); }
}

@media (max-width: 720px) {
  .site-header .btn-book,
  .site-header .btn-wa-mini { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .payment-methods { flex-direction: column; }
}
