/* Yason Villa Bungalov — static landing */

:root {
  --color-bg: #f8f6f1;
  --color-bg-alt: #eef0eb;
  --color-surface: #ffffff;
  --color-primary: #1a3d2e;
  --color-primary-light: #2d5c47;
  --color-accent: #c4a574;
  --color-accent-dark: #9a7d4f;
  --color-text: #2a2a28;
  --color-text-muted: #5c5c56;
  --color-border: rgba(26, 61, 46, 0.12);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(26, 61, 46, 0.08);
  --shadow-lg: 0 12px 48px rgba(26, 61, 46, 0.14);
  --header-h: 72px;
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

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

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

a:hover {
  color: var(--color-accent-dark);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.35rem; }

em {
  font-style: italic;
  color: var(--color-accent);
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Header & nav */
.site-header {
  position: relative;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding-inline: clamp(1rem, 4vw, 2rem);
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: rgba(248, 246, 241, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
}

.nav.scrolled .logo {
  color: var(--color-primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.nav.scrolled .nav-menu a {
  color: var(--color-text);
}

.nav-menu a:hover,
.nav.scrolled .nav-menu a:hover {
  color: var(--color-accent);
}

.nav-cta {
  padding: 0.5rem 1.1rem;
  background: var(--color-accent);
  color: var(--color-primary) !important;
  border-radius: 999px;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--color-accent-dark);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: var(--transition);
}

.nav.scrolled .nav-toggle span {
  background: var(--color-primary);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(160deg, #1a3d2e 0%, #2d5c47 40%, #1e4a5f 100%);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Favor upper frame so sea stays visible; slight right bias for villas */
  object-position: 58% 28%;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(18, 40, 32, 0.78) 0%,
      rgba(18, 40, 32, 0.55) 32%,
      rgba(18, 40, 32, 0.15) 55%,
      rgba(18, 40, 32, 0.02) 100%
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, transparent 40%, rgba(0, 0, 0, 0.28) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  color: #fff;
  max-width: 32rem;
  width: min(32rem, 92vw);
  margin-inline: 0;
  margin-left: max(3rem, 7vw);
  margin-right: auto;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: 1.15rem;
  font-weight: 300;
  max-width: 520px;
  margin: 0;
  opacity: 0.92;
}

.hero-actions {
  position: absolute;
  z-index: 2;
  /* Center of the hillside band (user-marked area) */
  left: 50%;
  top: 34%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero-scroll {
  position: absolute;
  z-index: 2;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
}

.hero-scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: #fff;
  border-radius: 2px;
  animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.3; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
  background: #fff;
  color: var(--color-primary);
}

.btn-block {
  width: 100%;
}

/* Sections */
.section {
  padding: clamp(4rem, 10vw, 6.5rem) 0;
}

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

.section-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: 0.5rem;
}

.section-head {
  max-width: 560px;
  margin-bottom: 3rem;
}

.section-head-center {
  text-align: center;
  margin-inline: auto;
}

.section-head p {
  color: var(--color-text-muted);
  margin: 0;
}

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

.about-text p {
  color: var(--color-text-muted);
  margin: 0 0 1rem;
}

.about-stats {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.about-stats li {
  display: flex;
  flex-direction: column;
}

.about-stats strong {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-primary);
}

.about-stats span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.about-visual {
  position: relative;
  min-height: 380px;
}

.about-card {
  position: absolute;
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-lg);
}

.about-card-main {
  inset: 0 15% 10% 0;
  background-image: url("../assets/images/gallery-04.jpg");
  z-index: 1;
}

.about-card-accent {
  width: 45%;
  height: 50%;
  bottom: 0;
  right: 0;
  background-image: url("../assets/images/gallery-15.jpg");
  border: 4px solid var(--color-bg);
  z-index: 2;
}

/* Villa features */
.villa-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.villa-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.villa-feature-icon {
  font-size: 2rem;
  display: block;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.villa-feature h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.villa-feature-photo {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0 0 0.85rem;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
}

.villa-feature-photo:focus-visible {
  outline: 2px solid var(--color-accent, #c4a35a);
  outline-offset: 3px;
}

.villa-feature-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
  pointer-events: none;
  -webkit-touch-callout: none;
  user-select: none;
}

.villa-feature-photo:hover img,
.villa-feature-photo:focus-visible img {
  transform: scale(1.04);
}

.villa-feature p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 0.75rem;
}

.gallery-item {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  background-color: var(--color-primary-light);
  cursor: zoom-in;
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-item:hover,
.gallery-item:focus-visible {
  transform: scale(1.015);
  box-shadow: var(--shadow-lg);
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.gallery-item:nth-child(1) {
  background-image: url("../assets/images/gallery-01.jpg");
}

.gallery-item:nth-child(2) {
  background-image: url("../assets/images/gallery-02.jpg");
}

.gallery-item:nth-child(3) {
  background-image: url("../assets/images/gallery-03.jpg");
}

.gallery-item:nth-child(4) {
  background-image: url("../assets/images/gallery-04.jpg");
}

.gallery-item:nth-child(5) {
  background-image: url("../assets/images/gallery-05.jpg");
}

.gallery-item:nth-child(6) {
  background-image: url("../assets/images/gallery-06.jpg");
}

.gallery-item:nth-child(7) {
  background-image: url("../assets/images/gallery-07.jpg");
}

.gallery-item:nth-child(8) {
  background-image: url("../assets/images/gallery-08.jpg");
}

.gallery-item:nth-child(9) {
  background-image: url("../assets/images/gallery-09.jpg");
}

.gallery-item:nth-child(10) {
  background-image: url("../assets/images/gallery-10.jpg");
}

.gallery-item:nth-child(11) {
  background-image: url("../assets/images/gallery-11.jpg");
}

.gallery-item:nth-child(12) {
  background-image: url("../assets/images/gallery-12.jpg");
}

.gallery-item:nth-child(13) {
  background-image: url("../assets/images/gallery-13.jpg");
}

.gallery-item:nth-child(14) {
  background-image: url("../assets/images/gallery-14.jpg");
}

.gallery-item:nth-child(15) {
  background-image: url("../assets/images/gallery-15.jpg");
}

.gallery-item:nth-child(16) {
  background-image: url("../assets/images/gallery-16.jpg");
}

.gallery-item:nth-child(17) {
  background-image: url("../assets/images/gallery-17.jpg");
}

.gallery-item:nth-child(18) {
  background-image: url("../assets/images/gallery-18.jpg");
}

.gallery-item-lg {
  grid-row: span 2;
}

.gallery-item-wide {
  grid-column: span 2;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 14, 0.88);
  cursor: pointer;
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(1100px, 96vw);
  max-height: 92vh;
}

.lightbox-image {
  max-width: 100%;
  max-height: calc(92vh - 3rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  background: #111;
}

.lightbox-caption {
  margin: 0.85rem 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background var(--transition);
}

.lightbox-close:hover,
.lightbox-nav:hover,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  outline: none;
}

.lightbox-close {
  top: -0.25rem;
  right: -0.25rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  font-size: 1.75rem;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  font-size: 2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev {
  left: -3.25rem;
}

.lightbox-next {
  right: -3.25rem;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .lightbox-prev {
    left: 0.25rem;
  }

  .lightbox-next {
    right: 0.25rem;
  }

  .lightbox-nav {
    background: rgba(0, 0, 0, 0.45);
  }

  .lightbox-close {
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
  }
}

/* Location */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.location-address {
  color: var(--color-text-muted);
  margin: 1rem 0 1.5rem;
}

.map-embed {
  min-height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-alt);
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}

/* Contact */
.section-cta {
  background: var(--color-primary);
  color: #fff;
}

.section-cta .section-label {
  color: var(--color-accent);
}

.section-cta h2 {
  color: #fff;
}

.section-cta p {
  opacity: 0.88;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.contact-list li {
  margin-bottom: 1rem;
}

.contact-list span {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
  margin-bottom: 0.25rem;
}

.contact-list a {
  display: block;
  color: var(--color-accent);
  font-size: 1.1rem;
  font-weight: 500;
}

.contact-list a + a {
  margin-top: 0.2rem;
}

.contact-list a:hover {
  color: #fff;
}

.contact-form {
  background: rgba(255, 255, 255, 0.08);
  padding: 2rem;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
}

.contact-form label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Footer */
.footer {
  padding: 2rem 0;
  background: #141f18;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer .logo {
  color: #fff;
}

.footer p {
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 1.25rem;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-social a:hover {
  color: var(--color-accent);
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.08);
  color: #fff;
}

/* Responsive */
@media (max-width: 900px) {
  .about-grid,
  .location-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .villa-features {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .gallery-item-lg,
  .gallery-item-wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery-item {
    min-height: 160px;
  }

  .about-visual {
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 5.5rem;
    gap: 1.25rem;
  }

  .hero-bg img {
    object-position: 55% 32%;
  }

  .hero-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(18, 40, 32, 0.25) 0%,
        rgba(18, 40, 32, 0.2) 40%,
        rgba(18, 40, 32, 0.78) 100%
      );
  }

  .hero-content {
    max-width: none;
    width: min(1120px, 92vw);
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .hero-lead {
    margin: 0 auto;
  }

  .hero-actions {
    position: static;
    transform: none;
    left: auto;
    top: auto;
    margin: 0 auto 0.5rem;
    justify-content: center;
    width: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 1rem 0 2rem;
    background: var(--color-surface);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
  }

  .nav-menu a {
    display: block;
    padding: 0.85rem 1rem;
    color: var(--color-text) !important;
  }

  .nav.scrolled .nav-menu a {
    color: var(--color-text) !important;
  }

  .nav-cta {
    margin-top: 0.5rem;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
