:root {
  --navy: #0b1f3a;
  --navy-dark: #071429;
  --gold: #c9a227;
  --gold-light: #e4c65e;
  --ink: #1a1a1a;
  --paper: #faf8f3;
  --paper-alt: #f1ede3;
  --shadow: 0 2px 10px rgba(11, 31, 58, 0.06);
  --heading-font: "Playfair Display", Georgia, "Times New Roman", serif;
  --body-font: Georgia, "Times New Roman", serif;
  --ui-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--body-font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -999px; top: auto;
  background: var(--gold); color: var(--navy-dark);
  padding: 12px 20px; z-index: 100;
  font-family: var(--ui-font); font-weight: 600;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ───── Header ───── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--navy);
  border-bottom: 1px solid rgba(201, 162, 39, 0.35);
}

.header-inner {
  display: flex; align-items: center; gap: 20px; padding: 10px 24px;
}

.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-mark { height: 38px; width: auto; object-fit: contain; }

.nav { display: flex; align-items: center; gap: 24px; }
.nav a {
  color: #e8e6df; font-family: var(--ui-font);
  font-size: 0.92rem; letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.nav a:hover, .nav a:focus-visible { color: var(--gold-light); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 40px; height: 40px; padding: 0; border: 0;
  background: transparent; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--gold-light);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.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); }

/* ───── Buttons ───── */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 3px;
  font-family: var(--ui-font); font-size: 0.88rem; font-weight: 500;
  letter-spacing: 0.02em; border: 1px solid transparent;
  transition: opacity 0.2s ease, transform 0.15s ease, background 0.2s ease;
  cursor: pointer;
}
.btn:hover { opacity: 0.9; }
.btn:active { transform: translateY(1px); }

.btn-gold { background: var(--gold); color: var(--navy-dark); font-weight: 600; }
.btn-gold:hover { background: var(--gold-light); opacity: 1; }

.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; opacity: 1; }

.btn-outline-light { border-color: var(--navy); color: var(--navy); }
.btn-outline-light:hover { background: var(--navy); color: #fff; opacity: 1; }

.btn-whatsapp { background: #25d366; color: #fff; font-weight: 600; }
.btn-whatsapp:hover { background: #1ebe5d; opacity: 1; }

/* ───── Hero ───── */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 60%, #123058 100%);
  color: #fff; padding: 100px 0 90px; overflow: hidden;
}

.hero-rule {
  position: absolute; top: 40px; right: 8%;
  width: 1px; height: 70%;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  opacity: 0.6;
}

.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  align-items: center; gap: 48px;
}

.eyebrow {
  color: var(--gold-light); font-family: var(--ui-font);
  letter-spacing: 0.12em; text-transform: uppercase;
  font-size: 0.82rem; margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--heading-font);
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  margin: 0 0 12px; font-weight: 500; line-height: 1.05;
}

.hero-number {
  font-family: var(--ui-font);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700; color: var(--gold);
  letter-spacing: 0.08em; margin: 0 0 8px;
  line-height: 1;
  text-shadow: 0 4px 20px rgba(201, 162, 39, 0.3);
}

