/*
Theme Name: DMA Replica
Author: Cursor
Description: WordPress replica of the DMA Solicitors Wix website with EN/PT routes.
Version: 1.0.0
Text Domain: dma-replica
*/

:root {
  --dma-burgundy: #8e3f59;
  --dma-burgundy-dark: #6f2e44;
  --dma-text: #4a4a4a;
  --dma-muted: #7a7a7a;
  --dma-light: #f4f4f4;
  --dma-white: #ffffff;
  --dma-serif: "Noticia Text", Georgia, serif;
  --dma-sans: Raleway, Poppins, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--dma-text);
  font-family: var(--dma-sans);
  font-size: 16px;
  line-height: 1.6;
  background: var(--dma-white);
}

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

.wix-bar {
  height: 52px;
  border-bottom: 1px solid #87a7ff;
  background: #f5f5f5;
  color: #303030;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: Arial, sans-serif;
  font-size: 16px;
}

.wix-logo {
  color: #000;
  font-size: 31px;
  font-weight: 800;
  letter-spacing: -2px;
}

.wix-cta {
  border: 1px solid #4a70ff;
  border-radius: 20px;
  color: #4268de;
  padding: 4px 28px;
}

.site-header {
  min-height: 165px;
  background: var(--dma-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 17px 20px;
  gap: 44px;
  max-width: 1280px;
  margin: 0 auto;
}

.logo img {
  width: 141px;
  height: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(22px, 4vw, 48px);
  flex: 1;
  text-transform: uppercase;
  color: #4e4e4e;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
}

.nav-item {
  position: relative;
  padding: 18px 0;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  display: block;
}

.more-trigger {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.dropdown {
  display: none;
  position: absolute;
  top: 54px;
  left: 0;
  min-width: 188px;
  background: var(--dma-white);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .12);
  z-index: 10;
}

.dropdown a {
  display: block;
  padding: 12px 18px;
  white-space: nowrap;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 28px;
  background: var(--dma-burgundy);
  color: var(--dma-white);
  letter-spacing: .1em;
  flex: 0 0 auto;
  white-space: nowrap;
}

.language-switcher {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}

.language-switcher a {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
}

.language-switcher a.active {
  border-color: var(--dma-burgundy);
  box-shadow: 0 0 0 2px rgba(142, 63, 89, .18);
}

.hero {
  min-height: 365px;
  color: #fff;
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 28, .5);
}

.hero-inner {
  position: relative;
  width: min(100%, 920px);
  padding: 52px 20px 42px;
}

.eyebrow {
  font-family: var(--dma-serif);
  font-style: italic;
  font-size: 31px;
  line-height: 1;
  margin: 0 0 4px;
}

.hero h1 {
  margin: 0 auto 22px;
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: .05em;
}

.hero p {
  margin: 0;
  font-size: 18px;
}

.dots {
  margin-top: 58px;
  display: flex;
  justify-content: center;
  gap: 13px;
}

.dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  opacity: .8;
}

.subscribe {
  min-height: 70px;
  background: var(--dma-burgundy);
  color: var(--dma-white);
  display: grid;
  grid-template-columns: minmax(430px, 1fr) minmax(260px, 405px) auto;
  align-items: center;
  gap: 8px;
  padding: 14px 17px;
}

.subscribe input {
  width: 100%;
  border: 2px solid #fff;
  border-radius: 27px;
  background: transparent;
  color: #fff;
  padding: 13px 22px;
  font: inherit;
}

.subscribe input::placeholder {
  color: #f5dfe8;
}

.button,
.subscribe button {
  border: 2px solid #fff;
  border-radius: 28px;
  background: var(--dma-burgundy);
  color: #fff;
  font-weight: 700;
  padding: 12px 16px;
}

.section {
  padding: 50px 17px;
  width: 100%;
}

.section-narrow {
  max-width: 960px;
  margin: 0 auto;
}

.center {
  text-align: center;
}

.section-label {
  color: var(--dma-burgundy);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 4px;
}

.script-title {
  font-family: var(--dma-serif);
  font-style: italic;
  font-size: 32px;
  color: #2f2f2f;
  margin: 0 0 24px;
}

.script-title strong {
  font-style: normal;
}

.about-preview {
  background: var(--dma-light);
}

.about-preview p {
  max-width: 980px;
  margin: 0 auto 16px;
  font-size: 18px;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 980px;
  margin: 28px auto 0;
}

