
/*
Theme Name: Hillside House Custom Theme
Theme URI: https://www.hillsidehouse.pt/
Author: DGmediaPRD
Description: Custom single-page WordPress theme for Hillside House. Built as a one-to-one conversion of the supplied landing page.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: hillside-house
*/

/* ============================================================
   HILLSIDE HOUSE — style.css
   Palette: sage-beige bg, forest green, muted olive accent
   Fonts: Cormorant Garamond (display) + Jost (body)
   ============================================================ */

/* ---------- RESET & VARIABLES ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #cdd1be;
  --bg-dark:    #1d3a2f;
  --bg-mid:     #b8bfaa;
  --green:      #1d3a2f;
  --green-mid:  #2c4f3f;
  --accent:     #8fa87a;
  --accent-lt:  #b2c4a0;
  --cream:      #f2f0e8;
  --text:       #1d3a2f;
  --text-light: #4a6358;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', sans-serif;
  --ease:       cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

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

/* ---------- SCROLL ANIMATIONS ---------- */
.fade-up,
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.reveal-left  { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }

.fade-up.visible,
.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* stagger children */
.fade-up:nth-child(2) { transition-delay: 0.15s; }
.fade-up:nth-child(3) { transition-delay: 0.30s; }

/* ---------- UTILITY ---------- */
.label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}
.label--light { color: var(--accent-lt); }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 4rem;
  transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}

.nav.scrolled {
  background: rgba(205, 209, 190, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(29,58,47,0.1);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: opacity 0.3s;
}

.nav__logo-img {
  height: 36px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  transition: filter 0.4s;
}
.nav.scrolled .nav__logo-img {
  filter: none;
}

.nav__logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #B9982F;
  transition: color 0.4s;
}
.nav.scrolled .nav__logo-text { color: #B9982F; }

.nav__links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav__links a {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(242,240,232,0.85);
  transition: color 0.3s;
}
.nav.scrolled .nav__links a { color: var(--text-light); }

.nav__links a:hover { color: var(--accent); }

.nav__cta {
  border: 1px solid rgba(242,240,232,0.6) !important;
  padding: 0.5rem 1.4rem !important;
  border-radius: 2px;
  transition: background 0.3s, color 0.3s, border-color 0.3s !important;
}
.nav.scrolled .nav__cta { border-color: var(--accent) !important; color: var(--accent) !important; }
.nav__cta:hover { background: var(--accent) !important; color: var(--cream) !important; border-color: var(--accent) !important; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg-image {
  position: absolute;
  inset: 0;
  background:
    url('https://www.hillsidehouse.pt/wp-content/uploads/2026/03/foto-1-scaled.webp') center/cover no-repeat;
  transform: scale(1.08);
  animation: heroZoom 12s var(--ease) forwards;
}

@keyframes heroZoom {
  to { transform: scale(1); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(29,58,47,0.82) 0%,
    rgba(29,58,47,0.45) 55%,
    rgba(29,58,47,0.20) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 4rem;
  max-width: 700px;
}

.hero__text { animation: fadeUp 1s 0.5s var(--ease) both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(35px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 0.95;
  color: var(--cream);
  display: block;
}

.hero__title span {
  display: block;
  animation: fadeUp 0.9s var(--ease) both;
}
.hero__title span:nth-child(1) { animation-delay: 0.5s; }
.hero__title span:nth-child(2) { animation-delay: 0.65s; }
.hero__title span:nth-child(3) { animation-delay: 0.80s; }

.hero__divider {
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin: 2rem 0;
  animation: fadeUp 0.9s 1s var(--ease) both;
}

.hero__subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(242,240,232,1);
  margin-bottom: 0.5rem;
  animation: fadeUp 0.9s 1.1s var(--ease) both;
}

.hero__meta {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(242,240,232,0.9);
  margin-bottom: 2.5rem;
  animation: fadeUp 0.9s 1.2s var(--ease) both;
}

.hero__btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  border: 1px solid rgba(242,240,232,0.7);
  color: var(--cream);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.3s, color 0.3s;
  animation: fadeUp 0.9s 1.35s var(--ease) both;
}
.hero__btn:hover { background: var(--cream); color: var(--green); }

.hero__scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  right: 4rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  animation: fadeUp 1s 1.6s var(--ease) both;
}

.hero__scroll-hint span {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242,240,232,0.6);
  writing-mode: vertical-rl;
}

.hero__scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(242,240,232,0.6), transparent);
  animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* ---------- ABOUT ---------- */
.about {
  position: relative;
  padding: 8rem 0;
  background: var(--bg);
}

.about__accent-bar {
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
}

.about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about__image-wrap {
  position: relative;
}

