/* Port Jarrah Furniture — faithful clone styles: yellow brand band, blue contact
   band, grey gallery ground, uppercase letter-spaced type. Mobile-first. */
:root {
  --yellow: #f9ce4f;
  --yellow-dark: #e8b830;
  --blue: #1265a8;
  --blue-deep: #0d4f83;
  --navy: #0e2f4f;
  --ink: #333;
  --muted: #5f6b76;
  --grey: #f1f1f1;
  --paper: #fff;
  --line: #e3e3e3;
  --wrap: 1140px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; background: var(--grey); color: var(--ink);
  font-family: var(--sans); font-size: 16.5px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; overflow-x: clip;
  padding-bottom: 62px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 {
  margin: 0 0 .6em; color: var(--blue);
  text-transform: uppercase; letter-spacing: .12em; font-weight: 500; line-height: 1.35;
}
h1 { font-size: clamp(20px, 3.4vw, 30px); }
h2 { font-size: clamp(17px, 2.6vw, 24px); }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 40px); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 99; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border: 1px solid transparent; border-radius: 4px;
  font-weight: 600; font-size: 14px; line-height: 1.2; text-decoration: none; cursor: pointer;
  text-transform: uppercase; letter-spacing: .12em;
  transition: background .18s ease, color .18s ease;
}
.btn--outline { border-color: var(--navy); color: #fff; background: transparent; }
.btn--outline:hover { background: var(--navy); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-deep); }
.btn--gold { background: var(--yellow); color: var(--navy); }
.btn--gold:hover { background: var(--yellow-dark); }

