/* Self-hosted Merriweather — Normal */
@font-face {
  font-family: "Merriweather";
  src: url("../fonts/Merriweather-Variable-Latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
}
:root {
  /* Font family */
  --font-primary: "Merriweather", Georgia, serif;

  /* Font sizes */
  --fs-p: clamp(1rem, 0.7vw + 0.5rem, 1.25rem);
  --fs-h1: clamp(1.95rem, 4.52vw + 0.82rem, 4.44rem);
  --fs-h2: clamp(1.56rem, 3.22vw + 0.76rem, 3.33rem);
  --fs-h3: clamp(1.25rem, 2.27vw + 0.68rem, 2.5rem);
  --fs-card-description: clamp(0.875rem, 0.5vw + 0.75rem, 1rem);
  --fs-footer-link: clamp(0.875rem, 0.5vw + 0.75rem, 1rem);
  --fs-property-facts: clamp(0.875rem, 1vw + 0.65rem, 1.25rem);

  /* Font weights */
  --fw-regular: 400;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Line heights */
  --lh-body: 1.5;
}
/* * =================== Reset ==================== */
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
}
/*^ box sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}
/*^ reset margins */
body,
h1,
h2,
h3,
h4,
h5,
p,
figure,
picture {
  margin: 0;
  padding: 0;
}
h1,
h2,
h3,
h4,
h5 {
  text-wrap: balance;
}
p {
  max-width: 75ch;
  text-wrap: pretty;
}
/*^ Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}
/*^ Make images easier to work with */
img,
picture,
svg,
video {
  max-width: 100%;
  display: block;
}
/*^ make forms elements easier to work with */
input,
button,
textarea,
select {
  font: inherit;
}
/*^ remove animations for people who've turned them off */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/*^ site reader */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/** ================ Accessibility utilities ================ */

/*^ Skip link — visible only when focused */
.skip-link {
  position: absolute;
  top: 0;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: #fff;
  color: #0052cc;
  border: 2px solid #0052cc;
  border-radius: 4px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}
:where(
  a:not(.skip-link),
  button,
  input,
  select,
  textarea,
  summary,
  [tabindex]
):focus-visible {
  outline: 3px solid #0052cc;
  outline-offset: 3px;
}
/*^ Prevent Safari from outlining programmatically focused sections */
#rental-section:focus,
#rental-section:focus-visible,
#about-alessandra:focus,
#about-alessandra:focus-visible {
  outline: none;
}
@media (prefers-reduced-motion: reduce) {
  :has(:target) {
    scroll-behavior: auto;
    scroll-padding-top: 5rem;
  }
}
/* ^ =================== Text ==================== */
body {
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
  font-family: var(--font-primary);
  font-weight: var(--fw-regular);
  font-style: normal;
  line-height: var(--lh-body);
}

h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

p {
  font-size: var(--fs-p);
}

/* ^ =================== Flex ==================== */
.flex {
  display: flex;
  justify-content: center;
  gap: 2rem;
}
/** ================ header-nav ================= */
.header {
  position: fixed;
  width: 100%;
  /* ^ to fix top header space */
  top: 0;
  z-index: 25;
}
.glass-header {
  background: rgba(
    0,
    0,
    0,
    0.5
  ); /* Adjust the background color opacity as needed */
  backdrop-filter: blur(10px); /* Adjust the blur amount as needed */
  padding: 0.5em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* Optional: Add a subtle border */
}
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2em;
  min-height: 1em;
}
img.logo {
  height: auto;
}
ul {
  list-style: none;
  text-decoration: none;
  color: inherit;
}
a {
  text-decoration: none;
}
.nav {
  transition: all 0.4s ease-in-out;
}
.nav-list {
  display: flex;
  column-gap: 2.5em;
}
.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 1);
  font-size: 1.5rem;
  transition: all 0.4s;
}
.nav-link::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px; /* Adjust the height as needed */
  bottom: 0;
  left: 0;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s ease-in-out;
}
.nav-link:hover::before,
.nav-link:focus::before {
  transform: scaleX(1);
}
.nav-link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
/*^ ================ hamburger ================= */
.hamburger {
  display: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.hamburger:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.bar {
  display: block;
  height: 2px;
  width: 27px;
  background-color: white;
  margin: 5px 0;
  opacity: 0.8;
  transition: all 0.3s ease-in-out;
}
.nav-open {
  transform: translate(0) !important;
}
.hamburger-open .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-open .bar:nth-child(2) {
  opacity: 0;
}
.hamburger-open .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
@media (max-width: 650px) {
  .nav {
    position: fixed;
    top: 5em;
    left: 0;
    width: 100%;
    transform: translateX(-100%);
    visibility: hidden;
  }

  .nav.nav-open {
    visibility: visible;
  }
  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 2em;
    background: rgba(0, 0, 0, 0.85);
    /* Adjust the background color opacity as needed */
    backdrop-filter: blur(10px);
    /* Adjust the blur amount as needed */
    padding: 2em 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
  .nav-link {
    font-size: 1.75em;
  }
  .hamburger {
    display: block;
  }
}
/** ============ Footer ============== */
.footer {
  width: 100%;
  height: auto;
  padding: 3rem 5rem;
  background-color: black;
  box-sizing: border-box; /* Ensures padding is included in the total width */
}
.footer-links-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  justify-content: center;
  align-items: center;
}
.footer-link-heading {
  color: white;
  font-size: 1rem;
  font-weight: normal;
  line-height: inherit;
  margin: 0 0 1em;
}
.footer-links {
  text-align: center;
}
.footer-links li {
  list-style: none;
  margin-bottom: 0.1em;
}
.footer-links li a {
  position: relative;
  text-decoration: none;
  color: rgb(136, 135, 137);
  font-size: var(--fs-footer-link);
  transition: all 0.4s;
}
.footer-links li a::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px; /* Adjust the height as needed */
  bottom: 0;
  left: 0;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s ease-in-out;
}
.footer-links li a:hover::before,
.footer-links li a:focus::before {
  transform: scaleX(1);
}
.footer-links li a:focus-visible {
  color: #fff;
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  font-family: var(--font-primary);
  font-size: var(--fs-footer-link);
}
.footer-copyright {
  margin: 0 0 0.75rem;
  max-width: none;
  color: rgb(136, 135, 137);
  text-align: center;
  font-size: 0.75rem;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

.footer-legal-links a {
  position: relative;
  color: rgb(136, 135, 137);
  font-size: 0.75rem;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-legal-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease-in-out;
}

.footer-legal-links a:hover::after,
.footer-legal-links a:focus-visible::after {
  transform: scaleX(1);
}

.footer-legal-links a:focus-visible {
  color: #fff;
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .footer-legal-links a,
  .footer-legal-links a::after {
    transition: none;
  }
}
/* Media Query for Mobile View */
@media (max-width: 768px) {
  .footer {
    padding: 0.5em 0.5em 2rem;
  }

  .footer-links-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.25rem;
  }

  .footer-links-container .footer-links:nth-child(3) {
    grid-column: span 2;
    justify-self: center;
  }
}
