/* ==========================================
   BYJC.CO.UK — Stylesheet
   Design language: Breathing Room / JC
   Fonts: Cormorant Garamond + Jost (Google)
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Jost:wght@300;400&display=swap');

/* ==========================================
   DESIGN TOKENS
   ========================================== */
:root {
  --cream:      #f5f0e8;
  --warm-white: #faf8f4;
  --ink:        #1c1a18;
  --ink-soft:   #3d3a36;
  --stone:      #8a8278;
  --gold:       #b89a6a;
  --gold-light: #d4b88a;
  --rule:       #ddd8ce;

  --max-w:      1100px;
  --nav-h:      72px;
  --section-v:  clamp(4.5rem, 9vw, 7rem);
  --section-h:  clamp(1.5rem, 7vw, 5rem);
}

/* ==========================================
   RESET & BASE
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink);
  background: var(--warm-white);
}

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

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

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  line-height: 1.15;
}

h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2.2rem); }

em { font-style: italic; }

p { max-width: 64ch; }

.label {
  display: block;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ==========================================
   NAVIGATION
   ========================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--section-h);
  background: rgba(250, 248, 244, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}

.nav__brand {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.45rem;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.nav__links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav__links a {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  transition: color 0.2s;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--ink);
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ink);
  transition: all 0.3s;
}

@media (max-width: 760px) {
  .nav__toggle { display: flex; }

  .nav__links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--warm-white);
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem 2rem 3rem;
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 8px 24px rgba(28,26,24,0.06);
  }

  .nav__links.open { display: flex; }
}

/* ==========================================
   HOME HERO
   ========================================== */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 3rem) var(--section-h) 5rem;
  background: var(--ink);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.55;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top right,
    rgba(28,26,24,0.75) 0%,
    rgba(28,26,24,0.3) 40%,
    rgba(28,26,24,0.1) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 660px;
}

.hero__content .label {
  color: var(--gold-light);
  margin-bottom: 1.5rem;
}

.hero__content h1 {
  color: var(--warm-white);
  margin-bottom: 1.25rem;
}

.hero__content p {
  font-size: 1.1rem;
  color: rgba(250,248,244,0.75);
  margin-bottom: 2.75rem;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  background: var(--ink);
  color: var(--warm-white);
}

.btn--light {
  border-color: rgba(250,248,244,0.7);
  color: var(--warm-white);
}

.btn--light:hover {
  background: var(--warm-white);
  color: var(--ink);
  border-color: var(--warm-white);
}

.btn--gold {
  border-color: var(--gold);
  color: var(--gold);
}

.btn--gold:hover {
  background: var(--gold);
  color: var(--warm-white);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* ==========================================
   SECTION WRAPPER
   ========================================== */
.section {
  padding: var(--section-v) var(--section-h);
}

.section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section--cream { background: var(--cream); }

.section--dark {
  background: var(--ink);
  color: var(--warm-white);
}

.section--dark .label { color: var(--gold); }

.section--dark p { color: rgba(250,248,244,0.7); }

hr.rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 3rem 0;
}

/* ==========================================
   FEATURED WEDDINGS GRID
   ========================================== */
.weddings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  margin-top: 2.5rem;
}

/* 5-item: last two span wider on final row */
.weddings-grid .wedding-card:nth-child(4),
.weddings-grid .wedding-card:nth-child(5) {
  /* keeps grid clean at 3+2 */
}

@media (max-width: 900px) {
  .weddings-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .weddings-grid { grid-template-columns: 1fr; }
}

.wedding-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--cream);
  display: block;
}

.wedding-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}

.wedding-card:hover img { transform: scale(1.04); }

.wedding-card__info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem 1.5rem 1.5rem;
  background: linear-gradient(to top, rgba(28,26,24,0.72) 0%, transparent 100%);
  color: var(--warm-white);
  transform: translateY(6px);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.wedding-card:hover .wedding-card__info {
  opacity: 1;
  transform: translateY(0);
}

