/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --bg:           #0d0d0d;
  --bg-card:      #1a1208;
  --bg-footer:    #080808;
  --gold:         #c9a96e;
  --gold-dim:     rgba(201,169,110,0.25);
  --gold-faint:   rgba(201,169,110,0.08);
  --gold-subtle:  rgba(201,169,110,0.15);
  --text:         #f5f0e8;
  --text-muted:   #707070;
  --text-mid:     #888;
  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-sans:    'Inter', system-ui, sans-serif;
  --max-w:        1200px;
  --radius:       2px;
  --transition:   0.3s ease;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font-sans); font-weight: 300; line-height: 1.6; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; }
.label { font-size: 10px; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); font-family: var(--font-sans); font-weight: 400; }
.gold-line { width: 40px; height: 1px; background: var(--gold); flex-shrink: 0; }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 300; }
.btn-outline {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 10px 28px;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-family: var(--font-sans);
  transition: background var(--transition), color var(--transition);
  border-radius: var(--radius);
}
.btn-outline:hover { background: var(--gold); color: var(--bg); }

/* ============================================================
   NAVIGATION
   ============================================================ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px 0;
  transition: background var(--transition), padding var(--transition);
}
#nav.scrolled {
  background: rgba(13,13,13,0.95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 16px 0;
  border-bottom: 1px solid var(--gold-subtle);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  color: var(--text);
  letter-spacing: 1px;
}
.nav-logo-tag {
  font-size: 9px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
}
.nav-links {
  display: flex;
  gap: 40px;
}
.nav-links a {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-mid);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
.btn-outline:focus-visible  { outline: 1px solid var(--gold); outline-offset: 4px; }
.nav-cta { font-size: 9px; padding: 8px 20px; }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/hero.jpg');
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,13,13,0.92) 0%, rgba(13,13,13,0.3) 60%, rgba(13,13,13,0.1) 100%);
}
.hero-content {
  position: relative;
  width: 100%;
  padding-bottom: 60px;
}
.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-top: 1px solid var(--gold-dim);
  padding-top: 24px;
}
.hero-location {
  display: block;
  margin-bottom: 12px;
}
.hero-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.95;
  color: var(--text);
  margin-bottom: 16px;
}
.hero-title em { color: var(--gold); }
.hero-sub {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero-cta { align-self: flex-end; margin-bottom: 4px; }

/* ============================================================
   CONCEITO
   ============================================================ */
#conceito {
  padding: 120px 0;
  background: var(--bg);
}
.manifesto {
  border-left: 2px solid var(--gold);
  padding-left: 32px;
  margin-bottom: 80px;
  max-width: 600px;
}
.manifesto p {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.3;
  color: var(--text);
}
.manifesto em { color: var(--gold); }
.valores {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.valor {
  padding: 40px 40px 40px 0;
  border-top: 1px solid rgba(201,169,110,0.2);
}
.valor:not(:first-child) {
  padding-left: 40px;
  border-left: 1px solid rgba(201,169,110,0.1);
}
.valor--highlight {
  background: var(--gold-faint);
}
.valor p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
}

/* ============================================================
   SERVIÇOS
   ============================================================ */
#servicos {
  padding: 120px 0;
  background: var(--bg-card);
}
.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 60px;
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: rgba(201,169,110,0.1);
}
.service-card {
  background: var(--bg-card);
  position: relative;
  padding: 48px 40px;
  border: 1px solid rgba(201,169,110,0.12);
  transition: border-color var(--transition);
}
.service-card:hover { border-color: var(--gold-dim); }
.services-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.service-card--small {
  flex: 1;
  padding: 32px 36px;
}
.service-num {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 10px;
  letter-spacing: 3px;
  color: rgba(201,169,110,0.4);
  font-family: var(--font-sans);
}
.service-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.1;
  color: var(--text);
}
.service-title em { color: var(--gold); font-style: italic; }
.service-title--sm { font-size: clamp(20px, 2.5vw, 28px); }
.service-list {
  list-style: none;
  margin-top: 16px;
}
.service-list li {
  font-size: 13px;
  color: var(--text-muted);
  padding: 6px 0;
  border-bottom: 1px solid rgba(201,169,110,0.08);
  line-height: 1.4;
}
.service-list li:last-child { border-bottom: none; }
.service-list--inline li {
  font-size: 12px;
  padding: 4px 0;
}

/* ============================================================
   EQUIPA
   ============================================================ */
