/* ==========================================================
   Just 4 Sales — homepage
   Dark, high-energy look after davidcliff.com, in Just 4's
   own hot pink + Reenie Beanie handwriting.
   ========================================================== */

:root {
  --pink: #e6139b;          /* band + buttons: holds 4.5:1 with white */
  --pink-hot: #ff33cc;      /* Just 4's original brand pink: glows & accents */
  --pink-soft: rgba(255, 51, 204, .35);
  --sun: #fff27a;           /* sparing secondary accent */
  --ink: #0b0b0d;
  --ink-2: #141418;
  --ink-3: #1d1d23;
  --line: rgba(255, 255, 255, .12);
  --text: #ffffff;
  --muted: #b9b9c4;

  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Reenie Beanie", "Comic Sans MS", cursive;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.02em; font-weight: 800; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.pink { color: var(--pink-hot); }
.script { font-family: var(--script); font-weight: 400; letter-spacing: .01em; line-height: 1; color: var(--pink-hot); }
.script-md { font-size: 2.4rem; }
.script-lg { font-size: clamp(2.1rem, 3.4vw, 2.8rem); }
.small { font-size: .9rem; color: var(--muted); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--pink); padding: 8px 14px; border-radius: 99px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }

/* Subtle volcanic-stone grain: a nod to Fuerteventura instead of DC's brick */
.texture {
  background-color: var(--ink);
  background-image:
    radial-gradient(1200px 500px at 50% -10%, rgba(230, 19, 155, .18), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.6em;
  border-radius: 999px; border: 2px solid transparent;
  font: 700 .95rem/1 var(--font); text-decoration: none; text-transform: lowercase;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { min-height: 40px; padding: .55em 1.2em; font-size: .85rem; }
.btn-pink { background: var(--pink); color: #fff; }
.btn-pink:hover { background: var(--pink-hot); box-shadow: 0 0 24px var(--pink-soft); }
.btn-glow { box-shadow: 0 0 0 4px rgba(255, 51, 204, .25), 0 0 32px var(--pink-soft); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { box-shadow: 0 0 24px rgba(255, 255, 255, .3); }
.btn-ghost { border-color: #fff; color: #fff; background: transparent; }
.btn-ghost:hover { background: #fff; color: var(--ink); }

/* ---------- Brand wordmark (rebuilt from the original logo for dark backgrounds) ---------- */
.brand { display: inline-grid; grid-template-columns: auto auto; align-items: center; column-gap: .35rem; text-decoration: none; line-height: 1; }
.brand-word { font-weight: 800; font-size: 1.9rem; letter-spacing: -.04em; }
.brand-word b { color: var(--pink-hot); font-weight: 800; margin-left: .06em; }
.brand-bubble {
  position: relative; align-self: start;
  background: var(--pink-hot); color: #fff;
  font-weight: 700; font-size: .8rem; padding: .28em .7em .32em; border-radius: 999px;
  transform: translateY(-4px) rotate(-6deg);
}
.brand-bubble::before, .brand-bubble::after { content: ""; position: absolute; background: var(--pink-hot); border-radius: 50%; }
.brand-bubble::before { width: 6px; height: 5px; left: -9px; bottom: -2px; }
.brand-bubble::after { width: 3px; height: 3px; left: -14px; bottom: -4px; }
.brand-tag { grid-column: 1 / -1; font-size: .62rem; font-weight: 500; color: var(--muted); letter-spacing: .06em; margin-top: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 13, .82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(11, 11, 13, .95); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.primary-nav { display: flex; gap: 28px; }
.primary-nav a { text-decoration: none; font-weight: 500; font-size: .95rem; position: relative; padding: 6px 0; }
.primary-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--pink-hot); transform: scaleX(0); transition: transform .2s ease; }
.primary-nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 10px; }

.menu-toggle { width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; background: none; border: 0; cursor: pointer; padding: 0; }
.menu-toggle span { display: block; width: 26px; height: 3px; border-radius: 2px; background: var(--pink-hot); transition: transform .25s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.drawer {
  position: fixed; inset: var(--header-h) 0 0 auto; width: min(380px, 100%); z-index: 49;
  background: var(--ink-2); border-left: 1px solid var(--line);
  padding: 28px var(--gutter); display: flex; flex-direction: column; justify-content: space-between;
  overflow-y: auto;
}
.drawer[hidden] { display: none; }
.drawer-nav { display: flex; flex-direction: column; }
.drawer-nav a { text-decoration: none; font-weight: 700; font-size: 1.35rem; padding: 12px 0; border-bottom: 1px solid var(--line); text-transform: lowercase; }
.drawer-nav a:hover { color: var(--pink-hot); }
.drawer-foot { padding-top: 24px; display: grid; gap: 16px; }
.drawer-foot .script { font-size: 2.2rem; text-align: center; margin: 0; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 9vw, 110px) 0 clamp(64px, 9vw, 110px); text-align: center; }
.since { font-size: clamp(2rem, 3.4vw, 2.7rem); margin: 0 0 18px; transform: rotate(-2deg); }
.hero-title { font-size: clamp(2.5rem, 7vw, 5.6rem); text-transform: lowercase; }
.hero-sub { max-width: 560px; margin: 22px auto 30px; color: var(--muted); font-size: 1.05rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.search-card {
  max-width: 1000px; margin: clamp(44px, 6vw, 70px) auto 0; text-align: left;
  background: rgba(20, 20, 24, .78); border: 2px solid var(--pink-hot); border-radius: 20px;
  box-shadow: 0 0 0 6px rgba(255, 51, 204, .08), 0 0 60px rgba(255, 51, 204, .22);
  padding: 18px;
}
.search-tabs { display: inline-flex; background: var(--ink); border-radius: 999px; padding: 4px; margin-bottom: 14px; }
.search-tabs input { position: absolute; opacity: 0; pointer-events: none; }
.search-tabs span { display: block; padding: 8px 22px; border-radius: 999px; font-weight: 700; cursor: pointer; color: var(--muted); }
.search-tabs input:checked + span { background: var(--pink); color: #fff; }
.search-tabs input:focus-visible + span { outline: 2px solid var(--sun); outline-offset: 2px; }
.search-fields { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 12px; align-items: end; }
.field { display: grid; gap: 6px; }
.field span { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.field select {
  appearance: none; -webkit-appearance: none; width: 100%; min-height: 48px;
  background: var(--ink-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ff33cc' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0 36px 0 14px;
  font: 500 .95rem var(--font);
}
.field select:hover { border-color: var(--pink-hot); }
.search-go { min-width: 130px; }

/* ---------- Pink bands ---------- */
.band-pink { background: var(--pink); padding: clamp(56px, 8vw, 96px) 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.band-title { font-size: clamp(2rem, 4vw, 3.2rem); text-transform: lowercase; }
.band-copy { font-size: 1rem; }
.band-copy p:last-of-type { margin-bottom: 0; }
.band-copy .btn { margin-top: 26px; }

/* ---------- Section titles ---------- */
.section-title { font-size: clamp(2.2rem, 4.5vw, 3.6rem); text-transform: lowercase; margin-bottom: 20px; }

/* ---------- Services ---------- */
.services { padding: clamp(56px, 8vw, 100px) 0 clamp(40px, 6vw, 70px); }
.tagline { transform: rotate(-2deg); margin: 0 0 36px; }
.services-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
  padding: 44px 16px 22px; border-radius: var(--radius); text-decoration: none;
  background: var(--ink-2); border: 1px solid var(--line);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.tile:hover { transform: translateY(-6px) rotate(-1deg); border-color: var(--pink-hot); box-shadow: 0 0 30px var(--pink-soft); }
.tile-sticker {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%) rotate(-4deg);
  background: var(--pink); color: #fff; font-family: var(--script); font-size: 1.9rem; line-height: 1;
  padding: 6px 16px 4px; border-radius: 6px; box-shadow: 0 6px 18px rgba(0, 0, 0, .4); white-space: nowrap;
}
.tile:nth-child(even) .tile-sticker { transform: translateX(-50%) rotate(3deg); }
.tile-icon { width: 64px; height: 64px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tile:hover .tile-icon { stroke: var(--pink-hot); }
.tile-text { font-size: .92rem; line-height: 1.4; }
.tile-more { margin-top: auto; font-size: .8rem; font-weight: 700; color: var(--pink-hot); }

.ticks { list-style: none; padding: 0; margin: 0 0 20px; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 6px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--pink-hot); font-weight: 800; }
.squiggle { display: block; width: min(320px, 70%); height: 20px; margin: 48px 0 0 12%; fill: none; stroke: var(--pink-hot); stroke-width: 3; stroke-linecap: round; }

/* ---------- Latest properties ---------- */
.latest { padding: clamp(56px, 8vw, 100px) 0; background: var(--ink); }
.latest-grid { display: grid; grid-template-columns: minmax(240px, 1fr) 2.6fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.latest-intro p { color: var(--muted); margin-bottom: 26px; }

.carousel { position: relative; min-width: 0; }
.cards {
  list-style: none; margin: 0; padding: 16px 4px 22px;
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 20px) / 3); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.cards::-webkit-scrollbar { display: none; }
.card { scroll-snap-align: start; }
.card a {
  position: relative; display: flex; flex-direction: column; height: 100%; text-decoration: none;
  background: var(--ink-2); border: 2px solid var(--pink-hot); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 0 18px rgba(255, 51, 204, .25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card a:hover { transform: translateY(-6px); box-shadow: 0 0 36px rgba(255, 51, 204, .5); }
.card-tag {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  background: var(--sun); color: var(--ink); font-weight: 800; font-size: .75rem;
  padding: 5px 12px; border-radius: 999px; text-transform: lowercase;
}
.card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-3); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card a:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 16px 18px 18px; }
.card-body h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: 6px; }
.card-price { font-size: 1.35rem; font-weight: 800; color: var(--pink-hot); margin-bottom: 8px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .85rem; color: var(--muted); margin: 0; }

.carousel-btn {
  position: absolute; top: 42%; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--pink); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; padding-bottom: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .5); transition: background .2s ease, opacity .2s ease;
}
.carousel-btn:hover { background: var(--pink-hot); }
.carousel-btn:disabled { opacity: .35; cursor: default; }
.carousel-btn.prev { left: -18px; }
.carousel-btn.next { right: -18px; }
.dots { display: flex; justify-content: center; gap: 8px; }
.dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .25); transition: background .2s ease, transform .2s ease; }
.dots span.on { background: var(--pink-hot); transform: scale(1.2); }

/* ---------- Why Just 4 ---------- */
.why { padding: clamp(56px, 8vw, 100px) 0; }
.why-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stat {
  padding: 26px 22px; border-radius: var(--radius); background: var(--ink-2);
  border: 2px solid var(--pink-hot); box-shadow: 0 0 22px rgba(255, 51, 204, .22);
}
.stat b { display: block; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; letter-spacing: -.03em; color: var(--pink-hot); margin-bottom: 8px; }
.stat span { font-size: .95rem; color: var(--muted); }
.why-copy p { color: var(--muted); }
.why-copy .script { color: var(--pink-hot); transform: rotate(-2deg); margin-top: 24px; }

/* ---------- Visit ---------- */
.visit { padding: clamp(56px, 8vw, 100px) 0; }
.visit-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.visit-photo { position: relative; margin: 0; width: 100%; max-width: 440px; justify-self: center; }
.visit-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; border: 3px solid var(--pink-hot); box-shadow: 0 0 40px var(--pink-soft); transform: rotate(-2deg); }
.visit-photo figcaption { position: absolute; right: -10px; bottom: -22px; font-size: 2.4rem; white-space: nowrap; background: var(--ink); padding: 4px 14px; border-radius: 8px; transform: rotate(-4deg); }
address { font-style: normal; font-size: 1.05rem; margin-bottom: 22px; }
.contact-list { margin: 0 0 16px; display: grid; gap: 8px; }
.contact-list div { display: grid; grid-template-columns: 80px 1fr; gap: 12px; }
.contact-list dt { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding-top: 4px; }
.contact-list dd { margin: 0; font-weight: 500; }
.contact-list a, .small a { text-decoration-color: var(--pink-hot); text-underline-offset: 3px; }
.contact-list a:hover, .small a:hover { color: var(--pink-hot); }
.visit-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- Footer ---------- */
.site-footer { background: #000; border-top: 1px solid var(--line); padding: 56px 0 40px; text-align: center; }
.brand-footer { margin-bottom: 26px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin-bottom: 26px; }
.footer-links a { color: var(--pink-hot); text-decoration: none; font-size: .88rem; }
.footer-links a:hover { text-decoration: underline; }
.socials { display: flex; justify-content: center; gap: 12px; margin-bottom: 26px; }
.socials a { width: 40px; height: 40px; border: 1.5px solid #fff; border-radius: 8px; display: grid; place-items: center; transition: background .2s ease, border-color .2s ease; }
.socials a:hover { background: var(--pink); border-color: var(--pink); }
.socials svg { width: 18px; height: 18px; fill: #fff; }
.legal { font-size: .8rem; color: var(--muted); margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .primary-nav { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .latest-grid { grid-template-columns: 1fr; }
  .cards { grid-auto-columns: calc((100% - 20px) / 2); }
  .carousel-btn.prev { left: -6px; }
  .carousel-btn.next { right: -6px; }
  .search-fields { grid-template-columns: repeat(2, 1fr); }
  .search-go { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hide-sm { display: none; }
  .brand-tag { display: none; }
  .split, .why-grid, .visit-grid { grid-template-columns: 1fr; }
  .cards { grid-auto-columns: 82%; gap: 16px; }
  .carousel-btn { display: none; }
  .visit-photo { max-width: 340px; }
  .squiggle { margin-left: auto; margin-right: auto; }
}
@media (max-width: 420px) {
  .header-actions .btn-pink { padding-inline: .9em; }
  .search-fields { grid-template-columns: 1fr; }
  .tile-sticker { font-size: 1.6rem; }
  .tile { padding-inline: 10px; }
}
