/* Cypress & Vale Realty — shared styles */

:root {
  --bg: #FAF8F4;          /* warm white */
  --surface: #FFFFFF;
  --mist: #EEF1EA;        /* pale sage */
  --sage: #8FA58C;
  --sage-deep: #5F7A63;
  --charcoal: #2B2B29;
  --charcoal-deep: #1E1F1D;
  --muted: #5E5D58;
  --line: #E5E0D7;

  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: clamp(24px, 3vw, 40px);
  --gutter: clamp(8px, 1.4vw, 20px);  /* space around the rounded panels */
  --display: "Sora", "Helvetica Neue", Arial, sans-serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
h1 { font-size: clamp(2.5rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 500; }
h3, .h3 { font-size: 1.3rem; letter-spacing: -0.02em; }

.container {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}

.lead {
  max-width: 40ch;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.5;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 16px;
  background: var(--charcoal);
  color: var(--bg);
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 3px;
}

/* Rounded panels inset from the page edge */

.frame {
  position: relative;
  isolation: isolate;
  margin-inline: var(--gutter);
  overflow: hidden;
  border-radius: var(--radius-xl);
}

/* Photo that fills a panel behind its content */
.frame-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--mist);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-large { min-height: 60px; padding: 0 34px; font-size: 1.0625rem; }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s ease; }
.btn:hover svg { transform: translate(2px, -2px); }

.btn-primary { background: var(--charcoal); color: var(--bg); }
.btn-primary:hover { background: var(--sage-deep); }

.btn-outline { border-color: var(--charcoal); color: var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); color: var(--bg); }

.btn-light { background: var(--bg); color: var(--charcoal); }
.btn-light:hover { background: var(--mist); }

.btn-outline-light { border-color: rgba(250, 248, 244, .55); color: var(--bg); }
.btn-outline-light:hover { border-color: var(--bg); background: rgba(250, 248, 244, .1); }

/* Round arrow used on cards */
.arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--bg);
  transition: background-color .2s ease;
}
.arrow svg { width: 20px; height: 20px; transition: transform .2s ease; }

/* Header: a floating white bar */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 12px var(--gutter) 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100%, 1400px);
  height: 68px;
  margin-inline: auto;
  padding: 0 10px 0 20px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(229, 224, 215, .8);
  border-radius: 999px;
  box-shadow: 0 10px 30px -22px rgba(43, 43, 41, .45);
}

.brand {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 10px;
  text-decoration: none;
}
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-name {
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.brand-name span { font-weight: 400; color: var(--muted); }

.nav-links {
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--charcoal); }

.nav .btn { gap: 0; min-height: 48px; padding: 0 22px; font-size: .95rem; }

/* Menu button, shown on small screens only */
.nav-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--mist);
  color: var(--charcoal);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle path {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .25s ease;
}
.nav.is-open .bar-top { transform: translateY(4px) rotate(45deg); }
.nav.is-open .bar-bottom { transform: translateY(-4px) rotate(-45deg); }

/* Home hero: headline over the photo, white bar at the bottom */

.hero {
  display: flex;
  min-height: clamp(600px, calc(100svh - 100px), 820px);
  margin-top: 12px;
}
.hero .frame-bg { object-position: center 22%; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 45%;
  background: linear-gradient(to bottom, rgba(250, 248, 244, .55), rgba(250, 248, 244, 0));
}

.hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(36px, 5vw, 64px) 0 24px;
}
.hero h1 { max-width: 13ch; font-size: clamp(3rem, 8.5vw, 7.5rem); text-wrap: balance; }

.hero-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 14px 14px 30px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px -30px rgba(43, 43, 41, .5);
}
.hero-bar .lead { color: var(--charcoal); }

/* Listings hero: huge title over a darkened photo */

.page-hero {
  display: flex;
  min-height: clamp(540px, 78svh, 760px);
  margin-top: 12px;
  color: var(--bg);
  background: var(--charcoal);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(24, 25, 22, .72) 0%, rgba(24, 25, 22, .35) 45%, rgba(24, 25, 22, .78) 100%);
}

.page-hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 48px);
}
.page-hero h1,
.display {
  font-size: clamp(2.9rem, 8vw, 7.5rem);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -0.05em;
}
.page-hero h1 { max-width: 12ch; }

.page-hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.page-hero .lead { color: rgba(250, 248, 244, .86); }

/* Sections */

.section { padding: 112px 0; }
.section-mist { background: var(--mist); }
.section-listings { padding-top: 72px; }
.frame + .frame { margin-top: var(--gutter); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 64px;
  align-items: start;
  margin-bottom: 56px;
}
.section-head-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  padding-top: 8px;
}
.section-head-side p {
  max-width: 40ch;
  color: var(--muted);
  font-size: 1.125rem;
}

