/*
Theme Name: SweetStay
Theme URI: https://sweetstay.uk
Author: Zenlabra
Author URI: https://zenlabra.uk
Description: Custom theme for SweetStay.uk — UK glamping and unique stays directory. Built by Zenlabra, an AuraLink Group company.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Private
Tags: glamping, directory, affiliate, custom
*/

/* ── TOKENS ── */
:root {
  --ink:       #1A1208;
  --char:      #2E2416;
  --ember:     #D4541A;
  --amber:     #E8941A;
  --dusk:      #6B3FA0;
  --cream:     #FAF6EF;
  --linen:     #F0E8DA;
  --birch:     #C9B99A;
  --ash:       #8A7E72;
  --smoke:     #4A3F35;
  --white:     #FFFFFF;

  --fh: 'Playfair Display', Georgia, serif;
  --fb: 'DM Sans', system-ui, sans-serif;

  --radius:    12px;
  --shadow:    0 4px 24px rgba(26,18,8,.08);
  --shadow-lg: 0 12px 48px rgba(26,18,8,.12);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--fb);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: var(--fh);
  color: var(--char);
  line-height: 1.15;
  letter-spacing: -.3px;
}
h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 900; }
h2 { font-size: clamp(24px, 3.5vw, 36px); font-weight: 700; }
h3 { font-size: clamp(18px, 2.5vw, 24px); font-weight: 700; }
h4 { font-size: 16px; font-weight: 600; }
p  { color: var(--smoke); line-height: 1.75; }

/* ── LAYOUT ── */
.container { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.container--narrow { max-width: 720px; margin: 0 auto; padding: 0 28px; }
section { padding: 72px 0; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--fb); font-size: 14px; font-weight: 600;
  padding: 13px 24px; border-radius: 9px;
  border: none; cursor: pointer; transition: all .18s;
  text-decoration: none;
}
.btn--primary { background: var(--ember); color: var(--white); }
.btn--primary:hover { background: #BF4714; }
.btn--secondary { background: var(--linen); color: var(--smoke); border: 1px solid var(--birch); }
.btn--secondary:hover { background: var(--birch); }
.btn--ghost { background: transparent; color: var(--ember); border: 1.5px solid var(--ember); }
.btn--ghost:hover { background: var(--ember); color: var(--white); }

/* ── HEADER / NAV ── */
.site-header {
  background: var(--ink);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.site-logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.site-logo__icon {
  width: 34px; height: 34px; background: var(--ember);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.site-logo__name {
  font-family: var(--fh); font-size: 20px; font-weight: 900;
  color: var(--white); letter-spacing: -.3px;
}
.site-logo__name em { font-style: italic; color: var(--amber); }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,.55);
  padding: 8px 14px; border-radius: 7px; transition: all .15s;
}
.site-nav a:hover, .site-nav a.active { color: var(--white); background: rgba(255,255,255,.07); }
.site-nav .nav-cta {
  background: var(--ember); color: var(--white) !important;
  margin-left: 6px; font-weight: 600;
}
.site-nav .nav-cta:hover { background: #BF4714; }

.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--white); border-radius: 2px; transition: all .25s;
}
.nav-mobile {
  display: none; flex-direction: column; gap: 4px;
  background: var(--ink); padding: 12px 28px 16px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,.6);
  padding: 11px 14px; border-radius: 8px; transition: all .15s;
}
.nav-mobile a:hover { color: var(--white); background: rgba(255,255,255,.07); }

/* ── FOOTER ── */
.site-footer {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 48px 0 28px;
}
.site-footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.site-footer__brand p { font-size: 13px; color: rgba(255,255,255,.4); line-height: 1.7; margin-top: 12px; max-width: 300px; }
.site-footer__col h4 { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 14px; font-family: var(--fb); }
.site-footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.site-footer__col ul li a { font-size: 13px; color: rgba(255,255,255,.45); transition: color .15s; }
.site-footer__col ul li a:hover { color: var(--white); }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 20px; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.site-footer__bottom p { font-size: 11px; color: rgba(255,255,255,.25); }
.site-footer__bottom a { color: rgba(255,255,255,.35); transition: color .15s; }
.site-footer__bottom a:hover { color: rgba(255,255,255,.65); }
.powered-by { display: flex; align-items: center; gap: 5px; font-size: 11px; color: rgba(255,255,255,.2); }
.powered-by a { color: rgba(255,255,255,.3); }

