/* ============================================================
   KURENT Lifestyle — warm olive & cream editorial theme
   ============================================================ */



/* ============================================================
   FONTS (self-hosted, Latin subset; SIL Open Font License, see assets/fonts/)
   ============================================================ */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/fraunces.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/fraunces-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/inter.woff2") format("woff2");
}

/* ============================================================
   THEME VARIABLES
   Used by index.html, about.html, testimonials.html, etc.
   ============================================================ */

:root {
  --deep: #33341f;
  --olive-900: #33341f;
  --paper: #f4f0e7;
  --cream: #f4f0e7;
  --ink: #111111;
  --ink-soft: #66665a;
  --gold-soft: #b7a76a;
  --sand: #e6dfcf;          /* closing call-to-action band: between cream and olive */
  --serif: "Fraunces", serif;
  --maxw: 1200px;
}


/* ============================================================
   RESET
   ============================================================ */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: #f4f0e7;
  color: #33341f;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  line-height: 1.6;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}


/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  color: #33341f;
  font-family: "Fraunces", serif;
  font-weight: 400;
  line-height: 1.15;
}

h1 {
  font-size: clamp(3rem, 7vw, 7rem);
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin-top: 0;
}

.eyebrow {
  margin-bottom: 14px;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}


/* ============================================================
   CONTAINERS
   ============================================================ */

.container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.wrap {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}


/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: transform .35s ease;
  background: #f4f0e7;
  border-bottom: 1px solid rgba(51,52,31,.12);
}

.nav-wrap {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 180px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  position: relative;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: opacity .25s ease;
}

.main-nav a:hover,
.main-nav a.active {
  opacity: .6;
}

/* "Book a session" button at the end of the menu */
.main-nav .nav-cta {
  padding: 11px 18px;
  border: 1px solid var(--deep);
  background: var(--deep);
  color: var(--paper);
  letter-spacing: .12em;
  transition: background-color .25s ease, color .25s ease;
}

.main-nav .nav-cta:hover,
.main-nav .nav-cta.active {
  opacity: 1;
  background: transparent;
  color: var(--deep);
}

/* Tucks away while scrolling down, comes back when scrolling up (main.js) */
.site-header.is-hidden {
  transform: translateY(-100%);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  margin: 6px 0;
  background: #33341f;
}


/* ============================================================
   HERO
   ============================================================ */

.page-hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
}

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

.page-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(25,27,14,.25);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 80px;
  padding-bottom: 70px;
}

.page-hero-content h1,
.page-hero-content .eyebrow {
  color: #fff;
}


/* ============================================================
   PORTFOLIO OVERVIEW
   ============================================================ */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.portfolio-card {
  display: block;
}

.portfolio-card .thumb {
  aspect-ratio: 3/4;
  overflow: hidden;
  margin-bottom: 16px;
}

.portfolio-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.portfolio-card:hover .thumb img {
  transform: scale(1.05);
}

.portfolio-card h2 {
  margin-bottom: 0;
  font-size: 1.2rem;
}

.portfolio-card p,
.portfolio-card .num {
  display: none !important;
}


/* ============================================================
   SPORTS CARD FIX
   ONLY THE FIRST PORTFOLIO CARD / SPORTS
   ============================================================ */

.portfolio-page-grid .portfolio-card:first-child .thumb {
  aspect-ratio: 3/4;
  overflow: hidden;
}

.portfolio-page-grid .portfolio-card:first-child .thumb img {
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  object-fit: cover;
  object-position: center center;
}


/* ============================================================
   GENERAL SECTIONS
   ============================================================ */

section {
  padding: 100px 0;
}

section:first-of-type {
  padding-top: 0;
}


/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  border: 1px solid #33341f;
  background: #33341f;
  color: #f4f0e7;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: all .25s ease;
}

.btn:hover {
  background: transparent;
  color: #33341f;
}

/* For dark backgrounds (olive sections, photos) */
.btn-light {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--deep);
}

.btn-light:hover {
  background: transparent;
  color: var(--paper);
}


/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  padding: 80px 0 30px;
  background: #33341f;
  color: #f4f0e7;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 50px;
}

.footer-brand .brand img {
  filter: brightness(0) invert(1);
  margin-bottom: 25px;
}

.footer-brand p {
  max-width: 340px;
  color: rgba(244,240,231,.75);
  font-size: .9rem;
}

.footer-social {
  display: flex;
  gap: 20px;
  margin-top: 25px;
}

