/*
Theme Name: D. Peak Theme
Theme URI: https://dpeakltd.com/
Author: Antigravity
Author URI: 
Description: A premium WordPress theme for D. Peak Real Estate.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dpeak
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
  --brand: #73b972;
  --brand-alpha: rgba(21, 99, 21, 0.25);
  --brand-light: #1e8a1e;
  --brand-dark: #0d3d0d;
  --dark: #0E0E0E;
  --dark-2: #141414;
  --dark-3: #1C1C1C;
  --light: #F5F2ED;
  --muted: #7a7a7a;
  --text: #D0CAC1;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { background: var(--dark); color: var(--text); font-family: 'Montserrat', sans-serif; font-weight: 300; overflow-x: hidden; }

/* Focus styles for accessibility */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 52px; height: 100px;
  background: rgba(14,14,14,0.96);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--brand-alpha);
  transition: height 0.3s ease, background 0.3s ease;
}
nav.scrolled { height: 80px; background: rgba(10,10,10,0.98); }

.logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; height: 100%; }

.logo img {
  height: 260px; width: auto; display: block;
  filter: invert(1) brightness(1.1);
  transition: transform 0.3s ease, opacity 0.3s;
  pointer-events: none;
}
.logo:hover img { transform: scale(1.03); opacity: 0.9; }

.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--text);
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  transition: color 0.2s; position: relative; padding-bottom: 4px;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--brand);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--brand); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: transparent; border: 1px solid var(--brand);
  color: var(--brand); padding: 9px 24px;
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  cursor: pointer; text-decoration: none;
  transition: background 0.25s, color 0.25s;
}
.nav-cta:hover { background: var(--brand); color: var(--light); }

/* Single property nav back button */
.single-nav-back {
  display: inline-flex;
  align-items: center; gap: 8px;
  color: var(--light); font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 500; text-decoration: none;
  transition: color 0.25s; border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 16px; border-radius: 20px;
}
.single-nav-back:hover { border-color: var(--brand); color: var(--brand); }
.single-nav-back .back-text-short { display: none; }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 24px; height: 1.5px;
  background: var(--text); transition: all 0.3s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed;
  top: 80px; left: 0; right: 0;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--brand-alpha);
  padding: 32px 52px 40px; z-index: 150;
  transform: translateY(-10px); opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
}
.mobile-menu.open { display: block; transform: translateY(0); opacity: 1; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.mobile-menu ul a {
  text-decoration: none; color: var(--text);
  font-size: 0.88rem; font-weight: 400; letter-spacing: 0.18em;
  text-transform: uppercase; transition: color 0.2s;
}
.mobile-menu ul a:hover { color: var(--brand); }
.mobile-menu .mob-cta {
  display: inline-block; margin-top: 28px;
  background: var(--brand); color: var(--light);
  border: none; padding: 13px 32px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; text-decoration: none;
  transition: background 0.25s;
}
.mobile-menu .mob-cta:hover { background: var(--brand-light); }

/* ── HERO ── */
.hero {
  position: relative; height: 100vh; height: 100dvh; min-height: 600px;
  display: flex; align-items: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(14,14,14,0.88) 35%, rgba(15,71,26,0.10) 100%),
    url('https://images.unsplash.com/photo-1560448204-e02f11c3d0e2?w=1800&q=80') center/cover no-repeat;
  transform: scale(1.05);
  animation: zoomOut 10s ease forwards;
}
@keyframes zoomOut { to { transform: scale(1); } }

/* Subtle grain overlay for depth */
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4; pointer-events: none;
}

