/* =============================================
   MySDStays — Final Stylesheet (ANNOTATED)
   How to use: skim the section headers and edit
   brand colors, fonts, and components as needed.
   Nothing here is scary—you can tweak safely.
   ============================================= */

/* ---------------------------------------------
   1) BRAND PALETTE & FONTS (GLOBAL TOKENS)
   - These CSS variables feed the whole site.
   - Change a value here once, and buttons/links
     pick it up automatically.
   - Tip: keep good contrast (text vs background).
---------------------------------------------- */
:root {
  --bg-main: #F8F7F4;        /* Page background (soft warm white) */
  --text-primary: #2C3E50;   /* Default text color (deep charcoal) */
  --brand-primary: #3B6978;  /* Main brand color (buttons, links) */
  --brand-secondary: #B4A088;/* Accent color (borders, subtle UI) */
}

/* Smooth scroll for in-page anchors (e.g., “Inquire” jumps) */
html { scroll-behavior: smooth; }

/* Base page styling */
body {
  font-family: 'Lato', sans-serif; /* BODY: Lato */
  background-color: var(--bg-main);
  color: var(--text-primary);
}

/* Helper class: use this on headings that should be serif */
.serif { font-family: 'Lora', serif; }

/* ---------------------------------------------
   2) REUSABLE COMPONENTS
   - Drop these classes on elements to get a consistent look.
---------------------------------------------- */

/* Soft, natural-looking shadow for cards/buttons */
.shadow-soft { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); }

/* Generic button base */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 9999px;   /* pill */
  padding: 0.75rem 1.5rem; /* size */
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  border: 1px solid transparent;
}

/* Primary button */
.btn-primary { background-color: var(--brand-primary); color: #fff; }
.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(44, 62, 80, 0.1);
}

/* Secondary (outline) */
.btn-secondary { background-color: transparent; color: var(--brand-primary); border-color: var(--brand-secondary); }
.btn-secondary:hover {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(44, 62, 80, 0.1);
}

/* White button variant (used on hero primary “Explore Hillcrest”) */
.btn-white { background: #fff; color: var(--text-primary); border-color: #fff; }
.btn-white:hover {
  background: #f3f4f6;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(44, 62, 80, 0.1);
}

/* Outline for light-on-dark areas */
.btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.10);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(44, 62, 80, 0.1);
}

/* Small button size for header */
.btn-sm { padding: 0.5rem 1rem; font-size: 0.75rem; }

/* Brand link */
.link-brand { color: var(--brand-primary); font-weight: 500; }
.link-brand:hover { text-decoration: underline; }

/* NEW: Brand utility helpers to match Tailwind-like class names */
.text-brand-primary { color: var(--brand-primary); }
.text-brand-secondary { color: var(--brand-secondary); }
.border-brand-primary { border-color: var(--brand-primary); }
.border-brand-secondary { border-color: var(--brand-secondary); }

/* ---------------------------------------------
   3) SITE-SPECIFIC STYLES
   - Small helpers for nav and simple sliders.
---------------------------------------------- */

/* No-JS fallback for mobile nav */
.no-js #mobileNav { display: block; }
.no-js #menuBtn { display: none; }

/* Basic slider/hero track (if you add slides later) */
#slides { transition: transform 0.5s ease-in-out; }
.slide  { min-width: 100%; }

/* Reduced motion: disable the slide transition for accessibility */
@media (prefers-reduced-motion: reduce) {
  #slides { transition: none !important; }
}

/* highlight the active dot set by aria-pressed */
.dot[aria-pressed="true"] { background-color: var(--brand-secondary, #B4A088); }

/* Sub-nav: when scrolled, pin to the very top */
#subNav.dock-top {
  top: 0 !important;   /* sits at the top when docked */
  z-index: 60;          /* above content */
}