:root {
  --text: #000;
  --muted: #3b3b3b;
  --navy: #123244;
  --light: #f4f4f4;
  --card: #fff;
  --soft-card: #f5f5f5;
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --max: 1420px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 180px;
}

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 286px 1fr 88px;
  align-items: start;
  min-height: 160px;
  padding: 31px 56px 18px;
  background: #fff;
}

.logo-link {
  width: 250px;
  align-self: start;
}

.logo {
  width: 250px;
  height: auto;
  object-fit: contain;
}

.desktop-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  align-items: end;
  gap: 24px;
  height: 111px;
  padding: 0 34px 20px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.desktop-nav a,
.mobile-nav a {
  text-decoration: none;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: #545454;
}

.menu-button {
  justify-self: end;
  width: 50px;
  height: 50px;
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 38px;
  height: 2px;
  margin: 8px auto;
  background: #000;
}

.mobile-nav {
  position: absolute;
  top: 100%;
  right: 42px;
  display: none;
  min-width: 240px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  font-weight: 700;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
}

.site-header.menu-open .mobile-nav {
  display: block;
}

.logo-link,
.desktop-nav a,
.menu-button {
  animation: headerFloatIn 760ms var(--ease-out) both;
}

.desktop-nav a:nth-child(2) {
  animation-delay: 80ms;
}

.desktop-nav a:nth-child(3) {
  animation-delay: 160ms;
}

.menu-button {
  animation-delay: 220ms;
}

.reveal {
  opacity: 0;
  filter: blur(6px);
  transform: translate3d(0, var(--reveal-distance, 28px), 0);
  transition:
    opacity 820ms var(--ease-out),
    filter 820ms var(--ease-out),
    transform 820ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, filter, transform;
}

.reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0);
}

.reveal-soft {
  --reveal-distance: 16px;
}

.reveal-card {
  --reveal-distance: 34px;
}

.image-hero,
.page-hero,
.wide-photo {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.home-hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 160px);
  display: grid;
  place-items: start center;
  background-color: #07131d;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.18) 0%,
    rgba(0, 0, 0, 0.08) 46%,
    rgba(0, 0, 0, 0.16) 100%
  );
  pointer-events: none;
}

.home-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-hero-content {
  position: relative;
  z-index: 2;
  padding-top: 58px;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.24);
}

.home-hero h1 {
  margin: 0 0 42px;
  font-size: clamp(46px, 5.4vw, 88px);
  line-height: 1.04;
  font-weight: 700;
  animation: heroTextRise 980ms var(--ease-out) 220ms both;
}

.home-hero p {
  margin: 0 0 64px;
  font-size: clamp(22px, 1.75vw, 30px);
  line-height: 1.35;
  font-weight: 700;
  animation: heroTextRise 980ms var(--ease-out) 400ms both;
}

.outline-button {
  display: inline-grid;
  place-items: center;
  min-width: 220px;
  min-height: 70px;
  padding: 16px 34px;
  border: 2px solid currentColor;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
  text-shadow: none;
  transition:
    background 260ms ease,
    border-color 260ms ease,
    color 260ms ease,
    transform 260ms ease;
  animation: heroTextRise 980ms var(--ease-out) 580ms both;
}

.outline-button:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.welcome-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 646px;
}

.welcome-copy {
  max-width: 650px;
  padding: 26px 52px 54px;
  margin-left: auto;
}

.welcome-copy h2 {
  margin: 0 0 40px;
  font-size: clamp(48px, 4.3vw, 78px);
  line-height: 1.16;
  font-weight: 700;
}

.welcome-copy p {
  margin: 0 0 22px;
  color: #333;
  font-size: 21px;
  line-height: 1.65;
}

