/* ===========================
   Font Face for Local Inter
   =========================== */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* =====================
   GLOBAL CSS – Frederick's Apartelle
   Polished for 2025+
   ===================== */

/* ===== CSS Variables ===== */
:root {
  --primary: #EF4A24;
  --primary-dark: #cc3b1d;
  --accent: #ff6f3c;
  --bg: #FFF8F1;
  --text: #222;
  --muted: #666;
  --surface: #ffffff;
  --border: #f3d2bc;
  --radius: 1.2rem;
  --shadow-main: 0 4px 16px rgba(0, 0, 0, 0.08);
  --font-sans: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --transition-fast: all 0.2s ease-in-out;
  --hover-bg: rgba(255,255,255,0.04);
  color-scheme: light;
}




/* ===== Reset & Base Layout ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  min-height: 100vh;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5em;
  line-height: 1.3;
}
p {
  margin-bottom: 1.2em;
  max-width: 58em;
  color: var(--text);
}
a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition-fast);
}
a:hover, a:focus {
  color: var(--primary-dark);
  outline: none;
  text-decoration: none; /* prevent underline on hover */
}

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

/* ===== Container & Section ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 1rem;
}
.section {
  padding: 3rem 1rem;
  margin: 0 auto;
  max-width: 1200px;
}
.text-center {
  text-align: center;
}

/* ===== Buttons ===== */
button, .btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.65rem 1.2rem;
  font-size: 1rem;
  border-radius: 0.6rem;
  cursor: pointer;
  transition: var(--transition-fast);
}
button:hover, .btn:hover,
button:focus, .btn:focus {
  background-color: var(--primary-dark);
  outline: none;
}

/* ===== Forms ===== */
input, textarea, select {
  font: inherit;
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  width: 100%;
  background-color: #fff;
  transition: var(--transition-fast);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(255, 87, 34, 0.15);
  outline: none;
}

/* ===== Navigation ===== */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-main);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 999;
  transition: all 0.3s ease;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.site-logo {
  width: 48px;
  height: auto;
  border-radius: 0.75rem;
}

.main-nav ul,
.nav-list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-nav a,
.nav-list li a {
  color: var(--text);
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
}
.main-nav a:hover,
.nav-list li a:hover,
.nav-list a.active {
  color: var(--primary);
  font-weight: 600;
}
.nav-list a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* ===== Footer ===== */
footer, .site-footer {
  background-color: var(--bg);
  color: var(--muted);
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.95rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin-bottom: 1rem;
}
.footer-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--primary);
  transition: color 0.25s ease;
}
.footer-links a:hover,
.footer-links a:focus {
  color: var(--primary-dark);
  text-decoration: none;
}

.footer-copy {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  animation: fadeIn ease 1s forwards;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.slide-up {
  animation: slideUp ease-out 0.8s forwards;
}
@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ===== Mobile Navigation ===== */
.nav-toggle {
  display: none;
}


/* ===== Sticky & Scroll States ===== */
.site-header.scrolled {
  background: rgba(255, 245, 237, 0.85);
  border-bottom: 2px solid var(--primary-dark);
  box-shadow: 0 2px 10px rgba(255, 87, 34, 0.1);
  backdrop-filter: blur(8px);
  padding: 0.5rem 0;
}
.site-header.hide-header {
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}
.site-header.scrolled .site-logo {
  transform: scale(0.92);
  filter: brightness(0.95);
  transition: all 0.3s ease;
}

/* ===== Accessibility & Motion ===== */
a:focus-visible, button:focus-visible {
  outline: 3px dashed var(--primary);
  outline-offset: 4px;
}
.no-scroll {
  overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
  }
  html {
    scroll-behavior: auto !important;
  }
}


.footer-payments {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.footer-payments img {
  height: 28px;
  opacity: 0.8;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.footer-payments img:hover {
   transform: scale(1.05);
  filter: brightness(1.1);
}

.footer-links a.active {
  font-weight: 600;
  color: var(--primary-dark);
}

.footer-payments img {
  margin: 0 0.4rem;
}

.footer-section-label {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: var(--muted);
  text-align: center;
}


@media (max-width: 480px) {
  .footer-payments {
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.5rem 1rem;
  }

  .footer-payments img {
    height: 24px;
  }

  .footer-links {
    gap: 1.25rem;
    flex-wrap: wrap;
  }
}

.site-footer {
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.02);
}


/* Amenity Section Grouping */
.amenity-group {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin: 2.5rem 0 1rem;
    padding-top: 1rem;
  text-align: center;
}

.icon-grid-wrapper {
  background: var(--surface);
  padding: 2.5rem 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.03);
  max-width: 1080px;
  margin: 2rem auto;
}


/* Already existing but improved slightly */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.2rem;
  text-align: center;
}

.icon-grid > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem;
  padding: 1rem 0.5rem 0.5rem;
  background: rgba(255, 247, 241, 0.6);
  box-shadow: 0 2px 6px rgba(255, 87, 34, 0.035);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 120px;
  font-size: 0.94rem;
  color: var(--text);
}

.icon-grid > div:hover {
  transform: scale(1.06);
  background: var(--hover-bg);

  box-shadow: 0 4px 14px rgba(255, 87, 34, 0.1);
}

.icon-grid img {
  width: 32px;
  height: 32px;
  margin-bottom: 0.5rem;
}

