/* ==========================================================================
   Tiem Okori Studios — Wedding Photography
   Design tokens
   ========================================================================== */

:root {
  --ivory: #F6F2EA;
  --ivory-deep: #EFE9DC;
  --ink: #1B1712;
  --stone: #746B5B;
  --gold: #A8873F;
  --gold-deep: #8B6F2F;
  --gold-pale: #D9C89A;
  --charcoal: #12100C;
  --charcoal-2: #1D1912;
  --line: rgba(27, 23, 18, 0.12);
  --line-on-dark: rgba(246, 242, 234, 0.16);

  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  --container: 1240px;
  --gutter: clamp(24px, 5vw, 72px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4, p, figure {
  margin: 0;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

/* focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 1.5px solid var(--gold);
  outline-offset: 3px;
}

/* ==========================================================================
   Typographic helpers
   ========================================================================== */

.eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--gold-deep);
}

.eyebrow--light {
  color: var(--gold-pale);
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.08;
  letter-spacing: 0.002em;
  color: var(--ink);
}

.section-heading--dark {
  color: var(--ivory);
}

/* ==========================================================================
   Ring motif — signature element derived from the OS monogram
   ========================================================================== */

.ring-motif {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.ring-motif svg {
  display: block;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 28px 0;
}

.divider .rule {
  height: 1px;
  width: 56px;
  background: var(--line);
}

.divider--dark .rule {
  background: var(--line-on-dark);
}

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px var(--gutter);
  transition: background 0.5s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.nav.is-scrolled {
  background: rgba(246, 242, 234, 0.92);
  backdrop-filter: blur(10px);
  padding-top: 16px;
  padding-bottom: 16px;
  box-shadow: 0 1px 0 var(--line);
}

.nav__mark {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
}

.nav__mark img {
  height: 100%;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.4s var(--ease);
}

.nav.is-scrolled .nav__mark img,
.nav--dark-context .nav__mark img {
  filter: none;
}

.nav__mark-word {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ivory);
  transition: color 0.4s var(--ease);
}

.nav.is-scrolled .nav__mark-word {
  color: var(--ink);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.4s var(--ease), border-color 0.3s var(--ease);
}

.nav.is-scrolled .nav__links a {
  color: var(--ink);
}

.nav__links a:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  z-index: 110;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--ivory);
  margin: 6px 0;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav.is-scrolled .nav__toggle span {
  background: var(--ink);
}

.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav__toggle.is-open span { background: var(--ink) !important; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.06);
  animation: hero-settle 2.4s var(--ease) forwards;
}

@keyframes hero-settle {
  to { transform: scale(1); }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18,16,12,0.32) 0%, rgba(18,16,12,0.08) 30%, rgba(18,16,12,0.55) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--gutter) 90px;
  text-align: center;
  color: var(--ivory);
}

.hero__eyebrow {
  opacity: 0;
  animation: rise 1s var(--ease) 0.5s forwards;
}

.hero__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(38px, 7vw, 84px);
  line-height: 1.05;
  margin: 18px 0 0;
  opacity: 0;
  animation: rise 1.1s var(--ease) 0.7s forwards;
}

.hero__sub {
  margin-top: 20px;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--gold-pale);
  opacity: 0;
  animation: rise 1s var(--ease) 0.95s forwards;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ivory);
  opacity: 0;
  animation: rise 1s var(--ease) 1.3s forwards;
}

.hero__scroll span {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, var(--gold) 0%, transparent 100%);
  animation: scroll-pulse 2.2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ==========================================================================
   Intro / statement
   ========================================================================== */

.intro {
  padding: 150px 0 130px;
  text-align: center;
}

.intro__inner {
  max-width: 760px;
  margin: 0 auto;
}

.intro__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.5;
  color: var(--ink);
}

.intro__attribution {
  margin-top: 30px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery {
  padding: 0 0 40px;
}

.gallery__head {
  text-align: center;
  padding: 0 var(--gutter) 64px;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  padding: 0 6px;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--ivory-deep);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.gallery__item:hover img {
  transform: scale(1.05);
}

.gallery__item::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(246,242,234,0.75);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.gallery__item:hover::after {
  opacity: 1;
}

.gallery__item--a { grid-column: span 4; aspect-ratio: 4 / 3; }
.gallery__item--b { grid-column: span 2; aspect-ratio: 3 / 4; }
.gallery__item--c { grid-column: span 2; aspect-ratio: 3 / 4; }
.gallery__item--d { grid-column: span 4; aspect-ratio: 4 / 3; }
.gallery__item--e { grid-column: span 3; aspect-ratio: 5 / 4; }
.gallery__item--f { grid-column: span 3; aspect-ratio: 5 / 4; }
.gallery__item--feature { grid-column: span 6; aspect-ratio: 2 / 1; }
.gallery__item--portrait { grid-column: span 2; aspect-ratio: 2 / 3; }

.gallery__item--feature img { object-position: center 32%; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(18, 16, 12, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease);
  padding: 40px;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 100%;
  max-height: 86vh;
  width: auto;
  height: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

.lightbox__close {
  position: absolute;
  top: 28px;
  right: 32px;
  background: none;
  border: none;
  color: var(--ivory);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--ivory);
  opacity: 0.7;
  padding: 16px;
  transition: opacity 0.3s var(--ease);
}

.lightbox__nav:hover { opacity: 1; }
.lightbox__nav--prev { left: 8px; }
.lightbox__nav--next { right: 8px; }

/* ==========================================================================
   Services
   ========================================================================== */

.services {
  padding: 150px 0 140px;
  background: var(--ivory-deep);
  position: relative;
}

.services__head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 84px;
}

