/* ============================================================
   Island Boy Homes — Editorial Luxury design system
   Warm, island, cozy yet elegant. Vanilla CSS, no build step.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..600;1,9..144,300..500&family=Manrope:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand palette — sampled from the live site */
  --cream:      #F7F1E7;
  --cream-2:    #FBF7EF;
  --sand:       #EFE6D6;
  --sage:       #B7B6A3;
  --sage-deep:  #8E8C74;
  --caramel:    #A87A5D;
  --caramel-d:  #8E6247;
  --espresso:   #3B2E26;
  --espresso-2: #2A211C;
  --brown:      #615045;
  --muted:      #7A6B5E;
  --line:       rgba(59, 46, 38, 0.12);
  --line-soft:  rgba(59, 46, 38, 0.07);
  --white:      #FFFDF9;

  --ink:        var(--espresso);
  --bg:         var(--cream);

  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans:  'Manrope', system-ui, sans-serif;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);

  --shadow-soft: 0 2px 8px rgba(59,46,38,0.04), 0 18px 50px -20px rgba(59,46,38,0.22);
  --shadow-lift: 0 6px 16px rgba(59,46,38,0.07), 0 40px 80px -30px rgba(59,46,38,0.32);

  --wrap: 1240px;
  --radius: 26px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Film-grain overlay for a physical, paper-like feel */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Typography ---------- */
.serif { font-family: var(--serif); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: -0.02em; color: var(--espresso-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--sans);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--caramel-d);
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--caramel); opacity: 0.6; }
.eyebrow.center::after { content: ''; width: 26px; height: 1px; background: var(--caramel); opacity: 0.6; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.section { padding: clamp(72px, 11vw, 150px) 0; }

/* ---------- Buttons (island / button-in-button) ---------- */
.btn {
  --b-bg: var(--espresso-2); --b-fg: var(--cream-2);
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--sans); font-size: 13.5px; font-weight: 600;
  letter-spacing: 0.02em;
  padding: 15px 16px 15px 26px;
  background: var(--b-bg); color: var(--b-fg);
  border-radius: 999px; border: none; cursor: pointer;
  transition: transform 0.5s var(--ease), background 0.5s var(--ease), box-shadow 0.5s var(--ease);
  will-change: transform;
}
.btn .ic {
  width: 30px; height: 30px; border-radius: 999px;
  background: rgba(255,253,249,0.14);
  display: grid; place-items: center;
  transition: transform 0.5s var(--ease), background 0.5s var(--ease);
}
.btn .ic svg { width: 14px; height: 14px; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn:hover .ic { transform: translate(3px, -3px); background: rgba(255,253,249,0.24); }
.btn:active { transform: scale(0.98); }

.btn.ghost { --b-bg: transparent; --b-fg: var(--espresso); border: 1px solid var(--line); }
.btn.ghost .ic { background: rgba(59,46,38,0.06); color: var(--espresso); }
.btn.ghost:hover { --b-bg: rgba(59,46,38,0.04); }
.btn.ghost:hover .ic { background: rgba(59,46,38,0.1); }

.btn.caramel { --b-bg: var(--caramel); --b-fg: #fff; }
.btn.light { --b-bg: var(--cream-2); --b-fg: var(--espresso-2); }
.btn.light .ic { background: rgba(59,46,38,0.08); color: var(--espresso-2); }

.textlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--caramel-d);
  border-bottom: 1px solid transparent;
  transition: gap 0.4s var(--ease), border-color 0.4s var(--ease);
}
.textlink svg { width: 13px; height: 13px; transition: transform 0.4s var(--ease); }
.textlink:hover { gap: 12px; }
.textlink:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  background: #ffffff;
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 1px 30px -18px rgba(59,46,38,0.28);
  transition: box-shadow 0.5s var(--ease);
}
.site-header.scrolled { box-shadow: 0 6px 34px -16px rgba(59,46,38,0.32); }
.nav-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 40px;
  height: 82px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  background: transparent; border: none; border-radius: 0; box-shadow: none;
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
  padding: 9px 15px; border-radius: 999px; color: var(--brown);
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.nav-links a:hover, .nav-links a.active { background: rgba(59,46,38,0.06); color: var(--espresso-2); }
.brand { justify-self: center; text-align: center; line-height: 0; display: block; }
.brand-logo { height: 50px; width: auto; display: block; filter: brightness(0.55) contrast(1.06) saturate(1.15); }
.nav-right { justify-self: end; display: flex; align-items: center; gap: 10px; }
.nav-right .btn { font-size: 12.5px; padding: 10px 12px 10px 20px; gap: 9px; }
.nav-right .btn .ic { width: 26px; height: 26px; }
.nav-right .btn .ic svg { width: 12px; height: 12px; }
.bk-short { display: none; }

.nav-toggle { display: none; }

