/* ========================================
   The Carlin Residence Club - Custom Styles
   Replicating exact design from original site
   ======================================== */

/* Font Faces */
@font-face {
  font-family: 'FTLambert-Ultrathin';
  src: url('/fonts/FTLambert-Ultrathin.woff2') format('woff2'),
       url('/fonts/FTLambert-Ultrathin.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'Univers';
  src: url('/fonts/Univers.woff2') format('woff2'),
       url('/fonts/Univers.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'Gramercy Book';
  src: url('/fonts/ABCGramercy-Book.woff2') format('woff2'),
       url('/fonts/ABCGramercy-Book.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'Gramercy Thin';
  src: url('/fonts/ABCGramercy-Thin.woff2') format('woff2'),
       url('/fonts/ABCGramercy-Thin.woff') format('woff');
  font-display: swap;
}

/* ========================================
   Tailwind CSS v3.4 Base + Custom Colors
   ======================================== */

*, *::before, *::after {
  box-sizing: border-box;
  border: 0 solid #e5e7eb;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: 45px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  font-family: 'Univers', sans-serif;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  line-height: inherit;
  overflow-x: hidden;
  overscroll-behavior: none;
}

a { color: inherit; text-decoration: inherit; }
img, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
p { margin: 0; }
menu, ol, ul { list-style: none; margin: 0; padding: 0; }
input, textarea, select { font-family: inherit; font-size: 100%; }
button { cursor: pointer; background: transparent; border: none; font: inherit; color: inherit; }

/* Custom Colors */
.bg-pinot { background-color: #2b1a1f; }
.bg-piecrust { background-color: #f7e8de; }
.bg-white { background-color: #ffffff; }
.text-pinot { color: #2b1a1f; }
.text-piecrust { color: #f7e8de; }
.text-white { color: #ffffff; }
.border-pinot { border-color: #2b1a1f; }
.border-piecrust { border-color: #f7e8de; }

/* Opacity variants for border/text */
.border-piecrust\/50 { border-color: rgba(247, 232, 222, 0.5); }
.border-piecrust\/20 { border-color: rgba(247, 232, 222, 0.2); }
.border-pinot\/50 { border-color: rgba(43, 26, 31, 0.5); }
.text-piecrust\/50 { color: rgba(247, 232, 222, 0.5); }
.text-piecrust\/40 { color: rgba(247, 232, 222, 0.4); }
.text-piecrust\/60 { color: rgba(247, 232, 222, 0.6); }
.text-piecrust\/80 { color: rgba(247, 232, 222, 0.8); }
.text-pinot\/50 { color: rgba(43, 26, 31, 0.5); }
.placeholder-piecrust\/50::placeholder { color: rgba(247, 232, 222, 0.5); }

/* ========================================
   Typography Classes (matching original)
   ======================================== */
.large-title {
  font-family: 'Gramercy Thin', serif;
  font-size: 108px;
  line-height: 1;
}

.medium-title {
  font-family: 'Gramercy Book', serif;
  font-size: 60px;
  line-height: 1;
}

.small-title {
  font-family: 'Gramercy Book', serif;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0.005em;
}

.large-paragraph {
  font-family: 'Gramercy Book', serif;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: 0.005em;
}

.medium-paragraph {
  font-family: 'Univers', sans-serif;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0.005em;
}

.paragraph {
  font-family: 'Univers', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.005em;
}

.disclaimer {
  font-family: 'Univers', sans-serif;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.005em;
}

.gramercy-book {
  font-family: 'Gramercy Book', serif;
}

.gramercy-thin {
  font-family: 'Gramercy Thin', serif;
}

/* ========================================
   Layout Utilities (Tailwind-like)
   ======================================== */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-x-3 { column-gap: 0.75rem; }
.gap-x-5 { column-gap: 1.25rem; }
.gap-x-6 { column-gap: 1.5rem; }
.gap-x-10 { column-gap: 2.5rem; }
.gap-y-2 { row-gap: 0.5rem; }
.col-span-2 { grid-column: span 2 / span 2; }
.col-span-4 { grid-column: span 4 / span 4; }
.col-span-6 { grid-column: span 6 / span 6; }
.col-span-12 { grid-column: span 12 / span 12; }
.col-start-3 { grid-column-start: 3; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-1 { flex: 1 1 0%; }
.items-center { align-items: center; }
.items-start { align-items: start; }
.items-end { align-items: flex-end; }
.items-baseline { align-items: baseline; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.self-center { align-self: center; }
.space-x-4 > * + * { margin-left: 1rem; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

.w-full { width: 100%; }
.w-fit { width: fit-content; }
.w-1\/2 { width: 50%; }
.h-full { height: 100%; }
.h-auto { height: auto; }
.min-h-\[60vh\] { min-height: 60vh; }

.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }
.overscroll-none { overscroll-behavior: none; }

.mx-auto { margin-left: auto; margin-right: auto; }
.ml-auto { margin-left: auto; }
.m-auto { margin: auto; }

.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.p-3 { padding: 0.75rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-4 { padding-bottom: 1rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; }

.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-auto { margin-top: auto; }

/* Specific spacing values */
.mt-\[5px\] { margin-top: 5px; }
.mt-\[36px\] { margin-top: 36px; }
.mb-\[18px\] { margin-bottom: 18px; }
.pt-\[120px\] { padding-top: 120px; }
.pt-\[10px\] { padding-top: 10px; }
.pb-\[8\.5px\] { padding-bottom: 8.5px; }
.px-\[11px\] { padding-left: 11px; padding-right: 11px; }
.mt-\[120px\] { margin-top: 120px; }
.mt-\[180px\] { margin-top: 180px; }
.mb-\[120px\] { margin-bottom: 120px; }
.my-\[90px\] { margin-top: 90px; margin-bottom: 90px; }
.my-\[60px\] { margin-top: 60px; margin-bottom: 60px; }
.mt-\[60px\] { margin-top: 60px; }
.mt-\[30px\] { margin-top: 30px; }
.mb-\[30px\] { margin-bottom: 30px; }
.mb-\[60px\] { margin-bottom: 60px; }
.my-12 { margin-top: 3rem; margin-bottom: 3rem; }

.py-\[90px\] { padding-top: 90px; padding-bottom: 90px; }
.pb-\[60px\] { padding-bottom: 60px; }
.-mt-\[18px\] { margin-top: -18px; }
.-translate-y-12 { transform: translateY(-3rem); }
.-translate-y-10 { transform: translateY(-2.5rem); }
.-translate-x-1\/2 { transform: translateX(-50%); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.translate-y-5 { transform: translateY(1.25rem); }
.top-1\/2 { top: 50%; }
.left-1\/2 { left: 50%; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.uppercase { text-transform: uppercase; }
.whitespace-pre-wrap { white-space: pre-wrap; }
.whitespace-nowrap { white-space: nowrap; }
.underline { text-decoration: underline; }

.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.text-\[13px\] { font-size: 13px; }
.text-\[13\.5px\] { font-size: 13.5px; }
.text-\[16px\] { font-size: 16px; }
.text-\[30px\] { font-size: 30px; }
.leading-\[1\] { line-height: 1; }
.leading-\[1\.2\] { line-height: 1.2; }
.leading-\[1\.14999\] { line-height: 1.14999; }
.tracking-\[0\.005em\] { letter-spacing: 0.005em; }
.tracking-\[0\.02em\] { letter-spacing: 0.02em; }
.font-medium { font-weight: 500; }

.rounded-\[5px\] { border-radius: 5px; }
.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-solid { border-style: solid; }

.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }
.opacity-100 { opacity: 1; }

.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }

.cursor-pointer { cursor: pointer; }
.shrink-0 { flex-shrink: 0; }
.inline-block { display: inline-block; }
.block { display: block; }
.hidden { display: none; }
.appearance-none { appearance: none; -webkit-appearance: none; }
.outline-none { outline: none; }
.resize-none { resize: none; }

/* Aspect Ratios */
.aspect-\[1\.3\/1\] { aspect-ratio: 1.3/1; }
.aspect-\[1\.33\/1\] { aspect-ratio: 1.33/1; }
.aspect-\[1\.333\/1\] { aspect-ratio: 1.333/1; }
.aspect-\[7\.5\/10\] { aspect-ratio: 7.5/10; }
.aspect-\[7\.33\/10\] { aspect-ratio: 7.33/10; }
.aspect-\[0\.75\/1\] { aspect-ratio: 0.75/1; }
.aspect-\[4\/3\] { aspect-ratio: 4/3; }
.aspect-\[1\/1\] { aspect-ratio: 1/1; }
.aspect-\[1\.5\/1\] { aspect-ratio: 1.5/1; }

/* Height utilities */
.h-\[105vh\] { height: 105vh; }
.h-\[14px\] { height: 14px; }
.h-4 { height: 1rem; }
.w-4 { width: 1rem; }
.w-\[25px\] { width: 25px; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }

/* ========================================
   Hover States
   ======================================== */
.hover\:opacity-100:hover { opacity: 1; }
.hover\:bg-piecrust:hover { background-color: #f7e8de; }
.hover\:bg-pinot:hover { background-color: #2b1a1f; }
.hover\:text-pinot:hover { color: #2b1a1f; }
.hover\:text-piecrust:hover { color: #f7e8de; }
.hover\:text-piecrust\/80:hover { color: rgba(247, 232, 222, 0.8); }
.hover\:translate-y-5:hover { transform: translateY(1.25rem); }
.hover\:no-underline:hover { text-decoration: none; }

/* Group Hover */
.group:hover .group-hover\:translate-y-5 { transform: translateY(1.25rem); }
.group:hover .group-hover\:translate-y-0 { transform: translateY(0); }

/* ========================================
   Responsive (md: 768px+)
   ======================================== */
@media (min-width: 768px) {
  .md\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
  .md\:col-span-3 { grid-column: span 3 / span 3; }
  .md\:col-span-4 { grid-column: span 4 / span 4; }
  .md\:col-span-5 { grid-column: span 5 / span 5; }
  .md\:col-span-6 { grid-column: span 6 / span 6; }
  .md\:col-span-8 { grid-column: span 8 / span 8; }
  .md\:col-span-10 { grid-column: span 10 / span 10; }
  .md\:col-span-12 { grid-column: span 12 / span 12; }
  .md\:col-start-1 { grid-column-start: 1; }
  .md\:col-start-3 { grid-column-start: 3; }
  .md\:col-start-5 { grid-column-start: 5; }
  .md\:col-start-8 { grid-column-start: 8; }
  .md\:col-start-9 { grid-column-start: 9; }
  .md\:col-start-10 { grid-column-start: 10; }
  .md\:row-start-1 { grid-row-start: 1; }
  .md\:row-start-2 { grid-row-start: 2; }
  .md\:row-span-2 { grid-row: span 2 / span 2; }
  
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:block { display: block; }
  .md\:gap-6 { gap: 1.5rem; }
  .md\:gap-x-6 { column-gap: 1.5rem; }
  .md\:gap-x-5 { column-gap: 1.25rem; }
  .md\:gap-x-10 { column-gap: 2.5rem; }
  .md\:gap-3 { gap: 0.75rem; }
  
  .md\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .md\:p-6 { padding: 1.5rem; }
  .md\:pt-5 { padding-top: 1.25rem; }
  .md\:pb-0 { padding-bottom: 0; }
  .md\:mb-0 { margin-bottom: 0; }
  .md\:mb-6 { margin-bottom: 1.5rem; }
  .md\:mt-0 { margin-top: 0; }
  .md\:mt-10 { margin-top: 2.5rem; }
  .md\:mt-12 { margin-top: 3rem; }
  .md\:mt-16 { margin-top: 4rem; }
  .md\:mb-16 { margin-bottom: 4rem; }
  .md\:my-12 { margin-top: 3rem; margin-bottom: 3rem; }
  .md\:my-auto { margin-top: auto; margin-bottom: auto; }
  .md\:mr-10 { margin-right: 2.5rem; }
  .md\:pr-10 { padding-right: 2.5rem; }
  
  .md\:text-left { text-align: left; }
  .md\:text-right { text-align: right; }
  .md\:text-center { text-align: center; }
  .md\:text-\[32px\] { font-size: 32px; }
  .md\:text-\[60px\] { font-size: 60px; }
  .md\:text-\[40px\] { font-size: 40px; }
  
  .md\:items-center { align-items: center; }
  .md\:order-2 { order: 2; }
  .md\:order-3 { order: 3; }
  
  .md\:h-\[92vh\] { height: 92vh; }
  .md\:h-\[18px\] { height: 18px; }
  .md\:h-\[100svh\] { height: 100svh; }
  .md\:h-full { height: 100%; }
  
  .md\:w-\[30vw\] { width: 30vw; }
  .md\:w-2\/3 { width: 66.666667%; }
  .md\:w-\[65\.75\%\] { width: 65.75%; }
  
  .md\:pt-\[180px\] { padding-top: 180px; }
  .md\:pb-\[120px\] { padding-bottom: 120px; }
  .md\:py-\[120px\] { padding-top: 120px; padding-bottom: 120px; }
  .md\:pb-\[160px\] { padding-bottom: 160px; }
  .md\:pb-\[240px\] { padding-bottom: 240px; }
  .md\:mb-\[80px\] { margin-bottom: 80px; }
  .md\:mt-\[80px\] { margin-top: 80px; }
  .md\:mt-\[150px\] { margin-top: 150px; }
  .md\:mb-\[180px\] { margin-bottom: 180px; }
  .md\:my-\[150px\] { margin-top: 150px; margin-bottom: 150px; }
  .md\:my-\[50px\] { margin-top: 50px; margin-bottom: 50px; }
  .md\:mt-\[60px\] { margin-top: 60px; }
  .md\:mb-\[120px\] { margin-bottom: 120px; }
  .md\:mt-\[135px\] { margin-top: 135px; }
  .md\:mb-\[135px\] { margin-bottom: 135px; }
  .md\:mt-\[80px\] { margin-top: 80px; }
  
  .md\:translate-y-0 { transform: translateY(0); }
  .md\:-translate-y-5 { transform: translateY(-1.25rem); }
  .md\:relative { position: relative; }
  
  .md\:aspect-\[1\.3\/1\] { aspect-ratio: 1.3/1; }
  
  .md\:flex-row { flex-direction: row; }
}

@media (min-width: 1024px) {
  .lg\:text-left { text-align: left; }
}

/* ========================================
   Navigation Styles
   ======================================== */
#main-nav {
  transition: all 0.3s ease;
}

#main-nav.nav-light .nav-link,
#main-nav.nav-light button svg {
  color: #f7e8de;
}
#main-nav.nav-light .nav-cta {
  color: #f7e8de;
  border-color: #f7e8de;
}
#main-nav.nav-light .nav-cta:hover {
  background-color: #f7e8de;
  color: #2b1a1f;
}

#main-nav.nav-dark .nav-link,
#main-nav.nav-dark button svg {
  color: #2b1a1f;
}
#main-nav.nav-dark .nav-cta {
  color: #2b1a1f;
  border-color: #2b1a1f;
}
#main-nav.nav-dark .nav-cta:hover {
  background-color: #2b1a1f;
  color: #f7e8de;
}

#main-nav.nav-white .nav-link,
#main-nav.nav-white button svg {
  color: #ffffff;
}
#main-nav.nav-white .nav-cta {
  color: #ffffff;
  border-color: #ffffff;
}
#main-nav.nav-white .nav-cta:hover {
  background-color: #ffffff;
  color: #2b1a1f;
}

/* Default state */
.nav-link { color: #2b1a1f; }
.nav-cta {
  color: #2b1a1f;
  border: 1px solid #2b1a1f;
  background: transparent;
}

/* ========================================
   Accordion & Interactive Elements
   ======================================== */
.accordion-icon .accordion-plus-line {
  transition: transform 0.2s ease;
}
.accordion-item.active .accordion-icon .accordion-plus-line {
  transform: rotate(90deg);
  opacity: 0;
}
.accordion-item.active .accordion-icon {
  transform: rotate(0deg);
}

.service-icon .service-plus-line {
  transition: opacity 0.2s ease;
}
.service-item.active .service-plus-line {
  opacity: 0;
}

.amenity-tab .tab-plus-line {
  transition: opacity 0.2s ease;
}
.amenity-tab.active .tab-plus-line {
  opacity: 0;
}

/* ========================================
   Swiper Custom Theme
   ======================================== */
.swiper-theme-light .swiper-pagination-bullet {
  background: #f7e8de;
  opacity: 0.5;
}
.swiper-theme-light .swiper-pagination-bullet-active {
  opacity: 1;
}

.swiper-theme-dark .swiper-pagination-bullet {
  background: #2b1a1f;
  opacity: 0.5;
}
.swiper-theme-dark .swiper-pagination-bullet-active {
  opacity: 1;
}

.swiper-pagination {
  position: relative !important;
  margin-top: 1rem;
}

/* ========================================
   Additional utility classes
   ======================================== */
.order-2 { order: 2; }
.order-3 { order: 3; }

/* Responsive large title */
@media (max-width: 767px) {
  .large-title {
    font-size: 48px;
  }
  .medium-title {
    font-size: 30px;
  }
  .large-paragraph {
    font-size: 22px;
  }
}

/* Smooth scroll */
html {
  scroll-behavior: auto; /* Let Lenis handle smooth scrolling */
}

/* ========================================
   Lenis Smooth Scroll Styles
   ======================================== */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* Ensure nav stays above everything */
#main-nav {
  z-index: 9999 !important;
}

/* Initial state for GSAP animated elements - prevent flash */
[data-section-wrapper]:not(:first-child) {
  will-change: opacity, transform;
}

.large-paragraph,
.large-title,
.medium-title {
  will-change: opacity, transform;
}

/* GSAP ScrollTrigger pin-spacer */
.pin-spacer {
  pointer-events: none;
}
.pin-spacer > * {
  pointer-events: auto;
}

/* Selection color */
::selection {
  background-color: #2b1a1f;
  color: #f7e8de;
}
