:root {
  --green: #1f4b3a;
  --gold: #c9a66b;
  --offwhite: #f7f5f2;
  --charcoal: #2b2b2b;
  --gold-accent: #C5A059;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--offwhite);
  color: var(--charcoal);
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--green);
  color: white;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  color: var(--gold);
  font-size: 18px;
  transform: translateY(-1px);
  /* micro ajuste visual */
}


.logo span {
  color: var(--gold);
}

.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(31, 75, 58, 0.95);
  backdrop-filter: blur(6px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
  max-width: 1200px;
  margin: auto;
  padding: 28px 24px;
  /* ⬅ mais respiro */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  letter-spacing: 1px;
}

.logo-light {
  color: #ffffff;
}

.logo-gold {
  color: #c9a66b;
  margin-left: 4px;
}

.nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: .3s;
}

.nav a:hover {
  color: #c9a66b;
}

.nav-cta {
  padding: 12px 24px;
  border: 1px solid #c9a66b;
  color: #c9a66b !important;
}

/* HERO */
.hero {
  height: 90vh;
  background: url("https://images.unsplash.com/photo-1600585152220-90363fe7e115") center/cover;
  position: relative;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(31, 75, 58, 0.7);
}

.hero-content {
  position: relative;
  max-width: 700px;
  margin-left: 60px;
  color: white;
}

.hero h1 {
  font-family: 'Playfair Display';
  font-size: 64px;
}

.hero h1 span {
  color: var(--gold);
}

.hero-buttons {
  margin-top: 30px;
  display: flex;
  gap: 20px;
}

.btn-gold {
  background: var(--gold);
  color: var(--green);
  padding: 16px 32px;
  font-weight: bold;
  text-decoration: none;
}

.btn-outline {
  border: 1px solid white;
  color: white;
  padding: 16px 32px;
  text-decoration: none;
}

/* CATALOGO */

.catalogo {
  padding: 120px 24px;
  background: #ffffff;
}

.catalogo-header {
  max-width: 700px;
  margin: 0 auto 64px;
  text-align: center;
}

.catalogo-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  color: var(--green);
  margin-bottom: 12px;
}

.catalogo-header p {
  color: #666;
  font-size: 16px;
}

.catalogo-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.catalogo-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
}

.catalogo-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform .6s ease;
}

.catalogo-card:hover img {
  transform: scale(1.08);
}

.catalogo-info {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(31, 75, 58, 0.85),
      rgba(31, 75, 58, 0.2));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  color: #fff;
}

.catalogo-info h3 {
  font-size: 22px;
  margin-bottom: 4px;
}

.catalogo-info span {
  font-size: 13px;
  letter-spacing: 1px;
  opacity: .8;
}


/* SIMULADOR */
.simulator {
  padding: 120px 20px;
  display: flex;
  justify-content: center;
}

.simulator-box {
  background: var(--green);
  color: white;
  padding: 50px;
  width: 100%;
  max-width: 480px;
}

.simulator-box h2 {
  color: var(--gold);
  font-family: 'Playfair Display';
  margin-bottom: 30px;
}

.simulator-box input,
.simulator-box select {
  width: 100%;
  margin-bottom: 20px;
}

.resultado strong {
  font-size: 36px;
  color: var(--gold);
}

.investment {
  padding: 120px 20px;
  display: flex;
  justify-content: center;
  background: linear-gradient(180deg, #f7f5f2, #ffffff);
}

.investment-card {
  background: #1f4b3a;
  color: #fff;
  max-width: 520px;
  width: 100%;
  padding: 60px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .15);
}

.investment-card h2 {
  font-family: 'Playfair Display';
  color: #c9a66b;
  font-size: 32px;
  margin-bottom: 8px;
}

.subtitle {
  opacity: .7;
  margin-bottom: 40px;
}

.field {
  margin-bottom: 32px;
}

.field label {
  display: block;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: .6;
  margin-bottom: 12px;
}

.field input,
.field select {
  width: 100%;
}

.value {
  display: block;
  margin-top: 8px;
  font-size: 18px;
}

.result {
  border-top: 1px solid rgba(255, 255, 255, .15);
  padding-top: 32px;
}

.price {
  font-size: 48px;
  font-family: 'Playfair Display';
  color: #c9a66b;
}

.note {
  font-size: 12px;
  opacity: .6;
}

.section {
  max-width: 1200px;
  margin: auto;
  padding: 120px 24px;
}