.slogan {
  font-style: italic; font-size: 1.25rem;
  color: #e8e6df; max-width: 32ch; margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero .btn-outline { border-color: rgba(255,255,255,0.5); color: #fff; }
.hero .btn-outline:hover { background: rgba(255,255,255,0.12); color: #fff; }

.hero-photo {
  position: relative; justify-self: center;
  width: min(320px, 80%); aspect-ratio: 1;
}

.hero-photo-ring {
  position: absolute; inset: -14px; border-radius: 50%;
  border: 1px solid var(--gold); opacity: 0.55;
}
.hero-photo-ring::before {
  content: ""; position: absolute; inset: 14px;
  border-radius: 50%; border: 1px solid var(--gold); opacity: 0.35;
}

.hero-photo img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

/* ───── Sections ───── */
.section { padding: 80px 0; }
.section-alt { background: var(--paper-alt); }

.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

h2 {
  font-family: var(--heading-font); font-size: 2rem;
  color: var(--navy); margin-bottom: 20px; font-weight: 500;
}

.section-lead { font-size: 1.1rem; margin-bottom: 36px; }

/* ───── Sobre / História ───── */
.about-grid {
  position: relative; display: grid; grid-template-columns: 1fr;
  gap: 24px; max-width: 720px;
}
.about-text h2 { margin-bottom: 8px; }
.about-text p { font-size: 1.05rem; line-height: 1.75; margin-top: 0; }

.pull-quote {
  font-family: var(--heading-font); font-style: italic;
  color: var(--gold); font-size: 1.3rem;
  margin: 0 0 24px; padding-left: 18px;
  border-left: 3px solid var(--gold);
}

.about-mark-wrap {
  position: absolute; right: -60px; top: 50%;
  transform: translateY(-50%); width: 340px;
  opacity: 0.06; pointer-events: none; z-index: -1;
}

/* ───── Cards ───── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.cards-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: #fff; border-top: 3px solid var(--gold);
  padding: 28px 24px; box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(11, 31, 58, 0.12);
}

.card-plain { background: var(--paper); border-top-color: var(--navy); }

.card-highlight { border-top-color: #25d366; background: #f0faf4; }

.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--paper-alt); color: var(--gold); margin-bottom: 16px;
}
.card-icon svg { width: 22px; height: 22px; }

.card-icon-whatsapp { background: #e6f9ed; color: #25d366; }

.card h3 {
  font-family: var(--ui-font); color: var(--navy);
  font-size: 1.05rem; margin: 0 0 10px;
}
.card p { margin: 0; font-size: 0.95rem; }

.card-link {
  display: inline-block; margin-top: 12px;
  font-family: var(--ui-font); font-size: 0.88rem;
  font-weight: 600; color: var(--navy);
  border-bottom: 1px solid var(--gold);
  transition: color 0.2s ease;
}
.card-link:hover { color: var(--gold); }

/* ───── Galeria ───── */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.galeria-grid img {
  width: 100%; border-radius: 4px; box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.galeria-grid img:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(11, 31, 58, 0.15);
}

/* ───── Contato ───── */
.contact-inner { text-align: center; }
.contact-links {
  display: flex; gap: 16px; justify-content: center;
  flex-wrap: wrap; margin-top: 16px;
}

/* ───── CTA Banner ───── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, #123058 100%);
  color: #fff; padding: 60px 0; text-align: center;
}
.cta-banner-inner {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.cta-banner-text {
  font-family: var(--ui-font); font-size: 1.1rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold-light); margin: 0;
}
.cta-banner-number {
  font-family: var(--ui-font);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 700; color: var(--gold);
  letter-spacing: 0.12em; margin: 0; line-height: 1.1;
  text-shadow: 0 6px 30px rgba(201, 162, 39, 0.35);
}
.cta-banner-name {
  font-family: var(--heading-font); font-size: 1.25rem;
  font-style: italic; color: #e8e6df; margin: 8px 0 0;
}

/* ───── Footer ───── */
.site-footer { background: var(--navy-dark); color: #cfcac0; padding: 32px 0; }
.footer-inner {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--ui-font); font-size: 0.85rem;
}
.footer-brand {
  display: flex; align-items: center; gap: 8px;
  color: #fff; font-weight: 600;
}
.footer-mark { height: 24px; width: auto; object-fit: contain; }
.footer-inner p { margin: 0 auto 0 0; }

.footer-social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(228, 198, 94, 0.4); color: var(--gold-light);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.footer-social:hover, .footer-social:focus-visible {
  border-color: var(--gold-light); color: #fff;
}

/* ───── Back to top ───── */
.back-to-top {
  position: fixed; right: 20px; bottom: 20px;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--gold); color: var(--navy-dark);
  font-size: 1.1rem;
  box-shadow: 0 6px 16px rgba(11, 31, 58, 0.25);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ───── Responsive ───── */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-photo { order: -1; width: min(220px, 60%); }
  .hero-actions { justify-content: center; }
  .hero-number { font-size: clamp(2.5rem, 10vw, 4rem); }
  .about-mark-wrap { display: none; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy); flex-direction: column;
    align-items: flex-start; gap: 4px;
    padding: 8px 24px 20px;
    border-bottom: 1px solid rgba(201, 162, 39, 0.35);
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height 0.3s ease;
  }
  .nav.is-open { max-height: 400px; visibility: visible; }
  .nav a { padding: 10px 0; width: 100%; }

  .about-grid { text-align: center; }
  .pull-quote { margin-left: auto; margin-right: auto; text-align: left; }

  .footer-inner { flex-wrap: wrap; justify-content: center; text-align: center; }
  .footer-inner p { margin: 0; width: 100%; order: 3; }

  .brand-mark { height: 30px; }
  .galeria-grid { grid-template-columns: 1fr; }
}
