:root {
  --ink: #202522;
  --muted: #66706a;
  --paper: #f5f3ed;
  --surface: #ffffff;
  --line: #d8d9d1;
  --accent: #a96732;
  --accent-dark: #7b4824;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body::before {
  content: "";
  display: block;
  height: 6px;
  background: var(--ink);
}

a {
  color: inherit;
}

section {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  padding: 72px 0;
}

.hero-section {
  width: 100%;
  min-height: 500px;
  padding: 112px max(24px, calc((100% - var(--max-width)) / 2)) 96px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(18, 24, 21, .88), rgba(18, 24, 21, .48) 58%, rgba(18, 24, 21, .2)),
    linear-gradient(135deg, #6e513d, #c9b39d 52%, #807463);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.market-united-states .hero-section,
.market-saudi-arabia .hero-section,
.market-united-kingdom .hero-section,
.market-canada .hero-section,
.market-australia .hero-section,
.market-uae .hero-section,
.market-norway .hero-section,
.market-sweden .hero-section,
.market-denmark .hero-section,
.market-new-zealand .hero-section,
.market-ireland .hero-section,
.market-qatar .hero-section,
.market-germany .hero-section,
.market-france .hero-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-position: center;
  background-size: cover;
}

.market-united-states .hero-section {
  background-image: linear-gradient(90deg, rgba(13, 27, 20, .4), rgba(13, 27, 20, .18)), url('/assets/images/markets/hero-usa.png');
}

.market-saudi-arabia .hero-section {
  background-image: linear-gradient(90deg, rgba(13, 27, 20, .4), rgba(13, 27, 20, .18)), url('/assets/images/markets/hero-saudi.png');
}

.market-united-kingdom .hero-section {
  background-image: linear-gradient(90deg, rgba(13, 27, 20, .4), rgba(13, 27, 20, .18)), url('/assets/images/markets/hero-uk.png');
}

.market-canada .hero-section {
  background-image: linear-gradient(90deg, rgba(13, 27, 20, .4), rgba(13, 27, 20, .18)), url('/assets/images/markets/hero-canada.png');
}

.market-australia .hero-section {
  background-image: linear-gradient(90deg, rgba(13, 27, 20, .4), rgba(13, 27, 20, .18)), url('/assets/images/markets/hero-australia.png');
}

.market-uae .hero-section {
  background-image: linear-gradient(90deg, rgba(13, 27, 20, .4), rgba(13, 27, 20, .18)), url('/assets/images/markets/hero-uae.png');
}

.market-norway .hero-section {
  background-image: linear-gradient(90deg, rgba(13, 27, 20, .4), rgba(13, 27, 20, .18)), url('/assets/images/markets/hero-norway.png');
}

.market-sweden .hero-section {
  background-image: linear-gradient(90deg, rgba(13, 27, 20, .4), rgba(13, 27, 20, .18)), url('/assets/images/markets/hero-sweden.png');
}

.market-denmark .hero-section {
  background-image: linear-gradient(90deg, rgba(13, 27, 20, .4), rgba(13, 27, 20, .18)), url('/assets/images/markets/hero-denmark.png');
}

.market-new-zealand .hero-section {
  background-image: linear-gradient(90deg, rgba(13, 27, 20, .4), rgba(13, 27, 20, .18)), url('/assets/images/markets/hero-new-zealand.png');
}

.market-ireland .hero-section {
  background-image: linear-gradient(90deg, rgba(13, 27, 20, .4), rgba(13, 27, 20, .18)), url('/assets/images/markets/hero-ireland.png');
}

.market-qatar .hero-section {
  background-image: linear-gradient(90deg, rgba(13, 27, 20, .4), rgba(13, 27, 20, .18)), url('/assets/images/markets/hero-qatar.png');
}

.market-germany .hero-section {
  background-image: linear-gradient(90deg, rgba(13, 27, 20, .4), rgba(13, 27, 20, .18)), url('/assets/images/markets/hero-germany.png');
}

.market-france .hero-section {
  background-image: linear-gradient(90deg, rgba(13, 27, 20, .4), rgba(13, 27, 20, .18)), url('/assets/images/markets/hero-france.png');
}

.market-page .container {
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.market-page .hero-section .container {
  position: relative;
  z-index: 1;
}

.market-page .subtitle {
  max-width: 650px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
}

.market-page .value-proposition,
.market-page .project-showcase,
.market-page .villa-showcase,
.market-page .logistics,
.market-page .contact-section {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
}

.market-page .value-proposition .grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.market-page .value-proposition .card {
  min-height: 180px;
}

.market-page .project-showcase,
.market-page .villa-showcase,
.market-page .logistics {
  padding-top: 24px;
}

.market-page .project-showcase h2,
.market-page .villa-showcase h2,
.market-page .logistics h2,
.market-page .contact-section h2 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.05;
}

.market-page .project-showcase p,
.market-page .villa-showcase p,
.market-page .logistics p,
.market-page .contact-section p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.05rem;
}

.market-page .contact-section {
  width: 100%;
  max-width: none;
  margin-top: 24px;
  padding: 72px max(24px, calc((100% - var(--max-width)) / 2));
  color: #fff;
  background: var(--ink);
}

