:root {
  --forest: #173329;
  --forest-2: #24493b;
  --sand: #e8ddcc;
  --cream: #f8f4ed;
  --white: #ffffff;
  --text: #26352f;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.75;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.12;
}

h1 {
  font-size: clamp(3.4rem, 9vw, 7.6rem);
  margin-bottom: 18px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

h2 {
  font-size: clamp(2.2rem, 4.8vw, 4.6rem);
  color: var(--forest);
}

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

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

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

.section {
  padding: 96px 0;
}

.language-switcher {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 20;
  display: flex;
  gap: 5px;
  padding: 7px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 30px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(10px);
}

.language-switcher button {
  border: 0;
  background: transparent;
  padding: 8px 10px;
  cursor: pointer;
  border-radius: 20px;
  font-weight: 700;
  color: var(--forest);
}

.language-switcher button.active {
  color: var(--white);
  background: var(--forest);
}

.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #10261f;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -24px;
  background: url("projet-casas-athala.png") center / cover no-repeat;
  filter: blur(22px);
  transform: scale(1.08);
  opacity: 0.72;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      to bottom,
      rgba(7, 18, 14, 0.10),
      rgba(7, 18, 14, 0.06) 45%,
      rgba(7, 18, 14, 0.72)
    );
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(92%, 1000px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  color: var(--white);
  padding: 42px 0 60px;
}

.brand-logo {
  width: min(190px, 42vw);
  max-height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 5px 14px rgba(0, 0, 0, 0.35));
}

.hero-copy {
  max-width: 840px;
}

.hero-copy p {
  max-width: 720px;
  margin: 0 auto;
  font-size: clamp(1.05rem, 2vw, 1.42rem);
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.45);
}

.eyebrow,
.label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
}

.eyebrow {
  margin-bottom: 15px;
  letter-spacing: 0.24em;
}

.label {
  margin-bottom: 18px;
  color: var(--forest-2);
}

.discover {
  display: inline-block;
  margin-top: 28px;
  padding: 13px 22px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  transition: 0.25s ease;
}

.discover:hover {
  background: var(--white);
  color: var(--forest);
}

.intro-grid,
.local-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.25fr;
  gap: 70px;
  align-items: start;
}

.text-large {
  font-size: 1.16rem;
}

.text-large p + p {
  margin-top: 22px;
}

.signature-line {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  color: var(--forest);
}

.visual-section {
  position: relative;
  min-height: 72vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0;
  background: #10261f;
}

.visual-section::before {
  content: "";
  position: absolute;
  inset: -24px;
  background: url("projet-casas-athala.png") center / cover no-repeat;
  filter: blur(24px);
  transform: scale(1.08);
  opacity: 0.68;
}

.visual-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 26, 20, 0.12);
}

.project-visual {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 72vh;
  object-fit: contain;
  object-position: center;
}

.story {
  color: var(--white);
  background: var(--forest);
}

.story h2,
.story .label {
  color: var(--sand);
}

.story-inner {
  max-width: 880px;
}

.story p {
  margin-top: 22px;
  font-size: 1.1rem;
}

.quote {
  margin: 44px 0;
  padding-left: 26px;
  border-left: 1px solid var(--sand);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 1.38;
  color: var(--sand);
}

.commitments {
  background: var(--sand);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 46px;
}

.card {
  min-height: 220px;
  padding: 32px 26px;
  background: rgba(255, 255, 255, 0.64);
}

.card h3 {
  margin-bottom: 12px;
  font-size: 1.5rem;
  color: var(--forest);
}

.local-craft {
  background: var(--white);
}

.partners {
  background: var(--cream);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px;
  margin-top: 44px;
}

.partner {
  padding-top: 24px;
  border-top: 1px solid #bbae9a;
}

.partner h3 {
  margin-bottom: 12px;
  font-size: 1.75rem;
  color: var(--forest);
}

.partner a {
  display: inline-block;
  margin-top: 18px;
  border-bottom: 1px solid currentColor;
  color: var(--forest-2);
  font-weight: 700;
}

.closing {
  text-align: center;
  color: var(--white);
  background: var(--forest-2);
}

.closing h2 {
  color: var(--white);
}

.closing p {
  max-width: 700px;
  margin: 20px auto 0;
}

footer {
  padding: 24px 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  background: #0e241c;
}

.footer-content {
  width: min(92%, var(--max-width));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-content a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.footer-content a:hover {
  color: var(--white);
}

.legal-page {
  min-height: 100vh;
  background: var(--cream);
}

.legal-header {
  padding: 28px 0;
  background: var(--forest);
}

.legal-header-inner {
  width: min(92%, var(--max-width));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.legal-logo {
  width: 150px;
  max-height: 90px;
  object-fit: contain;
}

.back-link {
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.6);
}

.legal-main {
  width: min(92%, 900px);
  margin: 0 auto;
  padding: 72px 0 90px;
}

.legal-main h1 {
  color: var(--forest);
  text-shadow: none;
  font-size: clamp(2.7rem, 6vw, 5rem);
}

.legal-main h2 {
  margin: 48px 0 16px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.legal-main p,
.legal-main li {
  margin-top: 10px;
}

.legal-main ul {
  padding-left: 22px;
}

.placeholder {
  display: inline-block;
  padding: 1px 6px;
  background: #fff2a8;
  color: #5b4a00;
  font-weight: 700;
}

.legal-note {
  margin-top: 30px;
  padding: 20px;
  border-left: 3px solid var(--forest-2);
  background: var(--white);
}


@media (max-width: 850px) {
  .section {
    padding: 72px 0;
  }

  .intro-grid,
  .local-grid,
  .partner-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

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

  .hero-image {
    object-fit: contain;
  }
}

@media (max-width: 560px) {
  .language-switcher {
    top: 12px;
    right: 12px;
  }

  .hero-content {
    padding-top: 70px;
  }

  .brand-logo {
    width: 145px;
  }

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

  .hero-image {
    object-fit: contain;
    object-position: center;
  }
}

@media (max-width: 560px) {
  .footer-content, .legal-header-inner {
    flex-direction: column;
    text-align: center;
  }
}
