/*
Theme Name:  HCLR Well-Rooted
Theme URI:   https://hillcountrylakesrentals.com
Author:      Hill Country Lakes Rentals
Author URI:  https://hillcountrylakesrentals.com
Description: Direct booking theme for Hill Country Lakes Rentals — Texas Hill Country vacation properties with OwnerRez integration, seasonal design system, and fully accessible property pages.
Version:     1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hclr-well-rooted
Tags:        vacation-rental, booking, full-width-template, custom-menu, featured-images, custom-logo, responsive-layout, accessibility-ready
*/

/* ══════════════════════════════════════════════════════════════
   WELL-ROOTED DESIGN TOKENS
══════════════════════════════════════════════════════════════ */
:root {
  /* Colour palette */
  --wr-hill-shadow:   #3A3428;
  --wr-deep-oak:      #2E3C28;
  --wr-live-oak:      #4A5E40;
  --wr-caliche-gold:  #C8A870;
  --wr-dusk-rose:     #9C7060;
  --wr-bluebell:      #7A8EA0;
  --wr-cedar-sage:    #6E7E60;
  --wr-limestone:     #D8CEBC;
  --wr-parchment:     #F2EBD8;
  --wr-chalk-bluff:   #F8F4EC;
  --wr-error:         #c0392b;
  --wr-success:       #2e7d32;

  /* Typography */
  --font-display: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body:    'Outfit', system-ui, -apple-system, sans-serif;

  /* Spacing scale */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Layout */
  --max-width:       1280px;
  --content-width:   760px;
  --header-height:   72px;

  /* Borders & radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 100px;

  /* Shadows */
  --shadow-xs:  0 1px 4px rgba(46,60,40,.08);
  --shadow-sm:  0 2px 8px rgba(46,60,40,.10);
  --shadow-md:  0 4px 16px rgba(46,60,40,.14);
  --shadow-lg:  0 8px 32px rgba(46,60,40,.18);

  /* Transitions */
  --transition-fast: .15s ease;
  --transition-base: .25s ease;
  --transition-slow: .4s ease;
}

/* ══════════════════════════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--wr-hill-shadow);
  background: var(--wr-parchment);
  overflow-x: hidden;
}

/* ── Accessibility ───────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
  font-family: var(--font-body); font-size: .9rem;
  padding: 12px 24px; background: var(--wr-deep-oak); color: var(--wr-parchment);
  text-decoration: none; border-radius: 0 0 var(--radius-md) 0; z-index: 9999;
}
.skip-link:focus { left: 0; top: 0; width: auto; height: auto; }

/* Focus styles */
:focus-visible {
  outline: 3px solid var(--wr-caliche-gold);
  outline-offset: 3px;
}

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--wr-hill-shadow);
  margin-bottom: var(--space-md);
}

h1 { font-size: clamp(3rem, 4vw, 3.25rem); }
h2 { font-size: clamp(2rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 600; }
h5, h6 { font-size: 1rem; font-family: var(--font-body); font-weight: 600; }

p { font-size: .9625rem; line-height: 1.75; margin-bottom: var(--space-md); color: var(--wr-hill-shadow); }
p:last-child { margin-bottom: 0; }

a { color: var(--wr-live-oak); transition: color var(--transition-fast); }
a:hover { color: var(--wr-deep-oak); }

ul, ol { padding-left: var(--space-xl); margin-bottom: var(--space-md); }
li { margin-bottom: var(--space-xs); }

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

strong { font-weight: 700; }
em     { font-style: italic; }

blockquote {
  border-left: 4px solid var(--wr-caliche-gold);
  padding: var(--space-md) var(--space-lg);
  background: var(--wr-chalk-bluff);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-display);
  font-style: italic;
  margin: var(--space-xl) 0;
}

hr { border: none; border-top: 1px solid var(--wr-limestone); margin: var(--space-xl) 0; }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
.container--narrow { max-width: var(--content-width); }
.container--wide   { max-width: 1440px; }

.site-content { padding-top: var(--header-height); }

.section { padding: var(--space-2xl) 0; }
.section--sm { padding: var(--space-xl) 0; }
.section--lg { padding: var(--space-3xl) 0; }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--space-lg); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm);
  padding: 12px 28px; border-radius: var(--radius-md);
  font-family: var(--font-body); font-size: 0.625rem; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.3em;
  cursor: pointer; border: 2px solid transparent; text-decoration: none;
  transition: background var(--transition-base), color var(--transition-base),
              transform var(--transition-fast), box-shadow var(--transition-base);
  line-height: 1; min-height: 40px;
}
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