.hero-content {
  position: relative; z-index: 2;
  padding: 0 80px; max-width: 780px;
  opacity: 0; transform: translateY(28px);
  animation: fadeUp 1s 0.4s ease forwards;
}
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.hero-tag {
  font-size: 0.66rem; letter-spacing: 0.36em;
  text-transform: uppercase; color: var(--brand);
  margin-bottom: 22px; display: flex; align-items: center; gap: 12px;
}
.hero-tag::before {
  content: ''; display: inline-block; width: 32px; height: 1px;
  background: var(--brand);
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.2rem, 6.5vw, 5.6rem);
  font-weight: 300; line-height: 1.08;
  color: var(--light); margin-bottom: 26px;
}
.hero h1 em { color: var(--brand); font-style: italic; }
.hero p {
  font-size: 0.87rem; line-height: 1.95;
  color: rgba(208,202,193,0.72); max-width: 460px; margin-bottom: 48px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--brand); color: var(--light); border: none;
  padding: 14px 36px; font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; cursor: pointer; text-decoration: none;
  display: inline-block; transition: background 0.25s, transform 0.2s;
}
.btn-primary:hover { background: var(--brand-light); transform: translateY(-1px); }

.btn-outline {
  background: transparent; color: var(--light);
  border: 1px solid rgba(208,202,193,0.35);
  padding: 14px 36px; font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem; font-weight: 400; letter-spacing: 0.2em;
  text-transform: uppercase; cursor: pointer; text-decoration: none;
  display: inline-block; transition: border-color 0.25s, color 0.25s;
}
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

/* ── SECTION COMMONS ── */
section { padding: 100px 48px; max-width: 1200px; margin: 0 auto; }
.section-label {
  font-size: 0.63rem; letter-spacing: 0.36em;
  text-transform: uppercase; color: var(--brand);
  margin-bottom: 14px; display: flex; align-items: center; gap: 10px;
}
.section-label::before {
  content: ''; display: inline-block; width: 24px; height: 1px; background: var(--brand);
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 300;
  color: var(--light); line-height: 1.18; margin-bottom: 16px;
}
.section-sub {
  color: rgba(208,202,193,0.58); font-size: 0.85rem;
  line-height: 1.85; max-width: 540px; margin-bottom: 52px;
}

/* ── FEATURED PROPERTIES ── */
.featured-wrap { background: var(--dark); }
.props-header {
  display: flex; align-items: flex-end;
  justify-content: space-between; margin-bottom: 44px;
}

/* ── FEATURED CAROUSEL ── */
.featured-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.properties-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}
.properties-carousel::-webkit-scrollbar { display: none; }
.properties-carousel .prop-card {
  min-width: 100%;
  height: 520px;
  scroll-snap-align: start;
  flex-shrink: 0;
}
.properties-carousel .prop-card .prop-img {
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}
.feat-btn {
  background: rgba(27,138,54,0.8);
  color: var(--light);
  border: none;
  border-radius: 50%;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; cursor: pointer;
  position: absolute; z-index: 10;
  transition: background 0.3s, transform 0.2s;
}
.feat-btn:hover { background: var(--brand); transform: scale(1.05); }
.feat-btn.feat-prev { left: 24px; }
.feat-btn.feat-next { right: 24px; }

/* ── FEATURED LISTINGS — Premium Grid ── */
.properties-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;  /* hero card gets more visual weight */
  grid-auto-rows: 300px;
  gap: 4px;
  border: 1px solid rgba(115,185,114,0.06);
}
.prop-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #080808;
  display: block;
}
.prop-card:first-child {
  grid-row: span 2;  /* hero card = 600px tall */
}

/* ── Photo ── */
.prop-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94), filter 0.55s ease;
  filter: brightness(0.72) saturate(0.85);
}
.prop-card:hover .prop-img {
  transform: scale(1.06);
  filter: brightness(0.88) saturate(1.1);
}

/* ── Cinematic gradient overlay ── */
.prop-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 72px 28px 28px;
  background: linear-gradient(
    to top,
    rgba(6,6,6,0.98)   0%,
    rgba(6,6,6,0.70)  40%,
    rgba(6,6,6,0.10)  75%,
    transparent       100%
  );
  transition: padding 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}