.about__image-wrap::before {
  content: '';
  position: absolute;
  inset: -1.5rem -1.5rem 1.5rem 1.5rem;
  background: var(--accent);
  opacity: 0.25;
  border-radius: 2px;
  z-index: 0;
}

.about__img-night {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4/3;
  background: url('https://www.hillsidehouse.pt/wp-content/uploads/2026/03/foto-2-scaled.webp') center/cover no-repeat;
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(29,58,47,0.2);
}

.about__content { }

.about__headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--green);
  margin-bottom: 2rem;
}

.about__body {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 1.2rem;
  line-height: 1.8;
}

.about__body--emphasis {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--green);
  border-left: 2px solid var(--accent);
  padding-left: 1.2rem;
  margin-top: 1.5rem;
}

/* ---------- LIFESTYLE ---------- */
.lifestyle {
  background: var(--bg-mid);
  padding: 8rem 0;
}

.lifestyle__top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.lifestyle__images {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.lifestyle__img {
  width: 100%;
  border-radius: 2px;
  box-shadow: 0 15px 40px rgba(29,58,47,0.15);
}

.lifestyle__img--coast {
  aspect-ratio: 16/9;
  background: url('https://www.hillsidehouse.pt/wp-content/uploads/2026/03/foto-4.webp') center/cover no-repeat;
}

.lifestyle__img--pool {
  aspect-ratio: 16/9;
  background: url('https://www.hillsidehouse.pt/wp-content/uploads/2026/03/foto-3.webp') center/cover no-repeat;
}

.lifestyle__intro {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.lifestyle__premium-label {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.02em;
  margin-bottom: 2rem;
}

.lifestyle__img--extra {
  aspect-ratio: 16/9;
  background: url('https://www.hillsidehouse.pt/wp-content/uploads/2026/03/foto-4.1.webp') center/cover no-repeat;
}

.lifestyle__headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--green);
  margin-bottom: 3rem;
}

.feature {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(29,58,47,0.12);
}
.feature:last-of-type { border-bottom: none; }

.feature__title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--green);
  margin-bottom: 0.6rem;
}

.feature__text {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.8;
}

.lifestyle__closing {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--green);
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(29,58,47,0.06);
  border-radius: 2px;
}

/* ---------- APARTMENTS ---------- */
.apartments {
  background: var(--bg-dark);
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

.apartments::before {
  content: '';
  position: absolute;
  top: -120px; right: -80px;
  width: 500px; height: 500px;
  background: var(--accent);
  opacity: 0.06;
  border-radius: 50%;
}

.apartments__header {
  max-width: 1200px;
  margin: 0 auto 4rem;
  padding: 0 4rem;
}

.apartments__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--cream);
}

.apartments__body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.apartments__intro {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: rgba(242,240,232,0.85);
  margin-bottom: 2rem;
  line-height: 1.7;
}
.apartments__intro strong {
  font-size: 2rem;
  color: var(--accent);
  font-weight: 600;
}

.apartments__list {
  list-style: none;
  margin-bottom: 2.5rem;
}

.apartments__list li {
  font-size: 0.88rem;
  color: rgba(242,240,232,0.75);
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(242,240,232,0.08);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.apartments__list li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.apartments__list li span {
  color: rgba(242,240,232,0.45);
  font-size: 0.82rem;
}

.apartments__support {
  font-size: 0.85rem;
  color: rgba(242,240,232,0.55);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.apartments__tagline {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--accent-lt);
  line-height: 1.5;
}

.apartments__price {
  margin-top: 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--cream);
  border-top: 1px solid rgba(242,240,232,0.15);
  padding-top: 1.2rem;
}

.apt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}

.apt-grid__img {
  border-radius: 2px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  background-size: cover;
  background-position: center;
}

.apt-grid__img--1 {
  grid-column: 1 / -1;
  aspect-ratio: 16/9;
  background-image: url('https://www.hillsidehouse.pt/wp-content/uploads/2026/04/2018-11-08-11.33.16-scaled.webp');
}

.apt-grid__img--2 {
  aspect-ratio: 4/3;
  background-image: url('https://www.hillsidehouse.pt/wp-content/uploads/2026/03/foto-1.1-scaled.webp');
}

.apt-grid__img--3 {
  aspect-ratio: 4/3;
  background-image: url('https://www.hillsidehouse.pt/wp-content/uploads/2026/03/foto-1.0-scaled.webp');
}