.practice-card {
  min-height: 170px;
  display: grid;
  place-items: center;
  text-align: center;
  background: #eee;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.practice-card:nth-child(odd) {
  background: var(--dma-burgundy);
}

.practice-card:nth-child(even) {
  background: #2e2e2e;
}

.practice-card h3 {
  margin: 0;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
}

.practice-card span {
  display: block;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 990px;
  margin: 28px auto 0;
}

.team-card {
  text-align: left;
  background: #fff;
  border-top: 5px solid var(--dma-burgundy);
  padding: 26px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .08);
}

.team-card h3 {
  margin: 0;
  color: var(--dma-burgundy);
  font-size: 23px;
}

.role {
  margin: 4px 0 18px;
  font-weight: 700;
}

.contact-section {
  background: #f1f1f1;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
  max-width: 1000px;
  margin: 28px auto;
}

.contact-card {
  background: #fff;
  padding: 28px;
  min-height: 250px;
}

.contact-card h3 {
  color: var(--dma-burgundy);
  margin-top: 0;
}

.contact-card a,
.contact-section a {
  text-decoration: none;
}

.portugal-link {
  margin: 10px 0 0;
  font-weight: 700;
  color: var(--dma-burgundy);
}

.contact-form-section {
  max-width: 640px;
  margin: 40px auto 0;
  padding: 0 17px;
  text-align: left;
}

.contact-form-section h2 {
  text-align: center;
  color: var(--dma-burgundy);
  margin: 0 0 24px;
}

.contact-form-fallback {
  text-align: center;
  font-weight: 700;
  color: var(--dma-burgundy);
}

.contact-form-fallback a {
  color: inherit;
  text-decoration: underline;
}

.contact-form-section .wpcf7-form p {
  margin: 0 0 16px;
}

.contact-form-section .wpcf7-form label {
  display: block;
  font-weight: 700;
  color: var(--dma-text);
  font-size: 14px;
  letter-spacing: .02em;
}

.contact-form-section .wpcf7-form input[type="text"],
.contact-form-section .wpcf7-form input[type="email"],
.contact-form-section .wpcf7-form input[type="tel"],
.contact-form-section .wpcf7-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  background: var(--dma-white);
  color: var(--dma-text);
  font: inherit;
  font-weight: 400;
  letter-spacing: 0;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.contact-form-section .wpcf7-form textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form-section .wpcf7-form input[type="text"]:focus,
.contact-form-section .wpcf7-form input[type="email"]:focus,
.contact-form-section .wpcf7-form input[type="tel"]:focus,
.contact-form-section .wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--dma-burgundy);
  box-shadow: 0 0 0 3px rgba(142, 63, 89, .15);
}

.contact-form-section .wpcf7-form .wpcf7-submit {
  border: 2px solid var(--dma-burgundy);
  border-radius: 28px;
  background: var(--dma-burgundy);
  color: var(--dma-white);
  font: inherit;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 12px 32px;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

.contact-form-section .wpcf7-form .wpcf7-submit:hover,
.contact-form-section .wpcf7-form .wpcf7-submit:focus {
  background: var(--dma-white);
  color: var(--dma-burgundy);
  outline: none;
}

.contact-form-section .wpcf7-form .wpcf7-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.contact-form-section .wpcf7-form p:last-of-type {
  text-align: center;
  margin-top: 24px;
}

.contact-form-section .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  color: #b3261e;
  font-size: 13px;
  font-weight: 700;
}

.contact-form-section .wpcf7-response-output {
  margin: 18px 0 0;
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid #cfcfcf;
  font-size: 14px;
}

.contact-form-section .wpcf7 form.sent .wpcf7-response-output {
  border-color: #2e7d32;
  background: #edf7ee;
  color: #1b5e20;
}

.contact-form-section .wpcf7 form.invalid .wpcf7-response-output,
.contact-form-section .wpcf7 form.unaccepted .wpcf7-response-output,
.contact-form-section .wpcf7 form.failed .wpcf7-response-output,
.contact-form-section .wpcf7 form.aborted .wpcf7-response-output {
  border-color: #b3261e;
  background: #fdecea;
  color: #b3261e;
}

.contact-form-section .wpcf7-spinner {
  margin-left: 12px;
  vertical-align: middle;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 18px auto;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
}