/* Header — yellow band */
.site-header { position: static; }
.header__yellow { background: var(--yellow); position: relative; }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 64px; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 20px; }
.menu { display: flex; align-items: center; gap: 8px; }
.menu > a, .drop__btn {
  padding: 8px 10px; border: 0; background: none; cursor: pointer; font-family: inherit;
  color: var(--blue); text-decoration: none; font-size: 14px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em;
}
.menu > a:hover, .drop__btn:hover { color: var(--blue-deep); }
.drop { position: relative; }
.drop__car { display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.drop__panel {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); z-index: 50;
  min-width: 250px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 24px 48px -24px rgba(14,47,79,.35); max-height: 70vh; overflow: auto;
}
.drop.is-open .drop__panel { display: grid; gap: 2px; }
.drop__panel a { display: block; padding: 9px 12px; border-radius: 4px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.drop__panel a:hover { background: var(--grey); color: var(--blue-deep); }
.header__social { display: flex; gap: 12px; }
.header__social a { color: var(--blue); display: inline-flex; }
.header__social a:hover { color: var(--blue-deep); }
.nav-toggle { display: none; }

/* Header — blue contact band */
.header__blue { background: var(--blue); color: #fff; }
.blueband__in { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 10px 0; }
.blueband__addr p { margin: 0 0 4px; font-size: 13.5px; line-height: 1.4; color: var(--yellow); }
.blueband__addr strong { text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.blueband__tels { display: flex; gap: 26px; }
.blueband__tels a { color: var(--yellow); text-decoration: none; font-size: 13.5px; text-transform: uppercase; letter-spacing: .1em; white-space: nowrap; }
.blueband__tels a:hover { color: #fff; }

/* Hero — centred framed photo on grey, like the original */
.hero { padding: 26px 0; }
.hero__frame { position: relative; aspect-ratio: 4 / 3; background: var(--grey); overflow: hidden; border: 8px solid #fff; box-shadow: 0 18px 40px -22px rgba(14,47,79,.35); }
.hero__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; transition: opacity .9s ease; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.85); color: var(--navy); font-size: 17px; line-height: 1; cursor: pointer; transition: background .15s ease; }
.hero__nav:hover { background: var(--yellow); }
.hero__nav--prev { left: 14px; }
.hero__nav--next { right: 14px; }
.hero__dots { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 3; display: flex; gap: 9px; justify-content: center; }
.hero__dot { width: 11px; height: 11px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; transition: background .15s ease, transform .15s ease; }
.hero__dot.is-on { background: var(--yellow); transform: scale(1.25); }
@media (max-width: 700px) { .hero__frame { aspect-ratio: 4 / 3; border-width: 6px; } .hero__nav { width: 34px; height: 34px; font-size: 14px; } }

/* Intro */
.intro { background: var(--paper); padding: clamp(34px, 5vw, 60px) 0; }
.intro p { color: var(--muted); font-size: clamp(16px, 1.8vw, 18px); text-align: center; }
.intro p:first-child { color: var(--ink); }

/* Maker / Clint */
.maker { padding: clamp(40px, 6vw, 72px) 0; }
.maker__in { display: grid; gap: 30px; align-items: start; }
.maker__img { width: 100%; border: 8px solid #fff; box-shadow: 0 18px 40px -22px rgba(14,47,79,.35); }
.maker__copy p { color: var(--muted); }
.maker__copy .btn { margin-top: 8px; }

/* Browse grid */
.cats { background: var(--paper); padding: clamp(40px, 6vw, 72px) 0; }
.sec-title { text-align: center; margin-bottom: clamp(26px, 4vw, 44px); }
.sec-title a { color: inherit; text-decoration: none; }
.sec-title a:hover { color: var(--blue-deep); }
.cats__grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.cat { display: grid; text-decoration: none; background: var(--grey); border: 1px solid var(--line); transition: box-shadow .18s ease, transform .18s ease; }
.cat:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -22px rgba(14,47,79,.4); }
.cat__img { display: block; overflow: hidden; aspect-ratio: 4/3; }
.cat__img img { width: 100%; height: 100%; object-fit: cover; }
.cat__name { padding: 12px 14px; font-weight: 600; font-size: 13.5px; color: var(--blue); text-transform: uppercase; letter-spacing: .1em; text-align: center; }

/* Instagram */
.insta { padding: clamp(40px, 6vw, 72px) 0; }
.insta__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: clamp(20px, 3vw, 32px); }
.insta__title { margin: 0; text-align: left; }
.insta__title span { color: var(--blue); }
.insta__follow { display: inline-flex; align-items: center; gap: 8px; background: var(--blue); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.insta__follow:hover { background: var(--blue-deep); }
.insta__grid { display: grid; gap: 12px; grid-template-columns: repeat(4, 1fr); }
.insta__tile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: var(--grey); }
.insta__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.insta__tile:hover img, .insta__tile:focus-visible img { transform: scale(1.06); }
.insta__ov { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(180deg, rgba(14,47,79,.12), rgba(14,47,79,.58)); opacity: 0; transition: opacity .25s ease; }
.insta__tile:hover .insta__ov, .insta__tile:focus-visible .insta__ov { opacity: 1; }
.insta__tile--cta { background: var(--blue); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--yellow); text-align: center; padding: 12px; }
.insta__tile--cta span { color: #fff; font-weight: 700; letter-spacing: .06em; }
.insta__tile--cta em { font-style: normal; color: rgba(255,255,255,.75); font-size: 12px; }
.insta__tile--cta:hover { background: var(--blue-deep); }
.insta__plugin { max-width: 1140px; margin: 0 auto; }
.maplink { color: inherit; display: inline-flex; align-items: center; gap: 6px; text-decoration: underline; text-decoration-style: dotted; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(249,206,79,.6); }
.maplink .pin { flex: 0 0 auto; opacity: .9; }
.maplink:hover, .maplink:focus-visible { text-decoration-style: solid; text-decoration-color: currentColor; }

/* Page head (category/about/enquire) — yellow band like the brand header */
.pagehead { background: var(--yellow); padding: clamp(30px, 5vw, 54px) 0; }
.pagehead h1 { margin: 0; }
.pagehead__sub { color: var(--navy); max-width: 46em; margin-top: 10px; }
.crumb { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--blue-deep); }
.crumb a { color: var(--blue-deep); }

/* Copy + gallery */
.copy { background: var(--paper); padding: clamp(30px, 5vw, 54px) 0; }
.copy p { color: var(--muted); }
.gallery { padding: clamp(26px, 4vw, 44px) 0 clamp(44px, 6vw, 72px); }
.gallery__grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.gal { margin: 0; }
.gal__btn { display: block; width: 100%; padding: 0; border: 0; background: #fff; cursor: zoom-in; }
.gal__btn span { display: block; overflow: hidden; background: var(--line); }
.gal__btn img { width: 100%; height: 100%; object-fit: cover; }
.gallery__cta { margin-top: clamp(26px, 4vw, 40px); text-align: center; }
.gallery__cta p { color: var(--muted); margin-bottom: 12px; }

/* Form */
.form-sec { background: var(--paper); padding: clamp(30px, 5vw, 54px) 0 clamp(50px, 7vw, 80px); }
.form { display: grid; gap: 14px; background: var(--grey); border: 1px solid var(--line); padding: clamp(18px, 3vw, 30px); }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 13.5px; color: var(--navy); text-transform: uppercase; letter-spacing: .1em; }
.form input, .form select, .form textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 3px; background: #fff; color: var(--ink); letter-spacing: normal; text-transform: none; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.form__row { display: grid; gap: 14px; }
.hp { position: absolute !important; left: -9999px !important; }
.notice { padding: 12px 16px; font-weight: 600; }
.notice--ok { background: #e8f6ec; color: #1c7a3d; }
.notice--err { background: #fdecec; color: #b3261e; }
.visit { display: grid; gap: 14px; margin-top: 22px; color: var(--muted); font-size: 15px; }
.visit a { color: var(--blue-deep); font-weight: 600; }

/* Footer */
.site-footer { background: var(--navy); color: #cfdbe6; padding: clamp(40px, 6vw, 64px) 0 0; }
.footer__in { display: grid; gap: 30px; }
.footer__logo { height: 54px; width: auto; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: .92; }
.footer__col h2 { color: var(--yellow); font-size: 14px; margin-bottom: 14px; }
.footer__col p { font-size: 14.5px; }
.footer__col a { color: var(--yellow); text-decoration: none; }
.footer__col a:hover { text-decoration: underline; }
.footer__col a.btn { color: var(--navy); text-decoration: none; }
.footer__map { margin-top: 18px; max-width: 340px; }
.footer__map iframe { display: block; width: 100%; height: 170px; border: 1px solid rgba(249, 206, 79, .45); border-radius: 12px; filter: saturate(.85) contrast(.98); }
.footer__maplink { margin-top: 9px; font-size: 13px; color: var(--yellow); }
.footer__links { list-style: none; margin: 0; padding: 0; columns: 2; gap: 20px; font-size: 14px; }
.footer__links li { margin-bottom: 7px; break-inside: avoid; }
.footer__base { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: clamp(30px, 5vw, 48px); padding: 16px 0 20px; border-top: 1px solid rgba(255,255,255,.16); font-size: 13px; color: #93a7b8; }
.footer__base a { color: #93a7b8; }

/* Floating mobile bar */
.float-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: flex; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(14,47,79,.97); backdrop-filter: blur(6px);
}
.float-bar a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 4px; text-decoration: none; font-weight: 700; font-size: 14.5px; text-transform: uppercase; letter-spacing: .08em; }
.float-bar__call { background: var(--yellow); color: var(--navy); }
.float-bar__enq { border: 1px solid rgba(255,255,255,.6); color: #fff; }
@media (max-width: 480px) { .float-bar a { font-size: 12.5px; letter-spacing: .04em; padding: 12px 6px; gap: 6px; white-space: nowrap; } }

/* Lightbox */
dialog.lb { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 92vh; }
dialog.lb::backdrop { background: rgba(8,20,32,.9); }
dialog.lb img { max-width: 96vw; max-height: 84vh; }
dialog.lb figcaption { color: #cfe0ee; text-align: center; padding: 10px 0 0; font-size: 14px; }
dialog.lb .lb__x { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: 999px; width: 40px; height: 40px; font-size: 20px; cursor: pointer; }

/* ≥768px */
@media (min-width: 768px) {
  .cats__grid { grid-template-columns: repeat(3, 1fr); }
  .insta__grid { grid-template-columns: repeat(4, 1fr); }
  .gallery__grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .maker__in { grid-template-columns: 380px 1fr; gap: 44px; }
  .form__row { grid-template-columns: 1fr 1fr; }
  .visit { grid-template-columns: repeat(3, 1fr); }
  .footer__in { grid-template-columns: 1.2fr 1fr 1fr; }
  .float-bar { display: none; }
  body { padding-bottom: 0; }
}
@media (min-width: 1080px) {
  .cats__grid { grid-template-columns: repeat(5, 1fr); }
  .gallery__grid { grid-template-columns: repeat(4, 1fr); }
}
/* <768px — stack the bands centred, like the original mobile layout */
@media (max-width: 767px) {
  .header__in { gap: 10px; padding: 8px 0; min-height: 0; }
  .brand img { height: 38px; }
  .nav { gap: 10px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 40px; border: 1.5px solid var(--blue); border-radius: 4px; background: transparent; cursor: pointer; }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--blue); position: relative; }
  .nav-toggle span::before { position: absolute; top: -6px; }
  .nav-toggle span::after { position: absolute; top: 6px; }
  .menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 39;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 20px 18px;
    background: var(--yellow); border-bottom: 1px solid var(--yellow-dark); box-shadow: 0 30px 50px -30px rgba(14,47,79,.4);
  }
  .nav.is-open .menu { display: flex; }
  .menu > a { padding: 12px; font-size: 15px; }
  .drop__panel { position: static; transform: none; display: grid; border: 0; box-shadow: none; background: transparent; padding: 0 0 0 12px; max-height: none; }
  .blueband__in { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: center; padding: 10px 0; }
  .blueband__addr { grid-column: 1 / -1; display: grid; gap: 5px; }
  .blueband__addr p { margin: 0; font-size: 11.5px; line-height: 1.4; display: flex; align-items: baseline; gap: 8px; }
  .blueband__addr strong { font-size: 10.5px; letter-spacing: .08em; flex: 0 0 74px; }
  .blueband__addr a { flex: 1; }
  .blueband__tels { grid-column: 1; grid-row: 2; flex-direction: row; gap: 14px; }
  .blueband__tels a { font-size: 11.5px; letter-spacing: .06em; }
  .blueband__in .btn--outline { grid-column: 2; grid-row: 2; justify-self: end; padding: 8px 12px; font-size: 11.5px; }
  .insta__head { flex-wrap: wrap; }
  .insta__grid { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
  .insta__grid::-webkit-scrollbar { display: none; }
  .insta__tile { flex: 0 0 46vw; scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Reviews */
.reviews { background: var(--paper); padding: clamp(40px, 6vw, 72px) 0; }
.reviews__wrap { position: relative; }
.reviews__row { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px; }
.reviews__row::-webkit-scrollbar { display: none; }
.review { flex: 0 0 min(360px, 82vw); scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--yellow); padding: 22px 20px; display: flex; flex-direction: column; gap: 12px; }
.review__stars { color: #f0b429; font-size: 17px; letter-spacing: 3px; }
.review__text { color: var(--muted); font-size: 15px; line-height: 1.65; flex: 1 1 auto; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.review__who { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.review__who strong { color: var(--ink); }
.review__who span { color: var(--muted); font-size: 12.5px; }
.reviews__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--blue); color: #fff; font-size: 15px; cursor: pointer; }
.reviews__nav:hover { background: var(--blue-deep); }
.reviews__nav--prev { left: -12px; }
.reviews__nav--next { right: -12px; }
@media (max-width: 700px) { .reviews__nav--prev { left: -4px; } .reviews__nav--next { right: -4px; } }

/* Our timbers */
.timbers { padding: clamp(40px, 6vw, 72px) 0; }
.timbers__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.timber { aspect-ratio: 3 / 4; perspective: 1000px; cursor: pointer; }
.timber__in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .7s ease; }
.timber.is-flipped .timber__in { transform: rotateY(180deg); }
@media (hover: hover) { .timber:hover .timber__in { transform: rotateY(180deg); } }
.timber__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background-size: cover; background-position: center; background-color: var(--blue); display: flex; align-items: flex-end; }
.timber__face--back { transform: rotateY(180deg); }
.timber__name { display: block; width: 100%; padding: 16px 10px; background: linear-gradient(to top, rgba(14,47,79,.88), rgba(14,47,79,0)); color: var(--yellow); text-align: center; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; font-size: clamp(14px, 1.5vw, 18px); }
@media (max-width: 700px) { .timbers__grid { grid-template-columns: repeat(2, 1fr); } }

.reviews__plugin { max-width: 1140px; margin: 0 auto; }

.copy--points h2 { margin: 0 0 14px; color: var(--blue); text-transform: uppercase; letter-spacing: .12em; font-size: clamp(17px, 2.2vw, 22px); }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.points li { position: relative; padding-left: 22px; color: var(--muted); }
.points li::before { content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; background: var(--yellow); }