#equipa {
  padding: 120px 0;
  background: var(--bg);
}
.team-intro {
  font-size: clamp(20px, 2.5vw, 28px);
  color: var(--text-mid);
  max-width: 560px;
  line-height: 1.5;
  margin-bottom: 72px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}
.team-photo-wrap {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--gold-dim);
  margin-bottom: 24px;
  filter: grayscale(80%);
  transition: filter var(--transition), border-color var(--transition);
}
.team-member:hover .team-photo-wrap {
  filter: grayscale(0%);
  border-color: var(--gold);
}
.team-photo { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.team-info {}
.team-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  color: var(--text);
  margin: 8px 0 12px;
}
.team-quote {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  font-style: italic;
}

/* ============================================================
   CONTACTO
   ============================================================ */
#contacto {
  padding: 120px 0;
  background: var(--bg-card);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-tagline {
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 32px;
}
.contact-tagline em { color: var(--gold); }
.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
  font-size: 10px;
}
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group input,
.form-group textarea {
  background: var(--bg);
  border: 1px solid rgba(201,169,110,0.2);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 300;
  padding: 14px 16px;
  border-radius: var(--radius);
  transition: border-color var(--transition);
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--gold); }
.form-group input.invalid,
.form-group textarea.invalid { border-color: #c04040; }
.form-error {
  font-size: 11px;
  color: #c04040;
  display: none;
}
.form-error.visible { display: block; }
.form-success {
  font-size: 12px;
  color: var(--gold);
  text-align: center;
  display: none;
  padding: 12px;
  border: 1px solid var(--gold-dim);
}
.form-success.visible { display: block; }
.map-wrap {
  width: 100%;
  height: 360px;
  border: 1px solid rgba(201,169,110,0.15);
  border-radius: var(--radius);
  overflow: hidden;
  filter: grayscale(80%) invert(90%);
  margin-bottom: 24px;
}
.contact-address { padding: 0 4px; }
.contact-address p { font-size: 14px; color: var(--text-mid); margin-top: 8px; line-height: 1.6; }

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: var(--bg-footer);
  padding: 60px 0 32px;
  border-top: 1px solid rgba(201,169,110,0.12);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(201,169,110,0.08);
  margin-bottom: 32px;
}
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-nav {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy { font-size: 11px; color: rgba(85,85,85,0.7); }
.footer-legal {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-legal a {
  font-size: 11px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-legal a:hover { color: var(--gold); }
.footer-rgpd { font-size: 10px; color: rgba(85,85,85,0.6); }

/* ============================================================
   WHATSAPP BUTTON FLUTUANTE
   ============================================================ */
#whatsapp-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 90;
  width: 52px;
  height: 52px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  transition: transform var(--transition), box-shadow var(--transition);
}
#whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.5);
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(13,13,13,0.97);
  border-top: 1px solid rgba(201,169,110,0.2);
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
#cookie-banner.visible { transform: translateY(0); }
#cookie-banner p { font-size: 12px; color: var(--text-muted); }
#cookie-banner a { color: var(--gold); }
#cookie-accept {
  background: var(--gold);
  color: var(--bg);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: opacity var(--transition);
}
#cookie-accept:hover { opacity: 0.85; }

/* ============================================================
   RESPONSIVE — tablet (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .services-col { flex-direction: row; gap: 2px; }
  .service-card--small { flex: 1; }
  .contact-grid { gap: 48px; }
  .team-grid { gap: 32px; }
}

/* ============================================================
   RESPONSIVE — mobile (max 768px)
   ============================================================ */
@media (max-width: 768px) {
  .container { padding: 0 20px; }

  /* nav */
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }

  /* hero */
  .hero-bottom { flex-direction: column; gap: 24px; align-items: flex-start; }
  .hero-cta { align-self: flex-start; }

  /* conceito */
  #conceito { padding: 80px 0; }
  .valores { grid-template-columns: 1fr; }
  .valor:not(:first-child) { padding-left: 0; border-left: none; border-top: 1px solid rgba(201,169,110,0.2); }

  /* serviços */
  #servicos { padding: 80px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .services-col { flex-direction: column; }

  /* equipa */
  #equipa { padding: 80px 0; }
  .team-grid { grid-template-columns: 1fr; gap: 48px; }

  /* contacto */
  #contacto { padding: 80px 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }

  /* footer */
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-legal { flex-direction: column; gap: 12px; align-items: flex-start; }

  /* WhatsApp */
  #whatsapp-btn { bottom: 20px; right: 20px; width: 46px; height: 46px; }

  /* cookie */
  #cookie-banner { flex-direction: column; padding: 20px; text-align: center; }
}