.prop-card:hover .prop-overlay { padding-bottom: 36px; }

/* ── Left brand accent line ── */
.prop-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--brand) 0%, rgba(115,185,114,0) 100%);
  opacity: 0; transition: opacity 0.4s ease; z-index: 3;
}
.prop-card:hover::before { opacity: 1; }

/* ── Glowing top border on hero card ── */
.prop-card:first-child::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent 0%, var(--brand) 50%, transparent 100%);
  opacity: 0.6;
  z-index: 3;
}

/* ── Status Badge ── */
.prop-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.52rem; letter-spacing: 0.26em; text-transform: uppercase;
  padding: 5px 12px; margin-bottom: 10px;
  background: var(--brand); color: #fff; font-weight: 700;
  position: relative;
}
.prop-badge::before { content: '●'; font-size: 0.38rem; opacity: 0.75; }
.prop-badge.rent  { background: #1e5c32; }
.prop-badge.sold  { background: #3a3a3a; }

/* ── Title ── */
.prop-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-weight: 400;
  color: var(--light); line-height: 1.15; margin-bottom: 6px;
  transition: color 0.3s;
}
.prop-card:first-child .prop-title { font-size: 2.1rem; }
.prop-card:hover .prop-title { color: #fff; }

/* ── Location ── */
.prop-meta {
  font-size: 0.68rem; letter-spacing: 0.1em;
  color: rgba(208,202,193,0.55); margin-bottom: 14px;
  display: flex; align-items: center; gap: 5px;
}
.prop-meta::before {
  content: '⊙'; color: var(--brand); font-size: 0.7rem; flex-shrink: 0;
}

/* ── Price ── */
.prop-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem; font-weight: 300; color: var(--brand);
  line-height: 1;
}
.prop-card:first-child .prop-price { font-size: 1.85rem; }

/* ── View Details CTA ── */
.prop-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brand); font-weight: 600;
  margin-top: 14px;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.prop-cta::after { content: '→'; font-size: 0.75rem; transition: transform 0.2s; }
.prop-card:hover .prop-cta { opacity: 1; transform: translateY(0); }
.prop-card:hover .prop-cta::after { transform: translateX(4px); }

/* ── Corner arrow (desktop) ── */
.prop-arrow {
  position: absolute; top: 18px; right: 18px;
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.45); font-size: 0.95rem;
  opacity: 0; transform: translateY(-5px);
  transition: opacity 0.3s, transform 0.3s, background 0.25s, border-color 0.25s;
  z-index: 2; backdrop-filter: blur(4px);
}
.prop-card:hover .prop-arrow {
  opacity: 1; transform: translateY(0);
  background: var(--brand); border-color: var(--brand); color: #fff;
}


/* ── PROJECTS SECTION ── */
.projects-section { background: var(--dark-2); padding: 80px 0; min-height: 100vh; }
.projects-inner { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
.proj-tabs {
  display: flex; gap: 0; border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 48px; margin-top: 16px;
}
.proj-tab {
  padding: 14px 34px; font-size: 0.68rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted); cursor: pointer;
  border: none; background: none; font-family: 'Montserrat', sans-serif;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}
.proj-tab.active { color: var(--brand); border-color: var(--brand); }
.proj-tab:hover:not(.active) { color: var(--light); }

