/* =========================================================
   DETAIL 1121 - ESTILOS GERAIS
   Edita aqui as cores, tamanhos e aparência do site.
   ========================================================= */

:root {
  --bg: #f6f1e8;
  --surface: #fffdfa;
  --surface-soft: #eee5d8;
  --text: #222222;
  --muted: #6c665e;
  --gold: #b98538;
  --gold-light: #d7b36e;
  --border: #d9cfc1;
  --dark: #282725;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", Arial, sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

/* =========================================================
   CABEÇALHO / MENU
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 82px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255, 253, 250, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.brand img {
  width: 110px;
  height: 62px;
  object-fit: cover;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  color: #3d3934;
}

.nav a:hover,
.nav a.active {
  color: var(--gold);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.7rem;
  cursor: pointer;
}

/* =========================================================
   BOTÕES
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 25px;
  border: 1px solid var(--gold);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(90, 70, 35, 0.12);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #171717;
}

.btn-outline {
  background: transparent;
  color: var(--text);
}

/* =========================================================
   TÍTULOS / SECÇÕES
   ========================================================= */

.section {
  padding: 88px 5vw;
  background: var(--surface);
}

.section-alt {
  background: var(--surface-soft);
}

.section-heading {
  max-width: 800px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading h1,
.section-heading h2,
.hero h1,
.about-copy h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  line-height: 1.08;
}

.section-heading h1,
.section-heading h2,
.about-copy h2 {
  margin: 0.2em 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.section-heading p:not(.eyebrow),
.about-copy p,
.muted {
  color: var(--muted);
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.73rem;
  font-weight: 700;
}

.page-hero {
  padding: 76px 5vw 54px;
  background: linear-gradient(135deg, #fbf7f1, #e9dece);
}

.page-hero .section-heading {
  margin-bottom: 0;
}

/* =========================================================
   PÁGINA INICIAL
   ========================================================= */

.hero {
  min-height: 72vh;
  padding: 95px 20px;
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 28%, rgba(215, 179, 110, 0.28), transparent 30%),
    linear-gradient(135deg, #fffdfa 0%, #f2e8d9 58%, #e5d4bb 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero h1 {
  margin: 0.2em 0;
  font-size: clamp(3rem, 7vw, 6rem);
}

.hero h1 span {
  color: var(--gold);
}

.hero-copy {
  color: #5f5950;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.quick-grid,
.cards-grid,
.vehicles-grid,
.contact-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.quick-grid {
  grid-template-columns: repeat(3, 1fr);
}

.info-card,
.service-card,
.vehicle-card,
.booking-form,
.contact-card,
.price-card {
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(60, 45, 25, 0.05);
}

.info-card {
  padding: 30px;
}

.info-card h3 {
  margin-top: 0;
}

.cta-strip {
  padding: 55px 5vw;
  text-align: center;
  background: #eee3d3;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-strip h2 {
  margin: 0.1em 0 0.5em;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.cta-strip p {
  color: var(--muted);
}

/* =========================================================
   SERVIÇOS
   ========================================================= */

.services-grid {
  grid-template-columns: repeat(3, 1fr);
}

.service-card {
  min-height: 250px;
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.service-number {
  position: absolute;
  top: -4px;
  right: 16px;
  color: rgba(185, 133, 56, 0.15);
  font-size: 4rem;
  font-weight: 700;
}

.service-card h3 {
  margin-top: 44px;
}

.service-card p {
  color: var(--muted);
}

.service-card a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
}

/* =========================================================
   PREÇÁRIO
   ========================================================= */

.price-grid {
  max-width: 1050px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.price-card {
  padding: 30px;
}

.price-card h2 {
  margin-top: 0;
  font-size: 1.45rem;
}

.price-card h3 {
  margin-bottom: 8px;
  font-size: 1rem;
  text-transform: uppercase;
}

.price-card p {
  margin-top: 0;
  color: var(--muted);
}

.price-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.price-item:last-child {
  border-bottom: 0;
}

.price-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
}

.price {
  white-space: nowrap;
  color: var(--gold);
  font-size: 1.05rem;
  font-weight: 700;
}

.price-note {
  color: var(--gold);
  font-weight: 700;
}

.price-wide {
  grid-column: 1 / -1;
}

.other-services-list {
  display: grid;
  gap: 12px;
}

.other-services-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.other-services-row:last-child {
  border-bottom: 0;
}

/* =========================================================
   MARCAÇÃO
   ========================================================= */

.booking-form {
  max-width: 980px;
  margin: 0 auto;
  padding: 36px;
  color: #1f1f1f;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field.full-width {
  grid-column: 1 / -1;
}

.form-field label,
.field-label,
.choice-block legend {
  color: #26231f;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  padding: 14px 15px;
  background: #ffffff;
  border: 1px solid #bfb3a3;
  border-radius: 4px;
  color: #171717;
  font: inherit;
  outline: none;
}

.booking-form input::placeholder,
.booking-form textarea::placeholder {
  color: #8b8379;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(185, 133, 56, 0.1);
}

.choice-block {
  margin: 26px 0 0;
  padding: 22px 0 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.choice-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #35312c;
  font-size: 0.95rem;
}

.choice input,
.consent input {
  width: auto;
  margin: 0;
}

.consent {
  margin: 24px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #3c3731;
  font-size: 0.9rem;
}

.form-actions {
  margin-top: 28px;
}

.form-note {
  margin-bottom: 0;
  color: #6e675e;
  font-size: 0.84rem;
}

/* =========================================================
   VIATURAS
   ========================================================= */

.vehicle-tabs {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.tab {
  padding: 10px 20px;
  background: #ffffff;
  border: 1px solid var(--border);
  color: #55504a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.tab.active {
  border-color: var(--gold);
  color: var(--gold);
}

.vehicles-grid {
  grid-template-columns: repeat(3, 1fr);
}

.vehicle-card {
  overflow: hidden;
}

.vehicle-image {
  height: 240px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eee5d8, #d9cbb8);
}

.vehicle-image span {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #d4c4aa;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.vehicle-info {
  padding: 24px;
}

.status {
  display: inline-block;
  padding: 4px 8px;
  background: var(--gold-light);
  color: #151515;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hidden {
  display: none !important;
}

/* =========================================================
   TRABALHOS / SOBRE / CONTACTOS
   ========================================================= */

.portfolio-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.portfolio-item {
  min-height: 300px;
  padding: 24px;
  display: grid;
  align-items: end;
  background:
    radial-gradient(circle at 20% 20%, rgba(185, 133, 56, 0.16), transparent 30%),
    linear-gradient(135deg, #f6efe5, #ded0bb);
  border: 1px solid var(--border);
  color: #4c4438;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.about {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 70px;
  align-items: center;
}

.about-logo img {
  width: min(100%, 460px);
  margin: 0 auto;
}

.contact-grid {
  grid-template-columns: repeat(4, 1fr);
}

.contact-card {
  padding: 26px;
}

.contact-card span {
  display: block;
  margin-bottom: 7px;
  color: #8a8378;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* =========================================================
   RODAPÉ / AVISOS
   ========================================================= */

footer {
  padding: 38px 5vw;
  text-align: center;
  background: #ece3d7;
  border-top: 1px solid var(--border);
  color: #746d63;
}

footer img {
  width: 115px;
  height: 68px;
  margin: 0 auto 10px;
  object-fit: cover;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  max-width: 380px;
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid var(--gold);
  color: #333333;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 980px) {
  .nav {
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 5vw;
    background: #fffdfa;
    border-top: 1px solid var(--border);
  }

  .nav.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .services-grid,
  .vehicles-grid,
  .quick-grid,
  .price-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .price-wide {
    grid-column: 1 / -1;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .section {
    padding: 68px 20px;
  }

  .services-grid,
  .vehicles-grid,
  .quick-grid,
  .price-grid,
  .portfolio-grid,
  .form-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .price-wide {
    grid-column: auto;
  }

  .other-services-row,
  .price-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .booking-form {
    padding: 24px 20px;
  }

  .hero {
    padding: 78px 20px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .site-header {
    min-height: 72px;
  }

  .brand img {
    width: 92px;
    height: 52px;
  }

  .nav {
    top: 72px;
  }

  .page-hero {
    padding: 58px 20px 42px;
  }
}

/* =========================================================
   CONTEÚDO DINÂMICO (SUPABASE)
   ========================================================= */
.empty-state {
  grid-column: 1 / -1;
  padding: 42px 25px;
  text-align: center;
  background: #fff;
  border: 1px dashed #c9baa6;
  color: var(--muted);
}
.vehicle-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vehicle-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #6f665a;
}
.works-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.work-card {
  background: #fff;
  border: 1px solid var(--border);
  overflow: hidden;
}
.work-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}
.work-card-body { padding: 22px; }
.work-card-body h3 { margin-top: 0; }
.work-card-body p { color: var(--muted); }
.toast[data-type="success"] { border-color: #668a68; }
.toast[data-type="error"] { border-color: #a9655e; }
button:disabled { opacity: .65; cursor: wait; }
@media (max-width: 980px) { .works-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 650px) { .works-grid { grid-template-columns: 1fr; } }

/* =========================================================
   V6 - LOGÓTIPO REDONDO + ADMINISTRAÇÃO INTEGRADA
   ========================================================= */
.brand img,
footer img {
  border-radius: 50%;
  aspect-ratio: 1;
  object-fit: cover;
}

.brand img {
  width: 64px;
  height: 64px;
}

footer img {
  width: 72px;
  height: 72px;
}

.footer-admin-link {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.footer-admin-link:hover { color: var(--gold); }

.form-section-spaced { margin-top: 24px; }

.address-block {
  margin: 18px 0 28px;
  padding: 22px;
  background: #fbf7f0;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.address-block[hidden],
.admin-context[hidden],
.inline-editor[hidden],
.admin-only-control[hidden] {
  display: none !important;
}

.address-block h3 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.content-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.content-toolbar-end { justify-content: flex-end; }

.inline-editor {
  margin: 0 0 34px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fbf7f0;
}

.inline-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.inline-editor-head h2 { margin: 0; }

.icon-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.compact-form { max-width: 880px; }

.card-admin-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.card-admin-actions button,
.admin-action {
  border: 1px solid #c8bcae;
  background: #fff;
  color: var(--text);
  border-radius: 8px;
  padding: 9px 13px;
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
}

.card-admin-actions button:hover,
.admin-action:hover { border-color: var(--gold); }

.card-admin-actions .danger,
.admin-action.danger {
  color: #9b3c35;
  border-color: #e2b4af;
}

.admin-action.primary {
  background: var(--gold);
  color: #171717;
  border-color: var(--gold);
}

.admin-action.subtle { color: var(--muted); }

.admin-context {
  border-top: 1px solid var(--border);
  background: #f2ece2;
}

.admin-context-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 26px;
}

.admin-context-head h2 {
  margin: 0 0 6px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2rem;
}

.admin-context-head p { margin-bottom: 0; }

.admin-context-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-stats-inline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.admin-stats-inline > div {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fffdfa;
}

.admin-stats-inline span {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: .68rem;
  font-weight: 700;
}

.admin-stats-inline strong {
  display: block;
  margin-top: 4px;
  font-size: 1.6rem;
}

.admin-booking-list {
  display: grid;
  gap: 12px;
  margin-bottom: 38px;
}

.booking-admin-card {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fffdfa;
}

.booking-admin-main h3 { margin: 7px 0 4px; }
.booking-admin-main p { margin: 4px 0; font-size: .88rem; }
.booking-admin-actions {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.booking-status {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eee7dc;
  text-transform: uppercase;
  font-size: .63rem;
  font-weight: 800;
  letter-spacing: .05em;
}

.booking-status.aceite { background: #e3f3e7; color: #316d43; }
.booking-status.recusado { background: #f7e3e1; color: #9a4038; }
.booking-status.concluido { background: #e5ecf7; color: #405f8d; }
.muted-small { color: var(--muted); font-size: .78rem !important; }
.booking-notes { padding-top: 8px; color: var(--muted); }

.calendar-shell {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fffdfa;
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--border);
}

.calendar-head h3 {
  min-width: 220px;
  margin: 0;
  text-align: center;
  text-transform: capitalize;
}

.calendar-nav {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-size: 1.4rem;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays span {
  padding: 10px;
  text-align: center;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  font-size: .72rem;
  font-weight: 700;
}

.calendar-day {
  min-height: 120px;
  padding: 10px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fffdfa;
}

.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day.is-empty { background: #faf6ef; }
.calendar-day > strong { font-size: .8rem; }
.calendar-events { display: grid; gap: 6px; margin-top: 8px; }

.calendar-event {
  padding: 7px;
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  background: #f6efe3;
  font-size: .68rem;
  line-height: 1.3;
}

.calendar-event.concluido { opacity: .6; }
.calendar-event b,
.calendar-event span,
.calendar-event small { display: block; }

@media (max-width: 820px) {
  .content-toolbar,
  .admin-context-head,
  .booking-admin-card { align-items: stretch; flex-direction: column; }
  .admin-stats-inline { grid-template-columns: repeat(2, 1fr); }
  .calendar-shell { overflow-x: auto; }
  .calendar-weekdays,
  .calendar-grid { min-width: 760px; }
}

/* =========================================================
   V7 - GALERIA DE FOTOS / VÍDEOS NOS TRABALHOS
   ========================================================= */
.work-media-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  background: #111;
}

.work-media-gallery img,
.work-media-gallery video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #111;
}

/* =========================================================
   CONFIRMAÇÃO DE MARCAÇÃO
   ========================================================= */
.success-page {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
  padding: 72px 24px;
}

.success-card {
  width: min(720px, 100%);
  background: #ffffff;
  border: 1px solid var(--line, #ddcfbb);
  border-radius: 20px;
  padding: clamp(32px, 6vw, 64px);
  text-align: center;
  box-shadow: 0 18px 60px rgba(31, 27, 23, 0.08);
}

.success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #c7923c;
  color: #111111;
  font-size: 34px;
  font-weight: 700;
}

.success-card h1 {
  margin: 8px 0 18px;
  font-family: "Playfair Display", serif;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
}

.success-card p {
  max-width: 610px;
  margin-left: auto;
  margin-right: auto;
}

.success-lead {
  font-size: 1.08rem;
  font-weight: 600;
  color: #25211d;
}

.success-note {
  margin: 30px 0;
  padding: 18px 20px;
  border: 1px solid #e1d3bd;
  border-radius: 12px;
  background: #fbf6ee;
  display: grid;
  gap: 6px;
  text-align: left;
}

.success-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* =========================================================
   V9 - RESPONSIVIDADE + FALLBACK DA ÁREA RESERVADA
   Estas regras garantem uma boa apresentação em desktop,
   tablet e telemóvel e mantêm o login utilizável mesmo que
   o CSS específico da pasta admin não seja carregado.
   ========================================================= */

/* Logótipo compacto e redondo no cabeçalho */
.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

/* Evita imagens/cartões a rebentarem a largura */
img, video, iframe {
  max-width: 100%;
}

.vehicle-card,
.work-card,
.info-card,
.price-card,
.booking-form,
.address-box {
  min-width: 0;
}

/* Fallback completo do login admin no CSS global */
.admin-body {
  min-height: 100vh;
  margin: 0;
  background: #f4f0e9;
  color: #24211d;
}

.admin-login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
  background: radial-gradient(circle at 50% 18%, rgba(185, 133, 56, .15), transparent 34%),
              linear-gradient(135deg, #f7f3ec 0%, #eee6db 100%);
}

.admin-login-card {
  width: min(100%, 440px);
  padding: 38px;
  background: #fffdf9;
  border: 1px solid #ded4c6;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(45, 36, 25, .13);
}

.admin-login-card > img {
  width: 118px !important;
  height: 118px !important;
  max-width: 118px !important;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 24px;
}

.admin-login-card h1 {
  margin: 0 0 8px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 5vw, 2.35rem);
  line-height: 1.1;
}

.admin-login-card .muted {
  margin: 0 0 24px;
  color: #777066;
}

.admin-login-card label {
  display: block;
  margin: 17px 0 7px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.admin-login-card input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #cfc3b4;
  border-radius: 8px;
  background: #fff;
  color: #211e1a;
  font: inherit;
}

.admin-login-card .admin-full-button {
  width: 100%;
  margin-top: 24px;
  border-radius: 8px;
}

.back-site-link {
  display: inline-block;
  margin-top: 18px;
  color: #777066;
  text-decoration: none;
}

/* Tablet */
@media (max-width: 980px) {
  .site-header {
    padding: 0 24px;
  }

  .brand img {
    width: 58px;
    height: 58px;
  }

  .hero h1 {
    font-size: clamp(3rem, 8vw, 5.2rem);
  }

  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Telemóvel */
@media (max-width: 650px) {
  .site-header {
    min-height: 68px;
    padding: 0 16px;
  }

  .brand img {
    width: 50px;
    height: 50px;
  }

  .nav {
    top: 68px;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    padding: 18px 20px 24px;
    gap: 0;
  }

  .nav a {
    width: 100%;
    padding: 13px 0;
    border-bottom: 1px solid #eee3d4;
  }

  .hero {
    min-height: auto;
    padding: 68px 20px;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 13vw, 4rem);
    line-height: .98;
  }

  .hero-copy {
    font-size: .92rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .works-grid {
    grid-template-columns: 1fr;
  }

  .admin-login-shell {
    padding: 20px 14px;
    place-items: center;
  }

  .admin-login-card {
    padding: 28px 20px;
    border-radius: 14px;
  }

  .admin-login-card > img {
    width: 96px !important;
    height: 96px !important;
    max-width: 96px !important;
  }
}

@media (max-width: 380px) {
  .section,
  .hero,
  .page-hero {
    padding-left: 15px;
    padding-right: 15px;
  }

  .booking-form,
  .admin-login-card {
    padding-left: 16px;
    padding-right: 16px;
  }
}


/* ===== V11: notificações ===== */
.push-help {
  width: 100%;
  margin: 8px 0 0;
  font-size: .84rem;
  color: #625b52;
}
@media (max-width: 720px) {
  #enablePushNotifications { width: 100%; }
}


/* =========================================================
   V12 - AJUSTES FINAIS VIATURAS + AÇÕES DE MARCAÇÃO
   ========================================================= */
.vehicle-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.vehicle-image {
  position: relative;
  height: 270px;
  overflow: hidden;
  flex: 0 0 270px;
}

.vehicle-image img {
  display: block;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}

.vehicle-info {
  position: relative;
  z-index: 1;
  background: #fff;
  flex: 1 1 auto;
}

.booking-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

@media (max-width: 650px) {
  .vehicle-image {
    height: 230px;
    flex-basis: 230px;
  }

  .booking-admin-actions {
    justify-content: flex-start;
  }

  .booking-admin-actions .admin-action {
    flex: 1 1 calc(50% - 8px);
  }
}