/* CAROUSEL */
.carousel {
  width: 100%;
  height: 420px;
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease-in-out;
}

.carousel-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Ajuste mobile */
@media (max-width: 600px) {
  .carousel {
    height: 300px;
  }
}



/* ===== SIMULADOR PREMIUM ===== */

.investment-section {
  padding: 160px 24px;
  background: linear-gradient(180deg,
      #ffffff,
      #f3efe9);
}

.investment-wrapper {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}

.investment-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  color: var(--green);
  margin-bottom: 24px;
}

.investment-text p {
  font-size: 18px;
  color: #555;
  margin-bottom: 32px;
  line-height: 1.6;
}

.investment-text ul {
  list-style: none;
}

.investment-text li {
  margin-bottom: 12px;
  font-size: 16px;
  color: #333;
}

/* SIMULADOR CARD (AUMENTADO) */
.investment-card {
  background: var(--green);
  color: #fff;
  padding: 72px;
  box-shadow: 0 60px 120px rgba(0, 0, 0, .18);
}

.investment-card h2 {
  font-size: 36px;
}

.price {
  font-size: 56px;
}



/* FORM */
.form-section {
  padding: 120px 24px;
  background: var(--offwhite);
}

.form-section h2 {
  font-family: 'Playfair Display', serif;
  text-align: center;
  margin-bottom: 8px;
}

.form-subtitle {
  text-align: center;
  color: #777;
  margin-bottom: 48px;
}

.form-section form {
  max-width: 520px;
  margin: auto;
  background: #fff;
  padding: 48px 40px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .08);
}

.form-section input,
.form-section textarea {
  width: 100%;
  padding: 14px 12px;
  margin-bottom: 24px;
  border: none;
  border-bottom: 2px solid var(--gold);
  font-size: 14px;
}

.form-section button {
  width: 100%;
  padding: 16px;
  background: var(--gold);
  border: none;
  font-weight: bold;
  letter-spacing: 2px;
  cursor: pointer;
}

/* MOBILE */
@media (max-width: 600px) {
  .catalogo-card img {
    height: 300px;
  }

  .form-section form {
    padding: 32px 24px;
  }

  .catalogo-header h2 {
    font-size: 32px;
  }
}

/* ===== FORM PREMIUM ===== */

.premium-form {
  padding: 140px 24px;
  background: var(--offwhite);
}

.form-wrapper {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}

.form-text h2 {
  margin-top: 20px;
  margin-left: -200px;
  color: var(--green);
  font-size: 44px;
  /* mantém premium sem ficar gigante */
  line-height: 1.1;
  /* tira o “estranho” do espaçamento */
  letter-spacing: -0.5px;
  /* deixa mais sofisticado */
  margin-bottom: 30px;
}

.form-text p {
  margin-left: -40px;
  max-width: 520px;
  /* melhora leitura */
  line-height: 1.7;
  color: #555;
}

.form-wrapper form {
  background: #fff;
  padding: 72px 64px;
  box-shadow: 0 60px 120px rgba(0, 0, 0, .12);
}

.form-wrapper button {
  font-size: 14px;
  letter-spacing: 3px;
}

.form-helper {
  margin-top: 18px;
  font-size: 14px;
  color: #666;
}

.env-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.env-tags button {
  background: transparent;
  border: 1px solid #c9a66b;
  color: #1f4b3a;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 999px;
  cursor: pointer;
}