.proj-panel { display: none; }
.proj-panel.active {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px;
}
.proj-card {
  position: relative; overflow: hidden; cursor: pointer;
  background: var(--dark-3); aspect-ratio: 4/3;  /* matches dpeak-project 800×600 */
}
.proj-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.65s ease; filter: brightness(0.78); display: block;
}
.proj-card:hover img { transform: scale(1.07); filter: brightness(0.95); }
.proj-card-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 28px 22px 22px;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
  transition: padding 0.3s;
}
.proj-card:hover .proj-card-overlay { padding-bottom: 28px; }
.proj-card-badge {
  font-size: 0.55rem; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 3px 9px; background: var(--brand); color: var(--light);
  font-weight: 600; display: inline-block; margin-bottom: 8px;
}
.proj-card-badge.sold { background: #4a4a4a; }
.proj-card-badge.let { background: #2d5a3a; }
.proj-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem; font-weight: 400; color: var(--light); margin-bottom: 4px;
}
.proj-card-sub { font-size: 1.2rem; color: var(--brand); font-weight: 500; margin-top: 6px; }
.proj-card-cta {
  font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand); margin-top: 10px;
  opacity: 0; transform: translateY(5px);
  transition: opacity 0.3s, transform 0.3s;
}
.proj-card:hover .proj-card-cta { opacity: 1; transform: none; }
.proj-card-price {
  position: absolute; bottom: 22px; right: 22px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem; font-weight: 400; color: var(--brand);
  z-index: 5; transition: transform 0.3s;
}
.proj-card:hover .proj-card-price { transform: translateY(-4px); }

/* ── ABOUT ── */
.about-section {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 88px; align-items: center;
}
.about-text { display: flex; flex-direction: column; justify-content: center; }
.about-images { position: relative; height: 560px; }
.about-img-main {
  position: absolute; left: 0; top: 0;
  width: 78%; height: 88%; object-fit: cover;
}
.about-img-accent {
  position: absolute; right: 0; bottom: 0;
  width: 52%; height: 52%; object-fit: cover;
  border: 7px solid var(--dark);
}
.about-brand-line {
  position: absolute; left: -18px; top: 28px;
  width: 2px; height: 58%; background: var(--brand);
}
.about-brand-dot {
  position: absolute; left: -22px; top: 28px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--brand);
}
.about-numbers {
  display: flex; gap: 44px; margin-top: 40px;
  padding-top: 40px; border-top: 1px solid var(--brand-alpha);
}
.about-num .n {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.7rem; color: var(--brand);
  display: block; line-height: 1;
}
.about-num .l {
  font-size: 0.62rem; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--muted);
}

/* ── CONTACT ── */
.contact-section {
  background: linear-gradient(135deg, var(--dark-3) 55%, rgba(15,71,26,0.04) 100%);
  padding: 100px 0;
}
.contact-header {
  max-width: 1200px; margin: 0 auto 64px;
  padding: 0 48px; text-align: center;
}
.contact-header .section-label { justify-content: center; }
.contact-header .section-label::before { display: none; }
.contact-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
}
.contact-detail { display: flex; gap: 18px; margin-bottom: 32px; }
.contact-detail-label {
  font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 7px; font-weight: 500;
}
.contact-detail-text {
  font-size: 0.82rem; color: rgba(208,202,193,0.78); line-height: 1.65;
}
.contact-detail-text a {
  color: var(--light); text-decoration: none;
  border-bottom: 1px solid var(--brand-alpha); padding-bottom: 2px;
  transition: color 0.25s, border-color 0.25s;
}
.contact-detail-text a:hover { color: var(--brand); border-color: var(--brand); }
.contact-icon {
  width: 38px; height: 38px; border: 1px solid var(--brand-alpha);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--brand); font-size: 0.9rem;
}

