/* =========================================================
   Arjan Reyes — Photography Portfolio
   Global styles. All theming via CSS variables.
   ========================================================= */

/* ---- Custom font (drop your Ruigslay.ttf into /fonts/) ---- */
@font-face {
    font-family: 'Ruigslay';
    src: url(/fonts/Ruigslay.ttf) format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'CanelaMed';
    src: url(/fonts/CanelaMedium.otf) format('opentype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'CanelaReg';
    src: url(/fonts/CanelaRegular.otf) format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* ---- Design tokens ---- */
:root {
  --color-black: #0A0B1A;
  --color-white: #FFF5E1;
  --color-theme1: #1C1442;
  --color-theme2: #2B1660;
  --color-theme3: #142850;

  --font-display: "Ruigslay", "Great Vibes", cursive;
  --font-ui: "Quantico", sans-serif;
  --font-body: "CanelaMed", serif;

  --nav-width: 12vw;
  --content-pad: 14vw;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* ---- Hide scrollbars everywhere (still scrollable) ---- */
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
*::-webkit-scrollbar { display: none; }

/* =========================================================
   GLOBAL NAV — fixed left vertical
   ========================================================= */
.nav {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: var(--nav-width);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  padding: 1rem 0;
  background: transparent;
  mix-blend-mode: difference;
}

.nav a {
  font-family: var(--font-ui);
  font-size: clamp(0.7rem, 0.9vw, 0.85rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-white);
  opacity: 0.85;
  transition: opacity 0.25s ease;
}
.nav a:hover,
.nav a.active { opacity: 1; }

/* =========================================================
   SHARED PAGE LAYOUT
   ========================================================= */
.page {
  padding-left: var(--content-pad);
  padding-right: 4vw;
  padding-top: 4rem;
  padding-bottom: 4rem;
  min-height: 100vh;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 245, 225, 0.12);
}

.page-header h1 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.01em;
}

.page-header .desc {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(0.85rem, 1.5vw, 1.1rem);
  opacity: 0.65;
  max-width: 400px;
  align-self: center;
  line-height: 1.5;
}

/* =========================================================
   HERO (index) — natural vertical scroll, NO snap anywhere
   ========================================================= */
.home {
  /* The page scrolls naturally; no snap container. */
  width: 100%;
}

.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.hero__bg {
  position: fixed;        
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;             
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2rem;
}

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 9rem);
  color: var(--color-white);
  line-height: 1;
  margin-bottom: 1.25rem;
  font-weight: 100;
}

.hero__sub {
  font-family: var(--font-ui);
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 2.5rem;
}

/* Pill button (also used on booking submit) */
.btn-pill {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: clamp(0.75rem, 1vw, 0.9rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-white);
  background: transparent;
  border: 1px solid var(--color-white);
  border-radius: 9999px;
  padding: 0.75rem 2.5rem;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}
.btn-pill:hover {
  background: var(--color-white);
  color: var(--color-black);
}

/* ---- Horizontal-scroll strip (no snap; natural release at edges) ---- */
.hstrip-section {
  height: 100vh;
  width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 1;
  background: var(--color-black);
}

.hstrip {
  display: flex;
  height: 100%;
  width: 100%;
  overflow-x: scroll;
  overflow-y: hidden;
  /* No scroll-snap — must scroll continuously */
}

.hstrip img {
  flex: 0 0 100vw;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
}

/* =========================================================
   ABOUT SECTION (index) — organic editorial layout.
   Uses float + margins (no rigid grid).
   ========================================================= */
.about {
  padding: 10vh var(--content-pad) 10vh var(--content-pad);
  color: var(--color-white);
  display: grid;
  grid-template-columns: 30vw 1fr;
  grid-template-rows: auto auto;
  column-gap: 4vw;
  row-gap: 3vh;
  position: relative;
  z-index: 1;

}

.about__quote {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.75rem);
  line-height: 1.2;
  color: var(--color-white);
  opacity: 0.95;
  text-align: right;
  align-self: end;
}

.about__portrait {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 100%;
  height: auto;
  border-radius: 4px;
  align-self: start;
}

.about__body {
  grid-column: 2;
  grid-row: 2;
}

.about__body p {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.8;
  color: var(--color-white);
  opacity: 0.9;
  margin-bottom: 2rem;
}

.about__cta { margin-top: 1rem; display: inline-block; }

/* =========================================================
   MASONRY GRID (category pages, album pages)
   ========================================================= */
.masonry {
  column-count: 4;
  column-gap: 0.75rem;
}
@media (max-width: 1024px) { .masonry { column-count: 3; } }
@media (max-width: 768px)  { .masonry { column-count: 2; } }

