/* Base styles - Core layout and typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: white;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Page background image styles - Base class */
.page-background {
  position: fixed;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  width: calc(100vw - 20px);
  height: calc(100vh - 20px);
  object-fit: cover;
  border-radius: 25px;
  z-index: 1;
  transition: opacity 0.5s ease;
}

/* Specific positioning variants for different pages */
.page-background--home {
  object-position: center;
}

.page-background--about-me {
  object-position: center 40%;
}

.page-background--property-finder {
  object-position: bottom;
}

.page-background--property-retreats {
  object-position: center;
}

/* Twise background image styles */
.twise-background {
  position: fixed;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  width: calc(100vw - 20px);
  height: calc(100vh - 20px);
  object-fit: cover;
  border-radius: 25px;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.twise-background.show {
  opacity: 1;
}

/* Logo styles */
.logo {
  position: fixed;
  top: 25px;
  left: 20px;
  width: clamp(60px, 10vw, 120px);
  height: clamp(60px, 10vw, 120px);
  z-index: 1001;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.logo.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Logo link styles */
a .logo {
  pointer-events: auto;
  cursor: pointer;
}

/* Menu background styles */
.menu-bg {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 30px;
  z-index: 1001;
  pointer-events: none;
}

/* Menu navigation styles */
.menu-nav {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 30px;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.menu-btn {
  color: #333;
  text-decoration: none;
  font-family: "Figtree", sans-serif;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.3s ease;
  cursor: pointer;
}

.menu-btn:hover {
  color: black;
  font-weight: 700;
}

.menu-separator {
  color: #333;
  font-size: 14px;
  font-weight: 400;
}

/* Content box styles */
.content-box {
  position: fixed;
  top: 100px;
  right: 20%;
  transform: none;
  width: clamp(450px, 30vw, 450px);
  min-height: 370px;
  height: auto;
  background: white;
  border-radius: 13px;
  padding: 30px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.content-box h1.headline {
  font-family: "Instrument Serif", serif;
  font-size: 30px;
  font-style: italic;
  font-weight: 400;
  color: #333;
  line-height: 1.2;
  margin-bottom: 5px;
}

.content-box .question {
  font-family: "Figtree", sans-serif;
  font-size: 14px;
  font-style: italic;
  font-weight: 400;
  color: #666;
  line-height: 1.4;
  margin-bottom: 10px;
}

.content-box .body-text {
  font-family: "Figtree", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #333;
  line-height: 1.5;
  margin-bottom: 5px;
}

.content-box .body-text strong {
  font-weight: 600;
  color: #333;
}

.quote-section {
  margin-top: 20px;
  text-align: right;
}

.content-box .quote {
  font-family: "Instrument Serif", serif;
  font-size: 24px;
  font-style: italic;
  font-weight: 400;
  color: #333;
  line-height: 1.2;
  margin-bottom: 2px;
  quotes: """ """;
}

.content-box .quote::before {
  content: open-quote;
}

.content-box .quote::after {
  content: close-quote;
}

.content-box .attribution {
  font-family: "Instrument Serif", serif;
  font-size: 14px;
  font-style: italic;
  font-weight: 400;
  color: #666;
  display: block;
}

.content-btn {
  background: #333;
  color: white;
  border: 1px solid transparent;
  padding: 6px 20px;
  border-radius: 15px;
  font-family: "Figtree", sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  align-self: flex-start;
  margin-top: 20px;
}

.content-btn:hover {
  background: white;
  color: #333;
  border: 1px solid #333;
}

/* Button and contact info row styles */
.button-contact-row {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 20px;
 
}

.contact-info {
  text-align: right;
}

.contact-text {
  font-family: "Figtree", sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #666;
  line-height: 1.4;
  margin: 0;
}

.contact-text a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-text a:hover {
  color: #333;
  font-weight: 600;
}

/* Page-specific content box styles */
.content-box--wide {
  width: clamp(700px, 40vw, 700px);
  min-height: 400px;
  right: 5%;
  left: auto;
  transform: none;
  position: fixed;
  padding-bottom: 30px;
}

.content-box--wide .page-image {
  position: absolute;
  bottom: 0px;
  right: 0;
  width: 420px;
  height: auto;
  object-fit: cover;
  border-radius: 0;
  margin: 0;
  display: block;
  z-index: 1;
}

/* Property Finder specific styles */
.content-box--property-finder {
  width: clamp(750px, 45vw, 750px);
  min-height: 400px;
  right: 3%;
  left: auto;
  transform: none;
  position: fixed;
  padding-bottom: 30px;
}

.content-box--property-finder .page-image {
  position: absolute;
  top: 50%;
  right: 3%;
  transform: translateY(-50%);
  width: 280px;
  height: auto;
  object-fit: cover;
  border-radius: 15px;
  margin: 0;
  display: block;
  z-index: 1;
}

/* Property Finder text width constraints */
.content-box--property-finder .question {
  width: 60%;
}

.content-box--property-finder .body-text {
  width: 55%;
}

.content-box--property-finder .quote-section {
  width: 55%;
}

.content-box--wide .quote-section {
  text-align: left;
}

.content-box--wide .attribution {
  text-align: right;
}

/* Page-specific text width */
.content-box--wide .question {
  width: 60%;
}

.content-box--wide .body-text {
  width: 60%;
}

.content-box--wide .quote-section {
  width: 60%;
}



/* Corner background styles */
.corner-bg {
  position: fixed;
  bottom: 8px;
  right: 8px;
  width: auto;
  height: auto;
  max-width: 200px;
  max-height: 200px;
  z-index: 100;
  pointer-events: none;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
}

/* Language button styles */
.language-btn {
  position: fixed;
  bottom: 22px;
  left: 27px;
  z-index: 101;
  transition: filter 0.3s ease;
}

.language-btn:hover {
  filter: invert(1);
}

.language-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* Powered by Twise styles */
.powered-by {
  position: fixed;
  bottom: 11px;
  right: 12px;
  display: flex;  
  align-items: center;
  gap: 8px;
  color: #565656;
  text-decoration: none;
  font-family: "Figtree", sans-serif;
  font-size: 12px;
  font-weight: 400;
  z-index: 101;
  background: rgba(255, 255, 255, 1);
  padding: 6px 12px;

}



.twise-logo {
  height: 16px;
  object-fit: contain;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  body {
    overflow-y: auto;
    overflow-x: hidden;
    min-height: auto;
  }
  
  .page-background {
    position: relative;
    top: 10px;
    left: 10px;
    right: 10px;
    width: calc(100vw - 20px);
    height: 50vh;
    object-fit: cover;
    border-radius: 25px;
    margin-bottom: 10px;
  }
  
  .twise-background {
    position: fixed;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    height: calc(100vh - 20px);
    object-fit: cover;
    border-radius: 25px;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
  }
  
  .logo {
    position: absolute;
    top: 25px;
    left: 20px;
    width: clamp(60px, 15vw, 120px);
    height: clamp(60px, 15vw, 120px);
    z-index: 1001;
  }
  
  .menu-bg {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 30px;
    z-index: 1001;
  }
  
  .menu-nav {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    height: 30px;
    z-index: 1001;
  }
  
  .content-box {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    width: calc(100vw - 25px);
    height: auto;
    padding: 25px;
    margin: 10px auto -400px auto;
    max-width: 768px;
  }
  
  .content-box--wide {
    position: relative !important;
    width: calc(100vw - 25px);
    min-height: auto;
    left: auto !important;
    transform: none !important;
    right: auto !important;
    padding-bottom: 30px;
    margin: 10px auto -480px auto;
    max-width: 768px;
  }
  
  .content-box--wide .page-image {
    width: 70%;
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    margin-top: -40px;
    margin-left: auto;
    margin-bottom: -30px;
    margin-right: -25px;
    border-radius: 13px;
    height: auto;
    object-fit: cover;
    display: block;
    z-index: auto;
  }
  
  .content-box--wide .headline {
    width: 100%;
  }
  
  .content-box--wide .question {
    width: 100%;
  }
  
  .content-box--wide .body-text {
    width: 100%;
  }
  
  .content-box--wide .quote-section {
    width: 100%;
  }
  
  /* Property Finder mobile styles */
  .content-box--property-finder {
    position: relative !important;
    width: calc(100vw - 25px);
    min-height: auto;
    left: auto !important;
    transform: none !important; 
    right: auto !important;
    padding-bottom: 30px;
    margin: 10px auto -480px auto;
    max-width: 768px;
  }
  
  .content-box--property-finder .page-image {
    width: 100%;
    height: 50vh;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    margin: 30px auto 0 auto;
    border-radius: 25px;
    object-fit: cover;
    display: block;
    z-index: auto;
  }
  
  .content-box--property-finder .headline {
    width: 100%;
  }
  
  .content-box--property-finder .question {
    width: 100%;
  }
  
  .content-box--property-finder .body-text {
    width: 100%;
  }
  
  .content-box--property-finder .quote-section {
    width: 100%;
  }
  
  /* Mobile corner background, language button and powered-by styles */
  .corner-bg {
    display: none;
  }
  
  .language-btn {
    position: absolute !important;
    top: 23px !important;
    right: 23px !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 1002 !important;
    transition: filter 0.3s ease;
    width: 25px !important;
    height: 25px !important;
    pointer-events: auto !important;
  }
  
  .language-btn .language-icon {
    width: 25px !important;
    height: 25px !important;
  }
  
  .powered-by {
    display: none;
  }
}