/* Form */
.form-group { margin-bottom: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-input {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
  color: var(--light); padding: 14px 18px;
  font-family: 'Montserrat', sans-serif; font-size: 0.8rem;
  outline: none; transition: border-color 0.25s; width: 100%;
  resize: vertical;
}
.form-input:focus { border-color: var(--brand); }
.form-input::placeholder { color: var(--muted); }
textarea.form-input { min-height: 120px; }
.form-submit {
  width: 100%; padding: 16px;
  background: var(--brand); color: var(--light); border: none;
  font-family: 'Montserrat', sans-serif; font-size: 0.72rem;
  font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  cursor: pointer; transition: background 0.25s, transform 0.2s; margin-top: 4px;
}
.form-submit:hover { background: var(--brand-light); transform: translateY(-1px); }

/* ── FOOTER ── */
footer {
  background: var(--dark-2);
  border-top: 1px solid var(--brand-alpha);
  padding: 64px 48px 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
  align-items: start;
}
.footer-top > *:first-child {
  grid-row: span 2;
}
.footer-brand-desc {
  font-size: 0.82rem;
  color: rgba(208,202,193,0.55);
  line-height: 1.85;
  margin-top: 20px;
}
.footer-col h4 {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 20px;
  font-weight: 600;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul a {
  text-decoration: none;
  color: rgba(208,202,193,0.5);
  font-size: 0.8rem;
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--brand); }

/* Contact list */
.footer-contact-list { gap: 14px !important; }
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
  color: rgba(208,202,193,0.5);
  line-height: 1.5;
}
.footer-contact-icon {
  color: var(--brand);
  flex-shrink: 0;
  font-size: 0.85rem;
  margin-top: 1px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.04);
  padding-top: 24px;
  font-size: 0.68rem;
  color: rgba(208,202,193,0.35);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-logo-img {
  height: 220px;
  width: auto;
  filter: invert(1) brightness(0.85);
}

/* Responsive */
@media (max-width: 900px) {
  footer { padding: 48px 28px 28px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 600px) {
  footer { padding: 40px 20px 24px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
/* ── BACK TO TOP ── */
#backToTop {
  position: fixed; bottom: 32px; right: 32px; z-index: 300;
  width: 46px; height: 46px;
  background: var(--brand); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s;
  pointer-events: none;
}
#backToTop.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#backToTop:hover { background: var(--brand-light); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .about-section { gap: 52px; }
}
@media (max-width: 900px) {
  nav { padding: 0 28px; height: 80px; }
  nav.scrolled { height: 68px; }
  .nav-links, .nav-cta { display: none; }
  
  .single-nav-back { display: inline-flex; font-size: 0.58rem; padding: 6px 12px; gap: 4px; }
  .single-nav-back .back-text-full { display: none; }
  .single-nav-back .back-text-short { display: inline; }
  
  .nav-hamburger { display: flex; }
  .mobile-menu { display: none; }
  .mobile-menu.open { display: block; }
  .hero-content { padding: 0 32px; }
  section { padding: 72px 28px; }
  .projects-inner, .contact-inner, .contact-header, .footer-top { padding: 0 28px; }
  .properties-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
  }
  .prop-card:first-child { grid-row: span 1; }
  .prop-card { height: 380px; }
  .proj-panel.active {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .about-section, .contact-inner { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hero { min-height: 100dvh; }
  nav { padding: 0 20px; }
  .logo img { height: 180px; } /* Smaller logo on iPhone */
  
  .hero-content { padding: 0 20px; }
  section { padding: 60px 20px; }
  .properties-grid, .proj-panel.active { grid-template-columns: 1fr; }
  .prop-card { height: 320px; }
  .about-images { height: 360px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .projects-inner, .contact-header { padding: 0 20px; }
  .contact-inner { padding: 0 20px; }
}

/* ── ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.75s ease, transform 0.75s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── PRINT ── */
@media print {
  nav, #backToTop, .hero-btns, .feat-btn, .carousel-btn { display: none !important; }
  body { background: #fff; color: #000; }
}
/* ══ TEAM SECTION — paste at the end of style.css ══ */

.team-section {
  background: var(--dark);
  padding: 80px 0;
}
.team-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}
.team-header {
  text-align: center;
  margin-bottom: 64px;
}
.team-header .section-label {
  justify-content: center;
}
.team-header .section-label::before { display: none; }
.team-header .section-sub {
  max-width: 560px;
  margin: 0 auto;
}

/* Grid: 4 columns on desktop, fewer on mobile */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}

/* Card */
.team-card {
  width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--dark-3);
  border: 1px solid var(--brand-alpha);
  padding: 32px 20px 28px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.team-card:hover {
  border-color: var(--brand);
  transform: translateY(-4px);
}

/* Photo */
.team-photo-wrap {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 20px;
  border: 2px solid var(--brand-alpha);
  flex-shrink: 0;
  transition: border-color 0.3s;
}
.team-card:hover .team-photo-wrap {
  border-color: var(--brand);
}
.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-photo-placeholder {
  width: 100%;
  height: 100%;
  background: var(--brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  color: var(--brand);
  font-weight: 300;
}

/* Name */
.team-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--light);
  margin-bottom: 6px;
  line-height: 1.2;
}

/* Role */
.team-role {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 500;
  margin-bottom: 14px;
}

/* Bio */
.team-bio {
  font-size: 0.8rem;
  line-height: 1.75;
  color: rgba(208, 202, 193, 0.55);
  margin: 0;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .team-inner { padding: 0 28px; }
  .team-grid  { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 480px) {
  .team-inner { padding: 0 20px; }
  .team-grid  { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .team-photo-wrap { width: 80px; height: 80px; }
}
/* ══ MISSION / VISION / VALUES — paste at end of style.css ══ */

.mvv-section {
  background: var(--dark-2);
  padding: 100px 0;
  border-top: 1px solid var(--brand-alpha);
}
.mvv-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* ── SECCIÓN NEWS DESPLEGABLE ── */
.news-card:hover {
  border-color: var(--brand) !important;
  transform: translateY(-4px);
}

.news-card:hover .news-thumb-wrap img {
  transform: scale(1.04);
}

.news-card:hover .news-link-mock {
  color: var(--brand) !important;
}

.news-card focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
/* ── Left column: numbered blocks ── */
.mvv-left {
  display: flex;
  flex-direction: column;
  gap: 52px;
}
.mvv-block {
  position: relative;
  padding-left: 28px;
  border-left: 2px solid var(--brand-alpha);
  transition: border-color 0.3s;
}
.mvv-block:hover {
  border-color: var(--brand);
}
.mvv-tag {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--brand-alpha);
  line-height: 1;
  display: block;
  margin-bottom: 4px;
  transition: color 0.3s;
  /* sits behind the text visually */
  pointer-events: none;
  user-select: none;
}
.mvv-block:hover .mvv-tag {
  color: rgba(115, 185, 114, 0.18);
}
.mvv-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--light);
  margin-bottom: 12px;
  line-height: 1.2;
}
.mvv-text {
  font-size: 0.84rem;
  line-height: 1.9;
  color: rgba(208, 202, 193, 0.58);
  margin: 0;
}

