/* =========================================
   1. VARIÁVEIS, RESET & SCROLL
   ========================================= */
html {
  scroll-behavior: smooth;
}

:root {
  --brand-gold: #baa360;
  --brand-red: #7f1810;
  --text-dark: #2c2c2c;
  --white: #ffffff;
  --light-bg: #fbfbfb;
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

h1,
h2,
h3,
h4 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-padding {
  padding: 80px 0;
}
.bg-light {
  background-color: var(--light-bg);
}

section {
  scroll-margin-top: 100px;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}
.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}
.line {
  width: 60px;
  height: 3px;
  background: var(--brand-red);
  margin: 0 auto 20px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   2. SPLIT SCREEN (HOME)
   ========================================= */
.splash-container {
  display: flex;
  height: 90vh;
  width: 100%;
  margin-top: 110px;
}

.split {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.split.tech {
  background: url("../img/capa-tech2.jpg") center/cover;
}
.split.realestate {
  background: url("../img/capa-imovel.jpg") center/cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.35) 50%,
    rgba(0, 0, 0, 0.15) 100%
  );
  transition: background 0.45s ease;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Linha decorativa dourada acima do título */
.hero-content::before {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--brand-gold);
  margin-bottom: 20px;
  transition: width 0.4s ease;
}

.split:hover .hero-content::before {
  width: 70px;
}

.hero-content h1 {
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  margin-bottom: 14px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.hero-content p {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  margin-bottom: 32px;
  max-width: 380px;
  opacity: 0.88;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  line-height: 1.6;
}

.split:hover {
  flex: 1.15;
}

.split:hover .hero-overlay {
  background: linear-gradient(
    to top,
    rgba(100, 12, 8, 0.88) 0%,
    rgba(127, 24, 16, 0.65) 55%,
    rgba(80, 10, 6, 0.35) 100%
  );
}

.split:hover .btn-primary {
  background: var(--white);
  color: var(--brand-red) !important;
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
  letter-spacing: 0.06em;
  border-color: var(--white);
}

.btn-primary {
  display: inline-block;
  background: transparent;
  color: var(--white);
  padding: 13px 36px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.35s ease;
  backdrop-filter: blur(4px);
}

/* =========================================
   3. CONTACTOS & FORMULÁRIO
   ========================================= */

#contactos {
  background: var(--light-bg);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  color: var(--brand-red);
  margin-bottom: 20px;
  font-size: 2rem;
  line-height: 1.2;
}

.contact-info > p {
  color: #555;
  font-size: 1rem;
  line-height: 1.7;
}

.info-item {
  margin-top: 28px;
}

.info-item strong {
  color: var(--brand-gold);
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.info-item p {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-form-container {
  background: var(--white);
  border-radius: 12px;
  padding: 36px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 7px;
  font-weight: 600;
  font-size: 0.85rem;
  color: #444;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fafafa;
  color: #222;
  transition:
    border-color 0.25s,
    box-shadow 0.25s,
    background 0.25s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(186, 163, 96, 0.18);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.5;
}

.form-check input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--brand-red);
  flex-shrink: 0;
}

.g-recaptcha {
  margin-top: 12px !important;
  margin-bottom: 16px !important;
}

.btn-submit {
  background: var(--brand-red);
  color: var(--white);
  border: none;
  padding: 15px 30px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  border-radius: 8px;
  width: 100%;
  transition:
    background 0.3s ease,
    transform 0.2s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 4px 14px rgba(127, 24, 16, 0.2);
}

.btn-submit:hover {
  background: #5a110b;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(127, 24, 16, 0.3);
}

.btn-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(127, 24, 16, 0.2);
}

/* =========================================
   4. RESPONSIVIDADE (MOBILE)
   ========================================= */
@media (max-width: 768px) {
  .splash-container {
    flex-direction: column;
    height: auto;
    min-height: 100svh;
    margin-top: 74px;
    padding-top: 0;
  }

  .split {
    height: 50svh;
    transition: none;
  }

  .split .hero-overlay {
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.4) 55%,
      rgba(0, 0, 0, 0.2) 100%
    );
  }

  .hero-content {
    padding: 24px 20px;
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero-content::before {
    width: 36px;
    margin-bottom: 14px;
  }

  .hero-content h1 {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 10px;
  }

  .hero-content p {
    font-size: clamp(0.85rem, 3.5vw, 1rem);
    margin-bottom: 24px;
    max-width: 300px;
  }

  .btn-primary {
    padding: 12px 30px;
    font-size: 0.85rem;
    min-width: 140px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form-container {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .splash-container {
    padding-top: 0;
  }

  .split {
    height: 48svh;
  }

  .hero-content h1 {
    font-size: clamp(1.3rem, 5.5vw, 1.7rem);
  }

  .hero-content p {
    display: none;
  }

  .btn-primary {
    padding: 11px 26px;
    font-size: 0.82rem;
  }

  .section-padding {
    padding: 60px 0;
  }
}

/* =========================================
   5. TOAST NOTIFICATIONS (Avisos Flutuantes globais)
   ========================================= */
.toast-notification {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  padding: 15px 20px;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  animation: slideUpToast 0.5s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notification.success {
  border-left: 5px solid #28a745;
}

.toast-notification.error {
  border-left: 5px solid #dc3545;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast-content i.fa-circle-check {
  color: #28a745;
  font-size: 1.5rem;
}
.toast-content i.fa-circle-xmark {
  color: #dc3545;
  font-size: 1.5rem;
}
.toast-content span {
  font-size: 0.95rem;
  color: #333;
  font-weight: 500;
}

.toast-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  margin-left: 20px;
  cursor: pointer;
  color: #aaa;
  transition: color 0.3s ease;
}

.toast-close:hover {
  color: #333;
}

@keyframes slideUpToast {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .toast-notification {
    bottom: 20px;
    right: 10px;
    left: 10px;
    padding: 12px 15px;
  }
}
