/* ============================================
   SASSAFRAS MANOR — Custom Styles
   Classic & Elegant | Burgundy + Blush
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.75rem 1.5rem;
  background: #7B2D3B;
  color: #fff;
  z-index: 9999;
  border-radius: 0 0 0.5rem 0;
  font-size: 0.875rem;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* ---------- Section Layout ---------- */
.section-padding {
  padding: 6rem 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 4rem 0;
  }
}

/* ---------- Section Headers ---------- */
.section-eyebrow {
  display: block;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #7B2D3B;
  font-weight: 500;
}

.section-eyebrow-light {
  display: block;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 500;
  color: #7B2D3B;
  line-height: 1.1;
}

.section-title-light {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 500;
  color: #fff;
  line-height: 1.1;
}

.section-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #7B2D3B, transparent);
}

.section-divider-light {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
}

/* ---------- Header ---------- */
.site-header {
  background: transparent;
  color: #fff;
  transition: background 0.5s ease, color 0.5s ease, box-shadow 0.5s ease;
}

.site-header.scrolled {
  background: rgba(254, 253, 251, 0.97);
  color: #7B2D3B;
  box-shadow: 0 1px 0 rgba(123, 45, 59, 0.1);
  backdrop-filter: blur(10px);
}

.site-header.scrolled .logo-mark-svg path {
  fill: currentColor;
}

.site-header.scrolled .nav-link {
  color: inherit;
}

.site-header.scrolled .nav-link:hover {
  color: #7B2D3B;
}

.site-header.scrolled .menu-line {
  background: currentColor;
}

/* Logo Mark */
.logo-mark {
  color: #fff;
  transition: color 0.5s ease;
  flex-shrink: 0;
}

.site-header.scrolled .logo-mark {
  color: #7B2D3B;
}

/* Nav Links */
.nav-link {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s ease;
  position: relative;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: #fff;
}

/* Reserve Button */
.nav-link-reserved {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 0.6rem 1.5rem;
  transition: all 0.3s ease;
  margin-left: 0.5rem;
}

.nav-link-reserved:hover {
  background: #fff;
  color: #7B2D3B;
  border-color: #fff;
}

.site-header.scrolled .nav-link-reserved {
  border-color: #7B2D3B;
  color: #7B2D3B;
}

.site-header.scrolled .nav-link-reserved:hover {
  background: #7B2D3B;
  color: #fff;
  border-color: #7B2D3B;
}

/* Mobile Menu Toggle */
.menu-toggle {
  color: #fff;
  transition: color 0.5s ease;
}

.site-header.scrolled .menu-toggle {
  color: #7B2D3B;
}

.menu-line {
  background: currentColor;
  transition: all 0.3s ease;
}

.menu-toggle[aria-expanded="true"] .menu-line:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle[aria-expanded="true"] .menu-line:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
  width: 1.5rem;
}

/* Mobile Menu */
#mobile-menu {
  background: rgba(254, 253, 251, 0.98);
  backdrop-filter: blur(20px);
}

#mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-link {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: #7B2D3B !important;
  transition: opacity 0.3s ease;
}

.mobile-nav-link:hover {
  opacity: 0.7;
}

.mobile-nav-link-reserved {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: #7B2D3B;
  color: #fff !important;
  padding: 0.875rem 2rem;
  border-radius: 0;
  transition: background 0.3s ease;
}

.mobile-nav-link-reserved:hover {
  background: #642531;
  opacity: 1 !important;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 10, 8, 0.45) 0%,
    rgba(13, 10, 8, 0.35) 40%,
    rgba(13, 10, 8, 0.55) 100%
  );
}

.hero-content {
  padding: 2rem;
}

.hero-divider {
  color: rgba(255, 255, 255, 0.7);
}

.hero-line {
  stroke: rgba(255, 255, 255, 0.5);
  transition: stroke 0.3s ease;
}

.hero-eyebrow {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

.hero-headline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-style: italic;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
}

/* Hero Actions */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  background: #7B2D3B;
  padding: 1rem 2.25rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #642531;
  transform: translateX(-100%);
  transition: transform 0.4s ease;
  z-index: 0;
}

.btn-primary:hover::before {
  transform: translateX(0);
}

.btn-primary > * {
  position: relative;
  z-index: 1;
}

.btn-primary:hover {
  color: #fff;
}

.btn-arrow {
  transition: transform 0.3s ease;
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  padding: 1rem 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.4s ease;
}