.market-page .contact-section p {
  color: rgba(255, 255, 255, .76);
}

.case-study-section {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.case-study-section .section-title {
  margin: 0 0 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.05;
}

.case-study-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.case-study-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.case-study-content h3 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 400;
}

.case-study-content h3:not(:first-child) {
  margin-top: 24px;
}

.case-study-content p {
  margin: 0;
  color: var(--muted);
}

.case-study-specs {
  margin-top: 24px;
  padding: 20px 24px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
}

.case-study-specs ul {
  margin: 0;
  padding-left: 20px;
}

.case-study-specs li + li {
  margin-top: 6px;
}

.hero-section h1 {
  max-width: 780px;
  margin: 0 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.045em;
}

.hero-section .subheading {
  max-width: 650px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, .7);
  background: transparent;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, .12);
}

.aux-text {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: .84rem;
}

.direct-answer {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 48px;
  align-items: start;
}

.direct-answer h2,
.local-requirements h2,
.process h2,
.project-scenarios h2,
.final-cta h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.035em;
}

.direct-answer ul {
  margin: 0;
  padding: 24px 28px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
}

.direct-answer li + li {
  margin-top: 8px;
}

.buyer-types,
.product-options,
.project-scenarios .grid,
.product-focus {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.buyer-types {
  padding-top: 0;
}

.card,
.product-card,
.project-scenarios .grid > div,
.product-focus .item {
  min-height: 150px;
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.card h3,
.product-card h3,
.project-scenarios h3,
.product-focus h3 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.1;
}

.product-card p,
.project-scenarios p,
.product-focus p,
.local-requirements p {
  margin: 0;
  color: var(--muted);
}

.local-requirements {
  max-width: none;
  padding-right: max(24px, calc((100% - var(--max-width)) / 2));
  padding-left: max(24px, calc((100% - var(--max-width)) / 2));
  background: #e7e4da;
}

.local-requirements p {
  max-width: 720px;
  margin-top: 18px;
  font-size: 1.1rem;
}

.spec-matrix {
  overflow-x: auto;
  padding-top: 24px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

th,
td {
  padding: 16px 18px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: #fff;
  background: var(--ink);
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.process ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
}

.process li {
  min-height: 100px;
  padding: 22px;
  border-top: 2px solid var(--accent);
  background: var(--surface);
  counter-increment: process;
  font-weight: 700;
}

.process li::before {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  content: counter(process, decimal-leading-zero);
  font-size: .8rem;
  letter-spacing: .08em;
}

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

.faq h3 {
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.2;
}

.faq p {
  margin: 8px 0 22px;
  color: var(--muted);
}

.final-cta {
  width: 100%;
  margin-top: 24px;
  padding-right: max(24px, calc((100% - var(--max-width)) / 2));
  padding-left: max(24px, calc((100% - var(--max-width)) / 2));
  color: #fff;
  background: var(--ink);
}

.final-cta p {
  max-width: 560px;
  color: rgba(255, 255, 255, .76);
}

.market-page .final-cta {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 48px auto;
  padding: 100px max(20px, calc((100% - var(--max-width)) / 2));
  overflow: hidden;
  border: 1px solid rgba(203, 218, 207, .58);
  border-radius: 2px;
  color: #fff;
  text-align: center;
  background: linear-gradient(rgba(13, 27, 20, .4), rgba(13, 27, 20, .4)), url('/assets/images/markets/bg-cta-bright.png') center / cover no-repeat !important;
}

.market-page .final-cta h2 {
  margin-bottom: 50px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
}

.market-page .final-cta .btn-primary,
.market-page .final-cta .btn {
  padding: 15px 40px;
  font-size: 1.1rem;
  transition: transform .2s ease, background-color .2s ease;
}

.market-page .final-cta .btn:hover {
  transform: scale(1.05);
}

@media (max-width: 760px) {
  section,
  .hero-section,
  .local-requirements,
  .final-cta {
    width: 100%;
    padding-right: 20px;
    padding-left: 20px;
  }

  section {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .hero-section {
    min-height: 560px;
    padding-top: 84px;
    padding-bottom: 72px;
  }

  .direct-answer,
  .buyer-types,
  .product-options,
  .project-scenarios .grid,
  .product-focus,
  .process ol,
  .faq {
    grid-template-columns: 1fr;
  }

  .case-study-section {
    width: 100%;
    padding: 24px 20px 52px;
  }

  .case-study-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .direct-answer {
    gap: 28px;
  }

  .market-page .value-proposition,
  .market-page .project-showcase,
  .market-page .villa-showcase,
  .market-page .logistics,
  .market-page .contact-section {
    width: 100%;
    padding-right: 20px;
    padding-left: 20px;
  }

  .market-page .value-proposition .grid {
    grid-template-columns: 1fr;
  }

  .market-page .final-cta {
    width: min(calc(100% - 40px), var(--max-width));
    margin-top: 32px;
    margin-bottom: 32px;
    padding-top: 72px;
    padding-bottom: 72px;
  }
}
