/* ============================================================
   FideRath — Landingpage
   ============================================================ */

:root {
  --color-bg: #12261b;      /* dark green background */
  --color-cream: #fffdf8;   /* off-white text */
  --color-pink: #f0c6bc;    /* accent (logo dot) */
  --color-beige: #d5cbb4;   /* frames / footer text */
  --color-dark: #1b1a17;    /* button shadow / arrow */

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;

  --content-width: 612px;
  --page-gutter: 60px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-cream);
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ---------- Layout ---------- */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding-inline: 24px;
  text-align: center;
}

/* ---------- Header ---------- */
.header {
  padding-top: 0px;
}

.logo {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 60px;
  line-height: 1;
  letter-spacing: -3px;
  color: var(--color-cream);
  text-decoration: none;
}

.logo__dot {
  color: var(--color-pink);
}

/* ---------- Intro ---------- */
.intro {
  margin-top: 40px;
}

.lead {
  margin: 0;
}

/* ---------- Gallery / Slider ---------- */
.gallery {
  margin-top: 56px;
}

.gallery__swiper {
  overflow: hidden;
  padding-block: 32px; /* room for rotated cards */
}

.swiper-slide {
  width: 340px;         /* fixed slide width -> slidesPerView: auto */
  height: auto;
  display: flex;
  justify-content: center;
}

/* Photo card with tilted double-frame effect */
.photo-card {
  position: relative;
  margin: 0;
  width: 100%;
  transition: transform 0.4s ease;
}

.photo-card img {
  width: 100%;
  aspect-ratio: 337 / 409;
  object-fit: cover;
  border: 3px solid var(--color-beige);
  background: var(--color-bg);
}

/* the offset, differently-rotated outline behind the photo 
.photo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--color-beige);
  z-index: -1;
  transition: transform 0.4s ease;
}
*/
/* Alternating tilts per slide for the scattered look */
.swiper-slide:nth-child(4n + 1) .photo-card { transform: rotate(-4deg); }
.swiper-slide:nth-child(4n + 1) .photo-card::before { transform: rotate(4deg); }

.swiper-slide:nth-child(4n + 2) .photo-card { transform: rotate(3deg); }
.swiper-slide:nth-child(4n + 2) .photo-card::before { transform: rotate(-5deg); }

.swiper-slide:nth-child(4n + 3) .photo-card { transform: rotate(-2deg); }
.swiper-slide:nth-child(4n + 3) .photo-card::before { transform: rotate(5deg); }

.swiper-slide:nth-child(4n + 4) .photo-card { transform: rotate(4deg); }
.swiper-slide:nth-child(4n + 4) .photo-card::before { transform: rotate(-4deg); }

.swiper-slide-active .photo-card {
  transform: rotate(0deg) scale(1.04);
}

/* ---------- Slider navigation ---------- */
.gallery__nav {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  margin-top: 32px;
}

.nav-btn {
  position: relative;
  width: 45px;
  height: 45px;
  padding: 0;
  border: 1px solid var(--color-dark);
  background: #fff;
  color: var(--color-dark);
  box-shadow: 3px 3px 0 var(--color-dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background 0.15s ease, color 0.15s ease;
}

.nav-btn__icon {
  width: 41px;
  height: 41px;
}

.nav-btn--prev .nav-btn__icon {
  transform: rotate(180deg);
}

.nav-btn:hover {
  background: var(--color-dark);
  color: #fff;
}

.nav-btn:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--color-dark);
}

.nav-btn:focus-visible {
  outline: 2px solid var(--color-pink);
  outline-offset: 3px;
}

.nav-btn.swiper-button-disabled {
  opacity: 0.4;
  cursor: default;
}

/* ---------- Content ---------- */
.content {
  margin-top: 40px;
}

.content p {
  margin: 0 0 28px;
}

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

/* ---------- Footer ---------- */
.footer {
  margin-top: auto;
  padding-block: 40px;
  border-top: 2px solid var(--color-beige);
  margin-top: 40px;
}

.footer__inner {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding-inline: var(--page-gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  color: var(--color-beige);
}

.footer__copy {
  margin: 0;
}

.footer__mail {
  color: var(--color-beige);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-align: right;
}

.footer__mail:hover {
  color: var(--color-cream);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .footer__inner {
    padding-inline: 24px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 17px;
    line-height: 26px;
  }

  .header {
    padding-top: 0px;
  }

  .logo {
    font-size: 44px;
    letter-spacing: -2px;
  }

  .intro {
    margin-top: 28px;
  }

  .gallery {
    margin-top: 40px;
  }

  .swiper-slide {
    width: 260px;
  }

  .gallery__nav {
    justify-content: center;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer__mail {
    text-align: left;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .photo-card,
  .photo-card::before,
  .nav-btn {
    transition: none;
  }
}