.footer-social a {
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-col h2 {
  margin-bottom: 20px;
  color: #f4f0e7;
  font-family: "Inter", sans-serif;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: rgba(244,240,231,.75);
  font-size: .85rem;
  transition: color .25s ease;
}

.footer-col a:hover {
  color: #f4f0e7;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 70px;
  padding-top: 25px;
  border-top: 1px solid rgba(244,240,231,.18);
  color: rgba(244,240,231,.55);
  font-size: .72rem;
}


/* ============================================================
   LIGHTBOX
   ============================================================ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 60px 70px;
  background: rgba(20,21,12,.96);
}

.lightbox.open {
  display: flex;
}

.lightbox img,
.lightbox video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox button {
  position: absolute;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  opacity: .8;
  transition: opacity .2s ease;
}

.lightbox button:hover,
.lightbox button:focus-visible {
  opacity: 1;
}

.lightbox-close {
  top: 14px;
  right: 14px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 10px;
}

.lightbox-next {
  right: 10px;
}

.lightbox-count {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(244,240,231,.75);
  font-size: .82rem;
  letter-spacing: .03em;
}

@media (max-width: 700px) {
  .lightbox {
    padding: 60px 12px;
  }

  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 8px;
    transform: none;
  }
}


/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */

@media (max-width: 900px) {

  .container,
  .wrap {
    width: min(100% - 36px, 1200px);
  }

  .main-nav {
    gap: 18px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}


/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */

@media (max-width: 700px) {

  .container,
  .wrap {
    width: calc(100% - 30px);
  }

  .nav-wrap {
    min-height: 74px;
  }

  .brand img {
    width: 145px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    padding: 25px 30px;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    background: #f4f0e7;
    border-bottom: 1px solid rgba(51,52,31,.12);
  }

  .main-nav.open {
    display: flex;
  }

  .page-hero {
    min-height: 360px;
  }

  .page-hero-content {
    padding-bottom: 45px;
  }

  section {
    padding: 70px 0;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

}


/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 420px) {

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.3rem;
  }

  .portfolio-card .thumb {
    margin-bottom: 12px;
  }

}

/* ============================================================
   CLOSING CALL-TO-ACTION ("Let's create something memorable")
   Shared by the homepage and Testimonials.
   ============================================================ */

.cta-section {
  padding: 110px 0 120px;
  background: var(--sand);
  color: var(--deep);
  text-align: center;
}

.cta-section .eyebrow {
  margin: 0 0 16px;
  color: var(--deep);
}

.cta-section h2 {
  max-width: 18ch;
  margin: 0 auto 22px;
  color: var(--deep);
  font-size: clamp(2.3rem, 4vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.cta-section p:not(.eyebrow) {
  max-width: 34rem;
  margin: 0 auto 34px;
  color: #55554a;   /* ink-soft darkened to keep 4.5:1 on sand */
  font-size: 1rem;
  line-height: 1.7;
}

@media (max-width: 700px) {

  .cta-section {
    padding: 75px 0 85px;
  }

}


/* ============================================================
   GALLERY PAGES
   .photo-hero is shared by the gallery pages and About.
   Kept after the responsive base rules so it wins over .page-hero.
   ============================================================ */

.photo-hero {
  height: 68vh;
  background: var(--deep);
  min-height: 520px;
  max-height: 760px;
}

.photo-hero .page-hero-image img {
  object-position: center 25%;
}

.photo-hero .page-hero-overlay {
  z-index: 1;
}

.photo-hero .page-hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.gallery-section {
  padding: 90px 0 110px;
}

.gallery-grid {
  column-count: 3;
  column-gap: 24px;
}

.g-item {
  position: relative;
  margin: 0 0 24px;
  overflow: hidden;
  break-inside: avoid;
  cursor: zoom-in;
}

.g-item img,
.g-item video {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .6s cubic-bezier(.2,.65,.2,1);
}

.g-item video {
  background: var(--sand);
}

.g-item:hover img,
.g-item:hover video {
  transform: scale(1.025);
}

.g-item:focus-visible {
  outline: 2px solid var(--deep);
  outline-offset: 3px;
}

@media (max-width: 1000px) {

  .gallery-section {
    padding: 70px 0 90px;
  }

  .gallery-grid {
    column-count: 2;
    column-gap: 20px;
  }

  .g-item {
    margin-bottom: 20px;
  }

}

@media (max-width: 650px) {

  .photo-hero {
    height: 55vh;
    min-height: 400px;
    max-height: 600px;
  }

  .photo-hero .page-hero-image img {
    object-position: center 22%;
  }

  .gallery-section {
    padding: 55px 0 70px;
  }

  .gallery-grid {
    column-count: 1;
  }

  .g-item {
    margin-bottom: 18px;
  }

  .g-item:hover img {
    transform: none;
  }

}


/* ============================================================
   PORTFOLIO CATEGORY BAR
   Under the header on every gallery page. Scrolls sideways on
   small screens; centred when everything fits.
   ============================================================ */

.category-bar {
  background: var(--paper);
  border-bottom: 1px solid rgba(51,52,31,.12);
}

.category-bar ul {
  position: relative;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.category-bar ul::-webkit-scrollbar {
  display: none;
}

/* auto margins centre the row when it fits, without clipping when it scrolls */
.category-bar li:first-child { margin-left: auto; }
.category-bar li:last-child { margin-right: auto; }

.category-bar a {
  display: block;
  padding: 20px 0 18px;
  border-bottom: 2px solid transparent;
  color: var(--ink-soft);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: color .2s ease, border-color .2s ease;
}

.category-bar a:hover {
  color: var(--deep);
}

.category-bar a.active {
  border-bottom-color: var(--deep);
  color: var(--deep);
}

@media (max-width: 700px) {

  .category-bar ul {
    gap: 24px;
  }

  .category-bar a {
    padding: 16px 0 14px;
  }

}


/* ============================================================
   HEADER VIDEO
   Silent looping video behind a page header (Videos page).
   The still image underneath shows while it loads, and instead of
   it for visitors who prefer reduced motion.
   ============================================================ */

.page-hero-image .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .page-hero-image .hero-video {
    display: none;
  }
}


/* ============================================================
   GALLERY BOOKING PROMPT ("Love these? Book a family session")
   ============================================================ */

.gallery-cta {
  padding: 0 0 110px;
  text-align: center;
}

.gallery-cta .container {
  padding-top: 70px;
  border-top: 1px solid rgba(51,52,31,.12);
}

.gallery-cta .eyebrow {
  margin-bottom: 18px;
  color: var(--ink-soft);
}

@media (max-width: 700px) {
  .gallery-cta {
    padding-bottom: 80px;
  }
  .gallery-cta .container {
    padding-top: 50px;
  }
}


/* ============================================================
   GALLERY INTRO LINE (above each gallery grid)
   ============================================================ */

.gallery-intro {
  max-width: 34em;
  margin: 0 auto 56px;
  color: var(--deep);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 700px) {
  .gallery-intro {
    margin-bottom: 38px;
  }
}


/* ============================================================
   SCROLL FADE-IN
   main.js marks content below the fold as .reveal-pending and adds
   .is-visible as it scrolls into view. Content already on screen at
   load is never hidden, and nothing is hidden without JavaScript.
   ============================================================ */

.reveal-pending {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s cubic-bezier(.2,.65,.2,1), transform .9s cubic-bezier(.2,.65,.2,1);
}

.reveal-pending.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-pending {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ============================================================
   LONG REVIEWS: first lines + "Read more" (main.js)
   ============================================================ */

.testimonial-quote.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  margin: 14px 0 0;
  padding: 0 0 3px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: var(--deep);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
}


/* ============================================================
   PAGE NOT FOUND (404.html)
   ============================================================ */

.notfound {
  padding: 140px 0 160px;
  text-align: center;
}

.notfound-inner {
  max-width: 720px;
}

.notfound h1 {
  margin: 0 0 20px;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.08;
}

.notfound-text {
  margin: 0 auto 36px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 30px;
}

/* Underlined uppercase link (homepage intro, 404 page) */
.text-link {
  border-bottom:1px solid currentColor;
  padding-bottom:3px;
  font-size:.75rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  transition:opacity .2s ease;
}
.text-link:hover {
  opacity:.6;
}


/* ============================================================
   WEBP PHOTOS
   <picture> only picks the file format; it adds no box of its own,
   so every existing "... img" style still applies unchanged.
   ============================================================ */

picture {
  display: contents;
}


/* ============================================================
   PRIVACY POLICY (plain reading page)
   ============================================================ */

.legal {
  padding: 120px 0 130px;
}

.legal-inner {
  max-width: 720px;
}

.legal h1 {
  margin: 0 0 10px;
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  line-height: 1.08;
}

.legal-updated {
  margin: 0 0 40px;
  color: var(--ink-soft);
  font-size: .9rem;
}

.legal h2 {
  margin: 44px 0 12px;
  font-size: 1.35rem;
}

.legal p,
.legal li {
  line-height: 1.75;
}

.legal ul {
  margin: 0 0 18px;
  padding-left: 1.2em;
}

.legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 650px) {
  .legal {
    padding: 70px 0 90px;
  }
}


/* ============================================================
   LONG GALLERIES: "Show more" button and back-to-top
   ============================================================ */

.g-item[hidden] {
  display: none !important;
}

.gallery-more {
  margin-top: 16px;
  text-align: center;
}

.btn-ghost {
  background: transparent;
  color: #33341f;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: #33341f;
  color: #f4f0e7;
}

.to-top {
  position: fixed;
  right: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 900;                  /* above content, below the lightbox */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--deep);
  color: var(--paper);
  box-shadow: 0 6px 20px rgba(20,21,12,.25);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.to-top:focus-visible {
  outline: 2px solid var(--deep);
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .to-top {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
}
