/*
Theme Name: Hill of Burns Retreats
Theme URI: https://example.com/
Author: Hill of Burns
Description: A responsive editorial WordPress theme for Hill of Burns retreats in Creetown, Dumfries & Galloway.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: hill-of-burns
*/

:root {
  --hob-ink: #1f2d2a;
  --hob-green: #315d55;
  --hob-deep: #24443f;
  --hob-sage: #dde4da;
  --hob-cream: #f5f1e9;
  --hob-pale: #f9f7f2;
  --hob-sand: #d7c5ae;
  --hob-rose: #a86b59;
  --hob-grey: #6d716f;
  --hob-white: #fff;
  --hob-serif: Georgia, 'Times New Roman', serif;
  --hob-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --hob-max: 1180px;
  --hob-radius: 2px;
  --hob-shadow: 0 18px 50px rgba(31,45,42,.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--hob-ink);
  background: var(--hob-pale);
  font-family: var(--hob-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  clip: auto !important; width: auto; height: auto;
  top: 8px; left: 8px; padding: 12px 16px; z-index: 99999;
  background: #fff; color: #000;
}

.hob-wrap { width: min(calc(100% - 44px), var(--hob-max)); margin-inline: auto; }
.hob-narrow { width: min(calc(100% - 44px), 820px); margin-inline: auto; }
.hob-section { padding: 104px 0; }
.hob-section--cream { background: var(--hob-cream); }
.hob-section--white { background: #fff; }
.hob-section--deep { background: var(--hob-deep); color: #fff; }

.hob-eyebrow {
  margin: 0 0 15px;
  color: var(--hob-rose);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.hob-section--deep .hob-eyebrow { color: var(--hob-sand); }
.hob-title {
  margin: 0;
  color: var(--hob-deep);
  font-family: var(--hob-serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 5.6vw, 5.8rem);
  line-height: .98;
  letter-spacing: -.025em;
}
.hob-title--medium { font-size: clamp(2.2rem, 4vw, 4.3rem); }
.hob-title--small { font-size: clamp(1.9rem, 3vw, 3.2rem); line-height: 1.02; }
.hob-section--deep .hob-title { color: #fff; }
.hob-lede {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--hob-grey);
  font-family: var(--hob-serif);
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  line-height: 1.55;
}
.hob-section--deep .hob-lede { color: #e8e2d8; }
.hob-copy { max-width: 680px; }
.hob-copy p { margin: 0 0 1.15em; }
.hob-rule { width: 72px; height: 1px; margin: 34px 0; background: var(--hob-sand); }

/* Header */
.hob-site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 500;
  color: #fff;
  transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}
.hob-site-header.is-scrolled {
  background: rgba(249,247,242,.96);
  color: var(--hob-deep);
  box-shadow: 0 1px 0 rgba(36,68,63,.10);
  backdrop-filter: blur(12px);
}
.hob-header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.hob-brand { text-decoration: none; display: inline-flex; flex-direction: column; line-height: 1; }
.hob-brand__name { font-family: var(--hob-serif); font-size: 1.33rem; letter-spacing: .025em; }
.hob-brand__place { margin-top: 8px; font-size: .58rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; opacity: .82; }
.hob-brand--logo .custom-logo-link { display: block; }
.hob-brand--logo .custom-logo { width: auto; max-height: 52px; max-width: 240px; }
.hob-nav { display: flex; align-items: center; gap: 23px; }
.hob-nav-list { display: flex; align-items: center; gap: 23px; margin: 0; padding: 0; list-style: none; }
.hob-nav a { text-decoration: none; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hob-nav a:hover, .hob-nav a:focus-visible { text-decoration: underline; text-underline-offset: 5px; }
.hob-nav .hob-nav-cta { padding: 11px 17px; border: 1px solid currentColor; text-decoration: none; }
.hob-menu-toggle { display: none; border: 0; background: transparent; color: inherit; width: 42px; height: 42px; padding: 9px; cursor: pointer; }
.hob-menu-toggle span { display: block; height: 1px; margin: 6px 0; background: currentColor; }

/* Hero */
.hob-hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  isolation: isolate;
  background: var(--hob-deep);
  color: #fff;
  overflow: hidden;
}
.hob-hero__image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 47%; }
.hob-hero::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(17,33,31,.12) 16%, rgba(17,33,31,.18) 46%, rgba(17,33,31,.78) 100%);
}
.hob-hero__content { padding: 190px 0 72px; }
.hob-hero .hob-eyebrow { color: #efe4d5; }
.hob-hero__title {
  max-width: 850px;
  margin: 0;
  font-family: var(--hob-serif);
  font-weight: 400;
  font-size: clamp(3.5rem, 8vw, 7.8rem);
  line-height: .88;
  letter-spacing: -.035em;
}
.hob-hero__tagline { margin-top: 26px; font-family: var(--hob-serif); font-size: clamp(1.15rem, 2vw, 1.55rem); }
.hob-hero__actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hob-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 20px;
  border: 1px solid var(--hob-deep);
  background: var(--hob-deep); color: #fff;
  text-decoration: none;
  font-size: .76rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.hob-btn:hover, .hob-btn:focus-visible { transform: translateY(-1px); background: var(--hob-green); }
.hob-btn--light { border-color: #fff; background: #fff; color: var(--hob-deep); }
.hob-btn--ghost { border-color: rgba(255,255,255,.7); background: transparent; color: #fff; }
.hob-btn--outline { background: transparent; color: var(--hob-deep); }

/* Editorial */
.hob-intro-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 70px; align-items: start; }
.hob-editorial-photo { position: relative; min-height: 640px; box-shadow: var(--hob-shadow); overflow: hidden; }
.hob-editorial-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hob-editorial-photo__small {
  width: 44%; aspect-ratio: 4/5; position: absolute; right: -34px; bottom: -46px;
  border: 10px solid var(--hob-pale); box-shadow: var(--hob-shadow); overflow: hidden;
}
.hob-editorial-photo__small img { width: 100%; height: 100%; object-fit: cover; }

.hob-image-pair { display: grid; grid-template-columns: 1.05fr .95fr; gap: 18px; margin-top: 52px; }
.hob-image-pair figure { margin: 0; min-height: 460px; overflow: hidden; }
.hob-image-pair img { height: 100%; object-fit: cover; }
.hob-image-pair figure:nth-child(2) { margin-top: 70px; }

/* Feature section */
.hob-feature-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 720px; }
.hob-feature-image { overflow: hidden; }
.hob-feature-image img { width: 100%; height: 100%; object-fit: cover; }
.hob-feature-copy { display: flex; align-items: center; padding: clamp(55px, 8vw, 110px); background: var(--hob-deep); color: #fff; }
.hob-feature-copy .hob-title { color: #fff; }
.hob-feature-copy .hob-copy { margin-top: 28px; color: #e5e5df; }

/* Cards */
.hob-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 50px; }
.hob-card { background: #fff; min-height: 100%; box-shadow: 0 1px 0 rgba(36,68,63,.09); }
.hob-card__image { aspect-ratio: 4/3; overflow: hidden; }
.hob-card__image img { width: 100%; height: 100%; object-fit: cover; }
.hob-card__body { padding: 28px 28px 32px; }
.hob-card h3 { margin: 0 0 10px; color: var(--hob-deep); font-family: var(--hob-serif); font-size: 1.6rem; font-weight: 400; }
.hob-card p { margin: 0; color: var(--hob-grey); font-size: .95rem; }

/* Amenities */
.hob-amenities { margin-top: 50px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 55px; border-top: 1px solid var(--hob-sand); }
.hob-amenity { padding: 20px 0; border-bottom: 1px solid var(--hob-sand); }
.hob-amenity strong { color: var(--hob-deep); }

/* Food */
.hob-food-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 60px; align-items: center; }
.hob-food-collage { display: grid; grid-template-columns: .9fr 1.1fr; grid-template-rows: 280px 300px; gap: 14px; }
.hob-food-collage figure { margin: 0; overflow: hidden; }
.hob-food-collage figure:first-child { grid-row: 1 / 3; }
.hob-food-collage img { height: 100%; object-fit: cover; }

.hob-menus { margin-top: 54px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hob-menu-panel { background: #fff; border: 1px solid rgba(36,68,63,.12); }
.hob-menu-panel summary {
  list-style: none; cursor: pointer; padding: 25px 30px;
  display: flex; justify-content: space-between; gap: 18px; align-items: center;
  color: var(--hob-deep); font-family: var(--hob-serif); font-size: 1.5rem;
}
.hob-menu-panel summary::-webkit-details-marker { display: none; }
.hob-menu-panel summary::after { content: '+'; font-family: var(--hob-sans); font-size: 1.4rem; font-weight: 300; }
.hob-menu-panel[open] summary::after { content: '−'; }
.hob-menu-panel__content { padding: 0 30px 28px; color: var(--hob-grey); }
.hob-menu-panel__content h4 { margin: 24px 0 5px; color: var(--hob-green); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.hob-menu-panel__content p { margin: 0; font-size: .94rem; }

/* Gallery */
.hob-gallery { margin-top: 52px; display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 120px; gap: 12px; }
.hob-gallery figure { margin: 0; overflow: hidden; }
.hob-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.hob-gallery figure:hover img { transform: scale(1.025); }
.hob-gallery figure:nth-child(1) { grid-column: span 7; grid-row: span 4; }
.hob-gallery figure:nth-child(2) { grid-column: span 5; grid-row: span 2; }
.hob-gallery figure:nth-child(3) { grid-column: span 5; grid-row: span 2; }
.hob-gallery figure:nth-child(4) { grid-column: span 4; grid-row: span 3; }
.hob-gallery figure:nth-child(5) { grid-column: span 4; grid-row: span 3; }
.hob-gallery figure:nth-child(6) { grid-column: span 4; grid-row: span 3; }
.hob-gallery figure:nth-child(7) { grid-column: span 6; grid-row: span 3; }
.hob-gallery figure:nth-child(8) { grid-column: span 6; grid-row: span 3; }

/* Enquiry */
.hob-enquiry-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.hob-contact-lines { margin-top: 38px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,.22); }
.hob-contact-lines p { margin: 6px 0; color: #ebe5dc; }
.hob-contact-lines a { text-underline-offset: 4px; }
.hob-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hob-field { display: flex; flex-direction: column; gap: 8px; }
.hob-field--full { grid-column: 1 / -1; }
.hob-field label { color: #ebe5dc; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hob-field input, .hob-field textarea {
  width: 100%; border: 1px solid rgba(255,255,255,.28); border-radius: 0;
  background: rgba(255,255,255,.04); color: #fff;
  padding: 13px 14px; outline: none;
}
.hob-field textarea { min-height: 150px; resize: vertical; }
.hob-field input:focus, .hob-field textarea:focus { border-color: var(--hob-sand); background: rgba(255,255,255,.07); }
.hob-form .hob-btn { justify-self: start; margin-top: 4px; }
.hob-honeypot { position: absolute !important; left: -9999px !important; }
.hob-form-notice { margin: 0 0 22px; padding: 13px 15px; border: 1px solid rgba(255,255,255,.28); }

/* Terms */
.hob-terms { padding: 70px 0; background: #fff; }
.hob-terms details { border-top: 1px solid var(--hob-sand); border-bottom: 1px solid var(--hob-sand); }
.hob-terms summary { cursor: pointer; padding: 20px 0; color: var(--hob-deep); font-weight: 700; text-transform: uppercase; letter-spacing: .07em; font-size: .78rem; }
.hob-terms-content { padding: 0 0 20px; columns: 2; column-gap: 55px; }
.hob-term { break-inside: avoid; margin: 0 0 25px; }
.hob-term h3 { margin: 0 0 5px; color: var(--hob-green); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.hob-term p { margin: 0; color: var(--hob-grey); font-size: .88rem; }

/* Footer */
.hob-footer { padding: 42px 0; background: #17322e; color: #d9d7ce; }
.hob-footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; }
.hob-footer-brand { font-family: var(--hob-serif); color: #fff; font-size: 1.4rem; }
.hob-footer p { margin: 6px 0 0; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.hob-footer a { text-underline-offset: 4px; }

@media (max-width: 980px) {
  .hob-site-header { background: rgba(36,68,63,.92); color: #fff; }
  .hob-site-header.is-scrolled { background: rgba(249,247,242,.98); color: var(--hob-deep); }
  .hob-menu-toggle { display: block; }
  .hob-nav {
    display: none; position: absolute; left: 0; right: 0; top: 82px;
    padding: 22px; background: var(--hob-pale); color: var(--hob-deep);
    flex-direction: column; align-items: stretch; gap: 0; box-shadow: var(--hob-shadow);
  }
  .hob-nav.is-open { display: flex; }
  .hob-nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .hob-nav a { padding: 13px 0; border-bottom: 1px solid rgba(36,68,63,.10); }
  .hob-nav .hob-nav-cta { border: 0; padding: 13px 0; }
  .hob-intro-grid, .hob-food-grid, .hob-enquiry-grid { grid-template-columns: 1fr; gap: 48px; }
  .hob-editorial-photo { min-height: 560px; margin-right: 35px; }
  .hob-feature-grid { grid-template-columns: 1fr; }
  .hob-feature-image { min-height: 560px; }
  .hob-cards { grid-template-columns: 1fr 1fr; }
  .hob-menus { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .hob-wrap, .hob-narrow { width: min(calc(100% - 30px), var(--hob-max)); }
  .hob-section { padding: 74px 0; }
  .hob-header-inner { min-height: 72px; }
  .hob-nav { top: 72px; }
  .hob-brand__place { display: none; }
  .hob-hero { min-height: 86svh; }
  .hob-hero__content { padding: 150px 0 48px; }
  .hob-hero__title { font-size: clamp(3.2rem, 17vw, 5.8rem); }
  .hob-image-pair { grid-template-columns: 1fr; }
  .hob-image-pair figure, .hob-image-pair figure:nth-child(2) { min-height: 380px; margin-top: 0; }
  .hob-editorial-photo { min-height: 430px; margin-right: 0; }
  .hob-editorial-photo__small { width: 45%; right: -8px; bottom: -28px; border-width: 7px; }
  .hob-feature-image { min-height: 420px; }
  .hob-feature-copy { padding: 64px 24px; }
  .hob-cards { grid-template-columns: 1fr; }
  .hob-amenities { grid-template-columns: 1fr; }
  .hob-food-collage { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 230px; }
  .hob-gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .hob-gallery figure:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .hob-gallery figure:nth-child(1), .hob-gallery figure:nth-child(7) { grid-column: span 2; }
  .hob-form { grid-template-columns: 1fr; }
  .hob-field--full { grid-column: auto; }
  .hob-terms-content { columns: 1; }
  .hob-footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