.wedding-card__info h3 {
  font-size: 1.35rem;
  color: var(--warm-white);
  margin-bottom: 0.2rem;
}

.wedding-card__info .venue {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  opacity: 0.72;
}

/* Placeholder when no image yet */
.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--stone);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 1rem;
}

.img-placeholder svg {
  width: 28px;
  height: 28px;
  opacity: 0.35;
  flex-shrink: 0;
}

/* ==========================================
   TWO-COLUMN LAYOUT
   ========================================== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.two-col--wide { grid-template-columns: 3fr 2fr; }
.two-col--flip > *:first-child { order: 2; }
.two-col--flip > *:last-child  { order: 1; }

@media (max-width: 760px) {
  .two-col,
  .two-col--wide { grid-template-columns: 1fr; }
  .two-col--flip > *:first-child { order: 1; }
  .two-col--flip > *:last-child  { order: 2; }
}

/* ==========================================
   PULL QUOTE
   ========================================== */
.pull-quote {
  border-left: 2px solid var(--gold);
  padding-left: 1.75rem;
  margin: 2rem 0;
}

.pull-quote p {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.45;
  color: var(--ink);
  max-width: none;
}

/* ==========================================
   PHILOSOPHY ITEMS
   ========================================== */
.philosophy-list {
  margin-top: 2rem;
}

.philosophy-item {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule);
}

.philosophy-item:last-child { border-bottom: 1px solid var(--rule); }

.philosophy-item__num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--gold);
  padding-top: 0.2rem;
}

