/* ==========================================================================
   BEACHWORTH PROPERTIES - GLOBAL STYLESHEET
   Awwwards / FWA Level Quality
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=DM+Sans:opsz,wght@9..40,300;9..40,400&family=Jost:wght@300;400&display=swap');

:root {
  /* Colors */
  --bg-dark: #0a0a0a;
  --bg-panel: #121212;
  --bg-cream: #f5f2eb;
  --text-light: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-light-muted: #eee;
  --accent-gold: #c5a059;
  --accent-gold-dark: #a68444;

  /* Typography Scale (Fluid) */
  --fs-hero: clamp(3.5rem, 9vw, 8rem);
  --fs-h1: clamp(2.8rem, 6.5vw, 6rem);
  --fs-h2: clamp(2rem, 4.5vw, 4rem);
  --fs-h3: clamp(1.25rem, 2.5vw, 2rem);
  --fs-body: clamp(0.9rem, 1.2vw, 1.05rem);
  --fs-label: 0.7rem;
  --fs-wordmark: clamp(5rem, 18vw, 16rem);

  /* Spacing Tokens */
  --sp-xs: 0.5rem;
  --sp-sm: 1rem;
  --sp-md: 2rem;
  --sp-lg: 4rem;
  --sp-xl: 8rem;
  --sp-2xl: 14rem;

  /* Fonts */
  --font-serif: 'Cormorant Garamond', serif;
  --font-heading: 'Jost', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Layout */
  --container-width: 88vw;
  --container-max: 1600px;

  /* Easing */
  --ease-luxe: cubic-bezier(0.77, 0, 0.175, 1);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  /* Prevent manual scroll jumping during smoother init */
  overscroll-behavior: none;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Cursor base setting */
a {
  color: inherit;
  text-decoration: none;
  cursor: none;
}

button,
input,
select,
textarea {
  cursor: none;
}

body {
  cursor: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

:focus-visible {
  outline: 1px solid var(--accent-gold);
  outline-offset: 4px;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1,
h2,
h3,
h4,
.font-serif {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: var(--sp-sm);
}

.title-display {
  font-size: var(--fs-hero);
  line-height: 0.95;
}

h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

p {
  font-size: var(--fs-body);
  font-weight: 300;
}

.accent-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-gold);
}

.label-caps {
  font-family: var(--font-heading);
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.text-muted {
  color: var(--text-muted);
}

.text-light-muted {
  color: var(--text-light-muted);
}

.text-light {
  color: var(--text-light);
}

/* Giant Footer Wordmark */
.giant-wordmark {
  font-size: var(--fs-wordmark);
  line-height: 0.8;
  white-space: nowrap;
  text-transform: uppercase;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.giant-wordmark .regular {
  font-family: var(--font-serif);
  font-weight: 400;
}

.giant-wordmark .italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  color: var(--text-muted);
}

/* Ghost Watermark */
.ghost-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(8rem, 25vw, 25rem);
  font-family: var(--font-serif);
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
  line-height: 1;
}

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */
.container {
  width: var(--container-width);
  max-width: var(--container-max);
  margin: 0 auto;
}

.section {
  padding: var(--sp-xl) 0;
  position: relative;
  z-index: 1;
}

.section-padding-lg {
  padding: var(--sp-2xl) 0;
  position: relative;
  z-index: 1;
}

.section-dark {
  background-color: var(--bg-panel);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-md);
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: var(--sp-md);
  }

  .section {
    padding: var(--sp-lg) 0;
  }
}

/* ==========================================================================
   UI COMPONENTS
   ========================================================================== */
/* Header */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 90px;
  padding: 0 6vw;
  z-index: 100;
  transition: transform 0.5s var(--ease-luxe);
}

/* Pseudo-element for background blur so it doesn't clip the overflowing logo */
.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  transition: background 0.4s ease, border 0.4s ease;
}

.site-header .logo {
  position: relative;
  align-self: flex-start;

}

.site-header .logo img {
  width: 150px !important;
  height: auto !important;
  display: block;
}

.site-header.scrolled::before {
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-header.hide {
  transform: translateY(-300px);
}

.nav-links {
  display: flex;
  gap: var(--sp-md);
}

.nav-links a {
  position: relative;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 1px;
  background-color: var(--accent-gold);
  transition: width 0.3s var(--ease-luxe);
}

.nav-links a:hover::after {
  width: 100%;
}

@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }
}


/* Hide on mobile for brevity, assume burger icon in production */

/* Buttons */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2.2rem;
  border-radius: 50px;
  border: 1px solid transparent;
  font-family: var(--font-heading);
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: background-color 0.3s var(--ease-luxe), color 0.3s var(--ease-luxe);
  position: relative;
}

.btn-gold {
  background-color: var(--accent-gold);
  color: var(--bg-dark);
}

.btn-gold:hover {
  background-color: var(--accent-gold-dark);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  background-color: transparent;
}

.btn-outline:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.btn-arrow::after {
  content: "→";
  font-size: 1.2em;
  font-family: sans-serif;
  transition: transform 0.3s var(--ease-luxe);
}

.btn-pill:hover .btn-arrow::after {
  transform: translateX(6px);
}

/* Circular Controls */
.control-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: all 0.3s var(--ease-luxe);
}