/* ── Right column: values list ── */
.mvv-right {
  position: sticky;
  top: 120px;
}
.mvv-value {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.2s;
}
.mvv-value:last-child {
  border-bottom: none;
}
.mvv-value-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  color: var(--brand);
  font-weight: 400;
  min-width: 28px;
  padding-top: 2px;
  opacity: 0.7;
}
.mvv-value-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 4px;
}
.mvv-value-desc {
  font-size: 0.8rem;
  color: rgba(208, 202, 193, 0.5);
  line-height: 1.6;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .mvv-inner {
    grid-template-columns: 1fr;
    gap: 60px;
    padding: 0 28px;
  }
  .mvv-right {
    position: static;
  }
}
@media (max-width: 600px) {
  .mvv-inner { padding: 0 20px; }
  .mvv-section { padding: 72px 0; }
}
.about-page-btn-wrap { text-align: center; padding: 48px 0 0; }
.about-page-btn { font-size: 0.72rem; letter-spacing: 0.22em; padding: 14px 44px; border-color: var(--brand); color: var(--brand); }
.about-page-btn:hover { background: var(--brand); color: var(--light); }


/* ══════════════════════════════════════════════════════════
   DPEAK SEARCH BAR WIDGET  [dpeak_search_bar]
   All colours use native theme CSS variables only.
══════════════════════════════════════════════════════════ */