.btn-ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
}

/* Scroll Indicator */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ---------- Room Cards ---------- */
.room-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.room-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(123, 45, 59, 0.12);
}

.room-img-wrapper {
  position: relative;
  overflow: hidden;
}

.room-img {
  transition: transform 0.7s ease;
}

.room-card:hover .room-img {
  transform: scale(1.05);
}

.room-label {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #7B2D3B;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.room-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
}

.room-desc {
  line-height: 1.7;
}

.room-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #2c2420;
}

.room-features li svg {
  color: #7B2D3B;
  flex-shrink: 0;
}

/* ---------- Buttons ---------- */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7B2D3B;
  border: 1px solid #7B2D3B;
  padding: 1rem 2.25rem;
  transition: all 0.4s ease;
}

.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #7B2D3B;
  transform: translateX(-101%);
  transition: transform 0.4s ease;
  z-index: 0;
}

.btn-outline:hover::before {
  transform: translateX(0);
}

.btn-outline > * {
  position: relative;
  z-index: 1;
}

.btn-outline:hover {
  color: #fff;
}

.btn-arrow-outline {
  transition: transform 0.3s ease;
}

.btn-outline:hover .btn-arrow-outline {
  transform: translateX(4px);
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7B2D3B;
  border: 1px solid #7B2D3B;
  padding: 1rem 2.25rem;
  transition: all 0.4s ease;
}

.btn-outline-light::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #7B2D3B;
  transform: translateX(-101%);
  transition: transform 0.4s ease;
  z-index: 0;
}

.btn-outline-light:hover::before {
  transform: translateX(0);
}

.btn-outline-light > * {
  position: relative;
  z-index: 1;
}

.btn-outline-light:hover {
  color: #fff;
}

.btn-arrow-light {
  transition: transform 0.3s ease;
}

.btn-outline-light:hover .btn-arrow-light {
  transform: translateX(4px);
}

/* ---------- Amenities ---------- */
.amenity-card {
  padding: 1.5rem;
  border-radius: 0.25rem;
  transition: background 0.3s ease, transform 0.3s ease;
}

.amenity-card:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-4px);
}

.amenity-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
}

.amenity-desc {
  line-height: 1.7;
}

/* ---------- Location ---------- */
.location-badge {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

/* ---------- Contact ---------- */
.contact-item {
  transition: transform 0.3s ease;
}

.contact-item:hover {
  transform: translateX(4px);
}

.contact-icon {
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* ---------- Form ---------- */
.input-field {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.875rem;
  color: #2c2420;
  background: #fff;
  border: 1px solid rgba(123, 45, 59, 0.2);
  border-radius: 0;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
  -webkit-appearance: none;
}

.input-field:focus {
  border-color: #7B2D3B;
  box-shadow: 0 0 0 3px rgba(123, 45, 59, 0.1);
}

.input-field::placeholder {
  color: rgba(44, 36, 32, 0.35);
}

.input-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%237B2D3B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* ---------- Footer ---------- */
.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
}

.footer-social-icon:hover {
  background: #7B2D3B;
  border-color: #7B2D3B;
  color: #fff;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-images {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-images.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-text {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-text.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-location-img {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-location-img.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-location-text {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-location-text.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-contact-info {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-contact-info.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-contact-form {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-contact-form.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- Staggered Delays ---------- */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- Hero Animations ---------- */
.hero [data-animate] {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero [data-animate].hero-animated {
  opacity: 1;
  transform: translateY(0);
}

.hero [data-animate]:nth-child(1) { transition-delay: 0.2s; }
.hero [data-animate]:nth-child(2) { transition-delay: 0.4s; }
.hero [data-animate]:nth-child(3) { transition-delay: 0.6s; }
.hero [data-animate]:nth-child(4) { transition-delay: 0.8s; }
.hero [data-animate]:nth-child(5) { transition-delay: 1s; }

/* ---------- Subtle Pattern ---------- */
.amenities-pattern {
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.08) 1px, transparent 0);
  background-size: 32px 32px;
}

/* ---------- Focus Styles ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #7B2D3B;
  outline-offset: 2px;
}

/* ---------- Prefers Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal, .reveal-images, .reveal-text,
  .reveal-location-img, .reveal-location-text,
  .reveal-contact-info, .reveal-contact-form {
    opacity: 1;
    transform: none;
  }
  .hero [data-animate] {
    opacity: 1;
    transform: none;
  }
}