.btn--primary    { background: var(--wr-live-oak);  color: var(--wr-parchment); border-color: var(--wr-live-oak); }
.btn--primary:hover  { background: var(--wr-deep-oak); border-color: var(--wr-deep-oak); color: var(--wr-parchment); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--secondary  { background: transparent; color: var(--wr-hill-shadow); border-color: var(--wr-hill-shadow); }
.btn--secondary:hover { background: var(--wr-hill-shadow); color: var(--wr-parchment); transform: translateY(-2px); }

/* Caliche Gold = accent only; gold variant uses gold as accent border/text, not background */
.btn--gold       { background: transparent; color: var(--wr-caliche-gold); border-color: var(--wr-caliche-gold); }
.btn--gold:hover { background: var(--wr-caliche-gold); color: var(--wr-hill-shadow); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--ghost      { background: rgba(46,60,40,.12); color: var(--wr-parchment); border-color: rgba(242,235,216,.5); }
.btn--ghost:hover { background: rgba(46,60,40,.25); color: var(--wr-parchment); }

.btn--sm { padding: 8px 18px; font-size: 0.6rem; min-height: 32px; }
.btn--lg { padding: 16px 36px; font-size: 0.7rem; min-height: 48px; }
.btn--full { width: 100%; }

/* ── Forms ──────────────────────────────────────────────────── */
.form-group { margin-bottom: var(--space-lg); }

.form-group label {
  display: block; font-size: .8rem; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; color: var(--wr-hill-shadow); margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--wr-limestone);
  border-radius: var(--radius-md);
  font-family: var(--font-body); font-size: .9rem;
  color: var(--wr-hill-shadow); background: var(--wr-chalk-bluff);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--wr-caliche-gold);
  box-shadow: 0 0 0 3px rgba(200,168,112,.2);
}

.form-group textarea { min-height: 100px; resize: vertical; }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--wr-chalk-bluff); border-radius: var(--radius-md);
  overflow: hidden; border: 1px solid var(--wr-limestone);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.card__image { overflow: hidden; }
.card__image img { width: 100%; height: 220px; object-fit: cover; transition: transform var(--transition-slow); }
.card:hover .card__image img { transform: scale(1.04); }

.card__body { padding: var(--space-lg) var(--space-lg) var(--space-lg); }

/* ── Site Header ────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-height);
  background: rgba(46,60,40,.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}
.site-header.is-sticky { box-shadow: var(--shadow-md); }
.site-header.is-transparent { background: transparent; }

.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: var(--max-width);
}

/* Logo */
.site-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.site-logo img { height: 40px; width: auto; }
.site-logo__text { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--wr-parchment); line-height: 1.2; }
.site-logo__sub { display: block; font-family: var(--font-body); font-style: normal; font-size: .65rem; font-weight: 400; letter-spacing: 1.5px; text-transform: uppercase; color: var(--wr-caliche-gold); margin-top: 2px; }

/* Primary nav */
.primary-nav { display: flex; list-style: none; gap: var(--space-xl); margin: 0; padding: 0; align-items: center; }
.primary-nav li a { font-size: .85rem; font-weight: 500; color: rgba(242,235,216,.88); text-decoration: none; letter-spacing: .3px; transition: color var(--transition-fast); }
.primary-nav li a:hover, .primary-nav li.current-menu-item a { color: var(--wr-caliche-gold); }

/* Nav CTA */
.nav-cta { margin-left: var(--space-md); }

/* Hamburger */
.nav-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 6px; color: var(--wr-parchment); flex-direction: column; gap: 5px;
}
.nav-hamburger span { display: block; width: 22px; height: 2px; background: currentColor; transition: transform var(--transition-base), opacity var(--transition-fast); border-radius: 2px; }
.nav-hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-active span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav-drawer {
  display: none; position: fixed; top: var(--header-height); left: 0; right: 0; bottom: 0;
  background: var(--wr-deep-oak); z-index: 99; padding: var(--space-xl) var(--space-lg);
  overflow-y: auto;
}
.mobile-nav-drawer.is-open { display: block; }
.mobile-nav-drawer ul { list-style: none; padding: 0; }
.mobile-nav-drawer ul li { border-bottom: 1px solid rgba(242,235,216,.1); }
.mobile-nav-drawer ul li a { display: block; padding: var(--space-md) 0; color: var(--wr-parchment); font-size: 1.1rem; text-decoration: none; }
.mobile-nav-drawer .btn { margin-top: var(--space-xl); width: 100%; justify-content: center; }

