:root {
  --ink: #171615;
  --muted: #68635c;
  --paper: #fbfaf6;
  --white: #ffffff;
  --line: #e5dfd3;
  --green: #12382f;
  --green-2: #0b241f;
  --gold: #b89454;
  --sand: #e7ddcd;
  --shadow: 0 24px 70px rgba(23, 22, 21, 0.14);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 7vw, 6.85rem);
  overflow-wrap: break-word;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 54px);
  color: var(--white);
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  padding-top: 12px;
  padding-bottom: 12px;
  color: var(--ink);
  background: rgba(251, 250, 246, 0.94);
  box-shadow: 0 10px 34px rgba(23, 22, 21, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--white);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.9rem;
  font-weight: 700;
}

.main-nav a {
  position: relative;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.2s ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-button {
  display: none;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 148px clamp(22px, 5vw, 72px) 54px;
  color: var(--white);
}

.hero-media,
.hero-media img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 20, 18, 0.88), rgba(8, 20, 18, 0.52) 48%, rgba(8, 20, 18, 0.2)),
    linear-gradient(0deg, rgba(8, 20, 18, 0.66), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
}

.hero-copy {
  max-width: 660px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-panel {
  position: absolute;
  right: clamp(22px, 5vw, 72px);
  bottom: 46px;
  z-index: 2;
  width: min(310px, calc(100% - 44px));
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(18px);
}

.hero-panel span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-panel strong {
  display: block;
  margin: 8px 0 6px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 3.15rem;
  line-height: 1;
}

.hero-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--green-2);
  background: var(--gold);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.46);
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-pad {
  padding: 96px clamp(22px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
}

.section-heading.centered {
  margin: 0 auto 44px;
  text-align: center;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.04rem;
}

.trust,
.process,
.testimonials {
  background: var(--white);
}

.trust-grid,
.split,
.contact,
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
}

.trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 38px;
  align-items: stretch;
}

.trust-story {
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.trust-story p {
  color: var(--muted);
  font-size: 1.05rem;
}

.trust-story blockquote {
  margin: 28px 0;
  padding-left: 20px;
  border-left: 3px solid var(--gold);
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.2;
}

.agent-card {
  display: flex;
  gap: 14px;
  align-items: center;
}

.agent-card img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

.agent-card strong,
.agent-card span {
  display: block;
}

.agent-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.stats {
  display: grid;
  gap: 14px;
}

.stats div {
  display: grid;
  align-content: end;
  min-height: 150px;
  padding: 26px;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--green);
}

.stats div:nth-child(2) {
  background: #2d332f;
}

.stats div:nth-child(3) {
  color: var(--ink);
  background: var(--sand);
}

.stats strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 3rem;
  line-height: 1;
}

.stats span {
  margin-top: 8px;
}

.service-grid,
.property-grid,
.blog-grid,
.testimonial-grid,
.faq-grid {
  max-width: var(--max);
  margin: 0 auto;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.service-grid article {
  min-height: 235px;
  padding: 28px;
  background: var(--white);
}

.service-grid article:hover {
  background: #f5f0e6;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  border-radius: 50%;
  color: var(--green);
  background: var(--sand);
  font-size: 0.78rem;
  font-weight: 800;
}

.service-grid p,
.property-card p,
.timeline p,
.foreign-card p,
.faq p,
.testimonial-grid blockquote,
.contact-info p,
.site-footer p {
  color: var(--muted);
}

.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 40px;
}

.text-link {
  display: inline-flex;
  flex: 0 0 auto;
  color: var(--green);
  font-weight: 800;
  border-bottom: 2px solid var(--gold);
}

.property-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 18px;
}

.property-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 44px rgba(23, 22, 21, 0.08);
}

.property-card img {
  width: 100%;
  height: 255px;
  object-fit: cover;
}

.property-card.featured img {
  height: 360px;
}

.property-card div {
  padding: 24px;
}

