:root {
  --background: #EFEFEF;
  --foreground: #0C0C0C;
  --primary: #A53917;
  --primary-dark: #822A10;
  --secondary: #4F2C2A;
  --secondary-dark: #321B1A;
  --dark: #0C0C0C;
  --muted: #6B5B58;
  --border: rgba(12, 12, 12, 0.12);
  --font-sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px) scale(1.02);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.btn-ghost {
  color: var(--foreground);
  padding: 10px 16px;
  font-size: 14px;
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(79, 44, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.navbar-logo img {
  height: 32px;
  width: auto;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-menu a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.navbar-menu a:hover {
  color: #fff;
}

.navbar-cta {
  background: var(--primary);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.25s ease, transform 0.25s ease;
}

.navbar-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.navbar-hamburger {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.navbar-hamburger span {
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.navbar-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.navbar-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- HERO ---------- */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: #fff;
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
  background-color: var(--dark);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('lisboa-hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(12, 12, 12, 0.6) 100%),
    linear-gradient(to bottom, rgba(12, 12, 12, 0.6) 0%, rgba(12, 12, 12, 0.7) 50%, rgba(12, 12, 12, 0.95) 100%),
    rgba(165, 57, 23, 0.10);
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  max-width: 820px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #6dd178;
  box-shadow: 0 0 12px rgba(109, 209, 120, 0.6);
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 6.5vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}

.hero h1 .accent {
  font-style: italic;
  color: rgba(255, 255, 255, 0.95);
  display: block;
}

.hero p.subtitle {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  max-width: 620px;
  margin-bottom: 40px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 56px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-trust span::before {
  content: '';
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 999px;
}

/* ---------- SECTIONS GENERIC ---------- */
.section {
  padding: 110px 0;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  color: var(--foreground);
}

.section-title em {
  font-style: italic;
}

.section-description {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 640px;
  line-height: 1.7;
}

/* ---------- SOBRE ---------- */
.about {
  background: var(--background);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 72px;
  align-items: center;
}

.about-photo {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px -25px rgba(79, 44, 42, 0.35);
  aspect-ratio: 4 / 5;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  pointer-events: none;
}

.about-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--secondary);
  margin: 16px 0 8px;
  letter-spacing: 0.01em;
}

.about-role {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.about-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--foreground);
  padding-left: 24px;
  border-left: 2px solid var(--primary);
  margin-bottom: 28px;
}

.about-paragraph {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

/* ---------- SERVIÇOS ---------- */
.services {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services-header {
  text-align: center;
  margin-bottom: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.services-header .section-description {
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 36px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -25px rgba(79, 44, 42, 0.3);
  border-color: rgba(165, 57, 23, 0.4);
}

.service-card-number {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.service-card h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.55rem;
  color: var(--secondary);
  line-height: 1.25;
  margin-bottom: 20px;
}

.service-card ul {
  list-style: none;
}

.service-card li {
  padding: 8px 0;
  color: var(--muted);
  font-size: 0.95rem;
  display: flex;
  gap: 10px;
  border-top: 1px solid rgba(12, 12, 12, 0.06);
}

.service-card li:first-child {
  border-top: none;
}

.service-card li::before {
  content: '→';
  color: var(--primary);
  font-weight: 500;
  flex-shrink: 0;
}

/* ---------- CONTATO ---------- */
.contact {
  background:
    radial-gradient(ellipse at bottom right, rgba(165, 57, 23, 0.25), transparent 55%),
    linear-gradient(160deg, var(--secondary-dark) 0%, var(--secondary) 100%);
  color: #fff;
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
}

.contact .container {
  position: relative;
  z-index: 1;
}

.contact-header {
  text-align: center;
  margin-bottom: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact .eyebrow {
  color: rgba(255, 255, 255, 0.55);
}

.contact .section-title {
  color: #fff;
}

.contact .section-description {
  color: rgba(255, 255, 255, 0.75);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 36px 28px;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
}

.contact-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(165, 57, 23, 0.18);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.contact-card h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 12px;
}

.contact-card p,
.contact-card a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  line-height: 1.6;
  word-break: break-word;
}

.contact-card a {
  display: block;
  margin-top: 6px;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.contact-card a:hover {
  color: #fff;
  border-bottom-color: var(--primary);
}

.contact-card .cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  padding-bottom: 2px;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(165, 57, 23, 0.5);
}

.contact-card .cta-link:hover {
  color: #fff;
  border-bottom-color: #fff;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 32px;
  text-align: center;
}

.footer-logo img {
  height: 56px;
  width: auto;
  margin: 0 auto 24px;
}

.footer-tagline {
  max-width: 540px;
  margin: 0 auto 32px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  line-height: 1.65;
}

.footer-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.03em;
}

/* ---------- FLOATING WHATSAPP ---------- */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px -8px rgba(37, 211, 102, 0.55), 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.floating-whatsapp:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 30px -8px rgba(37, 211, 102, 0.7), 0 6px 16px rgba(0, 0, 0, 0.2);
}

.floating-whatsapp svg {
  width: 28px;
  height: 28px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-photo {
    max-width: 380px;
    margin: 0 auto;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }
  .container {
    padding: 0 20px;
  }
  .navbar-menu,
  .navbar-cta {
    display: none;
  }
  .navbar-hamburger {
    display: flex;
  }
  .navbar.menu-open .navbar-menu {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--secondary-dark);
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .navbar.menu-open .navbar-menu a,
  .navbar.menu-open .navbar-menu .navbar-cta {
    display: block;
    padding: 16px 24px;
    text-align: left;
    border-radius: 0;
    background: none;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }
  .navbar.menu-open .navbar-menu .navbar-cta {
    color: var(--primary);
    font-weight: 500;
  }
  .hero {
    padding: 120px 0 70px;
    min-height: auto;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-ctas .btn {
    width: 100%;
  }
  .hero-trust {
    gap: 14px;
  }
  .hero-trust span {
    font-size: 12px;
  }
  .floating-whatsapp {
    bottom: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
  }
}

/* ---------- COOKIE BANNER ---------- */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  z-index: 95;
  width: calc(100% - 32px);
  max-width: 720px;
  background: #fff;
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 18px 40px -18px rgba(12, 12, 12, 0.35), 0 6px 16px rgba(12, 12, 12, 0.06);
  opacity: 0;
  transition: opacity 0.32s ease, transform 0.32s ease;
  pointer-events: none;
}

.cookie-banner.cookie-banner-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 56px 18px 22px;
}

.cookie-banner-text {
  flex: 1;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

.cookie-banner-text strong {
  color: var(--secondary);
  font-weight: 500;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 10px 22px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
  border: 1px solid var(--secondary);
  min-width: 96px;
}

.cookie-btn-reject {
  background: transparent;
  color: var(--secondary);
}

.cookie-btn-reject:hover {
  background: rgba(79, 44, 42, 0.06);
}

.cookie-btn-accept {
  background: var(--secondary);
  color: #fff;
}

.cookie-btn-accept:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
}

.cookie-banner-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  opacity: 0.55;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.cookie-banner-close:hover {
  opacity: 1;
  background: rgba(12, 12, 12, 0.04);
}

@media (max-width: 640px) {
  .cookie-banner {
    bottom: 84px;
    width: calc(100% - 16px);
    border-radius: 14px;
  }
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px 18px 16px 18px;
  }
  .cookie-banner-text {
    font-size: 0.85rem;
    padding-right: 28px;
  }
  .cookie-banner-actions {
    width: 100%;
  }
  .cookie-btn {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
  }
  .cookie-banner-close {
    top: 8px;
    right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    transition: none;
    transform: translateX(-50%);
  }
  .cookie-banner.cookie-banner-visible {
    transform: translateX(-50%);
  }
}