.masonry .tile {
  position: relative;
  display: block;
  margin: 0 0 0.75rem 0;
  break-inside: avoid;
  cursor: pointer;
  border-radius: 4px;
  overflow: hidden;
}
.masonry .tile img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}
.masonry .tile::after {
  content: attr(data-index);
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  color: var(--color-white);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  padding: 0.75rem 1rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.masonry .tile:hover::after { opacity: 1; }

.masonry--wide {
  column-count: 1;
}

.masonry--wide .tile img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: cover;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  margin-top: 4rem;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.4;
  position: relative;
  z-index: 1;
  background: var(--color-black);

}
.footer a {
  color: inherit;
  opacity: 0.7;
  text-decoration: none;
  transition: opacity 0.2s;
}
.footer a:hover { opacity: 1; }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 200;
  display: none;
  flex-direction: row;
}
.lightbox.is-open { display: flex; }

.lightbox__img-wrap {
  flex: 0 0 60%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox__img-wrap img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox__info {
  flex: 0 0 40%;
  padding: 4rem 3rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.lightbox__info h2 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.5rem;
}
.lightbox__info .meta {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.6;
}
.lightbox__info .settings {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  opacity: 0.6;
}
.lightbox__info .description {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.85;
  margin-top: 0.5rem;
}

.lb-btn {
  position: fixed;
  z-index: 210;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 1.25rem;
  color: var(--color-white);
  opacity: 0.7;
  transition: opacity 0.2s;
}
.lb-btn:hover { opacity: 1; }
.lb-close { top: 1rem; right: 1.5rem; font-size: 1.5rem; }
.lb-prev  { left: 1rem;  top: 50%; transform: translateY(-50%); }
.lb-next  { right: 1rem; top: 50%; transform: translateY(-50%); }

/* =========================================================
   ALBUMS LANDING — editorial asymmetric grid.
   Cards use background-image; layout via flex-basis %.
   ========================================================= */
.albums-page { padding-top: 6vh; }

.albums-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
}

.album-card {
  position: relative;
  display: block;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  color: var(--color-white);
  transition: transform 0.4s ease;
}

.album-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 11, 26, 0.55);
  transition: background 0.4s ease;
}
.album-card:hover .album-card__overlay { background: rgba(10, 11, 26, 0.35); }

.album-card__text {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 2rem 2.25rem;
  z-index: 2;
  width: 100%;
}
.album-card__text h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.5vw, 3rem);
  line-height: 1;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
  transform: translateY(0);
  transition: transform 0.35s ease;
}
.album-card:hover .album-card__text h2 { transform: translateY(-6px); }

.album-card__date {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 0.4rem;
}
.album-card__desc {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  line-height: 1.5;
  opacity: 0.85;
  max-width: 60ch;
}

/* Card sizes */
.album-card--feature    { flex: 0 0 100%; height: 50vh; }
.album-card--pair-large { flex: 0 0 calc(60% - 0.5rem); height: 35vh; }
.album-card--pair-small { flex: 0 0 calc(40% - 0.5rem); height: 35vh; }
.album-card--wide       { flex: 0 0 100%; height: 30vh; }
.album-card--third      { flex: 0 0 calc(33.333% - 0.667rem); height: 28vh; }
.album-card--half { flex: 0 0 calc(50% - 0.5rem); height: 38vh; }
.album-card--tall-third { flex: 0 0 calc(33.333% - 0.667rem); height: 45vh; }



/* Section divider with centered "Albums" label */
.albums-divider {
  flex: 0 0 100%;
  position: relative;
  margin: 1rem 0 0.5rem;
  height: 1px;
  background: rgba(255, 245, 225, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}
.albums-divider span {
  position: relative;
  top: 0;
  background: var(--color-black);
  padding: 0 1.25rem;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.65;
  color: var(--color-white);
}


.back-link {
  display: inline-block;
  margin-top: 3rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.55;
  transition: opacity 0.2s;
}
.back-link:hover { opacity: 1; }

/* =========================================================
   BOOKING
   ========================================================= */
.booking {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 3rem;
  height: 100vh;
  padding: 4rem 4vw 4rem var(--content-pad);
  overflow: hidden;
}
.booking__col { overflow-y: auto; }

.booking h1 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.booking .sub {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 1.5rem;
}

.bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 2.5rem;
}
.bubble {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.6rem 1.4rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 245, 225, 0.4);
  color: var(--color-white);
  background: transparent;
  opacity: 0.6;
  transition: all 0.25s ease;
}
.bubble:nth-child(2n)   { transform: translateY(6px); }
.bubble:nth-child(3n)   { transform: translateY(-4px); }
.bubble.is-active {
  background: var(--color-white);
  color: var(--color-black);
  border-color: var(--color-white);
  opacity: 1;
}

.form { display: flex; flex-direction: column; gap: 1.4rem; }
.field { display: flex; flex-direction: column; }
.field label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 0.4rem;
}
.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-white);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 245, 225, 0.25);
  padding: 0.4rem 0;
  outline: none;
  resize: none;
}
.field input:focus,
.field textarea:focus { border-bottom-color: var(--color-white); }
.field textarea { min-height: 80px; }

.form .btn-pill { align-self: flex-start; margin-top: 0.5rem; }

.booking__col--right h2 {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 1rem;
}
.booking iframe {
  border: none;
  width: 100%;
  height: 80vh;
  border-radius: 4px;
  filter: invert(0.92) hue-rotate(180deg);
}