.dpeak-sb-wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Tab row ── */
.dpeak-sb-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.dpeak-sb-tab {
  background: rgba(255,255,255,0.10);
  border: 1.5px solid rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.85);
  padding: 9px 26px;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.22s, border-color 0.22s, color 0.22s;
  line-height: 1;
}
.dpeak-sb-tab:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}
.dpeak-sb-tab.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* ── Inline bar ── */
.dpeak-sb-bar {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 999px;
  overflow: hidden;
  height: 66px;
  box-shadow: 0 6px 32px rgba(0,0,0,0.22);
}

/* ── Field cells ── */
.dpeak-sb-field {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 22px;
  height: 100%;
  min-width: 0;
}
.dpeak-sb-price-wrap {
  flex: 0.85;
  gap: 5px;
}

/* Screen-reader-only labels */
.dpeak-sb-sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.dpeak-sb-euro {
  color: #999;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  flex-shrink: 0;
  user-select: none;
}

.dpeak-sb-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  color: #1a1a1a;
  width: 100%;
  min-width: 0;
}
.dpeak-sb-input::placeholder {
  color: #aaa;
  font-size: 0.76rem;
  font-weight: 400;
}

.dpeak-sb-sep {
  width: 1px;
  height: 38px;
  background: #e4e4e4;
  flex-shrink: 0;
}

/* ── Search button ── */
.dpeak-sb-submit {
  flex-shrink: 0;
  height: 100%;
  padding: 0 40px;
  background: var(--brand);
  border: none;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.22s;
  white-space: nowrap;
}
.dpeak-sb-submit:hover  { background: var(--brand-light); }
.dpeak-sb-submit:active { background: var(--brand-dark); }
.dpeak-sb-submit.dpeak-loading {
  opacity: 0.75;
  pointer-events: none;
}

/* ── Results panel ── */
.dpeak-sb-results {
  margin-top: 20px;
  padding: 28px 32px;
  background: rgba(14,14,14,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--brand-alpha);
  border-radius: 6px;
}
.dpeak-sb-results[hidden] { display: none; }

.dpeak-sb-count {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 20px;
  font-weight: 600;
}

.dpeak-sb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ── Result card ── */
.dpeak-sb-card {
  display: block;
  text-decoration: none;
  background: var(--dark-3);
  border: 1px solid var(--brand-alpha);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.dpeak-sb-card:hover {
  border-color: var(--brand);
  transform: translateY(-3px);
}
.dpeak-sb-card-img {
  height: 178px;
  background: var(--dark-2) center / cover no-repeat;
}
.dpeak-sb-card-body { padding: 16px 20px 20px; }

.dpeak-sb-card-type {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 7px;
}
.dpeak-sb-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--light);
  margin: 0 0 6px;
  line-height: 1.3;
}
.dpeak-sb-card-loc {
  font-size: 0.74rem;
  color: var(--muted);
  margin: 0 0 10px;
}
.dpeak-sb-card-price {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand);
  margin: 0;
}

.dpeak-sb-empty {
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  padding: 32px 0;
  margin: 0;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .dpeak-sb-bar {
    border-radius: 18px;
    height: auto;
    flex-wrap: wrap;
    padding: 16px 18px;
    gap: 10px;
    overflow: visible;
  }
  .dpeak-sb-field {
    flex: 1 1 42%;
    height: 42px;
    padding: 0 2px;
  }
  .dpeak-sb-sep { display: none; }
  .dpeak-sb-submit {
    flex: 1 1 100%;
    height: 46px;
    border-radius: 8px;
    margin-top: 4px;
  }
  .dpeak-sb-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .dpeak-sb-tabs { flex-wrap: wrap; }
  .dpeak-sb-field { flex: 1 1 100%; }
  .dpeak-sb-results { padding: 20px 16px; }
  .dpeak-sb-grid { grid-template-columns: 1fr; }
}