.social-links img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.footer-legal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px 36px;
  max-width: 1100px;
  margin: 8px auto 20px;
  padding: 0 8px;
  text-align: left;
}

.footer-legal-text {
  flex: 1;
  min-width: min(100%, 280px);
  margin: 0;
  line-height: 1.55;
}

.sra-badge {
  display: block;
  flex-shrink: 0;
  margin: 0;
  align-self: center;
}

.sra-badge img {
  width: 275px;
  max-width: min(275px, 42vw);
  height: auto;
  display: block;
}

.footer-copyright {
  margin: 0 0 8px;
}

.footer {
  padding: 28px 18px 44px;
  background: #f1f1f1;
  font-size: 13px;
  color: #595959;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .footer-legal-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 22px;
    margin-bottom: 22px;
  }

  .footer-legal-text {
    text-align: center;
    min-width: 0;
  }

  .sra-badge img {
    width: min(240px, 88vw);
    max-width: min(240px, 88vw);
  }
}

.page-hero {
  min-height: 240px;
}

.content-page {
  max-width: 970px;
  margin: 0 auto;
  padding: 58px 20px;
}

.about-page {
  /* Mesmo efeito do Wix: foto visível mas lavada por overlay branco semi-transparente */
  --about-overlay: rgba(255, 255, 255, 0.88);
  background-color: #eaeaea;
  background-image:
    linear-gradient(var(--about-overlay), var(--about-overlay)),
    var(--about-bg);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  padding: 34px 20px 58px;
}

.about-page-heading {
  text-align: right;
  max-width: 1180px;
  margin: 0 auto 28px;
}

@media (max-width: 600px) {
  .about-page-heading {
    text-align: center;
  }
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(280px, 440px) minmax(320px, 1fr);
  gap: 56px;
  max-width: 1180px;
  margin: 0 auto;
  align-items: start;
}

.about-copy {
  font-size: 16px;
  line-height: 1.35;
}

.about-media video {
  width: 100%;
  display: block;
  background: #bdbdbd;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-link {
  margin: 10px 0 0;
  text-align: right;
  font-size: 14px;
  color: var(--dma-burgundy);
}

.about-media .contact-section {
  background: transparent;
  padding: 26px 0 0;
}

.about-media .contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 20px auto 0;
}

.about-media .contact-card {
  background: transparent;
  box-shadow: none;
  padding: 0;
  min-height: 0;
}

.content-page h1 {
  color: var(--dma-burgundy);
  font-size: 42px;
  font-weight: 400;
  margin: 0 0 28px;
}

.content-page h2 {
  color: var(--dma-burgundy);
  margin-top: 34px;
}

.columns-2 {
  columns: 2;
  column-gap: 50px;
}

.practice-list {
  margin-bottom: 30px;
  break-inside: avoid;
}

.practice-list ul {
  padding-left: 18px;
}

.blog-list {
  display: grid;
  gap: 24px;
}

.blog-card {
  border-bottom: 1px solid #ddd;
  padding-bottom: 24px;
}

.blog-card h2 {
  margin-bottom: 8px;
}

.meta {
  color: var(--dma-muted);
  font-size: 14px;
}

.simple-page {
  min-height: 300px;
  display: grid;
  place-items: center;
  text-align: center;
}

@media (max-width: 900px) {
  .site-header {
    align-items: center;
    gap: 18px;
    padding: 22px 16px;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 24px;
  }

  .site-header {
    min-height: auto;
  }

  .main-nav {
    font-size: 14px;
  }

  .subscribe,
  .practice-grid,
  .team-grid,
  .contact-grid,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-layout {
    gap: 28px;
  }

  .about-media .contact-grid {
    grid-template-columns: 1fr;
  }

  .columns-2 {
    columns: 1;
  }

  .contact-form-section {
    padding: 0 12px;
  }

  .contact-form-section .wpcf7-form .wpcf7-submit {
    width: 100%;
  }
}

@media (max-width: 540px) {
  body {
    overflow-x: hidden;
  }

  .wix-bar {
    font-size: 13px;
    padding: 0 8px;
  }

  .site-header {
    padding: 18px 12px;
  }

  .logo img {
    width: 130px;
  }

  .hero h1 {
    font-size: 44px;
    letter-spacing: .02em;
  }

  .hero-inner {
    padding: 46px 14px 36px;
  }

  .subscribe {
    padding: 16px 18px;
  }

  .contact-pill {
    padding: 10px 16px;
  }
}
