/*
Theme Name: Manning Meadows
Description: Custom theme for Manning Meadows Cabin rental site.
Version: 1.0.0
Text Domain: manning-meadows
*/

/* ============================================================
   Manning Meadows Cabin — Shared Stylesheet
   ============================================================ */

/* 1. DESIGN TOKENS — dark mode default, light mode override */
:root {
  --cabin-orange:       #e07b3c;
  --cabin-orange-hover: #c96a2f;
  --cabin-orange-soft:  #f4a574;
  --cabin-success:      #4a7c59;
  --cabin-error:        #b0392b;
  --cabin-radius:       6px;
  --nav-height:         64px;

  /* Semantic palette — dark */
  --bg-page:        #1a1a1a;
  --bg-surface:     #242424;
  --bg-surface-alt: #1e1e1e;
  --bg-card:        #2a2a2a;
  --border:         #383838;
  --text:           #d0d0d0;
  --text-muted:     #888;
  --text-heading:   #f0f0f0;
  --nav-bg:         rgba(20, 20, 20, 0.97);
  --footer-bg:      #111;
  --shadow:         0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-sm:      0 2px 8px rgba(0, 0, 0, 0.25);
  --hero-overlay:   rgba(0, 0, 0, 0.50);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-page:        #f7f4ef;
    --bg-surface:     #ffffff;
    --bg-surface-alt: #f0ebe4;
    --bg-card:        #ffffff;
    --border:         #ddd8d0;
    --text:           #3a3530;
    --text-muted:     #7a736a;
    --text-heading:   #1a1410;
    --nav-bg:         rgba(247, 244, 239, 0.97);
    --footer-bg:      #2a2520;
    --shadow:         0 4px 24px rgba(0, 0, 0, 0.10);
    --shadow-sm:      0 2px 8px rgba(0, 0, 0, 0.07);
    --hero-overlay:   rgba(0, 0, 0, 0.38);
  }
}

/* 2. RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cabin-orange); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--cabin-orange-soft); }

h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  font-family: 'Georgia', serif;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0.01em;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5em; margin-bottom: 1.2em; }
li { margin-bottom: 0.4em; }

img { max-width: 100%; height: auto; display: block; border-radius: var(--cabin-radius); }

/* 3. LAYOUT */
.container { max-width: 1100px; margin: 0 auto; padding: 0 28px; }

.section { padding: 72px 0; }
.section--alt { background: var(--bg-surface-alt); }

.section-title { text-align: center; margin-bottom: 52px; }
.section-title h2 { margin-bottom: 14px; }

.section-divider {
  width: 50px; height: 3px;
  background: var(--cabin-orange);
  margin: 0 auto;
  border-radius: 2px;
}

/* 4. NAVIGATION */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.site-nav .container {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  font-size: 1.05rem; font-weight: 700;
  color: var(--text-heading);
  letter-spacing: 0.06em; text-transform: uppercase;
  white-space: nowrap;
}
.nav-logo span { color: var(--cabin-orange); }

.nav-links {
  display: flex; list-style: none; gap: 30px;
  padding: 0; margin: 0;
}

/* WordPress removes default li styles in menus */
.nav-links li { margin: 0; padding: 0; list-style: none; }

.nav-links a {
  color: var(--text-muted);
  font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: 'Arial', sans-serif; font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover,
.nav-links a.active,
.nav-links .current-menu-item > a,
.nav-links .current-page-ancestor > a {
  color: var(--cabin-orange);
  border-bottom-color: var(--cabin-orange);
}

.nav-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: 8px;
  flex-direction: column; gap: 5px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text-heading); transition: all 0.3s;
}

.page-content { padding-top: var(--nav-height); }

/* 5. HERO */
.hero {
  position: relative; min-height: 58vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  background: var(--bg-surface);
}

.hero::before {
  content: ''; position: absolute; inset: 0;
  background: var(--hero-overlay); z-index: 1;
}

.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; z-index: 0;
}

.hero-content {
  position: relative; z-index: 2; padding: 48px 24px;
}

.hero-content h1 {
  font-size: 3.4rem; margin-bottom: 16px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
  color: #fff;
}

.hero-content p {
  font-size: 1.2rem; color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
  margin-bottom: 0;
}

.hero--short { min-height: 52vh; }

/* 6. BUTTONS */
.btn {
  display: inline-block; padding: 11px 28px;
  border-radius: var(--cabin-radius);
  font-weight: 500; letter-spacing: 0.04em;
  font-family: 'Arial', sans-serif; font-size: 0.875rem;
  cursor: pointer; transition: all 0.22s ease;
  border: none; text-align: center; line-height: 1.4;
}

