:root {
  color-scheme: dark;
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  min-width: 0;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #e0955f;
  outline-offset: 4px;
}

section[id] {
  scroll-margin-top: 96px;
}

.sectors-section {
  background: #0f241b;
  color: #ede6d8;
  padding: 100px 64px;
}

.sectors-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.sectors-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.sectors-number {
  color: #c97a45;
  font-family: 'Marcellus', serif;
}

.sectors-number { font-size: 20px; }
.sector-card-number { color: #d48b59; font-family: 'Marcellus', serif; font-size: 27px; }

.sectors-line {
  width: 56px;
  height: 1px;
  background: #c97a45;
}

.sectors-label {
  color: rgba(237, 230, 216, 0.7);
  font-size: 13px;
  letter-spacing: 4px;
}

.sectors-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 56px;
}

.sectors-heading h2,
.sector-card h3 {
  color: #ede6d8;
  margin: 0;
  font-family: 'Marcellus', serif;
  font-weight: 400;
}

.sectors-heading h2 { color: #ede6d8; font-size: 40px; line-height: 1.2; }
.sectors-heading p { margin: 0; color: rgba(237, 230, 216, 0.8); font-size: 17px; line-height: 1.7; }

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.sector-card {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  gap: 16px;
  border: 1px solid rgba(237, 230, 216, 0.2);
  border-radius: 3px;
  background: #16352a;
  padding: 30px 24px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.16);
}

