/*
Theme Name: Tree of Life Cottage
Theme URI: https://holos-wellnesscentre.com
Author: The HOLOS Wellness Centre
Description: A bespoke presentation theme for Tree of Life Cottage, Conwy.
Version: 1.0.2
Text Domain: tree-of-life-cottage
*/

:root {
  --moss: #585c3b;
  --deep-moss: #343824;
  --ink: #212322;
  --ivory: #f1efe8;
  --sage: #ccc8bf;
  --clay: #a76348;
  --white: #fff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.admin-bar .site-header { top: 32px; }

@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

a { color: inherit; }

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

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  height: 106px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 76px);
  border-bottom: 1px solid rgba(255,255,255,.28);
  color: var(--white);
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
}

.brand img {
  width: 104px;
  filter: brightness(0) invert(1);
}

.brand span {
  padding-left: 18px;
  border-left: 1px solid rgba(255,255,255,.45);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  letter-spacing: .02em;
}

nav { display: flex; align-items: center; gap: 34px; }

nav a {
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .08em;
}

.nav-contact {
  border: 1px solid rgba(255,255,255,.72);
  padding: 12px 18px;
  transition: background .2s, color .2s;
}

.nav-contact:hover, .nav-contact:focus-visible { background: var(--white); color: var(--moss); }

.hero {
  min-height: 760px;
  height: 100svh;
  position: relative;
  color: var(--white);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-image, .hero-shade { position: absolute; inset: 0; }

.hero-image {
  background: url('assets/images/hero.jpg') center 56% / cover no-repeat;
  transform: scale(1.015);
}

.hero-shade {
  background:
    linear-gradient(270deg, rgba(25,29,17,.82) 0%, rgba(25,29,17,.46) 44%, rgba(25,29,17,.04) 77%),
    linear-gradient(0deg, rgba(18,20,13,.38), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(660px, 48vw);
  margin-left: auto;
  margin-right: clamp(24px, 7vw, 112px);
  padding-top: 82px;
}

.eyebrow {
  margin: 0 0 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.eyebrow.dark { color: var(--moss); }

h1, h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -.045em;
}

h1 {
  margin: 0;
  font-size: clamp(66px, 7vw, 112px);
  line-height: 1.02;
}

.hero-copy {
  width: min(510px, 100%);
  margin: 32px 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 21px;
  line-height: 1.55;
}

.button {
  display: inline-block;
  padding: 16px 24px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
}

.button-light { background: var(--white); color: var(--moss); }

.scroll-cue {
  position: absolute;
  z-index: 2;
  right: clamp(24px, 5vw, 76px);
  bottom: 38px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.scroll-cue i { font-size: 22px; font-style: normal; }

.section {
  padding: clamp(84px, 11vw, 160px) clamp(24px, 8vw, 120px);
}

.intro, .location {
  display: grid;
  grid-template-columns: minmax(150px, .7fr) 2.4fr;
  gap: clamp(44px, 8vw, 140px);
}

.section-kicker { display: flex; align-items: flex-start; gap: 18px; padding-top: 8px; }

.section-kicker span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--moss);
  border-radius: 50%;
  color: var(--moss);
  font-size: 10px;
}

.section-kicker p {
  margin: 7px 0 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.lead {
  margin: 0;
  max-width: 940px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(35px, 4.1vw, 62px);
  line-height: 1.13;
  letter-spacing: -.025em;
}

.two-column-copy {
  max-width: 780px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 62px;
  margin-left: auto;
  color: #5a5c57;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.75;
}

.gallery-section { background: var(--deep-moss); color: var(--white); }

.gallery-heading {
  display: grid;
  grid-template-columns: minmax(150px, .7fr) 2.4fr;
  gap: clamp(44px, 8vw, 140px);
}

.section-kicker.light span { border-color: var(--sage); color: var(--sage); }

.gallery-heading h2, .nature-copy h2, .location h2, .contact h2 {
  margin: 0 0 30px;
  font-size: clamp(58px, 7vw, 105px);
  line-height: .92;
}

.gallery-heading > div:last-child > p {
  max-width: 620px;
  color: rgba(255,255,255,.7);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.7;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  grid-template-rows: 36vw 31vw;
  gap: 12px;
  padding: 0 12px 12px;
}

.gallery-grid figure { margin: 0; overflow: hidden; }

.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }

.gallery-grid figure:hover img { transform: scale(1.025); }

.gallery-wide { grid-column: 1; }
.gallery-tall { grid-column: 2; grid-row: 1 / span 2; }
.gallery-standard { grid-row: 2; }
.gallery-standard:nth-of-type(4) { display: none; }

.nature {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
}

.nature-image { min-height: 650px; overflow: hidden; }
.nature-image img { width: 100%; height: 650px; object-fit: cover; }

.nature-copy { max-width: 560px; }
.nature-copy h2 { color: var(--moss); }
.nature-copy > p:last-child, .location-content > p {
  font-family: Georgia, 'Times New Roman', serif;
  color: #555750;
  font-size: 18px;
  line-height: 1.75;
}

.location { background: #e2ded3; }
.location-content { max-width: 890px; }
.location h2 { color: var(--ink); }
.location-content > p { max-width: 670px; }

.destinations { list-style: none; padding: 0; margin: 56px 0 36px; border-top: 1px solid rgba(33,35,34,.24); }
.destinations li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(33,35,34,.24);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
}
.destinations strong { color: var(--moss); font-family: Arial, sans-serif; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

.text-link { display: inline-block; padding-bottom: 7px; border-bottom: 1px solid; text-decoration: none; font-size: 13px; font-weight: 700; }

.contact { background: var(--moss); color: var(--white); padding: clamp(88px, 12vw, 170px) clamp(24px, 8vw, 120px) 34px; }
.contact-inner { max-width: 940px; margin: 0 auto; text-align: center; }
.contact-inner > img { width: 150px; margin: 0 auto 64px; }
.contact h2 { font-size: clamp(66px, 9vw, 132px); }
.contact-intro { max-width: 600px; margin: 0 auto 38px; color: rgba(255,255,255,.78); font-family: Georgia, 'Times New Roman', serif; font-size: 19px; line-height: 1.65; }
.email-link { display: inline-block; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(20px, 2.5vw, 34px); text-underline-offset: 7px; }
address { margin-top: 36px; color: rgba(255,255,255,.72); font-style: normal; font-size: 14px; line-height: 1.7; }
footer { display: flex; justify-content: space-between; gap: 24px; margin-top: 120px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.28); font-size: 11px; letter-spacing: .08em; }

.gallery-page { background: var(--ivory); }
.gallery-site-header { background: var(--deep-moss); }
.gallery-site-header .brand img { filter: none; }

.gallery-page-intro {
  min-height: 690px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 190px clamp(24px, 8vw, 120px) 90px;
  background: var(--deep-moss);
  color: var(--white);
}

.gallery-page-intro h1 {
  max-width: 1000px;
  font-size: clamp(70px, 10vw, 150px);
  line-height: .92;
}

.gallery-page-intro > p:last-child {
  max-width: 590px;
  margin: 42px 0 0 auto;
  color: rgba(255,255,255,.72);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.7;
}

.gallery-page-grid { padding: 12px; }
.gallery-page-grid figure { margin: 0 0 12px; }
.gallery-page-grid img { width: 100%; max-height: 920px; object-fit: cover; }
.gallery-page-grid figure:first-child img { object-position: center 60%; }
.gallery-page-grid figcaption {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 4px 34px;
  color: var(--moss);
}
.gallery-page-grid figcaption span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid var(--moss);
  border-radius: 50%;
  font-size: 9px;
}
.gallery-page-grid figcaption p { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }

.seasonal-intro {
  display: grid;
  grid-template-columns: .8fr 1.65fr;
  gap: clamp(46px, 8vw, 130px);
  padding: clamp(90px, 12vw, 170px) clamp(24px, 8vw, 120px);
  background: var(--clay);
  color: var(--white);
}
.seasonal-intro h2 {
  grid-column: 2;
  margin: -22px 0 24px;
  font-size: clamp(58px, 7.5vw, 112px);
  line-height: .92;
}
.seasonal-intro > div {
  grid-column: 2;
  max-width: 680px;
}
.seasonal-intro > div p {
  margin: 0 0 34px;
  color: rgba(255,255,255,.8);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 19px;
  line-height: 1.7;
}
.seasonal-grid { background: #261e19; color: var(--white); }
.seasonal-grid figcaption { color: var(--sage); }
.seasonal-grid figcaption span { border-color: var(--sage); }
.seasonal-grid img { max-height: 1040px; }

.gallery-page-return {
  padding: clamp(90px, 12vw, 170px) clamp(24px, 8vw, 120px);
  text-align: center;
}
.gallery-page-return h2 { margin: 0 0 44px; color: var(--moss); font-size: clamp(62px, 8vw, 118px); line-height: .92; }

@media (max-width: 850px) {
  .site-header { height: 84px; }
  .brand img { width: 84px; }
  .brand span { font-size: 14px; }
  nav a:not(.nav-contact) { display: none; }
  .hero-shade {
    background:
      linear-gradient(90deg, rgba(25,29,17,.78) 0%, rgba(25,29,17,.42) 68%, rgba(25,29,17,.10) 100%),
      linear-gradient(0deg, rgba(18,20,13,.38), transparent 45%);
  }
  .hero-content { margin-left: 24px; margin-right: 24px; width: calc(100% - 48px); }
  .intro, .gallery-heading, .location { grid-template-columns: 1fr; }
  .two-column-copy { grid-template-columns: 1fr; gap: 16px; margin-top: 38px; }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: 64vw 78vw 64vw 64vw; }
  .gallery-grid figure, .gallery-wide, .gallery-tall, .gallery-standard { grid-column: 1; grid-row: auto; }
  .gallery-standard:nth-of-type(4) { display: block; }
  .nature { grid-template-columns: 1fr; }
  .nature-image, .nature-image img { min-height: 420px; height: 420px; }
  .seasonal-intro { grid-template-columns: 1fr; }
  .seasonal-intro h2, .seasonal-intro > div { grid-column: 1; }
  .seasonal-intro h2 { margin-top: 0; }
}

@media (max-width: 560px) {
  .brand span { display: none; }
  .hero { min-height: 700px; }
  .hero-image { background-position: 62% 50%; }
  .hero-copy { font-size: 18px; }
  .scroll-cue { display: none; }
  .section { padding-top: 78px; padding-bottom: 78px; }
  .section-kicker { margin-bottom: 10px; }
  .gallery-heading { padding-bottom: 60px; }
  .gallery-grid { padding: 0 8px 8px; gap: 8px; }
  .destinations li { align-items: baseline; }
  footer { flex-direction: column; text-align: center; margin-top: 80px; }
  .gallery-page-intro { min-height: 610px; }
  .gallery-page-intro > p:last-child { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery-grid img { transition: none; }
}