.btn-primary { background: var(--cabin-orange); color: #fff; }
.btn-primary:hover {
  background: var(--cabin-orange-hover); color: #fff;
  transform: translateY(-1px); box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--cabin-orange);
  color: var(--cabin-orange);
}
.btn-outline:hover { background: var(--cabin-orange); color: #fff; }

.btn-sm { padding: 7px 18px; font-size: 0.8rem; }

/* 7. CARDS */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border-radius: var(--cabin-radius);
  padding: 28px 24px;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h4 { margin-bottom: 10px; }
.card p { color: var(--text-muted); margin-bottom: 0; font-size: 0.95rem; }

/* 8. ACCORDION */
.accordion-item {
  background: var(--bg-card); border-radius: var(--cabin-radius);
  margin-bottom: 8px; overflow: hidden;
  border: 1px solid var(--border);
}

.accordion-trigger {
  width: 100%; text-align: left; background: none; border: none;
  padding: 18px 24px; font-size: 0.975rem; font-weight: 500;
  color: var(--cabin-orange); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'Georgia', serif; transition: color 0.2s;
}
.accordion-trigger:hover { color: var(--cabin-orange-soft); }

.accordion-icon {
  font-style: normal; font-size: 1.1rem;
  transition: transform 0.3s; flex-shrink: 0;
  font-family: 'Arial', sans-serif; line-height: 1;
}
.accordion-item.open .accordion-icon { transform: rotate(45deg); }

.accordion-body {
  display: none; padding: 0 24px 22px;
  color: var(--text-muted); line-height: 1.75;
}
.accordion-body p, .accordion-body li { color: var(--text-muted); }
.accordion-body strong { color: var(--text); }
.accordion-item.open .accordion-body { display: block; }

/* 9. FORMS */
.form-group { margin-bottom: 20px; }

label {
  display: block; font-size: 0.85rem; font-weight: 500;
  margin-bottom: 6px; color: var(--text);
  font-family: 'Arial', sans-serif;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--cabin-radius);
  color: var(--text);
  padding: 11px 15px;
  font-size: 15px;
  font-family: 'Arial', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--cabin-orange);
  box-shadow: 0 0 0 3px rgba(224, 123, 60, 0.14);
  outline: none;
}

textarea { min-height: 120px; resize: vertical; }
::placeholder { color: var(--text-muted); opacity: 1; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* 10. GALLERY */
.gallery-section { margin-bottom: 60px; }
.gallery-section:last-child { margin-bottom: 0; }

.gallery-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.gallery-section-header h3 { margin: 0; }

.gallery-carousel {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}

.gallery-thumb {
  aspect-ratio: 1; overflow: hidden;
  border-radius: var(--cabin-radius); cursor: pointer;
}
.gallery-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--cabin-radius); transition: transform 0.3s;
}
.gallery-thumb:hover img { transform: scale(1.05); }

/* Lightbox */
.lightbox-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.93); z-index: 2000;
  align-items: center; justify-content: center; flex-direction: column;
}
.lightbox-overlay.open { display: flex; }

.lightbox-img-wrap { position: relative; }
.lightbox-img-wrap img {
  max-width: 90vw; max-height: 80vh;
  object-fit: contain; border-radius: var(--cabin-radius);
}

.lightbox-close {
  position: fixed; top: 20px; right: 24px;
  font-size: 1.8rem; color: rgba(255,255,255,0.75);
  cursor: pointer; background: none; border: none;
  line-height: 1; transition: color 0.2s;
}
.lightbox-close:hover { color: #fff; }

.lightbox-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: var(--cabin-orange); color: #fff;
  border: none; width: 44px; height: 44px;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; transition: background 0.2s;
}
.lightbox-nav:hover { background: var(--cabin-orange-hover); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-counter {
  color: rgba(255,255,255,0.5); font-size: 0.8rem;
  margin-top: 12px; font-family: 'Arial', sans-serif;
}

/* 11. MAP */
.map-embed { border-radius: var(--cabin-radius); overflow: hidden; }
.map-embed iframe { width: 100%; height: 360px; border: none; display: block; }

/* 12. VIDEO */
.video-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--cabin-radius); }
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* 13. QUICK-NAV CARDS */
.quick-nav {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px;
  margin: 32px 0;
}

.quick-nav-card {
  background: var(--bg-card); border-left: 3px solid var(--cabin-orange);
  border-radius: var(--cabin-radius); padding: 20px 22px;
  transition: transform 0.2s, box-shadow 0.2s;
  display: block; color: inherit;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.quick-nav-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); color: inherit; }