/* ---------- SILVER COAST ---------- */
.coast {
  background: var(--bg);
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 4rem;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.coast__images {
  margin: 0;
  padding: 0;
}

/* Wrapper that holds photo + map as one visual unit */
.coast__stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.coast__image-wrap {
  position: relative;
}

.coast__image-wrap::before {
  content: '';
  position: absolute;
  inset: -1.5rem -1.5rem 1.5rem 1.5rem;
  background: var(--accent);
  opacity: 0.25;
  border-radius: 2px;
  z-index: 0;
}

.coast__img {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 420px;
  display: block;
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(29,58,47,0.2);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.coast__img--setting {
  aspect-ratio: 4 / 3;
  background-image: url('https://www.hillsidehouse.pt/wp-content/uploads/2026/03/exterior_mar-scaled.webp');
}

.coast__map {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(29,58,47,0.2);
}

.coast__map-inner {
  width: 100%;
  height: 100%;
}

.coast__map-inner iframe {
  width: 100%;
  height: 100%;
  display: block;
  filter: saturate(0.5) sepia(0.15) contrast(1.05);
  transition: filter 0.5s ease;
}

.coast__map:hover .coast__map-inner iframe {
  filter: saturate(0.8) sepia(0.05) contrast(1.02);
}

.coast__map-link {
  position: absolute;
  bottom: 0;
  right: 0;
  display: inline-block;
  padding: 0.65rem 1.1rem;
  background: var(--bg-dark);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  opacity: 0.9;
  transition: background 0.3s, opacity 0.3s;
  z-index: 2;
}

.coast__map-link:hover {
  background: var(--accent);
  opacity: 1;
}

.coast__content {
  max-width: 700px;
  margin: 0;
  padding: 0;
}

.coast__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--green);
  margin-bottom: 2rem;
}

.coast__body {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 1.2rem;
  line-height: 1.8;
}

.coast__body--bold {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--green);
  margin-top: 1rem;
}

.coast__label-block {
  background: var(--accent);
  padding: 3rem 4rem;
  text-align: right;
}

.coast__label-block span {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 3rem);
  font-weight: 300;
  color: var(--cream);
  letter-spacing: 0.02em;
}

/* ---------- CONTACT ---------- */
.contact {
  background: var(--bg-dark);
  padding: 8rem 0;
}

.contact__inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 4rem;
  text-align: center;
}

.contact__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 1rem;
}

.contact__sub {
  font-size: 0.9rem;
  color: rgba(242,240,232,0.55);
  margin-bottom: 3rem;
  line-height: 1.7;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form__input {
  background: rgba(242,240,232,0.06);
  border: 1px solid rgba(242,240,232,0.12);
  border-radius: 2px;
  padding: 1rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--cream);
  outline: none;
  transition: border-color 0.3s, background 0.3s;
  width: 100%;
}

.form__input::placeholder { color: rgba(242,240,232,0.35); }
.form__input:focus {
  border-color: var(--accent);
  background: rgba(242,240,232,0.09);
}

.form__textarea {
  resize: vertical;
  min-height: 130px;
  font-family: var(--font-body);
}

.form__btn {
  align-self: center;
  padding: 1rem 3rem;
  background: var(--accent);
  color: var(--cream);
  border: none;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.form__btn:hover {
  background: var(--accent-lt);
  transform: translateY(-1px);
}

/* ---------- FOOTER ---------- */
.footer {
  background: #111f1a;
  padding: 3rem 4rem;
  text-align: center;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.footer__tagline {
  font-size: 0.8rem;
  color: rgba(242,240,232,0.35);
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}

.footer__copy {
  font-size: 0.72rem;
  color: rgba(242,240,232,0.2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- POPUP ---------- */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(29,58,47,0.65);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  opacity: 0;
  animation: popupFadeIn 0.6s 0.4s var(--ease) forwards;
}

@keyframes popupFadeIn {
  to { opacity: 1; }
}

.popup-overlay.hidden {
  display: none;
}

.popup {
  position: relative;
  background: var(--cream);
  max-width: 820px;
  width: 100%;
  max-height: min(95vh, 900px);
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  border-radius: 3px;
  box-shadow: 0 30px 80px rgba(29,58,47,0.35);
  animation: popupSlideUp 0.6s 0.4s var(--ease) both;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-lt) transparent;
}

@media (max-height: 700px), (max-width: 600px) {
  .popup {
    overflow-y: auto;
  }
}

@keyframes popupSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.popup__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  float: none;
  margin: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(29,58,47,0.18);
  background: transparent;
  color: var(--green);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, color 0.25s;
  z-index: 2;
}

@media (max-height: 700px), (max-width: 600px) {
  .popup__close {
    position: sticky;
    top: 0;
    float: right;
    margin: 1.5rem 1.5rem 0 0;
  }
}
  border: 1px solid rgba(29,58,47,0.18);
  background: transparent;
  color: var(--green);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, color 0.25s;
  z-index: 2;
}
.popup__close:hover {
  background: var(--green);
  color: var(--cream);
}

