/* ============ FRAM — Mediterranean Villa Project Page ============ */

:root {
  --black: #0a0a0a;
  --black-soft: #151516;
  --white: #ffffff;
  --off: #f4f2ee;
  --off-2: #e9e6df;
  --off-3: #dcd6d2;
  --red: #ff0000;
  --red-dark: #c40000;
  --text-muted: #8a8a8a;
  --line: rgba(255,255,255,0.12);
  --line-dark: rgba(0,0,0,0.1);
  --ff: 'Montserrat', Arial, sans-serif;
  --header-h: 84px;
  --olive: rgb(115,119,90)
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--ff);
  color: var(--black);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  background-image: url("../../icons_storage/background1.png");
  background-size: 100%;
}

img {
  max-width: 100%;
  display: block;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.section-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 16px;
  padding: 2px 0;
  display: inline-block;
  background-color: var(--olive);
  color: white;
}
.ol-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive);
  margin: 0 0 16px;
}
.eyebrow-light { color: var(--red); }

h1, h2, h3 {
  font-family: var(--ff);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
  text-transform: uppercase;
}

a { color: inherit; text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0));
  transition: background .3s ease, height .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  background: rgba(10,10,10,0.94);
  height: 68px;
  box-shadow: 0 2px 24px rgba(0,0,0,0.25);
  backdrop-filter: blur(6px);
}
.header-inner {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0.28em;
  color: var(--white);
}
.main-nav { display: flex; gap: 40px; }
.nav-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  padding: 6px 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--olive);
  transition: width .25s ease;
}
.nav-link:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 20px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  touch-action: manipulation;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  transition: transform .25s ease, opacity .2s ease;
  transform-origin: center;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.35) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  padding: 0 32px 96px;
}
.hero .eyebrow { color: var(--red); }
.hero h1 {
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.06;
  margin-bottom: 22px;
}
.hero-sub {
  max-width: 560px;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255,255,255,0.88);
  margin: 0 0 40px;
}
.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
}
.hero-scroll svg { animation: bob 2s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ---------- Project ---------- */
.project { padding: 130px 0; }
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.project-text h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.2;
  margin-bottom: 28px;
  max-width: 480px;
}
.project-text p:not(.eyebrow), .project-image p:not(.eyebrow) {
  font-size: 15.5px;
  max-width: 100%;
  margin: 0 0 20px;
}
.project-image {
  display: flex;
  flex-direction: column;
  align-items: end;
  align-self: start;
}
.project-image iframe {
  width: 100%;
  height: 500px;
  border-radius: 2px;
  box-shadow: 20px 20px 40px rgb(204, 204, 204);
  transform: translateY(-30px);
}

/* Vision / Key Property Details / Location — olive badges that physically touch the browser
   edge (not just the text column's edge), while their padding pulls the text back so it still
   lines up with the paragraphs. On mobile the columns are already full-width, so a modest
   16px overhang is enough there instead of a viewport-edge breakout. */
#vision .eyebrow {
  font-size: 20px;
  letter-spacing: -0.01em;
  padding: 2px 14px;
  margin-bottom: 14px;
}
#vision .project-text .eyebrow {
  margin-left: -16px;
  padding-left: 16px;
}
#vision .project-image .eyebrow {
  margin-right: -16px;
  padding-right: 16px;
  margin-bottom: 40px;
}
@media (min-width: 981px) {
  #vision .project-text .eyebrow {
    margin-left: calc(50% - 50vw);
    padding-left: calc(50vw - 50%);
  }
  #vision .project-image .eyebrow {
    margin-right: calc(50% - 50vw);
    padding-right: calc(50vw - 50%);
  }
}

.stat-row {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 -15px;
  flex-wrap: wrap;
  justify-content: center;
}
.stat-row li { display: flex; flex-direction: column; align-items: center; flex: 1; }
.stat-row li img {width: 100px;}
.stat-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--black);
}
.stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Craftsmanship ---------- */
.floorplan {
  color: var(--black);
  padding-bottom: 30px;
}

.floorplan img {
  width: 80%;
  margin: 0 10%;
}

/* ---------- Gallery ---------- */
.gallery-section { background: var(--off2); padding-bottom: 50px; }
.gallery-section h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  max-width: 620px;
  margin-bottom: 40px;
  line-height: 1.2;
}