/* Mobile nav */
@media (max-width: 900px) {
  .nav-inner { grid-template-columns: auto 1fr; height: 64px; padding: 0 14px; }
  .nav-links { display: none; }
  .brand { justify-self: start; }
  .brand-logo { height: 44px; }
  .nav-right { gap: 7px; padding-right: 0; }
  .nav-right .btn { font-size: 11px; padding: 8px 14px; gap: 0; }
  .nav-right .btn .ic { display: none; }
  .bk-full { display: inline; }
  .bk-short { display: none; }
  .nav-toggle {
    display: grid; place-items: center; width: 42px; height: 42px;
    border-radius: 999px; background: rgba(59,46,38,0.06); border: none; cursor: pointer;
  }
  .nav-toggle span { display:block; width: 18px; height: 1.7px; background: var(--espresso-2); border-radius: 2px; transition: transform .45s var(--ease), opacity .3s var(--ease); }
  .nav-toggle span + span { margin-top: 3px; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(4.7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-4.7px) rotate(-45deg); }
}

/* Mobile overlay menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 39;
  background: rgba(247,241,231,0.94);
  backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: 0 34px;
  opacity: 0; pointer-events: none; transform: translateY(-8px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.mobile-menu a { font-family: var(--serif); font-size: 38px; color: var(--espresso-2); padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.mobile-menu .btn {
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  color: var(--cream-2); padding: 16px 18px 16px 28px;
  border-bottom: none; margin-top: 30px; align-self: flex-start;
}
.mobile-menu .btn .ic { display: grid; }

/* ---------- Footer ---------- */
.site-footer { background: var(--espresso-2); color: var(--cream); padding: 84px 0 34px; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; align-items: start; }
.footer-logo { height: 54px; width: auto; display: block; }
.footer-brand p { color: rgba(247,241,231,0.6); margin-top: 22px; max-width: 34ch; font-size: 14px; }
.footer-col h5 { font-family: var(--sans); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--sage); margin-bottom: 20px; font-weight: 600; }
.footer-col a { display: block; color: rgba(247,241,231,0.78); padding: 7px 0; font-size: 14.5px; transition: color .35s var(--ease), transform .35s var(--ease); }
.footer-col a:hover { color: var(--cream-2); transform: translateX(4px); }
.footer-bottom { display: flex; justify-content: space-between; align-items:center; gap: 16px; margin-top: 64px; padding-top: 26px; border-top: 1px solid rgba(247,241,231,0.12); color: rgba(247,241,231,0.5); font-size: 12.5px; }
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .9s var(--ease-soft), transform .9s var(--ease-soft), filter .9s var(--ease-soft); }
.reveal.in { opacity: 1; transform: none; filter: none; }
[data-delay="1"] { transition-delay: .08s; }
[data-delay="2"] { transition-delay: .16s; }
[data-delay="3"] { transition-delay: .24s; }
[data-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Property card ---------- */
.home-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 980px) { .home-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (max-width: 620px) { .home-grid { grid-template-columns: 1fr; } }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  padding: 10px;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-soft);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
  will-change: transform;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.card-media { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 4.6; background: var(--sand); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-media.past img { filter: grayscale(0.35) brightness(0.97); }

.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 7px 13px; border-radius: 999px;
  background: rgba(247,241,231,0.9); color: var(--espresso-2);
  backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,0.6);
}
.badge .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--sage-deep); }
.badge.live .dot { background: #4c9a5a; box-shadow: 0 0 0 3px rgba(76,154,90,0.18); }
.badge.lease { color: var(--caramel-d); }
.badge.lease .dot { background: var(--caramel); }
.badge.muted { color: var(--muted); }

.card-body { padding: 18px 12px 12px; }
.card-region { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--caramel-d); font-weight: 600; }
.card-title { font-family: var(--serif); font-size: 23px; margin: 8px 0 2px; color: var(--espresso-2); }
.card-sub { font-size: 13px; color: var(--muted); }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { font-size: 11.5px; color: var(--brown); background: rgba(59,46,38,0.05); border-radius: 999px; padding: 5px 11px; letter-spacing: 0.01em; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.tenure { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.card-arrow { width: 38px; height: 38px; border-radius: 999px; background: rgba(59,46,38,0.05); display:grid; place-items:center; transition: background .4s var(--ease), transform .4s var(--ease); }
.card-arrow svg { width: 15px; height: 15px; }
.card:hover .card-arrow { background: var(--espresso-2); color: var(--cream-2); transform: rotate(-45deg); }
.card-link { position: absolute; inset: 0; z-index: 3; }

/* ---------- Mobile fit fixes ---------- */
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  /* Shorter property cards on mobile — drop the daily/monthly foot row */
  .card-foot { display: none; }
  .card-body { padding: 16px 8px 6px; }
  .card-title { font-size: 21px; }
}