/* ── CARDS ── */
.listing-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--linen);
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.listing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.listing-card__img {
  height: 200px; background: linear-gradient(135deg, #3D5C35, #1A2E18);
  position: relative; overflow: hidden;
}
.listing-card__img img { width: 100%; height: 100%; object-fit: cover; }
.listing-card__badges { position: absolute; bottom: 10px; left: 12px; display: flex; gap: 6px; }
.badge {
  font-size: 10px; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; padding: 3px 9px; border-radius: 4px;
}
.badge--type  { background: var(--ember); color: var(--white); }
.badge--tag   { background: var(--dusk);  color: var(--white); }
.badge--green { background: var(--green, #1D9E75); color: var(--white); }
.listing-card__body { padding: 18px 18px 20px; }
.listing-card__title { font-family: var(--fh); font-size: 17px; font-weight: 700; color: var(--char); margin-bottom: 4px; }
.listing-card__loc   { font-size: 12px; color: var(--ash); margin-bottom: 12px; display: flex; align-items: center; gap: 4px; }
.listing-card__footer { display: flex; align-items: center; justify-content: space-between; }
.listing-card__price  { font-size: 14px; font-weight: 700; color: var(--ember); }
.listing-card__rating { font-size: 12px; color: var(--ash); display: flex; align-items: center; gap: 3px; }

/* ── BLOG CARDS ── */
.blog-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--linen); overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.blog-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.blog-card__img { height: 180px; background: var(--linen); overflow: hidden; }
.blog-card__img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card__body { padding: 20px; }
.blog-card__cat  { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ember); margin-bottom: 8px; }
.blog-card__title { font-family: var(--fh); font-size: 16px; font-weight: 700; color: var(--char); line-height: 1.3; margin-bottom: 8px; }
.blog-card__excerpt { font-size: 12px; color: var(--ash); line-height: 1.7; margin-bottom: 14px; }
.blog-card__meta { font-size: 11px; color: var(--birch); }

/* ── FORMS ── */
.ss-form .field { margin-bottom: 18px; }
.ss-form label { display: block; font-size: 12px; font-weight: 600; color: var(--smoke); margin-bottom: 6px; }
.ss-form input,
.ss-form textarea,
.ss-form select {
  width: 100%; font-family: var(--fb); font-size: 14px;
  background: var(--white); color: var(--ink);
  border: 1.5px solid var(--linen); border-radius: 9px;
  padding: 11px 14px; outline: none; transition: border-color .2s;
}
.ss-form input:focus,
.ss-form textarea:focus,
.ss-form select:focus { border-color: var(--ember); }
.ss-form textarea { resize: vertical; line-height: 1.6; }

/* ── HERO (homepage) ── */
.hero { background: var(--ink); overflow: hidden; position: relative; }
.hero::after {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(212,84,26,.08), transparent 65%);
  pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 1;
  padding: 80px 0 72px;
  max-width: 720px;
}
.hero__eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--amber); margin-bottom: 16px;
}
.hero h1 { color: var(--white); margin-bottom: 18px; }
.hero h1 em { font-style: italic; color: var(--amber); }
.hero__desc { font-size: 17px; color: rgba(255,255,255,.55); max-width: 480px; margin-bottom: 36px; font-weight: 300; }
.hero__search {
  display: flex; gap: 0; max-width: 520px;
  background: var(--white); border-radius: 10px; overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
}
.hero__search input {
  flex: 1; border: none; padding: 14px 18px;
  font-family: var(--fb); font-size: 14px; color: var(--ink); outline: none;
}
.hero__search button {
  background: var(--ember); color: var(--white); border: none;
  padding: 14px 22px; font-family: var(--fb); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background .15s; white-space: nowrap;
}
.hero__search button:hover { background: #BF4714; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hero__tag {
  font-size: 12px; font-weight: 500; padding: 5px 13px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.13);
  border-radius: 20px; color: rgba(255,255,255,.65); cursor: pointer;
  transition: all .15s;
}
.hero__tag:hover { background: rgba(255,255,255,.14); color: var(--white); }

/* ── SECTION HEADERS ── */
.section-header { margin-bottom: 40px; }
.section-header__eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--ember); margin-bottom: 8px; }
.section-header h2 { margin-bottom: 8px; }
.section-header p { font-size: 15px; color: var(--ash); max-width: 500px; }

/* ── GRIDS ── */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }

/* ── CATEGORY CHIPS ── */
.cat-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-chip {
  display: flex; align-items: center; gap: 8px;
  background: var(--white); border: 1.5px solid var(--linen);
  border-radius: 10px; padding: 10px 16px;
  font-size: 13px; font-weight: 600; color: var(--smoke);
  transition: all .15s; text-decoration: none;
}
.cat-chip:hover { border-color: var(--ember); color: var(--ember); background: rgba(212,84,26,.04); }
.cat-chip__icon { font-size: 18px; }
.cat-chip__count { font-size: 11px; color: var(--ash); font-weight: 400; }

/* ── CTA BAND ── */
.cta-band {
  background: var(--char); padding: 56px 0; text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band h2 em { font-style: italic; color: var(--amber); }
.cta-band p { color: rgba(255,255,255,.5); max-width: 440px; margin: 0 auto 28px; font-size: 15px; }
.cta-band__btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── UTILITIES ── */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .nav-burger { display: flex; }
  .site-footer__grid { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
  .hero__inner { padding: 56px 0 48px; }
  .hero__search { flex-direction: column; }
  .hero__search input { border-radius: 8px 8px 0 0; }
  .hero__search button { border-radius: 0 0 8px 8px; }
}


/* logo-updated */
.site-logo__icon {
  width: auto;
  height: auto;
  background: none;
  display: flex;
  align-items: center;
  border-radius: 0;
}
.site-logo svg rect:first-child {
  /* ember bg baked into SVG */
}
.site-logo__name {
  font-family: var(--fh);
  font-size: 22px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.5px;
  line-height: 1;
}
.site-logo__name em {
  font-style: italic;
  color: var(--amber);
}

/* Site tagline under hero */
.site-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 6px;
}

/* Favicon registered via functions */
