/* Kath Brathwaite Studios — design inspired by a minimal editorial photography layout */

:root {
  --bg: #ffffff;
  --bg-accent: #f7f7f2;
  --heading: #000000;
  --text: #656565;
  --line: #dcdcd6;
  --button: #363636;
  --button-hover: #7d7d7d;
  --button-text: #ffffff;

  --font-head: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Lora', Georgia, serif;

  --max: 1500px;
  --gutter: max(16px, 4vw);
  --section: clamp(64px, 8vw, 128px);
  --gap: clamp(12px, 1.6vw, 24px);
}

*, *::before, *::after { box-sizing: border-box; }

/* Elements with display rules below must still disappear when [hidden] */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  color: var(--heading);
  font-family: var(--font-head);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: .01em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2rem, 1rem + 2.2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1rem + 1.4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 1rem + .6vw, 1.5rem); }
h4 { font-size: 1rem; line-height: 1.3; }

p { margin: 0 0 1.2em; }

.display {
  font-size: clamp(2.25rem, 1rem + 3.4vw, 3.75rem);
  font-weight: 300;
  letter-spacing: .02em;
}

.eyebrow {
  margin-bottom: 1.2em;
  color: var(--heading);
  font-family: var(--font-head);
  font-size: .8125rem;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding-top: var(--section); padding-bottom: var(--section); }
.section-title { text-align: center; margin-bottom: 1.6em; }
.center { text-align: center; margin-top: clamp(32px, 4vw, 56px); }

/* Buttons */
.button {
  display: inline-block;
  padding: 1.35em 3em;
  border: 0;
  background: var(--button);
  color: var(--button-text);
  font-family: var(--font-head);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .3s ease, color .3s ease;
}
.button:hover, .button:focus-visible { background: var(--button-hover); }
.button--light { background: #fff; color: var(--heading); }
.button--light:hover, .button--light:focus-visible { background: var(--bg-accent); }

:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  color: #fff;
}
.site-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px var(--gutter);
}
.nav-list {
  display: flex;
  gap: clamp(1.5rem, 3vw, 3.125rem);
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-head);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.nav-list--right { justify-content: flex-end; }
.nav-list a { position: relative; padding: 4px 0; }
.nav-list a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform .3s ease;
}
.nav-list a:hover::after, .nav-list a[aria-current]::after { transform: scaleX(1); }

.logo img { width: clamp(150px, 14vw, 220px); }

.nav-toggle {
  display: none;
  position: relative;
  z-index: 40;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  justify-self: end;
}
.nav-toggle span {
  position: absolute;
  left: 4px; right: 4px;
  height: 1px;
  background: currentColor;
  transition: transform .3s ease, top .3s ease;
}
.nav-toggle span:first-child { top: 12px; }
.nav-toggle span:last-child { top: 20px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 16px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 16px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  opacity: 0;
  transition: opacity .35s ease;
}
.mobile-menu.is-open { opacity: 1; }
.mobile-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
  font-family: var(--font-head);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--heading);
}
.mobile-menu li + li { margin-top: 1.6rem; }
.mobile-menu a[aria-current] { border-bottom: 1px solid currentColor; }
body.menu-open { overflow: hidden; }
body.menu-open .site-header { position: fixed; color: var(--heading); }
body.menu-open .logo img { filter: invert(1); }

@media (max-width: 860px) {
  .site-nav { grid-template-columns: 1fr auto; }
  .nav-list { display: none; }
  .nav-toggle { display: block; }
  .logo { justify-self: start; }
}

/* ---------- Hero slideshow ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  max-height: 1100px;
  overflow: hidden;
  background: #222;
  color: #fff;
}
.hero__slide, .page-banner__bg, .cta__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__slide { opacity: 0; transition: opacity 1.2s ease; }
.hero__slide.is-active { opacity: 1; }
.hero::after, .page-banner::after, .cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .2);
  pointer-events: none;
}
.hero__content, .page-banner__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 var(--gutter);
  text-align: center;
}
.hero h1, .hero .eyebrow, .page-banner h1, .page-banner .eyebrow { color: #fff; }
.hero .eyebrow { max-width: 34em; }

.hero__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  padding: 10px;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  opacity: .8;
  transition: opacity .3s ease;
}
.hero__arrow:hover { opacity: 1; }
.hero__arrow .icon { width: 100%; height: 100%; }
.hero__arrow--prev { left: calc(var(--gutter) - 10px); }
.hero__arrow--next { right: calc(var(--gutter) - 10px); }

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  position: relative;
  height: 62vh;
  min-height: 380px;
  overflow: hidden;
  background: #222;
}

/* ---------- Philosophy ---------- */
.philosophy {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.philosophy__images {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--gap);
  align-items: center;
}
.philosophy__img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.philosophy__img--small { margin-top: 30%; }
.philosophy__text h2 { margin-bottom: 1em; }
.philosophy__text .button { margin-top: .8em; }

@media (max-width: 860px) {
  .philosophy { grid-template-columns: 1fr; }
  .philosophy__text { order: -1; }
}

/* ---------- Masonry grid ---------- */
.masonry { columns: 3; column-gap: var(--gap); }
.masonry__item {
  margin: 0 0 var(--gap);
  break-inside: avoid;
  cursor: zoom-in;
  overflow: hidden;
}
.masonry__item img { width: 100%; transition: transform .8s ease, opacity .3s ease; }
.masonry__item:hover img { transform: scale(1.025); }
@media (max-width: 640px) { .masonry { columns: 2; } }