.sector-card h3 { font-size: 21px; line-height: 1.25; }
.sector-card p { margin: 0; color: rgba(237, 230, 216, 0.8); font-size: 14px; line-height: 1.6; }
.sector-card ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.sector-card li { display: flex; gap: 9px; color: rgba(237, 230, 216, 0.78); font-size: 13px; line-height: 1.45; }
.sector-card li span { color: #d48b59; }
.sector-card > a { display: inline-flex; align-items: center; min-height: 44px; margin-top: auto; color: #d48b59; padding: 0 12px; font-size: 12px; letter-spacing: 1.6px; }

@media (max-width: 1100px) {
  .sectors-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sector-card { min-height: 330px; }
}

@media (max-width: 760px) {
  .sectors-section { padding: 72px 20px; }
  .sectors-heading { grid-template-columns: 1fr; gap: 22px; margin-bottom: 38px; }
  .sectors-heading h2 { font-size: 34px; }
  .sectors-grid { grid-template-columns: 1fr; }
  .sector-card { min-height: 0; }
}

.team-section {
  background: #ede6d8;
  color: #1c2b23;
  padding: 100px 64px;
}

.team-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.team-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.team-number {
  color: #b05a2e;
  font-family: 'Marcellus', serif;
  font-size: 20px;
}

.team-line {
  width: 56px;
  height: 1px;
  background: #b05a2e;
}

.team-label {
  color: rgba(28, 43, 35, 0.65);
  font-size: 13px;
  letter-spacing: 4px;
}

.team-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 56px;
}

.team-heading h2 {
  margin: 0;
  font-family: 'Marcellus', serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
}

.team-heading p {
  margin: 0;
  color: rgba(28, 43, 35, 0.75);
  font-size: 17px;
  line-height: 1.7;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
  margin-bottom: 42px;
}

.team-card {
  overflow: hidden;
  border: 1px solid rgba(28, 43, 35, 0.12);
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 22px 50px rgba(28, 43, 35, 0.08);
}

.team-portrait {
  position: relative;
  display: grid;
  height: auto;
  aspect-ratio: 7 / 10;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.team-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-portrait-patricia img {
  object-position: center 15%;
}

.team-portrait-luisa img {
  object-position: center 100%;
}

.team-portrait-cleiton img {
  object-position: center 14%;
}

.team-portrait-jocleito img {
  object-position: center 22%;
}

.team-portrait-example img {
  object-position: center 35%;
}

.team-card-last {
  grid-column: 2;
}

.team-portrait::before,
.team-portrait::after {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(237, 230, 216, 0.16);
  border-radius: 50%;
  content: '';
}

.team-portrait::before {
  width: 260px;
  height: 260px;
  transform: translate(34%, -32%);
}

.team-portrait::after {
  width: 190px;
  height: 190px;
  transform: translate(-58%, 50%);
}

.team-portrait-patricia {
  background: linear-gradient(135deg, #0f241b, #24503e);
}

.team-portrait-luisa {
  background: linear-gradient(135deg, #173429, #9c5432);
}

.team-monogram {
  color: rgba(237, 230, 216, 0.94);
  font-family: 'Marcellus', serif;
  font-size: clamp(82px, 9vw, 118px);
  font-weight: 400;
  line-height: 1;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.team-portrait-role {
  position: absolute;
  right: 22px;
  bottom: 20px;
  left: 22px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
  color: rgba(237, 230, 216, 0.7);
  font-size: 11px;
  letter-spacing: 3px;
}

.team-card-summary {
  min-height: 112px;
  padding: 20px 20px 22px;
}

.team-role {
  margin-bottom: 10px;
  color: #b05a2e;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
}

.team-card-summary h3 {
  margin: 0;
  color: #1c2b23;
  font-family: 'Marcellus', serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
}

.team-card-note {
  margin: 10px 0 0;
  color: rgba(28, 43, 35, 0.58);
  font-size: 12px;
  line-height: 1.45;
}

.team-card-details {
  border-top: 1px solid rgba(28, 43, 35, 0.1);
  padding: 0 20px 26px;
}

.team-card-details p {
  margin: 0 0 15px;
  color: rgba(28, 43, 35, 0.76);
  font-size: 14px;
  line-height: 1.65;
}

.team-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.team-specialties li {
  border: 1px solid rgba(176, 90, 46, 0.25);
  border-radius: 999px;
  background: rgba(176, 90, 46, 0.06);
  color: #784127;
  padding: 7px 11px;
  font-size: 12px;
  line-height: 1.2;
}

.team-card-details blockquote {
  margin: 0;
  border-left: 2px solid #b05a2e;
  color: rgba(28, 43, 35, 0.78);
  padding: 2px 0 2px 18px;
  font-family: 'Marcellus', serif;
  font-size: 15px;
  line-height: 1.55;
}

.menu-toggle {
  display: none;
  min-height: 44px;
  border: 1px solid rgba(237, 230, 216, 0.32);
  border-radius: 2px;
  background: transparent;
  color: #ede6d8;
  padding: 10px 15px;
  font: 600 12px/1 'Outfit', sans-serif;
  letter-spacing: 2px;
  cursor: pointer;
}

.site-brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  color: #ede6d8;
  text-decoration: none;
}

.site-brand:hover {
  color: #ede6d8;
}

.site-brand__mark {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}

.site-brand__name {
  color: #C2693C;
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1;
}

.site-brand--header {
  align-items: baseline;
  gap: 10px;
}

.site-brand__descriptor {
  color: #c97a45;
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-brand--footer {
  gap: 10px;
}

.site-brand--footer .site-brand__mark {
  width: 34px;
  height: 34px;
}

.site-brand--footer .site-brand__name {
  color: #C2693C;
  font-size: 20px;
}

.hero-office-media {
  position: relative;
  aspect-ratio: 1.15;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.hero-office-photo {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  transform: scale(2);
  transform-origin: left center;
}

@media (min-width: 761px) and (max-width: 1100px) {
  header {
    padding: 18px 28px !important;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  header nav {
    display: none !important;
    flex: 1 0 100%;
    width: 100%;
    padding-top: 8px;
    gap: 4px !important;
    align-items: stretch !important;
    flex-direction: column;
    white-space: normal !important;
  }

  header.menu-open nav {
    display: flex !important;
  }

  header nav a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px !important;
  }

  [style*="grid-template-columns: repeat(5, 1fr)"],
  [style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .team-heading {
    gap: 36px;
  }

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

}

@media (max-width: 760px) {
  header {
    gap: 10px 14px !important;
    padding: 14px 20px !important;
    flex-wrap: wrap !important;
  }

  header > a,
  header > div:first-child {
    flex: 1 1 auto;
  }

  header > a span:first-child,
  header > div:first-child span:first-child {
    font-size: 24px !important;
  }

  header > a span:last-child,
  header > div:first-child span:last-child {
    font-size: 10px !important;
    letter-spacing: 3px !important;
  }

  header > a.site-brand span.site-brand__name {
  color: #C2693C;
    font-size: 24px !important;
    letter-spacing: 0.14em !important;
  }

  header > a.site-brand span.site-brand__descriptor {
    font-size: 8px !important;
    letter-spacing: 0.12em !important;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  header nav {
    display: none !important;
    flex: 1 0 100%;
    width: 100%;
    padding-top: 6px;
    gap: 4px !important;
    align-items: stretch !important;
    flex-direction: column;
    white-space: normal !important;
  }

  header.menu-open nav {
    display: flex !important;
  }

  header nav a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px !important;
  }

  section,
  section[style] {
    padding: 64px 22px !important;
  }

  section[id] {
    scroll-margin-top: 80px;
  }

  section h1 {
    font-size: clamp(36px, 11vw, 44px) !important;
    line-height: 1.12 !important;
  }

  section h2 {
    font-size: clamp(30px, 8vw, 36px) !important;
    line-height: 1.18 !important;
  }

  section[style*="display: grid"],
  section [style*="display: grid"] {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 24px !important;
  }

  section [style*="display: flex"][style*="gap: 18px"],
  section [style*="display: flex"][style*="gap: 20px"] {
    flex-wrap: wrap !important;
  }

  section [style*="display: flex"]:has(> a) {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  section [style*="display: flex"]:has(> a) > a {
    display: flex !important;
    justify-content: center;
    width: 100%;
    text-align: center;
  }

  section [style*="position: relative"] > [style*="position: absolute"] {
    position: static !important;
    max-width: none !important;
    margin-top: 0;
  }

  section [style*="letter-spacing: 4px"],
  section [style*="letter-spacing: 5px"] {
    letter-spacing: 2px !important;
  }

  section [style*="min-height: 220px"] {
    min-height: auto !important;
  }

  .team-heading,
  .team-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .team-heading {
    gap: 18px !important;
    margin-bottom: 36px;
  }

  .team-card {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    box-shadow: 0 14px 34px rgba(28, 43, 35, 0.08);
  }

  .team-card-last {
    grid-column: auto;
  }

  .team-portrait {
    height: auto;
  }

  .team-card-details {
    padding: 0 18px 22px;
  }

  .team-label {
    letter-spacing: 2px;
  }

  footer {
    padding: 30px 22px !important;
    align-items: flex-start !important;
    flex-direction: column;
    gap: 18px !important;
  }

  footer > div {
    max-width: 100%;
    line-height: 1.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.appointment-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(520px, 1.2fr);
  gap: clamp(48px, 7vw, 96px);
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
  padding: 110px 64px;
  box-sizing: border-box;
}

.appointment-intro {
  position: sticky;
  top: 120px;
}

.appointment-eyebrow {
  margin-bottom: 20px;
  color: #c97a45;
  font-size: 13px;
  letter-spacing: 4px;
}

.appointment-intro h2 {
  margin: 0 0 24px;
  font-family: "Marcellus", serif;
  font-size: clamp(38px, 4.2vw, 52px);
  font-weight: 400;
  line-height: 1.14;
}

.appointment-intro > p {
  margin: 0;
  color: rgba(237, 230, 216, 0.76);
  font-size: 17px;
  line-height: 1.7;
}

.appointment-contact-note {
  display: grid;
  gap: 9px;
  margin-top: 38px;
  padding: 22px 0 0 24px;
  border-top: 1px solid rgba(237, 230, 216, 0.16);
  border-left: 2px solid #c2693c;
}

.appointment-contact-note span {
  color: #d48b59;
  font-size: 11px;
  letter-spacing: 2.5px;
}

.appointment-contact-note strong {
  color: rgba(237, 230, 216, 0.8);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

.appointment-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(237, 230, 216, 0.14);
  border-radius: 3px;
  background: #16352a;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.18);
}

.appointment-field {
  display: grid;
  gap: 8px;
  text-align: left;
}

.appointment-field-wide {
  grid-column: 1 / -1;
}

.appointment-field label {
  color: rgba(237, 230, 216, 0.74);
  font-size: 12px;
  letter-spacing: 1.3px;
}

.appointment-field label span {
  color: rgba(237, 230, 216, 0.45);
  letter-spacing: 0;
}

.appointment-field input,
.appointment-field select,
.appointment-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(237, 230, 216, 0.2);
  border-radius: 2px;
  outline: none;
  background: #102a20;
  color: #ede6d8;
  font: inherit;
  box-sizing: border-box;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.appointment-field textarea {
  min-height: 116px;
  resize: vertical;
}

.appointment-field input:focus,
.appointment-field select:focus,
.appointment-field textarea:focus {
  border-color: #d48b59;
  box-shadow: 0 0 0 3px rgba(194, 105, 60, 0.16);
}

.appointment-field input::placeholder,
.appointment-field textarea::placeholder {
  color: rgba(237, 230, 216, 0.36);
}

.appointment-submit {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.appointment-submit button {
  min-height: 52px;
  padding: 15px 28px;
  border: 1px solid #c2693c;
  border-radius: 2px;
  background: #c2693c;
  color: #fff;
  font: 600 13px/1.2 "Outfit", sans-serif;
  letter-spacing: 1.8px;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.appointment-submit button:hover {
  border-color: #d97e4b;
  background: #d97e4b;
}

.appointment-submit button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.appointment-submit span {
  color: rgba(237, 230, 216, 0.52);
  font-size: 12px;
}

.appointment-status {
  min-height: 24px;
  color: #ede6d8;
  font-size: 14px;
  line-height: 1.5;
}

.appointment-status.is-success {
  padding: 13px 15px;
  border-left: 3px solid #82ad8e;
  background: rgba(130, 173, 142, 0.1);
}

.appointment-status.is-error {
  padding: 13px 15px;
  border-left: 3px solid #d48b59;
  background: rgba(194, 105, 60, 0.1);
}

.appointment-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 900px) {
  .appointment-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .appointment-intro {
    position: static;
  }
}

@media (max-width: 600px) {
  .appointment-section {
    padding: 64px 18px !important;
  }

  .appointment-form {
    grid-template-columns: minmax(0, 1fr);
    gap: 17px;
    padding: 24px 18px;
  }

  .appointment-field-wide {
    grid-column: auto;
  }

  .appointment-submit {
    align-items: stretch;
    flex-direction: column;
  }

  .appointment-submit button {
    width: 100%;
  }
}
