/*
Theme Name: Niles Dog Lodge Style
Theme URI: https://example.com/
Author: (Your Team)
Author URI: https://example.com/
Description: Style-only theme for Niles Dog Lodge. Includes header/footer and global CSS. No custom page templates.
Version: 0.1.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: niles-dog-lodge
Tags: custom-logo, one-column, responsive-layout
*/

/* ==========================================================
   Design Tokens
   ========================================================== */
:root {
  --ndl-max-width: 1200px;
  --ndl-gutter: 20px;

  --ndl-color-bg: #ffffff;
  --ndl-color-surface: #f6f7f9;
  --ndl-color-text: #121417;
  --ndl-color-muted: #5b6470;

  --ndl-color-primary: #1f6feb; /* accent */
  --ndl-color-primary-600: #1a5fd0;
  --ndl-color-border: #e5e7eb;

  --ndl-radius: 14px;

  --ndl-font-sans: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --ndl-font-size: 16px;
  --ndl-line-height: 1.55;

  --ndl-shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --ndl-shadow-md: 0 8px 24px rgba(0,0,0,.12);
}

/* ==========================================================
   Base
   ========================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ndl-font-sans);
  font-size: var(--ndl-font-size);
  line-height: var(--ndl-line-height);
  color: var(--ndl-color-text);
  background: var(--ndl-color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--ndl-color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
hr { border: 0; border-top: 1px solid var(--ndl-color-border); }

.ndl-container {
  max-width: var(--ndl-max-width);
  margin: 0 auto;
  padding: 0 var(--ndl-gutter);
}

/* ==========================================================
   Header
   ========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ndl-color-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

/* Logo: lock display height to 48px (prevents header blow-up) */
.site-brand__logo,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  max-height: 48px;
}
.custom-logo-link img.custom-logo,
.site-brand__logo img,
.site-brand__logo svg {
  display: block;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.site-brand__title {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 18px;
  color: var(--ndl-color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Menu */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}
.primary-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.primary-nav a {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--ndl-color-text);
  font-weight: 600;
}
.primary-nav a:hover {
  background: var(--ndl-color-surface);
  text-decoration: none;
}
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
  background: rgba(31,111,235,.12);
  color: var(--ndl-color-primary-600);
}

/* Mobile */
.menu-toggle {
  display: none;
  border: 1px solid var(--ndl-color-border);
  background: #fff;
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
}
@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; }
  .primary-nav ul {
    display: none;
    position: absolute;
    right: var(--ndl-gutter);
    top: 72px;
    background: #fff;
    border: 1px solid var(--ndl-color-border);
    border-radius: 14px;
    box-shadow: var(--ndl-shadow-md);
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    min-width: 220px;
  }
  .primary-nav.is-open ul { display: flex; }
  .primary-nav a { border-radius: 12px; }
}

/* ==========================================================
   Content
   ========================================================== */
.site-main { padding: 32px 0 56px; }
.entry-title { letter-spacing: -0.02em; }
.entry-content { max-width: 78ch; }
.entry-content p { margin: 0 0 1em; }
.wp-block-button__link { border-radius: 999px !important; }

/* ==========================================================
   Footer (placeholder)
   ========================================================== */
.site-footer {
  border-top: 1px solid var(--ndl-color-border);
  background: var(--ndl-color-surface);
}
.site-footer__inner {
  padding: 28px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  color: var(--ndl-color-muted);
  font-size: 14px;
}