/* ── Site Footer ────────────────────────────────────────────── */
.site-footer {
  background: var(--wr-hill-shadow); color: rgba(242,235,216,.78);
  padding: var(--space-2xl) 0 var(--space-lg);
  font-size: .875rem;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr; gap: var(--space-2xl); margin-bottom: var(--space-xl); }

.footer-logo { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--wr-parchment); margin-bottom: var(--space-md); display: block; }
.footer-tagline { color: rgba(242,235,216,.6); font-size: .85rem; line-height: 1.6; margin-bottom: var(--space-lg); }
.footer-social { display: flex; gap: var(--space-md); }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(242,235,216,.1); color: var(--wr-parchment); text-decoration: none; font-size: 1rem; transition: background var(--transition-fast); }
.footer-social a:hover { background: var(--wr-caliche-gold); color: var(--wr-deep-oak); }

.footer-heading { font-family: var(--font-body); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--wr-caliche-gold); margin-bottom: var(--space-md); }

.footer-nav { list-style: none; padding: 0; }
.footer-nav li { margin-bottom: var(--space-sm); }
.footer-nav a { color: rgba(242,235,216,.7); text-decoration: none; transition: color var(--transition-fast); }
.footer-nav a:hover { color: var(--wr-caliche-gold); }

.footer-contact p { color: rgba(242,235,216,.7); margin-bottom: var(--space-sm); line-height: 1.5; }
.footer-contact a { color: rgba(242,235,216,.7); }
.footer-contact a:hover { color: var(--wr-caliche-gold); }

.footer-bottom {
  border-top: 1px solid rgba(242,235,216,.1); padding-top: var(--space-lg);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--space-md);
  font-size: .78rem; color: rgba(242,235,216,.5);
}
.footer-bottom-nav { display: flex; gap: var(--space-lg); }
.footer-bottom-nav a { color: rgba(242,235,216,.5); text-decoration: none; }
.footer-bottom-nav a:hover { color: rgba(242,235,216,.8); }

/* ── Hero Section ───────────────────────────────────────────── */
.hero-section {
  position: relative; width: 100vw; left: calc(-50vw + 50%);
  overflow: hidden;
}

/* ── Utility ────────────────────────────────────────────────── */
.text-center   { text-align: center; }
.text-left     { text-align: left; }
.text-muted    { color: var(--wr-cedar-sage); }
.bg-parchment  { background: var(--wr-parchment); }
.bg-chalk      { background: var(--wr-chalk-bluff); }
.bg-deep-oak   { background: var(--wr-deep-oak); }

/* Spacing */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: var(--space-sm); } .mt-2 { margin-top: var(--space-md); } .mt-3 { margin-top: var(--space-lg); } .mt-4 { margin-top: var(--space-xl); } .mt-5 { margin-top: var(--space-2xl); }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: var(--space-sm); } .mb-2 { margin-bottom: var(--space-md); } .mb-3 { margin-bottom: var(--space-lg); } .mb-4 { margin-bottom: var(--space-xl); }

/* ── Breadcrumbs ────────────────────────────────────────────── */
.breadcrumbs { font-size: .8rem; color: var(--wr-cedar-sage); margin-bottom: var(--space-lg); }
.breadcrumbs a { color: var(--wr-cedar-sage); text-decoration: none; }
.breadcrumbs a:hover { color: var(--wr-live-oak); }
.breadcrumbs span + span::before { content: ' / '; padding: 0 4px; opacity: .5; }

/* ── Pagination ─────────────────────────────────────────────── */
.wp-pagenavi, .page-numbers { text-align: center; margin: var(--space-xl) 0; }
.page-numbers li { display: inline-block; margin: 0 3px; }
.page-numbers li a, .page-numbers li span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-md);
  font-size: .85rem; text-decoration: none; color: var(--wr-deep-oak);
  border: 1px solid var(--wr-limestone); transition: all var(--transition-fast);
}
.page-numbers li a:hover, .page-numbers li .current {
  background: var(--wr-deep-oak); color: var(--wr-parchment); border-color: var(--wr-deep-oak);
}

/* ── Section Title Block ─────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: var(--space-2xl); }
.section-header h2 { margin-bottom: var(--space-sm); }
.section-header p { font-size: 1rem; color: var(--wr-cedar-sage); max-width: 560px; margin: 0 auto; }
.section-eyebrow { display: block; font-family: var(--font-body); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--wr-caliche-gold); margin-bottom: var(--space-sm); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-height: 60px; --space-2xl: 48px; --space-3xl: 64px; }
  .primary-nav, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-md); }
}
