/*
Theme Name: Maya Peric
Author: WordPress Telex
Description: A refined real estate theme for Maya Peric, inspired by cartographic elegance with warm nude tones, charcoal typography, and gold accent details. Designed for a luxury real estate agent in Mallorca.
Version: 0.1.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: maya-peric
Tags: block-theme, full-site-editing, real-estate
*/

/* === Equal Cards Layout === */
.equal-cards > .wp-block-column {
  display: flex;
  flex-direction: column;
  flex-grow: 0;
}
.equal-cards > .wp-block-column > .wp-block-group {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.equal-cards .cta-bottom {
  margin-top: auto;
  justify-content: center;
}

.wp-site-blocks > footer {
  margin-block-start: 0;
}

/* === Gold Accent Line Under Logo === */
.site-logo-block a::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background-color: #D0B88C;
  margin-top: 2px;
}

/* === Navigation Spacing === */
.nav-links .wp-block-navigation__container {
  gap: 2rem;
}
.nav-links .wp-block-navigation-item {
  margin: 0;
}

/* === Navigation Link Hover Effect === */
.nav-links a {
  position: relative;
  text-decoration: none;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #D0B88C;
  transition: width 0.3s ease;
}
.nav-links a:hover::after {
  width: 100%;
}

/* === Hero Cover Section === */
.hero-cover-section .wp-block-cover__inner-container {
  width: 100%;
  max-width: 100%;
  padding: 0;
}

.hero-cover-section .wp-block-cover__image-background {
  object-position: center center;
}

/* === Hero Content Card === */
.hero-content-card {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* === Hero Portrait Column === */
.hero-portrait-column .wp-block-image {
  margin-bottom: 0;
}
.hero-portrait-column .wp-block-image img {
  max-height: 85vh;
  object-fit: contain;
  object-position: bottom center;
}

/* === Vertical Gold Divider === */
.gold-divider-left {
  position: relative;
}
.gold-divider-left::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    #D0B88C 30%,
    #D0B88C 70%,
    transparent
  );
}

/* === Tagline Dash === */
.tagline-dash {
  position: relative;
  padding-left: 32px;
}
.tagline-dash::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 20px;
  height: 1px;
  background-color: #D0B88C;
}

/* === Coordinate Mark === */
.coord-mark {
  position: relative;
  padding-left: 18px;
}
.coord-mark::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border: 1px solid #D0B88C;
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.5;
}

/* === CTA Buttons === */
.wp-block-button.cta-primary .wp-block-button__link {
  font-family: 'Plus Jakarta Sans', 'Trebuchet MS', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background-color: #3A3A3A;
  color: #FFFFFF;
  border: 2px solid #3A3A3A;
  border-radius: 2px;
  padding: 14px 32px;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.wp-block-button.cta-primary .wp-block-button__link:hover {
  background-color: #D0B88C;
  border-color: #D0B88C;
  color: #FFFFFF;
}

.wp-block-button.cta-secondary .wp-block-button__link {
  font-family: 'Plus Jakarta Sans', 'Trebuchet MS', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background-color: transparent;
  color: #3A3A3A;
  border: 2px solid #3A3A3A;
  border-radius: 2px;
  padding: 14px 32px;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.wp-block-button.cta-secondary .wp-block-button__link:hover {
  border-color: #D0B88C;
  color: #D0B88C;
}

/* === Gold Separator Line === */
.gold-separator {
  border-color: #D0B88C !important;
  opacity: 0.3;
}

/* === Service Card Hover === */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(208, 184, 140, 0.2);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(58, 58, 58, 0.08);
}

/* === Section Number Accent === */
.section-number {
  font-family: 'Libre Baskerville', Georgia, serif;
  color: #D0B88C;
  opacity: 0.4;
}

/* === Service Icon === */
.service-icon {
  margin-bottom: 1.5rem;
  line-height: 1;
  width: 100%;
  text-align: center;
}
.service-icon svg {
  display: inline-block;
}

/* === Testimonial Quote Mark === */
.quote-mark::before {
  content: '\201C';
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 4rem;
  color: #D0B88C;
  opacity: 0.3;
  line-height: 1;
  display: block;
  margin-bottom: -0.5rem;
}

/* === Sticky Header === */
.site-header-part {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #FFFFFF;
  border-bottom: 1px solid rgba(208, 184, 140, 0.2);
}

/* === Footer Credit Links === */
.footer-credit a {
  color: #D0B88C;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-credit a:hover {
  color: #3A3A3A;
}

/* === WhatsApp Icon Link === */
.whatsapp-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', 'Trebuchet MS', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #3A3A3A;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}
.whatsapp-icon-link:hover {
  opacity: 1;
}
.whatsapp-icon-link svg {
  fill: #3A3A3A;
  flex-shrink: 0;
}

/* === WhatsApp Green Button === */
.whatsapp-btn-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', 'Trebuchet MS', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #FFFFFF;
  background-color: #25D366;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 2px;
  transition: background-color 0.3s ease;
}
.whatsapp-btn-green:hover {
  background-color: #1DA851;
  color: #FFFFFF;
}
.whatsapp-btn-green svg {
  fill: #FFFFFF;
  flex-shrink: 0;
}

/* === WhatsApp wrapper in hero === */
.whatsapp-wrapper-hero {
  text-align: center;
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(208, 184, 140, 0.25);
  background: transparent;
}

/* === Hero CTA Buttons Layout === */
.hero-cta-buttons .wp-block-button {
  flex: 1;
  min-width: 200px;
}
.hero-cta-buttons .wp-block-button .wp-block-button__link {
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* === Responsive === */
@media (max-width: 781px) {
  .gold-divider-left::before {
    display: none;
  }
  .tagline-dash {
    padding-left: 0;
  }
  .tagline-dash::before {
    display: none;
  }
  .hero-content-card {
    margin: 1rem;
  }
  .hero-portrait-column {
    display: none;
  }
}

/* === Fade-in Animation === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}
.fade-in-up-delay-1 {
  animation: fadeInUp 0.8s ease 0.1s forwards;
  opacity: 0;
}
.fade-in-up-delay-2 {
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}
.fade-in-up-delay-3 {
  animation: fadeInUp 0.8s ease 0.3s forwards;
  opacity: 0;
}