@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400&family=Manrope:wght@300;400;500;600&display=swap");

:root {
  --cream: #f9f5f0;
  --paper: #fffdf9;
  --blue: #124b98;
  --blue-deep: #0c3570;
  --yellow: #fdbb22;
  --ink: #1f1c1f;
  --muted: #6d6965;
  --line: rgba(18, 75, 152, 0.28);
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Manrope", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--cream); }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); font-size: 16px; font-weight: 300; }
button, input, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
section { scroll-margin-top: 92px; }
::selection { background: var(--yellow); color: var(--ink); }

.site-shell { min-width: 320px; overflow: clip; }
.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  height: 86px;
  padding: 0 clamp(22px, 4.8vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(249, 245, 240, 0.93);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--blue); }
.brand img { width: 86px; height: 86px; object-fit: contain; }
.brand span { display: flex; flex-direction: column; gap: 2px; }
.brand b { font-family: var(--display); font-size: 20px; font-weight: 500; line-height: 1; letter-spacing: 0.045em; }
.brand small { font-size: 9px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; }
.desktop-nav { display: flex; align-items: center; gap: clamp(20px, 2.5vw, 42px); }
.desktop-nav a, .header-cta {
  color: var(--blue);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.desktop-nav a { position: relative; padding: 7px 0; }
.desktop-nav a::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 1px; background: var(--blue); transform: scaleX(0); transform-origin: right; transition: transform 220ms ease; }
.desktop-nav a:hover::after, .desktop-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; align-items: center; gap: 22px; }
.language-switch { display: flex; align-items: center; gap: 5px; color: rgba(18, 75, 152, 0.42); }
.language-switch button { padding: 5px 2px; border: 0; background: transparent; color: inherit; font-size: 10px; font-weight: 600; cursor: pointer; }
.language-switch button.active { color: var(--blue); }
.header-cta { padding: 11px 15px; border: 1px solid var(--blue); transition: background 180ms ease, color 180ms ease; }
.header-cta:hover, .header-cta:focus-visible { background: var(--blue); color: var(--cream); }
.mobile-menu { display: none; position: relative; }
.mobile-menu summary { width: 40px; height: 40px; padding: 9px 5px; cursor: pointer; list-style: none; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary span { display: block; width: 28px; height: 1px; margin: 7px 0; background: var(--blue); transition: transform 180ms ease; }
.mobile-menu[open] summary span:first-child { transform: translateY(4px) rotate(45deg); }
.mobile-menu[open] summary span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu nav { position: absolute; top: 51px; right: -5px; width: min(300px, calc(100vw - 32px)); padding: 28px; display: flex; flex-direction: column; gap: 20px; border: 1px solid var(--line); background: var(--cream); box-shadow: 0 24px 70px rgba(31, 28, 31, 0.16); }
.mobile-menu nav a { color: var(--blue); font-family: var(--display); font-size: 25px; }

.eyebrow {
  margin: 0 0 22px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.eyebrow.light { color: rgba(255, 253, 249, 0.72); }
.chapter {
  display: inline-block;
  color: var(--blue);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 0; color: var(--blue); font-family: var(--display); font-weight: 400; }
h1 { max-width: 680px; font-size: clamp(56px, 6vw, 92px); line-height: 0.94; letter-spacing: -0.025em; }
h2 { font-size: clamp(42px, 4.7vw, 70px); line-height: 0.98; letter-spacing: -0.02em; }
h3 { font-size: 35px; line-height: 1.05; }
p { line-height: 1.8; }

.hero { min-height: calc(100svh - 86px); display: grid; grid-template-columns: minmax(450px, 43%) minmax(0, 57%); background: var(--cream); }
.hero-copy { padding: clamp(80px, 9vw, 145px) clamp(42px, 6vw, 100px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.hero-lead { max-width: 520px; margin: 34px 0 0; font-size: clamp(16px, 1.5vw, 21px); line-height: 1.65; }
.hero-actions { margin-top: 42px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.button { min-height: 49px; padding: 13px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 30px; border: 1px solid transparent; font-size: 10px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; cursor: pointer; transition: transform 180ms ease, background 180ms ease, color 180ms ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { background: var(--blue); color: var(--cream); }
.button-primary:hover, .button-primary:focus-visible { background: var(--blue-deep); }
.button-yellow { background: var(--yellow); color: var(--ink); }
.text-link { position: relative; padding: 9px 0; display: inline-flex; gap: 12px; color: var(--blue); font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.text-link::after { content: ""; position: absolute; right: 0; bottom: 2px; left: 0; height: 1px; background: var(--blue); }
.hero-image { position: relative; min-height: calc(100svh - 86px); display: grid; grid-template-rows: minmax(0, 1fr) auto; overflow: hidden; background: var(--paper); }
.hero-image img { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: 50% 70%; }
.hero-image::after { content: none; }
.hero-image figcaption { padding: 16px 5% 18px; border-top: 1px solid var(--line); color: var(--blue); background: var(--cream); font-size: 9px; font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase; }

.facts { min-height: 146px; padding: 0 clamp(24px, 5.5vw, 88px); display: grid; grid-template-columns: repeat(4, 1fr); align-items: stretch; border-top: 1px solid var(--blue); border-bottom: 1px solid var(--blue); background: var(--paper); }
.facts div { padding: 34px clamp(15px, 3vw, 46px); display: flex; flex-direction: column; justify-content: center; gap: 7px; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts strong { color: var(--blue); font-family: var(--display); font-size: clamp(28px, 2.6vw, 42px); font-weight: 400; }
.facts span { font-size: 9px; font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase; }

.story-section { position: relative; max-width: 1560px; margin: 0 auto; padding: clamp(100px, 11vw, 180px) clamp(24px, 6.5vw, 105px); display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr); gap: clamp(55px, 7vw, 115px); align-items: center; }
.story-section > .chapter { position: absolute; top: clamp(54px, 6vw, 94px); left: clamp(24px, 6.5vw, 105px); }
.story-image { position: relative; min-height: 570px; }
.story-image img { width: 100%; height: 100%; min-height: 570px; object-fit: cover; object-position: center; }
.story-image figcaption { margin-top: 13px; color: var(--blue); font-size: 9px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.story-copy { position: relative; padding: 30px 0; }
.story-copy p:last-child, .threshold-heading > p:last-child, .memory-copy > p:last-child, .section-intro > p:last-child, .plan-copy > p:last-child, .outside-copy > p:last-child, .azeitao-copy > p { margin: 30px 0 0; font-size: 15px; line-height: 1.9; }

.threshold-section { position: relative; padding: clamp(92px, 10vw, 160px) clamp(24px, 6.5vw, 105px); display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 7vw; align-items: center; background: var(--paper); }
.threshold-heading { max-width: 540px; align-self: center; }
.threshold-heading .chapter { margin-bottom: 62px; }
.facade-image { width: min(100%, 780px); aspect-ratio: 5 / 4; min-height: 0; justify-self: center; align-self: center; overflow: hidden; }
.facade-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.memory-section { padding: clamp(90px, 9vw, 150px) clamp(24px, 6.5vw, 105px); display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 7vw; align-items: center; background: var(--blue); }
.memory-copy { max-width: 560px; }
.memory-copy .chapter { margin-bottom: 66px; color: var(--yellow); }
.memory-copy h2, .memory-copy p { color: var(--cream); }
.memory-image { min-height: 650px; }
.memory-image img { width: 100%; height: 100%; min-height: 650px; object-fit: cover; }
.memory-image figcaption { margin-top: 14px; color: rgba(255, 253, 249, 0.72); font-size: 9px; letter-spacing: 0.13em; text-transform: uppercase; }

.living-section { padding: clamp(100px, 11vw, 180px) clamp(24px, 8vw, 130px); background: var(--cream); }
.section-intro { max-width: 900px; margin: 0 auto 90px; text-align: center; }
.section-intro .chapter { margin-bottom: 58px; }
.section-intro > p:last-child { max-width: 670px; margin-right: auto; margin-left: auto; }
.living-gallery { max-width: 1400px; margin: 0 auto 84px; display: grid; grid-template-columns: 1.18fr 0.82fr; gap: 22px; }
.living-gallery figure { min-height: 500px; }
.living-gallery img { width: 100%; height: 100%; min-height: 500px; object-fit: cover; }
.living-gallery figure:first-child img { object-position: center; }
.living-gallery figcaption, .outside-gallery figcaption, .azeitao-image figcaption { margin-top: 13px; color: var(--blue); font-size: 9px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.living-gallery .bedroom-feature { grid-column: 1 / -1; width: min(72%, 920px); min-height: 680px; margin: 64px auto 0; }
.living-gallery .bedroom-feature img { min-height: 680px; object-position: center 42%; }
.levels { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--blue); border-bottom: 1px solid var(--blue); }
.levels article { position: relative; padding: clamp(48px, 6vw, 82px); }
.levels article + article { border-left: 1px solid var(--line); }
.level-number { position: absolute; top: 35px; right: 42px; color: var(--yellow); font-family: var(--display); font-size: 31px; }
.levels h3 { margin-bottom: 36px; }
.levels ul, .outside-section ul { margin: 0; padding: 0; list-style: none; }
.levels li { position: relative; padding: 15px 0 15px 23px; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.6; }
.levels li::before { content: ""; position: absolute; top: 24px; left: 2px; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }
.levels li:last-child { border-bottom: 0; }

.plan-section { padding: clamp(92px, 10vw, 160px) clamp(24px, 7vw, 115px); display: grid; grid-template-columns: minmax(320px, 0.6fr) minmax(0, 1.4fr); gap: 7vw; align-items: center; background: var(--paper); }
.plan-copy .chapter { margin-bottom: 62px; }
.plan-carousel { min-width: 0; }
.plan-tabs { margin-bottom: 16px; display: flex; gap: 8px; }
.plan-tabs button { padding: 11px 15px; border: 1px solid var(--line); background: transparent; color: var(--blue); font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; }
.plan-tabs button.active { border-color: var(--blue); background: var(--blue); color: var(--cream); }
.plan-frame { padding: clamp(18px, 2.5vw, 38px); border: 1px solid var(--line); background: #fff; box-shadow: 0 20px 58px rgba(31, 28, 31, 0.07); }
.plan-meta { margin-bottom: 24px; padding-bottom: 13px; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); color: var(--blue); font-size: 9px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; }
.plan-meta a { position: relative; }
.plan-meta a::after { content: ""; position: absolute; right: 0; bottom: -4px; left: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 180ms ease; }
.plan-meta a:hover::after, .plan-meta a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.plan-stage { position: relative; overflow: hidden; }
.plan-stage img { width: 100%; height: auto; animation: plan-in 240ms ease; }
.plan-arrow { position: absolute; top: 50%; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--blue); border-radius: 50%; background: rgba(255, 253, 249, 0.94); color: var(--blue); font-size: 18px; cursor: pointer; transform: translateY(-50%); transition: background 180ms ease, color 180ms ease; }
.plan-arrow:hover, .plan-arrow:focus-visible { background: var(--blue); color: var(--cream); }
.plan-arrow.previous { left: 12px; }
.plan-arrow.next { right: 12px; }
.plan-status { margin: 14px 0 0; color: var(--blue); font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-align: right; text-transform: uppercase; }
@keyframes plan-in { from { opacity: 0.3; transform: translateX(8px); } to { opacity: 1; transform: translateX(0); } }

.outside-section { padding: clamp(90px, 10vw, 160px) clamp(24px, 8vw, 130px); background: var(--paper); }
.outside-content { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 9vw; align-items: end; }
.outside-copy h2 { color: var(--blue); }
.outside-copy p { color: var(--ink); }
.outside-section .eyebrow.light { color: var(--blue); }
.outside-section ul { border-top: 1px solid var(--line); }
.outside-section li { padding: 22px 0; display: grid; grid-template-columns: 54px 1fr; align-items: center; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 14px; line-height: 1.55; }
.outside-section li span { color: var(--yellow); font-family: var(--display); font-size: 25px; }
.outside-section li span:nth-child(2) {color: var(--blue);}
.outside-gallery { margin-top: 80px; }
.outside-gallery figure { height: clamp(560px, 54vw, 820px); }
.outside-gallery img { width: 100%; height: 100%; object-fit: cover; }
.outside-gallery figcaption { color: var(--blue); }

.pool-feature { background: var(--blue-deep); }
.pool-feature figure { position: relative; min-height: clamp(610px, 68vw, 960px); overflow: hidden; }
.pool-feature figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 24, 48, 0.03) 30%, rgba(8, 24, 48, 0.78) 100%); pointer-events: none; }
.pool-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.pool-overlay { position: relative; z-index: 1; min-height: clamp(610px, 68vw, 960px); padding: clamp(70px, 8vw, 130px); display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; }
.pool-overlay h2, .pool-overlay > p:last-child { color: var(--cream); }
.pool-overlay h2 { max-width: 760px; }
.pool-overlay > p:last-child { max-width: 620px; margin: 30px 0 0; font-size: 16px; line-height: 1.85; }
.pool-feature figcaption { position: absolute; z-index: 2; right: clamp(24px, 8vw, 130px); bottom: 28px; color: rgba(255, 253, 249, 0.68); font-size: 9px; font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase; }

.comfort-section { padding: clamp(100px, 11vw, 180px) clamp(24px, 8vw, 130px); display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 9vw; background: var(--cream); }
.comfort-title .chapter { margin-bottom: 62px; }
.comfort-list { border-top: 1px solid var(--blue); }
.comfort-list div { padding: 22px 0; display: grid; grid-template-columns: 0.55fr 1.45fr; gap: 25px; border-bottom: 1px solid var(--line); }
.comfort-list span { color: var(--blue); font-size: 9px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; }
.comfort-list strong { font-family: var(--display); font-size: 24px; font-weight: 400; line-height: 1.2; }

.azeitao-section { position: relative; min-height: 680px; display: grid; grid-template-columns: 1.08fr 0.92fr; background: var(--yellow); }
.azeitao-image { position: relative; min-height: 680px; }
.azeitao-image > img { width: 100%; height: 100%; min-height: 680px; object-fit: cover; }
.azeitao-image figcaption { position: absolute; right: 22px; bottom: 18px; left: 22px; color: rgba(255, 253, 249, 0.86); text-shadow: 0 1px 10px rgba(0,0,0,0.45); }
.azeitao-copy { position: relative; z-index: 1; max-width: 850px; padding: clamp(80px, 8vw, 135px) clamp(35px, 7vw, 110px); align-self: center; }
.azeitao-copy .chapter { margin-bottom: 60px; color: var(--ink); }
.azeitao-copy .eyebrow, .azeitao-copy h2 { color: var(--ink); }
.azeitao-copy > p { max-width: 760px; }
.azeitao-note { padding-left: 24px; border-left: 2px solid var(--ink); font-weight: 500; }

.contact-section { padding: clamp(24px, 8vw, 60px) clamp(24px, 7.5vw, 120px); display: grid; grid-template-columns: 0.92fr 1.08fr; column-gap: 9vw; row-gap: clamp(60px, 7vw, 110px); background: var(--ink); }
.contact-intro .chapter { margin-bottom: 52px; color: var(--yellow); }
.contact-intro h2, .contact-intro > p { color: var(--cream); }
.contact-intro > p:last-of-type { max-width: 620px; margin: 28px 0 0; font-size: 15px; line-height: 1.85; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 29px 26px; align-content: start; margin: 7.5vh 0vw; }
.contact-form label { color: rgba(255, 253, 249, 0.7); font-size: 9px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.contact-form input, .contact-form textarea { width: 100%; margin-top: 8px; padding: 14px 0; border: 0; border-bottom: 1px solid rgba(255, 253, 249, 0.38); border-radius: 0; outline: 0; background: transparent; color: var(--cream); font-size: 15px; font-weight: 300; letter-spacing: 0; text-transform: none; resize: vertical; transition: border-color 180ms ease; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--yellow); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255, 253, 249, 0.34); }
.contact-form label:nth-child(4), .contact-form .message, .contact-form .consent, .contact-form button, .form-status { grid-column: 1 / -1; }
.contact-form button { justify-self: start; margin-top: 10px; border: 0; }
.contact-form .consent { display: flex; align-items: flex-start; gap: 12px; color: rgba(255, 253, 249, 0.62); line-height: 1.55; letter-spacing: 0; text-transform: none; }
.contact-form .consent input { width: 16px; height: 16px; margin: 2px 0 0; padding: 0; flex: 0 0 auto; accent-color: var(--yellow); }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-status { min-height: 22px; margin: -8px 0 0; color: var(--yellow); font-size: 12px; line-height: 1.6; }
.form-status.error { color: #ff9c8f; }
.contact-logo { width: min(320px, 72vw); height: auto; margin: 0 auto; grid-column: 1 / -1; object-fit: contain; object-position: center; }

.site-footer { min-height: 90px; padding: 26px clamp(24px, 5vw, 80px); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--cream); background: #121012; font-size: 9px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.back-top { position: fixed; z-index: 40; right: 22px; bottom: 22px; width: 52px; height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border: 1px solid var(--blue); border-radius: 50%; background: rgba(249, 245, 240, 0.91); color: var(--blue); box-shadow: 0 12px 28px rgba(31, 28, 31, 0.1); backdrop-filter: blur(12px); }
.back-top small { font-size: 7px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }

:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; }

@media (max-width: 1120px) {
  .site-header { padding: 0 24px; gap: 18px; }
  .brand b { font-size: 18px; }
  .brand small { display: none; }
  .desktop-nav { gap: clamp(12px, 1.4vw, 18px); }
  .header-actions { gap: 12px; }
  .header-cta { padding: 10px 12px; }
  .hero { grid-template-columns: minmax(390px, 46%) minmax(0, 54%); }
  .story-section { gap: 5vw; }
  .threshold-section { grid-template-columns: 0.85fr 1.15fr; }
  .memory-section, .comfort-section { gap: 6vw; }
  .outside-content { gap: 6vw; }
}

@media (max-width: 880px) {
  .site-header { height: 74px; padding: 0 20px; }
  section { scroll-margin-top: 78px; }
  .brand b { font-size: 18px; }
  .brand small { display: none; }
  .desktop-nav, .header-cta { display: none; }
  .mobile-menu { display: block; }
  .header-actions { gap: 14px; }
  .hero { min-height: auto; display: flex; flex-direction: column; }
  .hero-copy { min-height: 600px; padding: 100px 28px 80px; }
  .hero-image { min-height: 760px; }
  .facts { grid-template-columns: 1fr 1fr; padding: 0 24px; }
  .facts div { min-height: 118px; padding: 25px 18px; border-bottom: 1px solid var(--line); }
  .facts div:nth-child(2n) { border-right: 0; }
  .facts div:nth-child(n + 3) { border-bottom: 0; }
  .story-section { padding: 120px 24px 95px; display: flex; flex-direction: column; align-items: stretch; }
  .story-section > .chapter { top: 72px; left: 24px; }
  .story-image { min-height: 0; }
  .story-image img { min-height: 0; height: auto; }
  .story-copy { margin: 0; padding: 48px 0 0; }
  .threshold-section { padding: 95px 24px; display: flex; flex-direction: column; gap: 50px; }
  .threshold-heading { max-width: none; }
  .threshold-heading .chapter, .memory-copy .chapter, .plan-copy .chapter, .comfort-title .chapter { margin-bottom: 46px; }
  .facade-image { min-height: 0; }
  .facade-image img { height: auto; }
  .memory-section { padding: 95px 24px; display: flex; flex-direction: column; gap: 60px; align-items: stretch; }
  .memory-copy { max-width: none; }
  .memory-image, .memory-image img { min-height: 0; }
  .living-section { padding: 100px 24px; }
  .section-intro { margin-bottom: 62px; text-align: left; }
  .section-intro .chapter { margin-bottom: 46px; }
  .living-gallery { margin-bottom: 60px; grid-template-columns: 1fr; }
  .living-gallery figure, .living-gallery img { min-height: 0; }
  .living-gallery img { height: auto; }
  .living-gallery .bedroom-feature { width: 100%; min-height: 0; margin-top: 18px; }
  .living-gallery .bedroom-feature img { min-height: 0; }
  .levels { grid-template-columns: 1fr; }
  .levels article + article { border-top: 1px solid var(--line); border-left: 0; }
  .plan-section { padding: 95px 24px; display: flex; flex-direction: column; gap: 60px; align-items: stretch; }
  .outside-section { padding: 95px 24px; }
  .outside-content { grid-template-columns: 1fr; gap: 60px; }
  .outside-gallery { margin-top: 60px; }
  .outside-gallery figure { height: auto; }
  .outside-gallery img { height: auto; }
  .pool-feature figure, .pool-overlay { min-height: 700px; }
  .pool-overlay { padding: 70px 24px 85px; }
  .pool-feature figcaption { right: 24px; bottom: 18px; }
  .comfort-section { padding: 95px 24px; grid-template-columns: 1fr; gap: 65px; }
  .azeitao-section { min-height: 0; grid-template-columns: 1fr; }
  .azeitao-image, .azeitao-image > img { min-height: 540px; }
  .azeitao-copy { padding: 95px 24px; }
  .contact-section { padding: 42px 24px; grid-template-columns: 1fr; gap: 75px; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  h1 { font-size: clamp(49px, 16vw, 68px); }
  h2 { font-size: clamp(39px, 13vw, 54px); }
  .brand img { width: 39px; height: 39px; }
  .brand b { font-size: 16px; }
  .hero-copy { min-height: 560px; padding-top: 84px; }
  .hero-image { min-height: 610px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .facts { padding: 0 14px; }
  .facts div { padding: 22px 13px; }
  .story-copy { margin-right: 0; margin-left: 0; padding: 44px 6px 0; }
  .levels article { padding: 54px 24px; }
  .level-number { right: 24px; }
  .plan-frame { padding: 12px; }
  .plan-meta { align-items: flex-start; flex-direction: column; gap: 7px; }
  .plan-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .plan-tabs button { padding: 11px 8px; }
  .plan-arrow { width: 40px; height: 40px; }
  .comfort-list div { grid-template-columns: 1fr; gap: 8px; }
  .comfort-list strong { font-size: 21px; }
  .contact-logo { width: min(280px, 84vw); }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form label, .contact-form label:nth-child(4), .contact-form .message, .contact-form .consent, .contact-form button, .form-status { grid-column: 1; }
  .back-top { right: 14px; bottom: 14px; width: 47px; height: 47px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