/* MOBILE */
@media (max-width: 900px) {

  .investment-wrapper,
  .form-wrapper {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .investment-card,
  .form-wrapper form {
    padding: 40px 32px;
  }

  .investment-text h2,
  .form-text h2 {
    font-size: 34px;
    margin-left: 10px;
  }
}

@media (min-width: 1000px) {
  .form-text {
    padding-top: 10px;
  }
}

/* Mobile: centraliza pra ficar bonito */
@media (max-width: 900px) {
  .form-text {
    text-align: center;
  }

  .form-text p {
    margin: 0 auto;
  }

  .form-text h2 {
    font-size: 34px;
  }
}

/*seção reparos*/
/* ===== REPAROS & MANUTENÇÃO ===== */
.repair-section {
  padding: 140px 24px;
  background: linear-gradient(180deg, #ffffff, #f3efe9);
}

.repair-wrapper {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}

.repair-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 44px;
  color: var(--green);
  margin-bottom: 18px;
}

.repair-text p {
  color: #555;
  line-height: 1.7;
  max-width: 640px;
}

.repair-tags {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.repair-tags .tag {
  border: 1px solid rgba(31, 75, 58, 0.25);
  background: rgba(255, 255, 255, 0.65);
  color: var(--green);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  transition: .2s ease;
}

.repair-tags .tag:hover {
  border-color: rgba(31, 75, 58, 0.5);
  transform: translateY(-1px);
}

.repair-card {
  background: #fff;
  padding: 56px 44px;
  box-shadow: 0 60px 120px rgba(0, 0, 0, 0.10);
}

.repair-card h3 {
  font-family: 'Playfair Display', serif;
  color: var(--green);
  font-size: 26px;
  margin-bottom: 16px;
}

.r-label {
  display: block;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: .7;
  margin: 18px 0 10px;
}

.repair-card textarea,
.repair-card select {
  width: 100%;
  border: none;
  border-bottom: 2px solid var(--gold);
  padding: 12px 10px;
  font-size: 14px;
  background: transparent;
}

.repair-grid {
  margin-top: 6px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.btn-repair {
  margin-top: 22px;
  width: 100%;
  padding: 16px;
  background: #25d366;
  border: none;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  font-weight: 800;
  letter-spacing: 1.5px;
  font-size: 14px;
  color: #fff;

  transition: .2s ease;
}

.btn-repair:hover {
  background: #1ebe5d;
  transform: translateY(-1px);
}

.btn-repair i {
  font-size: 18px;
}

.repair-note {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  opacity: .65;
}

/* Responsivo */
@media (max-width: 900px) {
  .repair-wrapper {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .repair-text {
    text-align: center;
  }

  .repair-text p {
    margin: 0 auto;
  }

  .repair-tags {
    justify-content: center;
  }

  .repair-card {
    padding: 40px 28px;
  }
}

/* ===== FOOTER ===== */

.footer {
  background: var(--green);
  color: rgba(255, 255, 255, 0.85);
  padding-top: 80px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  padding: 0 24px 60px;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 64px;
}

.footer-brand h3 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 360px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 12px;
  transition: color .3s;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-contact p {
  font-size: 14px;
  margin-bottom: 12px;
}

.footer-contact .contact-item {
  display: flex;
  align-items: center;
  gap: 10px;

  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  margin-bottom: 12px;

  font-size: 14px;
}

.footer-contact .contact-item i {
  width: 18px;
  /* alinha todos os ícones em coluna */
  color: var(--gold);
  font-size: 14px;
}

.footer-contact .contact-item:hover {
  color: #fff;
}


.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  padding: 24px;
  font-size: 12px;
  opacity: 0.7;
}

/* MOBILE */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer {
    text-align: center;
  }

  .footer-brand p {
    margin: auto;
  }
}

@media (max-width: 900px) {
  .footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-contact .contact-item {
    justify-content: center;
  }
}


.cta-chat {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}

#ctaButton {
  background: #c9a24d;
  border: none;
  color: #000;
  font-size: 22px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
}

.chat-box {
  display: none;
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 280px;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
}

.chat-header {
  background: #c9a24d;
  padding: 10px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
}

.chat-body {
  padding: 10px;
  font-size: 14px;
  color: #fff;
}

.bot {
  background: #222;
  padding: 6px 8px;
  border-radius: 6px;
}

.chat-actions button {
  width: 100%;
  border: none;
  padding: 10px;
  cursor: pointer;
}

.cta-fab {
  background: linear-gradient(135deg, #c9a24d, #e3c57a);
  border: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-icon {
  font-size: 26px;
  color: #000;
  line-height: 1;
}


.chat-box {
  width: 260px;
  background: #111;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .4);
  overflow: hidden;
}

.chat-header {
  background: #c9a24d;
  color: #000;
  font-weight: 600;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
}

.chat-body {
  padding: 12px;
  font-size: 13px;
}

.bot-msg {
  background: #1c1c1c;
  padding: 8px 10px;
  border-radius: 8px;
  line-height: 1.4;
}

.chat-actions {
  display: flex;
  gap: 6px;
  padding: 10px;
}

.chat-actions button {
  flex: 1;
  padding: 8px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 13px;
}

.chat-actions .outline {
  background: transparent;
  border: 1px solid #c9a24d;
  color: #c9a24d;
}


.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
}

.modal-content {
  background: #fff;
  max-width: 360px;
  margin: 10% auto;
  padding: 20px;
  border-radius: 12px;
}

.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  max-width: 320px;
}

.modal-content h3 {
  margin-bottom: 12px;
}

.modal-content input,
.modal-content select {
  width: 100%;
  margin-bottom: 10px;
  padding: 8px;
}

.modal-content .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-gold2 {
  background: #c9a24d;
  border: none;
  padding: 10px;
  width: 100%;
  border-radius: 6px;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  z-index: 9999;
}

.modal-content {
  position: relative;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

.socials i {
  margin-top: 20px;
  margin-right: 5px;
  color: var(--gold-accent);
  font-size: 1.7rem;
  transition: 0.3s;

}

.socials i:hover {
  color: #ffffff;
}



/* ADMIN DASHBOARD */

.admin {
  background: #f4f4f4;
}

.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 240px;
  background: #1f4b3a;
  color: white;
  padding: 40px;
}

.admin-sidebar h2 {
  font-family: 'Playfair Display';
  margin-bottom: 40px;
}

.admin-sidebar a {
  display: block;
  margin-bottom: 20px;
  opacity: .6;
  cursor: pointer;
}

.admin-sidebar a.active {
  opacity: 1;
  color: #c9a66b;
}

.admin-content {
  flex: 1;
  padding: 60px;
}

table {
  width: 100%;
  background: white;
  border-collapse: collapse;
}

th,
td {
  padding: 20px;
  border-bottom: 1px solid #eee;
}

th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* MINIATURAS */
.thumb {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  margin-right: 6px;
  border: 1px solid #ddd;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .8);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal img {
  max-width: 90%;
  max-height: 90%;
}

.modal .close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

.btn-whatsapp-submit {
  width: 100%;
  padding: 16px;
  background: #c9a66b;
  border: none;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  font-weight: 700;
  letter-spacing: 2px;
  font-size: 14px;
  color: #fff;
}

.btn-whatsapp-submit i {
  font-size: 18px;
}

.whatsapp-icon {
  width: 22px;
  height: 22px;
}

.btn-whatsapp-submit:hover {
  background: #1ebe5d;
}

.btn-whatsapp-submit:hover .whatsapp-icon {
  transform: scale(1.1);
}

.cta-icon {
  width: 26px;
  height: 26px;
  color: #000;
}



/* ===============================
   ADMIN – LAYOUT
================================ */
body.admin {
  background: #f5f6f8;
  font-family: 'Inter', sans-serif;
}

.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* ===============================
   SIDEBAR
================================ */
.admin-sidebar {
  width: 220px;
  background: #0f3d2e;
  color: #fff;
  padding: 24px 20px;
}

.admin-sidebar h2 {
  font-size: 22px;
  margin-bottom: 32px;
}

.admin-sidebar nav a {
  display: block;
  color: #cfd8d5;
  text-decoration: none;
  margin-bottom: 14px;
  font-size: 14px;
}

.admin-sidebar nav a.active,
.admin-sidebar nav a:hover {
  color: #fff;
  font-weight: 600;
}

/* ===============================
   CONTEÚDO
================================ */
.admin-content {
  flex: 1;
  padding: 32px;
}

.admin-content header h1 {
  margin-bottom: 4px;
}

.admin-content header p {
  color: #666;
  margin-bottom: 24px;
}

/* ===============================
   RESUMO
================================ */
.admin-resumo {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.admin-resumo div {
  background: #fff;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
}

/* ===============================
   FILTROS
================================ */
.admin-filtros {
  margin-bottom: 16px;
}

.admin-filtros select {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #ddd;
}

/* ===============================
   TABELA
================================ */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

thead {
  background: #f0f2f5;
}

th,
td {
  padding: 14px 12px;
  font-size: 14px;
  text-align: left;
}

th {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #555;
}

tbody tr {
  border-bottom: 1px solid #eee;
}

tbody tr:hover {
  background: #fafafa;
}

/* ===============================
   STATUS SELECT
================================ */
td select {
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 13px;
}

/* ===============================
   WHATSAPP BUTTON
================================ */
.btn-whatsapp {
  background: #25d366;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.btn-whatsapp:hover {
  background: #1ebc57;
}

/* ===============================
   RESPONSIVO
================================ */
@media (max-width: 900px) {
  .admin-layout {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .admin-sidebar nav {
    display: flex;
    gap: 12px;
  }

  table {
    font-size: 12px;
  }
}

.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f6f8;
}

.login-card {
  background: #fff;
  padding: 32px;
  border-radius: 12px;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .1);
  text-align: center;
}

.login-card h2 {
  margin-bottom: 4px;
}

.login-card p {
  color: #666;
  margin-bottom: 20px;
}

.login-card input {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
}

.login-card button {
  width: 100%;
  padding: 10px;
  background: #0f3d2e;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.erro {
  color: red;
  margin-top: 10px;
  font-size: 13px;
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  button,
  input,
  select,
  textarea {
    font-size: 16px;
    /* evita zoom automático no mobile */
  }

  .hero {
    padding-top: 120px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  button,
  input,
  select,
  textarea {
    font-size: 16px;
    /* evita zoom automático no mobile */
  }

  .hero {
    padding-top: 120px;
  }
}

.footer-admin a {
  font-size: 12px;
  color: #999;
  text-decoration: none;
}

.footer-admin a:hover {
  text-decoration: underline;
}


@media (max-width: 768px) {
  .header-container {
    padding: 16px;
    flex-direction: column;
    gap: 16px;
  }

  .nav {
    flex-direction: column;
    gap: 12px;
  }

  .hero-content {
    margin-left: 0;
    padding: 0 20px;
    text-align: center;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-buttons {
    flex-direction: column;
  }
}

/* ===============================
   PORTFÓLIO CTA (abaixo dos cards)
================================ */
.portfolio-cta {
  max-width: 1200px;
  margin: 46px auto 0;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.btn-portfolio {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 16px 34px;
  border-radius: 999px;

  background: linear-gradient(135deg, #c9a66b, #e3c57a);
  color: #1f4b3a;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.4);

  box-shadow: 0 22px 44px rgba(0, 0, 0, .16);
  transform: translateZ(0);
  animation: btnWiggle 2.4s ease-in-out infinite;
}

.btn-portfolio i {
  font-size: 18px;
}

.btn-portfolio:hover {
  transform: translateY(-2px);
  animation: none;
}

.pulse-ring {
  position: absolute;
  inset: -10px;
  border-radius: 999px;
  border: 2px solid rgba(201, 166, 107, 0.45);
  animation: ringPulse 1.8s ease-out infinite;
  pointer-events: none;
}

.portfolio-cta-sub {
  color: #666;
  font-size: 14px;
}

@keyframes ringPulse {
  0% {
    transform: scale(.9);
    opacity: .65;
  }

  70% {
    transform: scale(1.12);
    opacity: 0;
  }

  100% {
    transform: scale(1.12);
    opacity: 0;
  }
}

@keyframes btnWiggle {

  0%,
  100% {
    transform: translateY(0);
  }

  92% {
    transform: translateY(0);
  }

  94% {
    transform: translateY(-2px);
  }

  96% {
    transform: translateY(0);
  }

  98% {
    transform: translateY(-1px);
  }
}

/* ===============================
   PÁGINA PORTFÓLIO
================================ */
body.portfolio-page {
  background: #ffffff;
}

.portfolio-wrap {
  padding-top: 110px;
  /* compensa header fixo */
}

.portfolio-hero {
  background: linear-gradient(180deg, rgba(31, 75, 58, .92), rgba(31, 75, 58, .72));
  padding: 56px 24px 44px;
}

.portfolio-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  color: #fff;
}

.portfolio-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  margin-bottom: 8px;
}

.portfolio-hero p {
  opacity: .9;
  max-width: 720px;
  line-height: 1.6;
}

.portfolio-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-portfolio-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
}

.portfolio-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 42px 24px 90px;
}

.portfolio-status {
  background: rgba(31, 75, 58, .06);
  border: 1px solid rgba(31, 75, 58, .12);
  color: #1f4b3a;
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 22px;
}

.portfolio-status.hide {
  display: none;
}

.portfolio-section {
  margin-top: 36px;
}

.portfolio-section h2 {
  font-family: 'Playfair Display', serif;
  color: #1f4b3a;
  font-size: 32px;
  margin-bottom: 18px;
}

.portfolio-empty {
  color: #666;
  padding: 10px 0 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Cada card mantém o mesmo tamanho e mostra a imagem INTEIRA */
.portfolio-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #0f2e24;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
  outline: none;
  box-shadow: 0 18px 36px rgba(0, 0, 0, .12);
}

/* Fundo “espelhado” (blur) por trás da imagem */
.portfolio-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 15%,
      rgba(255, 255, 255, .18),
      rgba(255, 255, 255, 0) 55%),
    linear-gradient(135deg,
      rgba(201, 166, 107, .22),
      rgba(31, 75, 58, .18));
  filter: blur(0px);
  opacity: .9;
  pointer-events: none;
}

