/* ============================================
   Sophie Dolan: Portfolio
   Palette + type taken from the brand board:
   brique, abricot, blush, rose sorbet, pistache,
   olive on a warm cream. Lora throughout.
   Home page layout follows the bold color-block
   reference; blog page follows the editorial one.
   ============================================ */

:root {
  --cream: #f4ede4;
  --brique: #741d28;
  --abricot: #f08a59;
  --blush: #ffd2d9;
  --rose: #ff88be;
  --pistache: #b9ac39;
  --olive: #443b0e;

  --font: 'Lora', Georgia, serif;

  --max-width: 1180px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--olive);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-transform: lowercase;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font);
  font-weight: 700;
  margin: 0;
  color: var(--brique);
}

.eyebrow {
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--brique);
  margin: 0 0 0.9rem;
}

section { position: relative; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled,
.site-header.header-solid {
  background: var(--cream);
  box-shadow: 0 1px 0 rgba(116, 29, 40, 0.25);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.logo {
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.01em;
  color: var(--brique);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--brique);
}
.main-nav a:hover { opacity: 0.65; }
.main-nav .nav-cta {
  border: 1px solid var(--brique);
  padding: 0.6rem 1.1rem;
}
.main-nav .nav-cta:hover { background: var(--brique); color: var(--cream); opacity: 1; }
.ext-arrow { font-size: 0.9em; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.menu-toggle span { width: 24px; height: 2px; background: var(--brique); }

.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: min(80vw, 320px);
  background: var(--brique);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.6rem;
  padding: 2rem;
  transform: translateX(100%);
  transition: transform 0.35s ease;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu a { font-weight: 600; font-size: 1.5rem; color: var(--blush); }

/* ---------- Hero (color-block, overlapping name) ---------- */
.hero-stage {
  position: relative;
  background: linear-gradient(to bottom, var(--rose) 0 66%, var(--cream) 66% 100%);
  padding: 9rem var(--gutter) 2.5rem;
  text-align: center;
  overflow: hidden;
}
.hero-names {
  --fs: clamp(4.5rem, 19vw, 14.5rem);
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
}
.hero-name {
  font-size: var(--fs);
  line-height: 0.84;
  letter-spacing: -0.02em;
}
.hero-name span { display: block; position: relative; }
.hn-1 { color: var(--blush); z-index: 1; }
.hn-2 { color: var(--brique); z-index: 3; }
.hero-photo {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: -0.04em;
  height: calc(var(--fs) * 1.75);
  width: auto;
  max-width: none;
  transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
}
.hero-labels {
  max-width: var(--max-width);
  margin: 2.25rem auto 0;
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--brique);
}

.statement {
  background: var(--cream);
  padding: 3.5rem var(--gutter) 4.5rem;
  text-align: center;
}
.statement p {
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  line-height: 1.25;
  max-width: 24ch;
  margin: 0 auto 2rem;
  color: var(--olive);
}
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  padding: 0.95rem 1.8rem;
  border: 1px solid var(--brique);
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-primary { background: var(--brique); color: var(--cream); }
.btn-primary:hover { background: transparent; color: var(--brique); }
.btn-ghost { color: var(--brique); }
.btn-ghost:hover { background: var(--brique); color: var(--cream); }

/* ---------- Brand logo placeholders ---------- */
.logos {
  background: var(--cream);
  padding: 1rem var(--gutter) 5rem;
  text-align: center;
}

/* Brand logo band */
.logo-marquee {
  margin-top: 1.75rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.logo-track {
  display: flex;
  width: max-content;
  animation: logo-scroll 45s linear infinite;
}
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-set { display: flex; gap: 1.5rem; padding-right: 1.5rem; }
@keyframes logo-scroll { to { transform: translateX(-50%); } }
.logo-tile {
  flex: 0 0 auto;
  width: 150px;
  height: 150px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-tile img { width: 100%; height: 100%; object-fit: contain; }
.logo-tile.pad img { padding: 1.1rem; }
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
  .logo-marquee { overflow-x: auto; }
  .logo-set[aria-hidden="true"] { display: none; }
}
@media (max-width: 600px) { .logo-tile { width: 120px; height: 120px; } }

/* ---------- Title band ---------- */
.band {
  background: var(--brique);
  padding: 6.5rem var(--gutter);
  text-align: center;
  overflow: hidden;
}
.band h2 {
  color: var(--blush);
  font-weight: 600;
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  line-height: 1.08;
}
.band-img {
  position: absolute;
  width: clamp(6rem, 13vw, 12rem);
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.band-img-1 { top: 2rem; left: 8%; }
.band-img-2 { bottom: 2rem; right: 8%; }

/* ---------- Meet / About ---------- */
.about { padding: 6rem var(--gutter); background: var(--cream); }
.about-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.about-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.about-copy h2 {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 0.95;
  margin-bottom: 1.5rem;
}
.about-copy p { max-width: 54ch; margin: 0 0 1rem; }

.pillars {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 1.75rem;
}
.pillar h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.pillar p { margin: 0; font-size: 0.85rem; }

.stat-row {
  margin-top: 2.5rem;
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid var(--brique);
  padding-top: 1.75rem;
}
.stat { display: flex; flex-direction: column; }
.stat-num { font-weight: 700; font-size: 2.4rem; color: var(--brique); line-height: 1; }
.stat-label { font-size: 0.72rem; letter-spacing: 0.1em; margin-top: 0.45rem; }

/* ---------- Work ---------- */
.work { background: var(--blush); padding: 6rem var(--gutter); }
.section-head {
  max-width: var(--max-width);
  margin: 0 auto 2.25rem;
  text-align: center;
}
.work h2 { font-size: clamp(2.4rem, 5vw, 3.8rem); }

.work-tabs {
  max-width: var(--max-width);
  margin: 0 auto 3rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.tab-btn,
.tab-link {
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  background: var(--cream);
  color: var(--brique);
  border: 1px solid var(--brique);
  padding: 0.75rem 1.4rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  text-transform: lowercase;
}
.tab-btn:hover,
.tab-link:hover { background: var(--brique); color: var(--cream); }
.tab-btn.is-active { background: var(--brique); color: var(--blush); }
.tab-link { display: inline-flex; align-items: center; gap: 0.4em; background: transparent; }

.work-panel { display: none; max-width: var(--max-width); margin: 0 auto; }
.work-panel.is-active { display: block; animation: fadein 0.4s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.category-group { margin-bottom: 3rem; }
.category-group:last-child { margin-bottom: 0; }
.category-heading {
  font-size: 1.1rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--brique);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}
.work-card { background: var(--cream); overflow: hidden; transition: transform 0.25s ease; }
.work-card:hover { transform: translateY(-5px); }
.card-media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--abricot);
}
.work-card:nth-of-type(3n+2) .card-media.placeholder-media { background: var(--pistache); }
.work-card:nth-of-type(3n+3) .card-media.placeholder-media { background: var(--rose); }
.card-media img,
.card-media video { width: 100%; height: 100%; object-fit: cover; }
.ph-label {
  font-weight: 600;
  text-align: center;
  font-size: 1rem;
  color: var(--brique);
  padding: 1rem;
  line-height: 1.25;
}
.card-body { padding: 1rem 1.2rem 1.25rem; }
.card-body h3 { font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact {
  background: var(--abricot);
  color: var(--brique);
  text-align: center;
  padding: 6rem var(--gutter);
}
.contact h2 { font-size: clamp(2.4rem, 6vw, 4.5rem); margin-bottom: 1rem; }
.contact-sub { max-width: 46ch; margin: 0 auto 2rem; color: var(--brique); }
.contact-email {
  font-weight: 700;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  color: var(--brique);
  border-bottom: 2px solid var(--brique);
  padding-bottom: 0.15em;
}
.social-row {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}
.social-row a:hover { opacity: 0.65; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--olive);
  color: var(--blush);
  text-align: center;
  padding: 1.75rem var(--gutter) 2.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}
.site-footer p { margin: 0; }
.footer-handle { margin-top: 0.35rem !important; font-weight: 600; color: var(--pistache); }

/* ============================================
   Blog page (editorial layout)
   ============================================ */
.blog-bar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.1rem var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  font-weight: 500;
  color: var(--olive);
}
.blog-bar .blog-title { font-weight: 700; color: var(--brique); }
.blog-bar nav { justify-self: end; display: flex; gap: 1.4rem; }
.blog-bar a:hover { opacity: 0.6; }

.blog-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem var(--gutter) 3rem;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
}
.blog-side { position: sticky; top: 1.5rem; align-self: start; font-size: 0.78rem; }
.side-intro {
  font-style: italic;
  line-height: 1.45;
  margin: 0 0 0.35rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--olive);
}
.side-group { margin-top: 1.5rem; }
.side-group h4 {
  margin: 0 0 0.6rem;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--brique);
}
.side-group a { display: block; font-weight: 600; font-size: 0.8rem; margin-top: 0.7rem; }
.side-group a small { display: block; font-weight: 400; font-style: italic; font-size: 0.72rem; opacity: 0.75; }
.side-group a:hover { color: var(--brique); }