.control-circle:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* Curved Hero Notch */
.hero-stage {
  position: relative;
  width: 100%;
  height: 100vh;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  overflow: hidden;
  z-index: 10;
  /* Fix for Lenis/ScrollSmoother 1px subpixel gap */
  margin-bottom: -2px;
  transform: translate3d(0, 0, 0);
  background-color: var(--bg-dark);
  /* Ensure no bright flashes */
}



/* Background Layers */
.hero-layer {
  position: absolute;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.layer-overlay {
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.6) 0%, rgba(10, 10, 10, 0.2) 50%, rgba(10, 10, 10, 0.8) 100%);
  z-index: 2;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 6vw;
  transform: translateY(-50%);
  z-index: 20;
}

/* ==========================================================================
   MOTION & COMPONENT WRAPPERS
   ========================================================================== */
/* Image Reveal Clip-Path */
.reveal-wrap {
  position: relative;
  overflow: hidden;
  clip-path: inset(100% 0 0 0);
  /* Hidden via bottom inset */
  will-change: clip-path;
  background: var(--bg-panel);
}

.reveal-wrap img {
  width: 100%;
  height: 100%;
  transform: scale(1.28);
  will-change: transform;
}

/* SVG Line Draw */
.svg-divider {
  width: 100%;
  height: 1px;
  margin: var(--sp-lg) 0;
  overflow: visible;
}

.svg-divider path {
  stroke: var(--accent-gold);
  stroke-width: 1px;
  fill: none;
  opacity: 0.5;
}

/* Rotating Velocity Badge */
.rotate-badge {
  position: absolute;
  right: 6vw;
  bottom: 12vh;
  width: 140px;
  height: 140px;
  z-index: 30;
  pointer-events: none;
}

.rotate-badge svg {
  width: 100%;
  height: 100%;
  fill: var(--accent-gold);
}

/* Caption Rows */
.caption-row {
  display: flex;
  gap: var(--sp-md);
  margin-top: 1rem;
  align-items: flex-start;
}

.caption-label {
  color: var(--accent-gold);
  flex-shrink: 0;
}

.caption-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  max-width: 300px;
}

/* Filter Pills */
.filter-bar {
  display: flex;
  gap: var(--sp-sm);
  flex-wrap: wrap;
  margin-bottom: var(--sp-lg);
}

.filter-pill {
  padding: 0.5rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  font-family: var(--font-heading);
  font-size: var(--fs-label);
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  transition: all 0.3s ease;
}

.filter-pill.active,
.filter-pill:hover {
  background: var(--accent-gold);
  color: var(--bg-dark);
  border-color: var(--accent-gold);
}

/* Form Elements */
.form-group {
  position: relative;
  margin-bottom: var(--sp-md);
}

.form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1rem 0;
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 1rem;
}

.form-input:focus {
  outline: none;
}

.form-label {
  position: absolute;
  left: 0;
  top: 1rem;
  color: var(--text-muted);
  transition: 0.3s var(--ease-luxe);
  pointer-events: none;
}

.form-input:focus~.form-label,
.form-input:not(:placeholder-shown)~.form-label {
  top: -0.5rem;
  font-size: 0.75rem;
  color: var(--accent-gold);
}

.form-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--accent-gold);
  transition: width 0.4s var(--ease-luxe);
}

.form-input:focus~.form-line {
  width: 100%;
}

/* ==========================================================================
   PRELOADER, TRANSITIONS & CURSOR
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  background-color: var(--bg-cream);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.preloader-wordmark {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--bg-dark);
  opacity: 0;
  transform: scale(0.92);
}

.preloader-line {
  height: 1px;
  background-color: var(--accent-gold);
  width: 0;
  margin-top: 1rem;
}

.page-wipe {
  position: fixed;
  inset: 0;
  background-color: var(--bg-dark);
  z-index: 9998;
  transform: translateY(100%);
}

/* Custom Cursor */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 4px;
  height: 4px;
  background: var(--accent-gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  border: 1px solid var(--accent-gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 9px;
  text-transform: uppercase;
  color: transparent;
  letter-spacing: 1px;
}

.cursor-ring.active {
  width: 75px;
  height: 75px;
  background: rgba(197, 160, 89, 0.1);
  backdrop-filter: blur(2px);
}

.cursor-ring.view::after {
  content: 'VIEW';
  color: var(--accent-gold);
  position: absolute;
}

/* Disable custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {

  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }

  a,
  button,
  input,
  select,
  textarea {
    cursor: pointer;
  }

  body {
    cursor: auto;
  }
}


/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */
.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-12 {
  margin-top: 3rem;
}

.mt-16 {
  margin-top: 4rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mb-16 {
  margin-bottom: 4rem;
}

.my-6 {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

/* 
.pt-12 {
  padding-top: 3rem;
}

.pt-24 {
  padding-top: 6rem;
}

.p-8 {
  padding: 2rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-8 {
  gap: 2rem;
}

.max-w-md {
  max-width: 28rem;
}

.max-w-2xl {
  max-width: 42rem;
} */

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.block {
  display: block;
}

.relative {
  position: relative;
}

.z-10 {
  z-index: 10;
}

.overflow-hidden {
  overflow: hidden;
}






/* Reduced Motion Fallback */
@media (prefers-reduced-motion: reduce) {
  .reveal-wrap {
    clip-path: inset(0 0 0 0) !important;
  }

  .reveal-wrap img {
    transform: scale(1) !important;
  }

  .preloader,
  .page-wipe {
    display: none !important;
  }

  .hero-layer {
    transform: none !important;
  }

  * {
    transition: none !important;
    animation: none !important;
  }
}