.slideshow {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 90vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--black);
}
.slide-frame {
  position: absolute;
  inset: 0;
}
.slide-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  transition: opacity .35s ease;
}
.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,10,10,0.35);
  border: 1px solid rgba(255,255,255,0.5);
  color: var(--white);
  cursor: pointer;
  backdrop-filter: blur(2px);
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.slide-arrow:hover { color: var(--white); background: var(--olive); border-color: var(--olive); }
.slide-prev { left: 24px; }
.slide-next { right: 24px; }
/* ---------- Chapter sections (Ground Floor / Suites / Bathrooms / Technology / Outdoor) ---------- */
.groundfloor, .suites, .bathrooms, .technology, .outdoor {
  display: flex;
  min-height: 100svh;
  color: var(--black-soft);
  padding-bottom: 50px;
}

.groundfloor .section-image,
.suites .section-image,
.bathrooms .section-image,
.technology .section-image,
.outdoor .section-image {
  width: 72%;
  padding: 0;
  overflow: hidden;
}
.groundfloor .section-image img,
.suites .section-image img,
.bathrooms .section-image img,
.technology .section-image img,
.outdoor .section-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.groundfloor .section-inner,
.suites .section-inner,
.bathrooms .section-inner,
.technology .section-inner,
.outdoor .section-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
}
.groundfloor .section-inner h2,
.suites .section-inner h2,
.bathrooms .section-inner h2,
.technology .section-inner h2,
.outdoor .section-inner h2 {
  font-size: 20px;
  line-height: 1.25;
  margin-bottom: 14px;
  background-color: var(--olive);
  color: white;
}
.groundfloor .section-inner h2,
.bathrooms .section-inner h2,
.outdoor .section-inner h2 {
  margin-left: 16px;
  padding: 2px 0 2px 16px;
}
.suites .section-inner h2,
.technology .section-inner h2 {
  margin-right: 16px;
  padding: 2px 0 2px 32px;
}
.groundfloor .section-inner p,
.suites .section-inner p,
.bathrooms .section-inner p,
.technology .section-inner p,
.outdoor .section-inner p {
  font-size: 18px;
  line-height: 1.55;
  margin: 0 0 12px;
  padding: 0 32px;
}
.groundfloor .section-inner .p,
.suites .section-inner .p,
.bathrooms .section-inner .p,
.technology .section-inner .p,
.outdoor .section-inner .p {
  font-weight: 300;
  font-family: var(--ff);
}

.mini {
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--black-soft);
  padding: 25px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 60px 0 32px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 32px;
}
.footer-brand p {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
}
.logo-footer { font-size: 22px; }
.footer-links {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-links a:hover { color: var(--red); }
.footer-divider { opacity: 0.4; }
.footer-copy {
  margin: 22px 0 0;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* ---------- Right animation ---------- */
.right {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.right.is-visible {
  opacity: 1;
  transform: translateX(0);
}
/* ---------- Left animation ---------- */
.left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity .7s ease, transform .7s ease;
}
.left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .project-grid { grid-template-columns: 1fr; gap: 48px; }
  .project-image { order: -1; }
  .craft-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-inner {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }
  .hero-content { padding: 0 20px 64px; }
  .project, .craft, .gallery-section, .floorplan { padding: 64px 0; }
  .craft-grid { grid-template-columns: 1fr; }
  .slideshow { height: 60vh; min-height: 320px; }
  .slide-arrow { width: 44px; height: 44px; }
  .slide-arrow svg { width: 10px; height: 18px; }
  .slide-prev { left: max(12px, env(safe-area-inset-left)); }
  .slide-next { right: max(12px, env(safe-area-inset-right)); }

  .floorplan img { width: 100%; margin: 0; }

  .groundfloor, .suites, .bathrooms, .technology, .outdoor {
    flex-direction: column;
    min-height: 100svh;
  }
  .groundfloor .section-image,
  .suites .section-image,
  .bathrooms .section-image,
  .technology .section-image,
  .outdoor .section-image {
    width: 100%;
    height: 58vh;
    min-height: 320px;
  }
  .groundfloor .section-inner,
  .suites .section-inner,
  .bathrooms .section-inner,
  .technology .section-inner,
  .outdoor .section-inner {
    padding: 28px 20px;
  }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(10,10,10,0.98);
    padding: 24px max(28px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(28px, env(safe-area-inset-left));
    gap: 22px;
    border-top: 1px solid var(--line);
  }
}
.line {
  border-top: 1px solid var(--line-dark);
  padding: 15px;
}
.project .section-inner .m {
  font-family: var(--ff);
  font-size: 17px;
}