.services__head p {
  margin-top: 22px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--stone);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.service {
  padding: 52px 44px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service:last-child {
  border-right: none;
}

.service__mark {
  margin-bottom: 26px;
}

.service__title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  color: var(--ink);
  margin-bottom: 16px;
}

.service__desc {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--stone);
  flex-grow: 1;
}

.service__list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.service__list li {
  padding: 7px 0;
  border-top: 1px solid var(--line);
}

.service__list li:first-child {
  border-top: none;
}

.service__price {
  margin-top: 22px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--gold-deep);
}

.services__note {
  text-align: center;
  margin-top: 56px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--stone);
}

.services__note a {
  color: var(--gold-deep);
  border-bottom: 1px solid var(--gold-pale);
}

/* ==========================================================================
   About
   ========================================================================== */

.about {
  padding: 150px 0;
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  align-items: center;
  gap: 0;
}

.about__image {
  position: relative;
  height: 100%;
  min-height: 560px;
  overflow: hidden;
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.about__content {
  padding: 0 var(--gutter) 0 90px;
}

.about__content .section-heading {
  margin: 20px 0 26px;
}

.about__content p {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--stone);
  max-width: 460px;
}

.about__content p + p {
  margin-top: 18px;
}

.about__signature {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.about__signature-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
  background: var(--charcoal);
  padding: 150px 0 110px;
  position: relative;
  overflow: hidden;
}

.contact__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
}

.contact__intro .section-heading {
  margin: 20px 0 26px;
}

.contact__intro p {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(246,242,234,0.62);
  max-width: 380px;
}

.contact__details {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact__details a,
.contact__details span {
  display: block;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ivory);
}

.contact__details a {
  border-bottom: 1px solid var(--line-on-dark);
  padding-bottom: 3px;
  width: fit-content;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.contact__details a:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.contact__details-label {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-pale);
  margin-bottom: 6px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.field {
  margin-bottom: 26px;
}

.field label {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-pale);
  margin-bottom: 10px;
}

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-on-dark);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 15px;
  padding: 8px 2px 12px;
  transition: border-color 0.3s var(--ease);
}

.field textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.6;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(246,242,234,0.32);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: none;
  border: 1px solid var(--gold);
  color: var(--ivory);
  padding: 16px 30px;
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
  margin-top: 8px;
}

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

.btn svg { transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.form-status {
  margin-top: 18px;
  font-size: 13px;
  color: var(--gold-pale);
  display: none;
}

.form-status.is-visible { display: block; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--charcoal);
  border-top: 1px solid var(--line-on-dark);
  padding: 56px 0 40px;
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-on-dark);
}

.footer__mark {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__mark img {
  height: 30px;
  width: auto;
}

.footer__mark-word {
  font-size: 12px;
  letter-spacing: 0.26em;
  color: var(--ivory);
  text-transform: uppercase;
}

.footer__links {
  display: flex;
  gap: 34px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__links a {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(246,242,234,0.7);
  transition: color 0.3s var(--ease);
}

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

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: rgba(246,242,234,0.4);
}

.footer__bottom a {
  color: rgba(246,242,234,0.6);
}

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

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .about {
    grid-template-columns: 1fr;
  }
  .about__image { min-height: 420px; }
  .about__content {
    padding: 64px var(--gutter) 0;
  }
  .about__content p { max-width: none; }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }
  .service {
    border-right: none;
  }
}

@media (max-width: 760px) {
  .nav__links {
    position: fixed;
    inset: 0;
    background: var(--charcoal);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.5s var(--ease), opacity 0.4s var(--ease);
    z-index: 105;
  }

  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav__links a { color: var(--ivory); font-size: 15px; }

  .nav__toggle { display: block; }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery__item--a,
  .gallery__item--b,
  .gallery__item--c,
  .gallery__item--d,
  .gallery__item--e,
  .gallery__item--f,
  .gallery__item--feature {
    grid-column: span 2;
    aspect-ratio: 4 / 3;
  }
  .gallery__item--portrait {
    grid-column: span 1;
    aspect-ratio: 3 / 4;
  }

  .intro { padding: 110px 0 90px; }
  .services { padding: 110px 0 90px; }
  .about { padding: 110px 0; }
  .contact { padding: 110px 0 80px; }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__links {
    flex-wrap: wrap;
    gap: 20px;
  }
}