/* Home cards */

.homes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.home {
  display: flex;
  flex-direction: column;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: box-shadow .25s ease, transform .25s ease;
}
.home-img {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--mist);
}
.home-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .5s ease;
}

.home-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 14px 10px;
}
.home-place { margin-top: 2px; color: var(--muted); }

.home-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 22px;
  padding: 0;
  list-style: none;
}
.home-specs li {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: .875rem;
}

.home-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}
.home-price {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.home-foot .btn { min-height: 46px; padding: 0 8px 0 18px; font-size: .925rem; }
.home-foot .btn svg {
  width: 30px;
  height: 30px;
  padding: 7px;
  border-radius: 50%;
  background: rgba(250, 248, 244, .14);
}

/* Services */

.services {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr;
  gap: 20px;
}
.service {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 30px;
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--radius-lg);
  transition: transform .25s ease, box-shadow .25s ease;
}

.service-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.service h3 { font-size: 1.6rem; font-weight: 500; }
.service p { max-width: 30ch; margin-top: 12px; color: var(--muted); }

.service-icon {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  flex: none;
  border-radius: 50%;
  background: var(--mist);
  transition: transform .25s ease;
}
.service:nth-child(3) .service-icon { background: #F3EEE6; }
.service-icon svg { width: 72px; height: 72px; }

.service-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 28px;
  color: var(--charcoal);
  font-weight: 600;
  text-decoration: none;
}
.service-link:hover .arrow { background: var(--sage-deep); }
.service-link:hover .arrow svg { transform: translate(2px, -2px); }

/* First card: a photo with the text over its sky */
.service-feature .frame-bg { border-radius: inherit; }
.service-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(250, 248, 244, .82) 0%, rgba(250, 248, 244, .3) 42%, rgba(250, 248, 244, 0) 60%);
}
.service-feature h3 { font-size: 2rem; }
.service-feature p { color: var(--charcoal); }
.service-feature .service-link {
  align-self: flex-start;
  padding: 8px 8px 8px 22px;
  background: var(--surface);
  border-radius: 999px;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px 72px;
  align-items: start;
}
.about-text p {
  max-width: 36ch;
  margin: 20px 0 32px;
  color: var(--muted);
  font-size: 1.125rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 32px;
  margin: 0;
  padding-top: 8px;
}
.stat dt {
  font-family: var(--display);
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
}
.stat dd {
  margin: 10px 0 0;
  color: var(--muted);
}

.about-photo {
  grid-column: 1 / -1;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--mist);
}
.about-photo img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

/* Reviews */

.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 0;
  padding: 34px 32px 30px;
  background: var(--surface);
  border-radius: var(--radius-lg);
}
.review::before {
  content: "\201C";
  height: 34px;
  font-family: var(--display);
  font-size: 4.5rem;
  font-weight: 600;
  line-height: 1;
  color: var(--sage);
}
.review blockquote {
  margin: 0;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.02em;
}
.review figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.4;
}
.review figcaption strong { display: block; color: var(--charcoal); font-size: 1rem; }
.avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  background: var(--mist);
  color: var(--sage-deep);
  font-family: var(--display);
  font-weight: 600;
  font-size: .9rem;
}

/* Meet your guide */

.guide-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) 1fr;
  gap: 80px;
  align-items: center;
}
.guide-photo {
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-lg) + 10px);
}
.guide-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  border-radius: var(--radius-lg);
  background: var(--mist);
}
.guide-name {
  margin-top: 28px;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.guide-role { color: var(--sage-deep); font-weight: 600; }
.guide-bio {
  max-width: 40ch;
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.125rem;
}
.guide-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 40px;
  padding: 0;
  list-style: none;
}
.guide-facts li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 12px;
  background: var(--mist);
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 500;
}
.guide-facts svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--sage-deep);
}
.guide-note { margin-top: 14px; color: var(--muted); font-size: .95rem; }

/* Contact: huge title over a dark photo, details in a strip below */

.contact {
  margin-bottom: var(--gutter);
  color: var(--bg);
  background: var(--charcoal-deep);
}
.contact-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 6vw, 72px);
}
.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(24, 25, 22, .72), rgba(24, 25, 22, .6) 50%, rgba(30, 31, 29, .94));
}
.contact h2 { max-width: 13ch; }
.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-top: clamp(40px, 6vw, 80px);
}
.contact .lead { color: rgba(250, 248, 244, .86); }
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-block: 0;
  padding: 36px 0 40px;
  list-style: none;
  border-top: 1px solid rgba(250, 248, 244, .14);
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--display);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  letter-spacing: -0.02em;
  min-width: 0;
}
.contact-details svg { width: 24px; height: 24px; flex: none; color: var(--sage); }
.contact-details a { text-decoration: none; overflow-wrap: anywhere; }
.contact-details a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Footer */