/* ---------- Testimonials ---------- */
.testimonials { padding-top: 0; }
.testimonials__box {
  padding: clamp(40px, 6vw, 88px) clamp(24px, 6vw, 96px);
  background: var(--bg-accent);
  border: 1px solid var(--line);
}
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 64px);
  margin-top: 1rem;
}
.testimonial { margin: 0; }
.testimonial footer h4 { margin-top: 1.2em; }
@media (max-width: 860px) { .testimonials__grid { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  background: #222;
  color: #fff;
}
.cta__inner {
  position: relative;
  z-index: 2;
  padding-top: clamp(96px, 14vw, 200px);
  padding-bottom: clamp(96px, 14vw, 200px);
}
.cta h2, .cta .eyebrow { color: #fff; }
.cta .eyebrow { max-width: 30em; margin-bottom: 2.4em; }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(32px, 7vw, 112px);
  align-items: start;
}
.about__image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about__text h2 { margin-bottom: 1em; }
@media (min-width: 861px) { .about__image { position: sticky; top: 40px; } }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

.pullquote { padding-top: 0; text-align: center; }
.pullquote blockquote {
  max-width: 900px;
  margin: 0 auto;
  color: var(--heading);
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 1rem + .9vw, 1.75rem);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: .01em;
  text-transform: uppercase;
}

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 7vw, 112px);
  align-items: start;
}
.contact__details { margin: 2rem 0 0; padding: 0; list-style: none; }
.contact__details li { display: flex; align-items: center; gap: .8em; margin-bottom: .8em; color: var(--heading); }
.contact__details a { border-bottom: 1px solid var(--line); transition: border-color .3s ease; }
.contact__details a:hover { border-color: var(--heading); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; margin-bottom: 1.4rem; flex: 1; }
.field-row { display: flex; gap: 1.4rem; }
@media (max-width: 560px) { .field-row { flex-direction: column; gap: 0; } }
.field label {
  margin-bottom: .5em;
  color: var(--heading);
  font-family: var(--font-head);
  font-size: .6875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: .85em 1em;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg);
  color: var(--heading);
  font: inherit;
  transition: border-color .3s ease;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23656565' stroke-width='1.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1em center;
  background-size: 16px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--heading); }
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 1.4rem 1.6rem; margin-bottom: 1.6rem; border: 1px solid var(--line); background: var(--bg-accent); }
.notice p:last-child { margin-bottom: 0; }
.notice--error { border-color: #c9a3a3; color: #7a3b3b; }
.notice--success { padding: 2.4rem; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { padding: var(--section) 0 32px; text-align: center; }
.site-footer h4 a { border-bottom: 1px solid transparent; transition: border-color .3s ease; }
.site-footer h4 a:hover { border-color: currentColor; }
.insta-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: calc(var(--gap) / 2);
  margin: 2rem 0 2.4rem;
}
.insta-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: opacity .3s ease; }
a.insta-grid:hover img { opacity: .85; }
@media (max-width: 640px) { .insta-grid { grid-template-columns: repeat(3, 1fr); } }

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  color: var(--heading);
}
.social-links a { display: block; transition: opacity .3s ease; }
.social-links a:hover { opacity: .6; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .8rem clamp(1.5rem, 3vw, 3.125rem);
  margin: 0 0 2.4rem;
  padding: 0;
  list-style: none;
  color: var(--heading);
  font-family: var(--font-head);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.footer-nav a:hover { opacity: .6; }

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: .75rem;
}
.footer-bottom small { grid-column: 2; text-align: center; }
.footer-bottom .to-top { grid-column: 3; justify-self: end; }
.has-whatsapp .footer-bottom .to-top { margin-right: 72px; } /* keep clear of the floating WhatsApp button */
@media (max-width: 640px) {
  .footer-bottom { grid-template-columns: 1fr; justify-items: center; gap: 8px; }
  .footer-bottom small, .footer-bottom .to-top { grid-column: 1; }
  .footer-bottom .to-top, .has-whatsapp .footer-bottom .to-top { grid-row: 1; justify-self: center; margin: 0; }
}
.to-top {
  padding: 6px;
  border: 0;
  background: none;
  color: var(--heading);
  cursor: pointer;
}

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 25;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--button);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
  transition: background-color .3s ease;
}
.whatsapp-float:hover { background: var(--button-hover); }
.whatsapp-float .icon { width: 24px; height: 24px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .97);
  opacity: 0;
  transition: opacity .3s ease;
}
.lightbox.is-open { opacity: 1; }
.lightbox img { max-width: calc(100vw - 140px); max-height: calc(100vh - 100px); width: auto; height: auto; }
.lightbox button {
  position: absolute;
  width: 48px;
  height: 48px;
  padding: 12px;
  border: 0;
  background: none;
  color: var(--heading);
  cursor: pointer;
}
.lightbox button .icon { width: 100%; height: 100%; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__count {
  position: absolute;
  bottom: 20px;
  left: 0; right: 0;
  font-family: var(--font-head);
  font-size: .6875rem;
  letter-spacing: .15em;
  text-align: center;
}
@media (max-width: 640px) {
  .lightbox img { max-width: 100vw; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 8px; transform: none; }
}

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
