/* ============================================
   PRIMMOVERA — Main Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
  --gold: #cab78f;
  --gold-light: #d9cba6;
  --gold-dark: #b5a278;
  --dark: #544e30;
  --dark-deeper: #3d3822;
  --white: #ffffff;
  --warm-bg: #f7f4ee;
  --text-body: #3a3a3a;
  --text-light: #6b6b6b;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.3s ease;
  --max-width: 1200px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background-color: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* --- Utility Classes --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--warm {
  background-color: var(--warm-bg);
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  margin-bottom: 12px;
}

.section-title p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  transition: all var(--transition);
  letter-spacing: 0.3px;
}

.btn--primary {
  background-color: var(--gold);
  color: var(--white);
}

.btn--primary:hover {
  background-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background-color: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}

.btn--outline:hover {
  background-color: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--dark {
  background-color: var(--dark);
  color: var(--white);
}

.btn--dark:hover {
  background-color: var(--dark-deeper);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--white {
  background-color: var(--white);
  color: var(--dark);
}

.btn--white:hover {
  background-color: var(--warm-bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: background-color var(--transition), box-shadow var(--transition);
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo img {
  height: 65px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__nav a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--dark);
  position: relative;
  padding: 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--gold);
  transition: width var(--transition);
}

.header__nav a:hover::after,
.header__nav a.active::after {
  width: 100%;
}

.header__nav a:hover {
  color: var(--gold-dark);
}

.header__phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--gold-dark);
  font-size: 0.9rem;
}

.header__phone svg {
  width: 18px;
  height: 18px;
  fill: var(--gold-dark);
}

.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 4px;
}

.header__burger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background-color: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}

.header__burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header__burger.active span:nth-child(2) {
  opacity: 0;
}

.header__burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Mobile Nav Overlay --- */
.mobile-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 48px;
  gap: 24px;
  transform: translateX(100%);
  transition: transform var(--transition);
  z-index: 999;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mobile-nav a:hover {
  color: var(--gold-dark);
}

/* Main content offset for fixed header */
main {
  margin-top: var(--header-height);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 130%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(84, 78, 48, 0.55) 0%,
    rgba(84, 78, 48, 0.4) 50%,
    rgba(84, 78, 48, 0.65) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 28px 40px;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: var(--radius-lg);
}

.hero__content h1 {
  color: var(--white);
  font-size: 3.2rem;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero__content p {
  font-size: 1.25rem;
  margin-bottom: 0;
  opacity: 0.95;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.hero__cta {
  position: relative;
  z-index: 1;
  margin-top: 24px;
}

/* --- Search Bar --- */
.search-bar {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  box-shadow: var(--shadow-lg);
  max-width: 1000px;
  margin: -40px auto 0;
  position: relative;
  z-index: 10;
}

.search-bar__form {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
}

.search-bar__group {
  flex: 1;
  min-width: 160px;
}

.search-bar__group label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-bar__group select,
.search-bar__group input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e0ddd5;
  border-radius: var(--radius);
  background-color: var(--warm-bg);
  color: var(--text-body);
  transition: border-color var(--transition);
}

.search-bar__group select:focus,
.search-bar__group input:focus {
  border-color: var(--gold);
}

.search-bar .btn {
  min-width: 160px;
}

/* --- Property Cards --- */
.property-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.property-card__image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.property-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.property-card:hover .property-card__image img {
  transform: scale(1.05);
}

.property-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--gold);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.property-card__body {
  padding: 20px;
}

.property-card__price {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.property-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

.property-card__location {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.property-card__specs {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-light);
  border-top: 1px solid #eee;
  padding-top: 12px;
}

.property-card__specs span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* --- Featured Carousel --- */
.featured {
  padding: 80px 0;
}

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

/* --- Quick Access Cards --- */
.quick-access {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 60px 0;
}

.quick-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid #f0ede6;
}

.quick-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.quick-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--warm-bg);
  border-radius: 50%;
}

.quick-card__icon svg {
  width: 28px;
  height: 28px;
  fill: var(--gold-dark);
}

.quick-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.quick-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

/* --- About Section --- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__text h2 {
  margin-bottom: 20px;
}

.about__text p {
  margin-bottom: 16px;
  color: var(--text-body);
}

.about__text .btn {
  margin-top: 8px;
}

/* --- Trust Signals --- */
.trust {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  text-align: center;
}

.trust__item {
  padding: 32px 20px;
}

.trust__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--gold);
  border-radius: 50%;
}

.trust__icon svg {
  width: 24px;
  height: 24px;
  fill: var(--white);
}

.trust__item h4 {
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.trust__item p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* --- Footer --- */
.footer {
  background-color: var(--dark);
  color: #ccc;
  padding: 60px 0 24px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer__brand img {
  height: 90px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer__brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #aaa;
}

.footer__heading {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer__links a {
  display: block;
  font-size: 0.9rem;
  color: #bbb;
  padding: 4px 0;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--gold);
}

.footer__contact p {
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: #bbb;
}

.footer__contact a {
  color: #bbb;
}

.footer__contact a:hover {
  color: var(--gold);
}

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  transition: background-color var(--transition);
}

.footer__social a:hover {
  background-color: var(--gold);
}

.footer__social svg {
  width: 18px;
  height: 18px;
  fill: #ccc;
}

.footer__social a:hover svg {
  fill: var(--white);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #888;
}

.footer__bottom a {
  color: #888;
  margin-left: 16px;
}

.footer__bottom a:hover {
  color: var(--gold);
}

.footer__credit {
  text-align: center;
  padding-top: 16px;
  font-size: 0.75rem;
  color: #666;
}

.footer__credit a {
  color: #888;
}

.footer__credit a:hover {
  color: var(--gold);
}

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--dark);
  color: #ddd;
  padding: 20px 24px;
  z-index: 2000;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-banner__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-banner p {
  font-size: 0.85rem;
  line-height: 1.5;
  flex: 1;
}

.cookie-banner p a {
  color: var(--gold-light);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-banner__actions button {
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.85rem;
  font-family: 'Montserrat', sans-serif;
  transition: all var(--transition);
}

.cookie-banner__accept {
  background-color: var(--gold);
  color: var(--white);
}

.cookie-banner__accept:hover {
  background-color: var(--gold-dark);
}

.cookie-banner__refuse {
  background-color: transparent;
  color: #bbb;
  border: 1px solid #666;
}

.cookie-banner__refuse:hover {
  border-color: #999;
  color: #fff;
}

/* --- Forms (global) --- */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e0ddd5;
  border-radius: var(--radius);
  background-color: var(--white);
  color: var(--text-body);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

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

/* --- Page Hero (inner pages) --- */
.page-hero {
  background-color: var(--dark);
  color: var(--white);
  text-align: center;
  padding: 60px 24px;
}

.page-hero h1 {
  color: var(--white);
  font-size: 2.4rem;
  margin-bottom: 8px;
}

.page-hero p {
  color: var(--gold-light);
  font-size: 1.1rem;
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.92);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  padding: 4px 12px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.lightbox__close:hover {
  opacity: 0.7;
}

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.5rem;
  padding: 16px 14px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox__prev {
  left: 20px;
}

.lightbox__next {
  right: 20px;
}

.lightbox__counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
}