/* “Brilho”/destaque por cima (glossy) */
.portfolio-card::after {
  content: "";
  position: absolute;
  inset: -30% -60%;
  background: linear-gradient(120deg,
      rgba(255, 255, 255, 0) 30%,
      rgba(255, 255, 255, .25) 46%,
      rgba(255, 255, 255, 0) 62%);
  transform: translateX(-40%);
  transition: transform .7s ease;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: .55;
}

.portfolio-card:hover::after,
.portfolio-card:focus-visible::after {
  transform: translateX(22%);
}

.portfolio-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* mostra inteira */
  padding: 10px;
  /* respiro para não “colar” nas bordas */
  background: rgba(0, 0, 0, .14);
  /* ajuda a destacar */
  user-select: none;
  -webkit-user-drag: none;
}

/* Marca d’água */
.portfolio-watermark {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  text-align: center;

  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;

  color: rgba(255, 255, 255, .72);
  background: rgba(0, 0, 0, .18);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

/* Tablet */
@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   MODAL FULLSCREEN
================================ */
.no-scroll {
  overflow: hidden;
}

.img-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .86);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
}

.img-modal.open {
  display: flex;
}

.img-modal img {
  max-width: 96vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}

.img-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(0, 0, 0, .35);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.img-modal-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .7);
  font-size: 12px;
  letter-spacing: 1px;
}