.welcome-copy a {
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.welcome-image {
  min-height: 646px;
  background-image: url("assets/window-shutters.jpg");
  background-position: center;
  background-size: cover;
}

.difference-section {
  padding: 42px 32px 72px;
  background: #fff;
}

.section-heading {
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(56px, 6vw, 108px);
  line-height: 1.04;
  font-weight: 700;
}

.section-heading p {
  margin: 22px 0 54px;
  font-size: clamp(28px, 2.5vw, 44px);
  line-height: 1.15;
}

.difference-grid {
  max-width: 1340px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 8px;
  align-items: start;
}

.difference-card {
  min-height: 254px;
  padding: 22px 28px 24px;
  text-align: center;
}

.difference-card.filled {
  background: var(--soft-card);
}

.difference-card h3 {
  margin: 0 0 18px;
  color: #242424;
  font-size: clamp(24px, 2vw, 38px);
  line-height: 1.08;
  font-weight: 300;
  letter-spacing: 0;
}

.difference-card p {
  margin: 0 auto;
  max-width: 270px;
  color: #555;
  font-size: 19px;
  line-height: 1.42;
}

.pool-photo {
  height: 548px;
  background-image: url("assets/pool-villa.jpg");
  background-position: center 58%;
}

.services-hero {
  height: 690px;
  background-image: url("assets/services-living.jpg");
  background-position: center 49%;
}

.services-intro {
  min-height: 280px;
  padding: 64px 24px;
  background: var(--navy);
  color: #fff;
  text-align: center;
}

.services-intro h1 {
  margin: 0 0 24px;
  font-size: clamp(46px, 4vw, 68px);
  line-height: 1.1;
}

.services-intro p {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.service-list {
  display: grid;
  gap: 54px;
  padding: 54px 28px 220px;
  background: #f6f6f6;
}

.service-card {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 50px 54px 48px;
  background: var(--card);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.service-card h2 {
  position: relative;
  margin: 0 0 22px;
  padding-left: 24px;
  color: var(--navy);
  font-size: clamp(32px, 2.8vw, 44px);
  line-height: 1.1;
}

.service-card h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 6px;
  height: 58px;
  background: #17445c;
}

.service-card ul {
  margin: 0;
  padding-left: 28px;
  color: #333;
  font-size: clamp(19px, 1.3vw, 24px);
  line-height: 1.55;
}

.service-card li + li {
  margin-top: 18px;
}

.rental-page {
  min-height: 1240px;
  background: #fff;
}

.rental-embed-shell {
  position: relative;
  min-height: 1240px;
}

.rental-frame {
  display: block;
  width: 100%;
  height: 1240px;
  border: 0;
}

.rental-loader {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  min-height: 86px;
  padding: 20px 24px;
  background: #fff;
  color: var(--navy);
  text-align: center;
  border-bottom: 1px solid #e6e6e6;
}

.rental-loader p {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.rental-loader a {
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  padding: 10px 24px;
  background: #1e467d;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.rental-embed-shell:not(.is-loading) .rental-loader {
  display: none;
}

.contact-hero {
  height: 610px;
  background-image: url("assets/contact-interior.jpg");
  background-position: center 47%;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(420px, 660px) minmax(360px, 520px);
  gap: 72px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 98px 32px 92px;
}

.contact-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(52px, 4.35vw, 78px);
  line-height: 1.05;
  white-space: nowrap;
}

.contact-copy p {
  margin: 0 0 52px;
  color: #333;
  font-size: 22px;
  line-height: 1.58;
}

.contact-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  font-size: 20px;
}

.contact-details h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.contact-details a,
.footer-grid a {
  font-weight: 700;
}

.contact-form {
  display: grid;
  align-content: start;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #333;
  font-size: 18px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 2px solid #333;
  border-radius: 0;
  padding: 12px 14px;
  background: #fff;
  color: #000;
  font: inherit;
}

.contact-form input {
  height: 52px;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button {
  min-height: 50px;
  border: 0;
  background: #5b5b5b;
  color: #d9d9d9;
  font: inherit;
  cursor: pointer;
}

.contact-form button:hover {
  background: #454545;
}

.site-footer {
  padding: 70px 54px 110px;
  background: #fff;
}

.site-footer h2 {
  margin: 0 0 106px;
  font-size: 42px;
  line-height: 1.15;
}

.footer-line {
  width: 100%;
  height: 1px;
  background: #000;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 150px;
  border-bottom: 1px solid #000;
}

.footer-grid a {
  display: grid;
  place-items: center;
  min-height: 150px;
  font-size: 21px;
}

.footer-grid a + a {
  border-left: 1px solid #000;
}

.chat-button {
  position: fixed;
  right: 28px;
  bottom: 26px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 274px;
  min-height: 74px;
  padding: 18px 36px;
  border-radius: 999px;
  background: #565656;
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  font-size: 26px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 240ms ease,
    transform 240ms ease,
    box-shadow 240ms ease;
}

.chat-button:hover {
  background: #484848;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}

.chat-icon {
  position: relative;
  width: 28px;
  height: 24px;
  border-radius: 13px;
  background: #fff;
}

.chat-icon::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  width: 14px;
  height: 3px;
  border-top: 3px solid #565656;
  border-bottom: 3px solid #565656;
}

.chat-icon::after {
  content: "";
  position: absolute;
  left: 6px;
  bottom: -5px;
  width: 11px;
  height: 10px;
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

@keyframes headerFloatIn {
  from {
    opacity: 0;
    transform: translate3d(0, -12px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes heroTextRise {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: translate3d(0, 30px, 0);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 980px) {
  html {
    scroll-padding-top: 116px;
  }

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

  .site-header {
    grid-template-columns: 190px 1fr 60px;
    min-height: 104px;
    padding: 8px 24px;
  }

  .logo-link,
  .logo {
    width: 172px;
    height: auto;
  }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    margin-top: 18px;
  }

  .home-hero {
    min-height: 690px;
  }

  .home-hero-content {
    padding: 72px 24px 0;
  }

  .welcome-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .welcome-copy {
    max-width: none;
    margin: 0;
    padding: 50px 32px;
  }

  .welcome-image {
    min-height: 430px;
  }

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

  .services-hero,
  .contact-hero {
    height: 440px;
  }

  .contact-section {
    gap: 48px;
    padding-top: 70px;
  }

  .contact-copy h1 {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 100px;
  }

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

  .site-header {
    grid-template-columns: 150px 1fr 52px;
    min-height: 88px;
    padding: 8px 16px;
  }

  .logo-link,
  .logo {
    width: 142px;
  }

  .menu-button span {
    width: 32px;
  }

  .mobile-nav {
    right: 16px;
    left: 16px;
  }

  .home-hero {
    min-height: 740px;
    background-position: center;
  }

  .home-hero-video {
    object-position: center;
  }

  .outline-button {
    min-width: 180px;
    min-height: 56px;
    font-size: 18px;
  }

  .welcome-copy h2,
  .contact-copy h1 {
    font-size: 46px;
  }

  .welcome-copy p,
  .contact-copy p {
    font-size: 18px;
  }

  .section-heading h2 {
    font-size: 48px;
  }

  .section-heading p {
    font-size: 27px;
  }

  .difference-grid,
  .form-row,
  .contact-details,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .difference-card {
    min-height: 0;
  }

  .pool-photo {
    height: 360px;
  }

  .service-list {
    padding: 34px 16px 120px;
  }

  .service-card {
    padding: 34px 24px 32px;
  }

  .service-card ul {
    padding-left: 20px;
  }

  .contact-section {
    padding: 54px 24px 70px;
  }

  .site-footer {
    padding: 54px 28px 110px;
  }

  .site-footer h2 {
    margin-bottom: 58px;
    font-size: 34px;
  }

  .footer-grid a + a {
    border-left: 0;
    border-top: 1px solid #000;
  }

  .chat-button {
    right: 18px;
    bottom: 18px;
    min-width: 0;
    min-height: 60px;
    padding: 14px 24px;
    font-size: 20px;
  }
}

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

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

  .home-hero-video {
    display: none;
  }

  .reveal {
    opacity: 1;
    filter: none;
    transform: none;
  }
}