.quick-nav-card h4 { color: var(--cabin-orange); margin-bottom: 5px; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; }
.quick-nav-card p { color: var(--text-muted); margin: 0; font-size: 0.875rem; }

/* 14. TWO-COLUMN LAYOUT */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.two-col--wide { grid-template-columns: 3fr 2fr; }
.two-col img { border-radius: var(--cabin-radius); }

/* 15. INFO BOX */
.info-box {
  background: var(--bg-card); border-radius: var(--cabin-radius);
  padding: 26px 28px; border-left: 3px solid var(--cabin-orange);
  border: 1px solid var(--border); border-left: 3px solid var(--cabin-orange);
}
.info-box h4 { margin-bottom: 14px; }
.info-box li { color: var(--text-muted); font-size: 0.95rem; }

/* 16. BOOKING PLACEHOLDER */
.booking-placeholder {
  background: var(--bg-card); border: 1.5px dashed var(--border);
  border-radius: var(--cabin-radius); padding: 52px 32px;
  text-align: center; color: var(--text-muted);
}
.booking-placeholder p { font-size: 0.9rem; font-family: 'Arial', sans-serif; }
.booking-placeholder code { font-family: 'Courier New', monospace; font-size: 0.85rem; }

/* 17. STATUS PAGES */
.status-page {
  min-height: calc(100vh - var(--nav-height));
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 60px 24px;
}

.status-icon-circle {
  width: 80px; height: 80px;
  border-radius: 50%; margin: 0 auto 28px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid;
}

.status-icon-circle--success {
  background: rgba(74, 124, 89, 0.1);
  border-color: var(--cabin-success);
  color: var(--cabin-success);
}

.status-icon-circle--error {
  background: rgba(176, 57, 43, 0.08);
  border-color: var(--cabin-error);
  color: var(--cabin-error);
}

.status-icon-circle--neutral {
  background: rgba(224, 123, 60, 0.1);
  border-color: var(--cabin-orange);
  color: var(--cabin-orange);
}

.status-page h1 { margin-bottom: 16px; }
.status-page > div > p { color: var(--text-muted); max-width: 480px; margin: 0 auto 28px; }

/* 18. FOOTER */
.site-footer {
  background: var(--footer-bg); border-top: 1px solid var(--border); padding: 52px 0 26px;
}

.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 36px;
}

.footer-brand h3 { font-size: 1.1rem; margin-bottom: 8px; color: #f0f0f0; }
.footer-brand h3 span { color: var(--cabin-orange); }
.footer-brand p { color: #888; font-size: 0.875rem; margin-bottom: 20px; }

.footer-contact-item {
  display: flex; gap: 10px; align-items: flex-start;
  margin-bottom: 12px; font-size: 0.875rem; color: #999;
}

.footer-contact-item a { color: #999; transition: color 0.2s; }
.footer-contact-item a:hover { color: var(--cabin-orange); }

/* Footer SVG icons */
.footer-icon {
  flex-shrink: 0; margin-top: 1px;
  width: 14px; height: 14px;
  color: var(--cabin-orange); opacity: 0.8;
}

.footer-heading {
  font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--cabin-orange);
  margin-bottom: 14px; font-family: 'Arial', sans-serif; font-weight: 600;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: #888; font-size: 0.875rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--cabin-orange); }

.footer-bottom {
  border-top: 1px solid #2a2a2a; padding-top: 22px;
  text-align: center; color: #666;
  font-size: 0.78rem; font-family: 'Arial', sans-serif;
}

/* 19. UTILITY */
.text-muted  { color: var(--text-muted); }
.text-accent { color: var(--cabin-orange); }
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-0  { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* 20. RESPONSIVE */
@media (max-width: 900px) {
  .two-col, .two-col--wide { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-carousel { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.55rem; }
  .hero-content h1 { font-size: 2.3rem; }
  .section { padding: 52px 0; }
  .container { padding: 0 20px; }

  .nav-links {
    display: none; position: fixed;
    top: var(--nav-height); left: 0; right: 0;
    background: var(--nav-bg);
    flex-direction: column; gap: 0; padding: 8px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 13px 24px; border-bottom: none; font-size: 0.875rem; }
  .nav-toggle { display: flex; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .gallery-carousel { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .quick-nav { grid-template-columns: 1fr; }
}

/* 21. PRINT */
@media print {
  .site-nav, .site-footer, .btn { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  .accordion-body { display: block !important; }
}