.philosophy-item h4 {
  font-size: 1.1rem;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.philosophy-item p {
  font-size: 0.92rem;
  color: var(--stone);
  line-height: 1.7;
}

/* ==========================================
   PACKAGES / PRICING
   ========================================== */
.packages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

@media (max-width: 680px) {
  .packages { grid-template-columns: 1fr; }
}

.package-card {
  background: var(--cream);
  padding: clamp(2rem, 4vw, 3rem);
}

.package-card__eyebrow {
  color: var(--gold);
  margin-bottom: 1rem;
}

.package-card h3 { margin-bottom: 1rem; }

.package-card > p {
  color: var(--stone);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.75;
}

.package-includes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 1.5rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.package-includes li {
  font-size: 0.88rem;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.package-includes li::before {
  content: '—';
  color: var(--gold);
  flex-shrink: 0;
}

.package-note {
  font-size: 0.82rem;
  color: var(--stone);
  font-style: italic;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

/* ==========================================
   PORTFOLIO — GALLERY INDEX
   ========================================== */
.gallery-index {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
}

@media (max-width: 580px) {
  .gallery-index { grid-template-columns: 1fr; }
}

.gallery-category {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--cream);
  display: block;
}

.gallery-category img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.gallery-category:hover img { transform: scale(1.04); }

.gallery-category__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem;
  background: rgba(28,26,24,0.28);
  transition: background 0.35s;
}

.gallery-category:hover .gallery-category__overlay {
  background: rgba(28,26,24,0.48);
}

.gallery-category__overlay h2 {
  color: var(--warm-white);
  margin-bottom: 0.6rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.gallery-category__overlay .label {
  color: rgba(250,248,244,0.7);
}

/* ==========================================
   PORTFOLIO — MASONRY GALLERY
   ========================================== */
.gallery-header {
  padding: calc(var(--nav-h) + 3.5rem) var(--section-h) 3rem;
  background: var(--cream);
}

.gallery-header .label { margin-bottom: 0.75rem; }
.gallery-header h1   { margin-bottom: 0.75rem; }
.gallery-header p    { color: var(--stone); }

.masonry-wrap {
  padding: 0.75rem var(--section-h) var(--section-v);
}

.masonry {
  columns: 3;
  column-gap: 0.75rem;
}

@media (max-width: 860px) { .masonry { columns: 2; } }
@media (max-width: 480px) { .masonry { columns: 1; } }

.masonry__item {
  break-inside: avoid;
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--cream);
  cursor: pointer;
}

.masonry__item a { display: block; overflow: hidden; }

.masonry__item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.masonry__item a:hover img { transform: scale(1.03); }

/* ==========================================
   CSS LIGHTBOX (no JS required)
   ========================================== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(28,26,24,0.96);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox:target { display: flex; }

.lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  width: auto;
}

.lightbox__close {
  position: absolute;
  top: 1.75rem;
  right: 2rem;
  color: rgba(250,248,244,0.6);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.lightbox__close:hover { color: var(--warm-white); }

/* ==========================================
   PAGE HERO (inner pages)
   ========================================== */
.page-hero {
  padding: calc(var(--nav-h) + 4.5rem) var(--section-h) 4rem;
  background: var(--cream);
}

.page-hero .label  { margin-bottom: 1rem; }
.page-hero h1      { margin-bottom: 1rem; }
.page-hero p {
  font-size: 1.05rem;
  color: var(--stone);
  max-width: 580px;
}

/* ==========================================
   ABOUT PAGE — BODY COPY
   ========================================== */
.prose p {
  margin-bottom: 1.5rem;
  color: var(--ink-soft);
  line-height: 1.9;
}

.prose p:last-child { margin-bottom: 0; }

.prose p strong {
  font-weight: 400;
  color: var(--ink);
}

/* ==========================================
   CONTACT PAGE
   ========================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: clamp(3rem, 7vw, 6rem);
  align-items: start;
}

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 0.9rem 1.1rem;
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink);
  width: 100%;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-sidebar h3 { margin-bottom: 1.5rem; }

.contact-detail {
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
}

.contact-detail:last-child { border-bottom: 1px solid var(--rule); }

.contact-detail .label { margin-bottom: 0.4rem; }

.contact-detail a {
  transition: color 0.2s;
}

.contact-detail a:hover { color: var(--gold); }

.contact-detail em {
  display: block;
  font-size: 0.85rem;
  color: var(--stone);
  margin-top: 0.25rem;
}

/* ==========================================
   CTA BAND
   ========================================== */
.cta-band {
  background: var(--ink);
  padding: clamp(4rem, 8vw, 6rem) var(--section-h);
  text-align: center;
  color: var(--warm-white);
}

.cta-band h2 {
  color: var(--warm-white);
  margin-bottom: 1rem;
}

.cta-band p {
  color: rgba(250,248,244,0.65);
  max-width: 480px;
  margin: 0 auto 2.5rem;
}

/* ==========================================
   SECTION TEXT HELPERS
   ========================================== */
.section-intro .label  { margin-bottom: 1rem; }
.section-intro h2      { margin-bottom: 1.25rem; }
.section-intro p       { color: var(--stone); margin-bottom: 2rem; }

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  padding: 2.25rem var(--section-h);
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer__brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
}

.footer__copy {
  font-size: 0.78rem;
  color: var(--stone);
}

.footer__nav {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer__nav a {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--stone);
  transition: color 0.2s;
}

.footer__nav a:hover { color: var(--ink); }

@media (max-width: 580px) {
  .footer { flex-direction: column; align-items: flex-start; }
  .footer__nav { flex-wrap: wrap; gap: 1.25rem; }
}

/* ==========================================
   ANIMATIONS
   ========================================== */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  animation: fadeUp 0.75s ease forwards;
}

.fade-up:nth-child(1) { animation-delay: 0.1s; }
.fade-up:nth-child(2) { animation-delay: 0.25s; }
.fade-up:nth-child(3) { animation-delay: 0.4s; }
.fade-up:nth-child(4) { animation-delay: 0.55s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   UTILITIES
   ========================================== */
.text-center { text-align: center; }
.text-stone  { color: var(--stone); }
.text-gold   { color: var(--gold); }
.mt-sm  { margin-top: 1rem; }
.mt-md  { margin-top: 2rem; }
.mt-lg  { margin-top: 3rem; }
.mb-sm  { margin-bottom: 1rem; }
.mb-md  { margin-bottom: 2rem; }
.mb-lg  { margin-bottom: 3rem; }
.wide   { max-width: none !important; }