/* Responsive spacing */
@media (max-width: 480px) {
  .amenity-group {
    font-size: 1rem;
  }
  .icon-grid > div {
    font-size: 0.88rem;
  }
}

.section-subtext {
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
  margin: 0.5rem auto 2rem;
  max-width: 720px;
}


.section-divider {
  height: 1px;
  background: rgba(0,0,0,0.04);
  margin: 3rem auto;
  max-width: 900px;
  border: none;
}




.dropdown {
  display: none;
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-main);
  top: 100%;
  left: 0;
  z-index: 999;
  padding: 0.4rem 0;
  min-width: 180px;
}

.dropdown li {
  display: block;
}

.dropdown li a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--text);
  text-align: left;
  white-space: nowrap;
}

.dropdown li a:hover {
  background: var(--hover-bg);

  color: var(--primary);
}



/* ===== Location Dropdown Refinement ===== */
.has-dropdown {
  position: relative;
}

.has-dropdown > a {
  font-weight: 600;
  color: var(--primary);
}

.has-dropdown > a::after {
  content: ' ▼';
  font-size: 0.65em;
  color: var(--muted);
  margin-left: 0.3em;
}


/* Desktop Dropdown */
.dropdown {
  display: none;
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-main);
  top: calc(100% + 0.3rem);
  left: 0;
  z-index: 999;
  padding: 0.4rem 0;
  min-width: 200px;
  white-space: nowrap;
}

.dropdown li {
  display: block;
}

.dropdown li a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--text);
  text-align: left;
  transition: background 0.2s ease;
}

.dropdown li a:hover {
  background-color: #fff4ee;
  color: var(--primary);
}

.has-dropdown:hover .dropdown {
  display: block;
}

/* Mobile Behavior */


@media (pointer: fine) {
  .has-dropdown:hover .dropdown {
    display: block;
  }
}

@media (max-width: 480px) {
  .section-subtext {
    font-size: 0.94rem;
    margin-bottom: 1.5rem;
  }
}

.footer-onsite {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.footer-onsite-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-onsite-link:hover {
  color: var(--primary-dark);
}

.footer-onsite img {
  height: 24px;
  width: 24px;
  display: block;
  align-self: center;
}

@media (max-width: 480px) {
  .footer-onsite-link {
    font-size: 0.9rem;
  }

  .footer-onsite img {
    height: 20px;
    width: 20px;
  }
}

.footer-onsite-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

@media (max-width: 480px) {
  .footer-onsite {
    flex-direction: column;
    gap: 0.3rem;
  }
}

.footer-onsite-link {
  transform: translateX(-2px); /* adjust if icon is very wide */
}

.footer-onsite-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 1rem; /* Add this */
  margin-bottom: 1rem; /* Optional, for breathing room */
}

@media (max-width: 360px) {
  .contact-item img {
    height: 20px;
    width: 20px;
    margin-top: 2px; /* optional, based on your icon alignment */
  }
}

@media (max-width: 768px) {
  .site-header .container {
    flex-direction: row;
    justify-content: space-between;
  }

  .nav-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    background: var(--primary);
    border: none;
    border-radius: 0.75rem;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1001;
    cursor: pointer;
    transition: background 0.3s ease;
  }

  .nav-toggle .bar,
  .nav-toggle .bar::before,
  .nav-toggle .bar::after {
    content: '';
    display: block;
    background-color: #fff;
    height: 2px;
    width: 22px;
    border-radius: 2px;
    position: absolute;
    transition: 0.3s ease-in-out;
  }

  .nav-toggle .bar {
    top: 50%;
    transform: translateY(-50%);
  }

  .nav-toggle .bar::before {
    top: -8px;
    left: 0;
  }

  .nav-toggle .bar::after {
    top: 8px;
    left: 0;
  }

  .nav-toggle.open .bar {
    background-color: transparent;
  }

  .nav-toggle.open .bar::before {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.open .bar::after {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-main);
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 999;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 1rem;
    padding: 1.2rem;
    align-items: center;
  }

  .nav-list {
    flex-direction: column;
    gap: 1.2rem;
    text-align: center;
  }

  .nav-list li a {
    font-size: 1.15rem;
  }

  .has-dropdown {
    width: 100%;
  }

  .has-dropdown > a::after {
    display: none;
  }

  .dropdown {
    display: block;
    position: static;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    min-width: 100%;
  }

  .dropdown li a {
    padding: 0.5rem 0.8rem;
    font-size: 1.05rem;
    border-top: 1px solid var(--border);
  }

  .has-dropdown:hover .dropdown {
    display: block;
  }

  .nav-list .dropdown li a:hover {
    background: var(--hover-bg);

  }
}


.dropdown-wrapper {
  flex-wrap: wrap;
  justify-content: center;
}
.dropdown-wrapper a {
  min-width: 120px;
  text-align: center;
}


.has-dropdown:focus-within .dropdown { display: block; }
/* Skip link: hidden by default, visible on keyboard focus */
.skip-link{
  position: fixed;
  left: 1rem;
  top: 1rem;
  transform: translateY(-150%);
  background: #111;
  color: #fff;
  padding: .6rem .9rem;
  border-radius: .5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  z-index: 10000;
  text-decoration: none;
}
.skip-link:focus,
.skip-link:focus-visible{
  transform: translateY(0); /* slide in when tabbed to */
}
