/* ==========================================================================
   Cambrian House, Newtown — style2026.css
   A warm, traditional refresh for a mid-Wales B&B.
   Palette pulled from the place itself: wool cream, hearth brick,
   slate roofs, and the heather on the hills around the Severn valley.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Karla:wght@400;500;600;700&display=swap');

:root{
  /* colour */
  --cream:      #F4ECDC;
  --paper:      #FBF6EC;
  --ink:        #2B241C;
  --ink-soft:   #5C5344;
  --brick:      #9C4A2C;
  --brick-dark: #7C3A21;
  --slate:      #435457;
  --slate-dark: #2E3B3D;
  --heather:    #7C6088;
  --moss:       #6E7C4F;
  --line:       rgba(43,36,28,0.14);
  --line-soft:  rgba(43,36,28,0.08);

  /* type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* layout */
  --radius: 6px;
  --radius-lg: 14px;
  --shadow: 0 16px 34px -20px rgba(43,36,28,0.45);
  --shadow-sm: 0 6px 16px -10px rgba(43,36,28,0.35);
  --header-h: 76px;
  --maxw: 1180px;
}

/* ---------- reset ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 14px);
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body{
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
h1,h2,h3{ font-family: var(--font-display); font-weight: 600; margin: 0 0 0.4em; color: var(--ink); }
p{ margin: 0 0 1em; }
ul{ margin:0; padding:0; list-style:none; }
:focus-visible{ outline: 3px solid var(--brick); outline-offset: 3px; }

.wrap{ max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section{ padding: 84px 0; }
.section--tight{ padding: 56px 0; }
.section--paper{ background: var(--paper); }
.section--slate{ background: var(--slate-dark); color: #EFE9DC; }
.section--slate h2, .section--slate h3{ color: #EFE9DC; }

.eyebrow{
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 0.9em;
}
.section--slate .eyebrow{ color: #E3B68C; }

.section-head{
  max-width: 640px;
  margin: 0 0 42px;
}
.section-head h2{ font-size: clamp(1.8rem, 3vw, 2.4rem); }
.section-head p{ color: var(--ink-soft); font-size: 1.05rem; }
.section--slate .section-head p{ color: #C9C2B3; }

/* ---------- buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn img{ height: 15px; width: auto; filter: brightness(0) invert(1); }
.btn--primary{ background: var(--brick); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover{ background: var(--brick-dark); transform: translateY(-2px); }
.btn--ghost{ background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover{ border-color: var(--brick); color: var(--brick); transform: translateY(-2px); }
.btn--ghost img{ filter: none; }
.btn--on-dark{ border-color: rgba(239,233,220,0.35); color: #EFE9DC; }
.btn--on-dark img{ filter: brightness(0) invert(1); }
.btn--on-dark:hover{ border-color: #E3B68C; color: #E3B68C; }

/* ---------- header / nav ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(244,236,220,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner{
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand{
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand__name{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}
.brand__place{
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brick);
  font-weight: 700;
  margin-top: 3px;
}

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
}
.nav-toggle span{ display:block; height: 2px; width: 20px; margin: 0 auto; background: var(--ink); border-radius: 2px; }

.site-nav ul{ display: flex; align-items: center; gap: 6px; }
.site-nav a{
  display: inline-block;
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-soft);
  transition: background .18s ease, color .18s ease;
}
.site-nav a:hover, .site-nav a.is-active{ background: var(--brick); color: #fff; }
.site-nav .nav-book{ border: 1.5px solid var(--brick); color: var(--brick); }
.site-nav .nav-book:hover{ background: var(--brick); color: #fff; }

@media (max-width: 880px){
  .nav-toggle{ display: flex; }
  .site-nav{
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height .28s ease;
  }
  .site-nav.is-open{ max-height: 420px; }
  .site-nav ul{ flex-direction: column; align-items: stretch; padding: 10px 20px 20px; gap: 2px; }
  .site-nav a{ padding: 12px 10px; border-radius: 8px; }
}

/* ---------- hero ---------- */
.hero{
  position: relative;
  overflow: hidden;
  padding: 132px 0 130px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
}
.hero__inner{
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 0 28px;
}
.hero__content{
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 640px;
}
.hero__kicker{
  display: inline-block;
  width: fit-content;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FBF6EC;
  background: rgba(31,26,20,0.55);
  padding: 7px 16px;
  border-radius: 999px;
}
.hero__panel{
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding: 26px 30px;
  background: rgba(31,26,20,0.42);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: var(--radius-lg);
}
.hero h1{
  font-size: clamp(1.8rem, 4.2vw, 2.9rem);
  line-height: 1;
  margin: 0;
  color: #FBF6EC;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
}
.hero__tagline{
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.35rem;
  color: #F4ECDC;
}
.hero__desc{ font-size: 1.08rem; color: rgba(251,246,236,0.92); max-width: 52ch; }
.hero__ctas{ display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero .btn--ghost{ border-color: rgba(251,246,236,0.55); color: #FBF6EC; }
.hero .btn--ghost:hover{ border-color: #E3B68C; color: #E3B68C; }

.hero__wave{
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
  z-index: 1;
}
.hero__wave svg{ width: 100%; height: 64px; display: block; }

.hero__mobile-photo{ display: none; }

@media (max-width: 880px){
  .hero{
    background-image: none !important;
    background: var(--cream);
    min-height: auto;
    padding: 36px 0 8px;
    overflow: visible;
    align-items: flex-start;
  }
  .hero__inner{
    display: flex;
    flex-direction: column;
  }
  .hero__content{ order: 2; }
  .hero__panel{
    background: var(--paper);
    border: 1px solid var(--line);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    margin-bottom: 0;
  }
  .hero__kicker{
    background: rgba(156,74,44,0.12);
    color: var(--brick);
  }
  .hero h1{ color: var(--ink); text-shadow: none; }
  .hero__tagline{ color: var(--slate-dark); }
  .hero__desc{ color: var(--ink-soft); }
  .hero .btn--ghost{ border-color: var(--line); color: var(--ink); }
  .hero .btn--ghost:hover{ border-color: var(--brick); color: var(--brick); }

  .hero__mobile-photo{
    display: block;
    order: 1;
    margin: 0 -28px 24px;
    overflow: hidden;
  }
  .hero__mobile-photo img{
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
  }

  .facts{ padding-top: 0; }
}

@media (min-width: 881px){
  .hero{
    align-items: flex-start;
    padding: 64px 0 170px;
  }
  .hero__content{
    margin-left: auto;
    align-items: flex-end;
    text-align: right;
    max-width: 512px;
  }
  .hero__ctas{ justify-content: flex-end; }
}

/* ---------- quick facts ---------- */
.facts{
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.facts__row{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
}
.fact{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 20px;
  border-left: 1px solid var(--line-soft);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.facts__row .fact:first-child{ border-left: none; }
.fact__badge{
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--slate);
}
.fact:nth-child(3n+2) .fact__badge{ background: var(--brick); }
.fact:nth-child(3n+3) .fact__badge{ background: var(--moss); }
.fact__badge img{ height: 16px; width: auto; filter: brightness(0) invert(1); }

/* ---------- book now ---------- */
.book-grid{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px){ .book-grid{ grid-template-columns: 1fr; } }
.book-copy p{ color: var(--ink-soft); font-size: 1.03rem; }
.contact-pills{ display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.contact-pill{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  font-weight: 700;
  transition: border-color .18s ease, transform .18s ease;
}
.contact-pill:hover{ border-color: var(--brick); transform: translateY(-2px); }
.book-map{
  display: block;
  max-width: 300px;
  margin-top: 4px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.book-map:hover{ transform: translateY(-2px); box-shadow: var(--shadow); }
.book-map img{ width: 100%; display: block; }
.book-map__cap{
  display: block;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--slate);
  background: var(--paper);
}
.book-map:hover .book-map__cap{ color: var(--brick); }
.contact-pill .fact__badge{ background: var(--slate); }
.contact-pill:nth-child(2) .fact__badge{ background: var(--brick); }
.widget-card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

/* ---------- rooms ---------- */
.rooms-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 980px){ .rooms-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px){ .rooms-grid{ grid-template-columns: 1fr; } }

.room-card{
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.room-card__media{
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2px;
  background: var(--line);
}
.room-card__media img{ width: 100%; height: 148px; object-fit: cover; }
.room-card__body{ padding: 20px 22px 24px; }
.room-card__num{
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 6px;
  display: block;
}
.room-card h3{ font-size: 1.25rem; margin-bottom: 8px; }
.room-card p{ color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0; }

/* ---------- gallery ---------- */
.gallery-wrap{ margin-top: 56px; }
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
@media (max-width: 1000px){ .gallery-grid{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px){ .gallery-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px){ .gallery-grid{ grid-template-columns: 1fr; } }
.gallery-item{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.gallery-item img{ height: 160px; width: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img{ transform: scale(1.06); }
.gallery-item__cap{
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 8px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(to top, rgba(43,36,28,0.75), transparent);
}

.welcome-copy{
  max-width: 760px;
  margin-top: 44px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.welcome-copy p{ color: var(--ink-soft); font-size: 1.03rem; }

/* ---------- newtown info ---------- */
.info-lede{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.info-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px){ .info-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .info-grid{ grid-template-columns: 1fr; } }
.info-card{
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.info-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow); }
.info-card img{ height: 140px; width: 100%; object-fit: cover; }
.info-card__label{
  padding: 14px 16px;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.info-card__label span{ color: var(--brick); font-size: 1.1rem; line-height: 1; }

/* ---------- reviews ---------- */
.reviews-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px){ .reviews-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px){
  .reviews-grid{ grid-template-columns: 1fr; gap: 14px; }
  #reviews .wrap{ padding-left: 14px; padding-right: 14px; }
  .review-card{ padding: 20px 18px; }
}
.review-card{
  background: rgba(239,233,220,0.06);
  border: 1px solid rgba(239,233,220,0.16);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review-card__quote{
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.55;
  color: #EFE9DC;
}
.review-card__by{
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #E3B68C;
}

/* ---------- directions ---------- */
.directions-grid{
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 860px){ .directions-grid{ grid-template-columns: 1fr; } }
.directions-copy p{ color: var(--ink-soft); }
.w3w{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--brick);
  margin-top: 6px;
}
.map-frame{
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  line-height: 0;
}
.map-frame iframe{ width: 100%; height: 420px; border: 0; display: block; }

/* ---------- contact ---------- */
.contact-band{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 780px){ .contact-band{ grid-template-columns: 1fr; } }
.contact-block{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.contact-block h3{ font-size: 1.05rem; margin-bottom: 10px; }
.contact-block p{ color: var(--ink-soft); margin: 0; }
.contact-block a{ color: var(--brick); font-weight: 700; }

/* ---------- footer ---------- */
.site-footer{
  background: var(--slate-dark);
  color: #C9C2B3;
  padding: 40px 0 30px;
  text-align: center;
  font-size: 0.9rem;
}
.site-footer a{ color: #EFE9DC; font-weight: 700; }
.site-footer a:hover{ color: var(--heather); }
.footer-brand{
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #EFE9DC;
  margin-bottom: 10px;
}
.footer-links{ display:flex; gap: 18px; justify-content:center; margin: 14px 0; flex-wrap: wrap; }
.back-to-top{ text-decoration: underline; text-underline-offset: 3px; }

/* ---------- reveal-on-scroll ---------- */
.reveal{ opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible{ opacity: 1; transform: none; }