.property-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline {
  max-width: var(--max);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  min-height: 270px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.timeline span {
  display: block;
  margin-bottom: 88px;
  color: var(--gold);
  font-weight: 900;
}

.foreign-buyers {
  color: var(--white);
  background: var(--green-2);
}

.foreign-card {
  max-width: var(--max);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: 52px;
  margin: 0 auto;
  align-items: start;
}

.foreign-card p {
  color: rgba(255, 255, 255, 0.78);
}

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

.foreign-list p {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.blog {
  background: #f5f0e6;
}

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

.blog-card {
  overflow: hidden;
  border: 1px solid rgba(23, 22, 21, 0.08);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 38px rgba(23, 22, 21, 0.07);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover,
.blog-card:focus {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(23, 22, 21, 0.12);
  outline: none;
}

.blog-card img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  background: var(--sand);
}

.blog-card div {
  padding: 20px;
}

.blog-card span {
  display: block;
  margin-bottom: 9px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.blog-card h3 {
  min-height: 54px;
}

.blog-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.blog-more {
  display: flex;
  width: fit-content;
  margin: 30px auto 0;
}

.article-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(9, 18, 16, 0.72);
}

.article-dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: min(760px, 88vh);
  overflow: auto;
  padding: clamp(28px, 5vw, 52px);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.article-dialog h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.article-dialog h3,
.article-dialog h4 {
  margin: 28px 0 10px;
  line-height: 1.25;
}

.article-dialog h3 {
  font-size: 1.35rem;
}

.article-dialog h4 {
  color: var(--green);
  font-size: 1.02rem;
}

.article-dialog p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.02rem;
}

.article-dialog ul,
.article-dialog ol {
  color: var(--muted);
  padding-left: 22px;
}

.article-dialog li + li {
  margin-top: 6px;
}

.article-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

summary {
  cursor: pointer;
  padding: 22px;
  font-weight: 800;
}

details p {
  margin: 0;
  padding: 0 22px 22px;
}

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

.testimonial-grid figure {
  margin: 0;
  padding: 34px;
  border-radius: var(--radius);
  background: var(--paper);
}

.testimonial-grid blockquote {
  margin: 0 0 24px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.25;
}

.testimonial-grid figcaption {
  font-weight: 800;
}

.testimonial-grid span {
  display: block;
  color: var(--muted);
  font-weight: 500;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.7fr);
  gap: 56px;
  align-items: start;
}

.contact dl {
  display: grid;
  gap: 16px;
  margin: 34px 0 0;
}

.contact dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.contact-cta {
  display: grid;
  gap: 16px;
  align-content: center;
  min-height: 360px;
  padding: 34px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-cta h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.1;
}

.contact-cta p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.contact-cta .button {
  width: fit-content;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fffefa;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(184, 148, 84, 0.36);
  border-color: var(--gold);
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--white);
  background: #1f8f55;
  box-shadow: 0 16px 44px rgba(18, 56, 47, 0.28);
  font-weight: 900;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(22px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 800;
}

.site-footer p {
  margin: 6px 0 0;
}

.admin-body {
  min-height: 100vh;
  background: var(--green-2);
}

.admin-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 56px 0;
}

.admin-login {
  max-width: 430px;
  margin: 0 auto;
  padding: 34px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.admin-login img {
  margin-bottom: 22px;
}

.admin-login h1,
.admin-dashboard h1 {
  margin-bottom: 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.admin-login p {
  color: var(--muted);
}

.admin-login form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.admin-dashboard {
  color: var(--ink);
}

.admin-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--paper);
}

.button.secondary.dark {
  color: var(--green);
  border-color: var(--green);
}

.lead-table-wrap {
  overflow: auto;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.lead-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.lead-table th,
.lead-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.lead-table th {
  color: var(--green);
  background: #f5f0e6;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead-table td {
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 960px) {
  .site-header {
    padding: 14px 20px;
  }

  .menu-button {
    position: relative;
    z-index: 61;
    display: inline-grid;
    gap: 7px;
    width: 44px;
    height: 44px;
    place-content: center;
    border: 1px solid currentColor;
    border-radius: var(--radius);
    color: inherit;
    background: transparent;
  }

  .menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 28px;
    color: var(--ink);
    background: var(--paper);
    font-size: 1.35rem;
    transform: translateX(100%);
    transition: transform 0.24s ease;
  }

  .site-header.is-open .main-nav {
    transform: translateX(0);
  }

  .hero {
    min-height: 860px;
    align-items: center;
    padding-top: 120px;
  }

  .hero-panel {
    right: auto;
    bottom: 28px;
    left: 22px;
  }

  .trust-grid,
  .foreign-card,
  .contact {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .property-grid,
  .blog-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .property-card.featured {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  h1 {
    margin-bottom: 18px;
    font-size: clamp(2.15rem, 9.6vw, 2.95rem);
  }

  .brand span {
    max-width: 155px;
    line-height: 1.1;
  }

  .hero {
    display: block;
    min-height: auto;
    padding: 130px 22px 46px;
  }

  .hero-content {
    margin-top: 0;
  }

  .hero-copy {
    margin-bottom: 22px;
    font-size: 1rem;
  }

  .hero-panel {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    margin-top: 24px;
    background: rgba(18, 56, 47, 0.72);
  }

  .hero-panel strong {
    font-size: 2.6rem;
  }

  .eyebrow {
    font-size: 0.68rem;
    line-height: 1.5;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .section-pad {
    padding: 72px 20px;
  }

  .split {
    display: block;
  }

  .service-grid,
  .property-grid,
  .timeline,
  .blog-grid,
  .faq-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .service-grid article,
  .timeline li {
    min-height: auto;
  }

  .timeline span {
    margin-bottom: 36px;
  }

  .property-card img,
  .property-card.featured img {
    height: 260px;
  }

  .contact-cta {
    padding: 20px;
  }

  .site-footer {
    display: grid;
    padding-right: 20px;
    padding-left: 20px;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
  }

  .admin-topbar {
    display: grid;
  }
}