/* Mobile */
@media (max-width: 600px) {
  .portfolio-hero h1 {
    font-size: 34px;
  }

  .portfolio-section h2 {
    font-size: 24px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .portfolio-card {
    aspect-ratio: 1 / 1;
  }
}

/* Marca d'água dentro do modal fullscreen */
.img-modal {
  position: fixed; /* se já existir, ok */
}

.img-modal-watermark{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  pointer-events: none;
  user-select: none;

  font-size: clamp(26px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: 6px;
  text-transform: uppercase;

  color: rgba(255,255,255,0.12);
  mix-blend-mode: screen; /* dá aquele efeito “premium”; se não curtir, apaga essa linha */
}
/* ajuste de topo pra não ficar por baixo do header no mobile */
.portfolio-page .portfolio-wrap {
  padding-top: calc(90px + env(safe-area-inset-top));
}

/* se seu header tiver altura diferente, ajuste os 80px */
@media (max-width: 768px) {
  .portfolio-page .portfolio-wrap {
    padding-top: calc(90px + env(safe-area-inset-top));
  }
}

.portfolio-page .portfolio-hero {
  padding-top: calc(90px + env(safe-area-inset-top));
}

/* ===== ADMIN: cadastro ===== */
.admin-cadastro {
  margin: 18px 0 22px;
  padding: 16px;
  border-radius: 14px;
  background: #fff;
}

.admin-form .grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-form .col-2 { grid-column: span 2; }

.admin-form label { display:block; font-weight:600; margin-bottom:6px; }
.admin-form input, .admin-form select {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ddd;
}
.admin-form .hint { opacity: .75; font-size: 12px; }

.btn-primary {
  margin-top: 12px;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.btn-danger {
  margin-left: 8px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

/* ===== ADMIN: tabela responsiva ===== */
@media (max-width: 768px) {
  .admin-layout { display: block; }
  .admin-sidebar { position: sticky; top: 0; z-index: 10; }

  table, thead, tbody, th, tr { display: block; width: 100%; }
  thead { display: none; }

  tbody tr {
    background: #fff;
    border-radius: 14px;
    padding: 10px;
    margin-bottom: 12px;
  }

  tbody td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 8px;
    border-bottom: 1px solid #eee;
  }

  tbody td:last-child { border-bottom: 0; }

  tbody td::before {
    content: attr(data-label);
    font-weight: 700;
    opacity: .75;
  }

  td.acoes {
    flex-direction: column;
    align-items: stretch;
  }

  td.acoes .btn-whatsapp, td.acoes .btn-danger {
    width: 100%;
    margin: 0;
  }

  .admin-form .grid { grid-template-columns: 1fr; }
  .admin-form .col-2 { grid-column: span 1; }
}