.blog-main { max-width: 640px; }
.post-lead { margin: 0 0 2.75rem; }
.post-lead img { width: 100%; aspect-ratio: 6 / 7; object-fit: cover; }

.post-row { display: grid; gap: 1.75rem; margin-bottom: 2.75rem; align-items: start; }
.post-row-b { grid-template-columns: 1fr 1fr; }
.post-row-c { grid-template-columns: 1fr 1fr; }
.post-row img { width: 100%; object-fit: cover; }
.post-row-b img { aspect-ratio: 4 / 5.6; }
.post-row-c .pc-right img { aspect-ratio: 4 / 5.2; }
.pc-left { display: grid; grid-template-columns: 0.8fr 1fr; gap: 1rem; align-items: start; }
.pc-left img { aspect-ratio: 3 / 4.6; }

.post-text { font-size: 0.8rem; line-height: 1.5; text-align: justify; hyphens: auto; }
.post-text h2 {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  font-weight: 600;
  margin-bottom: 0.7rem;
  text-align: left;
}
.post-text p { margin: 0 0 0.8rem; }
.dropcap::first-letter {
  float: left;
  font-size: 3.1rem;
  line-height: 0.85;
  font-weight: 700;
  padding: 0.12rem 0.4rem 0 0;
  color: var(--brique);
}
.post-meta { font-style: italic; font-size: 0.7rem; opacity: 0.75; text-align: left; }

.blog-foot {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem var(--gutter) 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  border-top: 1px solid rgba(68, 59, 14, 0.4);
}
.blog-foot span:last-child { justify-self: end; }
.blog-foot span:nth-child(2) { justify-self: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .about-inner { grid-template-columns: 1fr; }
  .about-image { max-width: 460px; }
  @media (max-width: 600px) {
  .work-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .stat-row { flex-wrap: wrap; row-gap: 1.5rem; }
  .hero-labels { flex-direction: column; align-items: center; gap: 0.4rem; }
  .post-row-b, .post-row-c { grid-template-columns: 1fr; }
}

/* Sub-sections inside a category (e.g. Hotels / Street Photography) */
.sub-heading {
  margin: 1.75rem 0 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--brique);
}
.category-heading + .sub-heading { margin-top: 0; }