.popup__inner {
  padding: 2.5rem 5rem 4rem;
  margin-top: -34px;
  text-align: center;
}

.popup__logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 2rem;
  padding-top: 2rem;
}

.popup__logo {
  height: 36px;
  width: auto;
}

.popup__logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: #B9982F;
  letter-spacing: 0.04em;
}

.popup__divider {
  width: 50px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 2.2rem;
}

.popup__notice {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.8rem;
  line-height: 1.8;
}

.popup__body {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 1.1rem;
}

.popup__emphasis {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  font-style: italic;
  color: var(--green);
  margin: 2rem auto 2.2rem;
  line-height: 1.5;
  max-width: 520px;
}

.popup__contact-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

.popup__contact-sub {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 1.8rem;
  line-height: 1.7;
}

.popup__contacts {
  display: flex;
  gap: 4rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.popup__person {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: center;
}

.popup__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green);
}

.popup__phone {
  font-size: 0.88rem;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}
.popup__phone:hover { color: var(--accent); }

.popup__or {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(29,58,47,0.3);
  margin: 1.4rem 0 1.2rem;
}

.popup__email-btn {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  border: 1px solid var(--green);
  color: var(--green);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.3s, color 0.3s;
}
.popup__email-btn:hover {
  background: var(--green);
  color: var(--cream);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .popup__inner { padding: 1rem 2rem 3rem; }
  .popup__contacts { gap: 2rem; }

  .nav { padding: 1.2rem 2rem; }
  .nav__links { gap: 1.4rem; }

  .about__container,
  .lifestyle__top,
  .apartments__body,
  .coast {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about__container,
  .lifestyle__top,
  .apartments__body,
  .apartments__header,
  .contact__inner { padding: 0 2rem; }

  .coast {
    padding: 6rem 2rem;
  }

  .hero__content { padding: 0 2rem; }
  .hero__scroll-hint { right: 2rem; }

  /* Wijziging 3: hero titel lager op mobiel (vervangt ruimte van verwijderde subtekst) */
  .hero { align-items: flex-end; }
  .hero__content { padding-bottom: 20vh; }

  .apt-grid { grid-template-columns: 1fr; }
  .apt-grid__img--1 { grid-column: 1; }

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

  .coast__content { max-width: 100%; }
  .coast__label-block { padding: 2rem; text-align: center; }

  .footer { padding: 2.5rem 2rem; }
}

@media (max-width: 600px) {
  .nav__links { display: none; }
  .hero__title { font-size: 3rem; }
}


@media (max-width: 640px) {
  .popup-overlay {
    align-items: flex-start;
    padding: 0.75rem;
  }

  .popup {
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - 1.5rem);
    margin: 0;
    border-radius: 14px;
  }

  .popup__close {
    position: sticky;
    top: 0.65rem;
    right: 0.65rem;
    margin: 0.65rem 0.65rem 0 0;
    width: 38px;
    height: 38px;
    background: rgba(242,240,232,0.95);
    backdrop-filter: blur(6px);
  }

  .popup__inner {
    padding: 1rem 1.1rem 1.75rem;
    margin-top: -20px;
  }

  .popup__logo-row {
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
    padding-top: 1rem;
  }

  .popup__logo {
    height: 30px;
  }

  .popup__logo-text {
    font-size: 1.1rem;
    text-align: center;
  }

  .popup__notice,
  .popup__contact-label {
    letter-spacing: 0.12em;
  }

  .popup__notice {
    font-size: 0.68rem;
    margin-bottom: 1.1rem;
    line-height: 1.6;
  }

  .popup__body,
  .popup__contact-sub,
  .popup__phone {
    font-size: 0.9rem;
    line-height: 1.65;
  }

  .popup__emphasis {
    font-size: 1.05rem;
    margin: 1.35rem auto 1.5rem;
    line-height: 1.4;
  }

  .popup__divider {
    margin: 0 auto 1.3rem;
  }

  .popup__contacts {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 0.9rem;
  }

  .popup__name {
    font-size: 1rem;
  }

  .popup__or {
    margin: 1rem 0 0.85rem;
  }

  .popup__email-btn {
    display: block;
    width: 100%;
    padding: 0.95rem 1rem;
    text-align: center;
  }
}
@media (max-width: 768px) {
  .coast__image-wrap::before {
    inset: -1rem -1rem 1rem 1rem;
  }

  .coast__img {
    min-height: 320px;
  }

  .coast__img--setting {
    aspect-ratio: 4 / 5;
    background-position: center center;
  }
}