.site-footer {
  padding: 40px 0 48px;
  color: var(--muted);
  font-size: .95rem;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.site-footer .brand-name { color: var(--charcoal); }
.footer-legal { padding-top: 24px; }

/* Hover effects, only where a mouse or trackpad can hover */

@media (hover: hover) {
  .home:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px -32px rgba(43, 43, 41, .45);
  }
  .home:hover .home-img img { transform: scale(1.04); }
  .service:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px -30px rgba(43, 43, 41, .4);
  }
  .service:hover .service-icon { transform: rotate(-6deg) scale(1.05); }
}

/* Responsive */

@media (max-width: 1100px) {
  .homes { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: 1fr 1fr; }
  .service-feature { grid-column: 1 / -1; min-height: 380px; }
}

@media (max-width: 980px) {
  .reviews { grid-template-columns: 1fr; max-width: 640px; }
  .about-grid,
  .guide-grid { grid-template-columns: 1fr; gap: 48px; }
  .guide-photo { max-width: 440px; }
  .contact-details { grid-template-columns: 1fr; gap: 4px; }
}

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

  /* Compact header: logo, booking button and a menu button on one row */
  .nav {
    flex-wrap: wrap;
    height: auto;
    padding: 8px 8px 8px 16px;
    column-gap: 8px;
    border-radius: 30px;
  }
  .brand { margin-right: auto; }
  .nav-links {
    order: 3;
    flex-wrap: wrap;
    width: 100%;
    gap: 0 24px;
    padding: 4px 0;
  }
  .nav-links a { display: block; padding: 10px 0; font-size: 1rem; }

  /* With the script running, the links fold into a menu */
  .js .nav-toggle { display: grid; }
  .js .nav .nav-links { display: none; flex-direction: column; padding: 8px 8px 6px 0; }
  .js .nav.is-open .nav-links { display: flex; }
  .js .nav .nav-links li + li { border-top: 1px solid var(--line); }
  .js .nav .nav-links a { padding: 13px 0; color: var(--charcoal); font-size: 1.0625rem; }

  .section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
  .section-head-side { padding-top: 0; }
  .hero-bar,
  .page-hero-foot { flex-direction: column; align-items: stretch; }
  .hero-bar { padding: 22px; }
  .hero-bar .btn { width: 100%; }

  .contact-details a { display: inline-block; padding-block: 10px; }
  .site-footer .nav-links { padding: 0; }
  .site-footer .nav-links a { padding: 12px 0; }
}

@media (max-width: 700px) {
  .section { padding: 72px 0; }
  .homes,
  .services { grid-template-columns: 1fr; }
  .service { min-height: 0; padding: 26px; }
  .service-feature { min-height: 400px; }
  .service-link { padding-top: 32px; }
  .stats { gap: 32px 20px; }
  .about-photo img { aspect-ratio: 4 / 3; }
  .review { padding: 30px 26px 26px; }

  /* Hero fills the first screen, so the button is always visible */
  .hero { min-height: max(480px, calc(100svh - 96px)); }
  .hero .frame-bg { object-position: 52% 30%; }
  .hero::before { height: 55%; }
  .hero-inner { padding: 28px 0 16px; }
  .hero-bar { padding: 20px; gap: 16px; border-radius: 22px; }
  .page-hero { min-height: max(480px, calc(100svh - 96px)); }

  .contact-hero { padding-top: 56px; }
  .contact-row { margin-top: 32px; }
}

@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .btn-large { width: 100%; }
  .contact-actions { width: 100%; }
  .contact-actions .btn { width: 100%; }
}

@media (max-width: 480px) {
  .nav { padding: 6px 6px 6px 12px; column-gap: 6px; }
  .brand { gap: 8px; }
  .brand svg { width: 28px; height: 28px; }
  .brand-name { font-size: .95rem; }
  .brand-name span { display: none; }
  .nav .btn { min-height: 44px; padding: 0 14px; font-size: .875rem; }
  .home-body { padding-inline: 10px; }
}

@media (max-width: 374px) {
  .nav-btn-more { display: none; }
  h1 { font-size: 2.2rem; }
  .btn-large { padding: 0 20px; font-size: 1rem; }
  .hero h1,
  .page-hero h1 { font-size: 2.6rem; }
  .nav .btn { padding: 0 18px; }
  .home-foot .btn { width: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn,
  .btn svg,
  .arrow svg,
  .nav-toggle path,
  .home,
  .service,
  .service-icon,
  .home-img img { transition: none; }
  .btn:hover svg,
  .home:hover,
  .service:hover,
  .service:hover .service-icon,
  .service-link:hover .arrow svg,
  .home:hover .home-img img { transform: none; }
}
