/* ==========================================================
   belofte: main stylesheet
   ----------------------------------------------------------
   1. Colours, fonts & sizes (edit these first)
   2. Base / reset
   3. Shared pieces (container, label, headings, links, button)
   4. Header & navigation
   5. Hero
   6. Our promise
   7. Moments gallery
   8. About
   9. Contact
   10. Footer
   11. Scroll fade-in animation
   12. Mobile adjustments
   ========================================================== */


/* ---------- 1. Colours, fonts & sizes ---------- */
:root {
  --bg:     #faf7f2;   /* warm off-white page background */
  --tint:   #efe9df;   /* soft sand (contact block) */
  --ink:    #2b2824;   /* main text */
  --muted:  #6e675e;   /* softer text */
  --accent: #8a7a5c;   /* muted olive-gold for labels & lines */
  --line:   #dcd4c7;   /* thin divider lines */

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Karla", "Helvetica Neue", Arial, sans-serif;

  --content-width: 1240px;                  /* widest content width */
  --gutter: clamp(20px, 5vw, 56px);         /* side padding */
  --section-space: clamp(80px, 11vw, 150px);/* space between sections */
}


/* ---------- 2. Base / reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }

/* Leave a little space above a section when jumped to from the menu */
section[id] { scroll-margin-top: 24px; }


/* ---------- 3. Shared pieces ---------- */

/* Centred content column */
.container {
  max-width: calc(var(--content-width) + var(--gutter) * 2);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Small numbered section label, e.g. "01 — Our promise" */
.label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 28px;
}
.label span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  letter-spacing: 0;
  color: var(--accent);
}
.label span::after {
  content: "";
  display: inline-block;
  width: 36px;
  height: 1px;
  margin-left: 14px;
  vertical-align: middle;
  background: var(--accent);
}

/* Headings use the serif; <em> inside them becomes italic accent */
h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 28px;
}
h1 { font-size: clamp(44px, 6vw, 84px); }
h2 { font-size: clamp(34px, 3.8vw, 52px); }
h1 em, h2 em, .statement em { font-style: italic; color: var(--accent); }

p { margin: 0 0 18px; }

/* Underlined text link */
.text-link {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  transition: color 0.3s, border-color 0.3s;
}
.text-link:hover { color: var(--accent); border-color: var(--accent); }

/* Button: solid, small uppercase */
.btn {
  display: inline-block;
  margin-top: 12px;
  padding: 15px 34px;
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.3s;
}
.btn:hover { background: var(--accent); }


/* ---------- 4. Header & navigation ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  padding-bottom: 32px;
}

.logo {
  font-family: var(--serif);
  font-size: 34px;
  font-style: italic;
  font-weight: 500;
  text-decoration: none;
  line-height: 1;
}

.site-nav ul {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.3s;
}
.site-nav a:hover { color: var(--ink); }

/* Hamburger button: hidden on desktop */
.nav-toggle { display: none; }


/* ---------- 5. Hero ---------- */
.hero-photo img {
  width: 100%;
  height: clamp(380px, 46vw, 640px);
  object-fit: cover;
  object-position: 50% 30%;   /* move the crop up/down here (0% = top, 100% = bottom) */
}

/* Headline left, short intro + link right */
.hero-caption {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  padding-top: 36px;
}
.hero-caption h1 { margin: 0; }

.hero-sub {
  max-width: 260px;
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 2.2;
}


/* ---------- 6. Our promise ---------- */
.promise {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

.statement {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.35;
  margin-bottom: 36px;
}

.promise-small {
  max-width: 560px;
  color: var(--muted);
}


/* ---------- 7. Moments gallery ---------- */
/* Three portrait columns; the middle column sits lower for a staggered look */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 32px);
  padding-bottom: 90px;   /* room for the lowered middle column */
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.gallery figure:nth-child(3n + 2) { transform: translateY(90px); }
.js .gallery figure.reveal:nth-child(3n + 2) { transform: translateY(106px); }
.js .gallery figure.reveal.visible:nth-child(3n + 2) { transform: translateY(90px); }


/* ---------- 8. About ---------- */
.about {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: center;
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

/* Arched portrait frame */
.about-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 25%;
  border-radius: 999px 999px 0 0;
}

.about-text { max-width: 520px; }
.about-text p:not(.label) { color: var(--muted); }

/* "the owner of belofte events." sits just under the heading, in the serif */
.about-text h2 { margin-bottom: 8px; }
.about-text .about-intro {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 28px;
}


/* ---------- 9. Contact ---------- */
.contact { background: var(--tint); }

.contact-inner {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: end;
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}
.contact-inner > div > p:not(.label) { color: var(--muted); max-width: 520px; }

.contact-details {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-details li {
  display: flex;
  flex-direction: column;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.contact-details li:last-child { border-bottom: 1px solid var(--line); }

.detail-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-details a,
.contact-details span:not(.detail-label) {
  font-family: var(--serif);
  font-size: 22px;
  text-decoration: none;
}
.contact-details a:hover { color: var(--accent); }


/* ---------- 10. Footer ---------- */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
  padding-top: 40px;
  padding-bottom: 40px;
}
.site-footer .logo { font-size: 28px; }

.footer-link {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}
.footer-link:hover { color: var(--ink); }

.copyright { font-size: 13px; color: var(--muted); margin: 0; }


/* ---------- 11. Scroll fade-in animation ---------- */
/* Only hides content when JavaScript is running, so the page never appears blank */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.js .reveal.visible { opacity: 1; transform: none; }

/* Respect people who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .gallery figure.reveal:nth-child(3n + 2) { transform: translateY(90px); }
}


/* ---------- 12. Mobile adjustments ---------- */

/* Tablets */
@media (max-width: 900px) {
  .promise { grid-template-columns: 1fr; gap: 0; }

  /* Two columns, no stagger */
  .gallery { grid-template-columns: repeat(2, 1fr); padding-bottom: 0; }
  .gallery figure:nth-child(3n + 2),
  .js .gallery figure.reveal.visible:nth-child(3n + 2) { transform: none; }

  .contact-inner { grid-template-columns: 1fr; }
}

/* Phones */
@media (max-width: 760px) {
  .site-header { padding-top: 22px; padding-bottom: 22px; position: relative; }
  .logo { font-size: 30px; }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 10px;
    background: none;
    border: 0;
    color: var(--ink);
    cursor: pointer;
    position: relative;
    z-index: 101;
  }
  .nav-toggle span {
    display: block;
    height: 1px;
    background: currentColor;
    transition: transform 0.3s;
  }

  /* Full-screen menu that fades in */
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
  }
  .site-nav ul { flex-direction: column; align-items: center; gap: 32px; }
  .site-nav a { font-size: 14px; color: var(--ink); }

  /* Menu open state (toggled by JavaScript) */
  .nav-open .site-nav { opacity: 1; visibility: visible; }
  .nav-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-open .nav-toggle span:last-child  { transform: translateY(-4px) rotate(-45deg); }

  .hero-photo img { height: 58vh; min-height: 340px; }
  .hero-caption { flex-direction: column; align-items: flex-start; gap: 18px; padding-top: 24px; }

  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; }

  .site-footer { flex-direction: column; text-align: center; }
}

/* Small phones: one photo per row */
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
}
