/*
Theme Name: ByMarcson
Theme URI: https://bymarcson.com
Author: ByMarcson
Description: Custom WordPress theme for ByMarcson
Version: 1.0.5
License: GNU General Public License v2 or later
Text Domain: bymarcson
*/

/* ─── Variables ─────────────────────────────────────────────── */
:root {
  --black:   #111111;
  --dark:    #1a1a1a;
  --light:   #f0f0ee;
  --white:   #ffffff;
  --muted:   #888888;
  --nav-h:   60px;
  --wrap:    1400px;
  --serif:   'Cormorant Garamond', Georgia, serif;
  --sans:    'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }
body {
  background: var(--white);
  color: var(--black);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ─── Navigation ─────────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  /* transparent by default — sits over hero images */
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
}

/* Logo */
.site-logo {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--white);
  opacity: 0.85;
}
.site-logo img { height: 28px; width: auto; }
.site-logo-text { font-size: 0.65rem; letter-spacing: 0.05em; }

/* Nav links */
.main-nav ul {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.main-nav a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.85;
  transition: opacity 0.2s;
  position: relative;
}
.main-nav a:hover { opacity: 1; }
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}
/* Language links smaller */
.main-nav .lang-item a {
  font-size: 0.68rem;
  opacity: 0.6;
}
.main-nav .lang-item a:hover { opacity: 1; }

/* sub-menu */
.main-nav li { position: relative; }
.main-nav .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: rgba(17,17,17,0.95);
  padding: 0.5rem 0;
  min-width: 130px;
  white-space: nowrap;
}
.main-nav li:hover > .sub-menu { display: block; }
.main-nav .sub-menu a { display: block; padding: 0.5rem 1rem; font-size: 0.68rem; }

/* Mobile toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  display: block; width: 22px; height: 1px;
  background: var(--white);
  transition: transform .3s, opacity .3s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ─── Main ───────────────────────────────────────────────────── */
.site-main { flex: 1; display: flex; flex-direction: column; }

/* ─── HERO — fullscreen image (Home) ────────────────────────── */
.home-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}
.home-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
/* Gradient overlay: darker at top (nav) and bottom (text), lighter in middle (face) */
.home-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.45) 0%,
    rgba(0,0,0,0.10) 30%,
    rgba(0,0,0,0.10) 55%,
    rgba(0,0,0,0.55) 100%
  );
  z-index: 1;
}
.home-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 2.5rem;
  /* Pin to bottom of hero */
  position: absolute;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%);
}
.home-hero h1 {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.home-hero__link {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.home-hero__link:hover { opacity: 1; }

/* ─── ABOUT — black section ──────────────────────────────────── */
.about-section {
  background: var(--black);
  padding: 7rem 2rem;
  text-align: center;
}
.about-section h2 {
  font-family: var(--sans);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.about-section .about-sub {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 3rem;
  line-height: 1.7;
}
.about-section p {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  max-width: 680px;
  margin: 0 auto 1.25rem;
  line-height: 1.85;
  font-weight: 300;
}
.about-section p:last-of-type { margin-bottom: 0; }

/* ─── STRIP HERO (Events + Contact pages) ────────────────────── */
.strip-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #16181e;
  margin: 0;
  padding: 0;
  line-height: 0; /* kill any gap */
}
.strip-hero__bg {
  position: relative;
  width: 100%;
  /* Show FULL panoramic image width without cropping */
  background-image: url('assets/images/hero-strip.png');
  background-size: 100% auto;
  background-position: top center;
  background-repeat: no-repeat;
  padding-top: 26%; /* matches image aspect ratio ~1540x400 */
  min-height: 260px;
  line-height: 0;
}
.strip-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 22, 28, 0.52);
  z-index: 1;
}
/* Content sits centred over the bg div */
.strip-hero__content {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 0 3rem;
  text-align: center;
}
.strip-hero h1 {
  font-family: var(--sans);
  font-size: clamp(1.2rem, 2.6vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.1;
  white-space: nowrap;
  width: max-content;
  max-width: 95vw;
}
.strip-hero p {
  font-size: 1rem;
  color: rgba(255,255,255,0.88);
  max-width: 580px;
  line-height: 1.75;
  font-weight: 300;
}

/* ─── EVENTS — Philosophy (dark) ────────────────────────────── */
.events-philosophy {
  background: var(--dark);
  padding: 7rem 2rem;
  text-align: center;
}
.events-philosophy h2 {
  font-family: var(--sans);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}
.events-philosophy .section-sub {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 3rem;
  line-height: 1.7;
}
.events-philosophy p {
  font-size: 1rem;
  color: rgba(255,255,255,0.62);
  max-width: 650px;
  margin: 0 auto 1.25rem;
  line-height: 1.9;
  font-weight: 300;
}

/* ─── EVENTS — How We Work (light) ──────────────────────────── */
.events-how {
  background: var(--light);
  padding: 7rem 2rem;
  text-align: center;
}
.events-how h2 {
  font-family: var(--sans);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 0.75rem;
}
.events-how .section-sub {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--black);
  opacity: 0.6;
  margin-bottom: 4rem;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}
.how-grid p {
  font-size: 1rem;
  color: rgba(0,0,0,0.65);
  line-height: 1.85;
  font-weight: 300;
}

/* ─── EVENTS — The Standard (dark) ──────────────────────────── */
.events-standard {
  background: var(--dark);
  padding: 7rem 2rem;
  text-align: center;
}
.events-standard h2 {
  font-family: var(--sans);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}
.events-standard .section-sub {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 3rem;
}
.events-standard p,
.events-standard li {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.9;
  font-weight: 300;
}
.events-standard ul {
  list-style: disc;
  text-align: left;
  display: inline-block;
  margin: 1.25rem auto;
  padding-left: 1.5rem;
}
.events-standard ul li { margin-bottom: 0.6rem; }
.events-standard em {
  font-style: italic;
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
  display: block;
  margin-top: 1.5rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── EVENTS — Upcoming (light) ─────────────────────────────── */
.events-upcoming {
  background: var(--light);
  padding: 5rem 2rem 7rem;
}
.events-upcoming__inner {
  max-width: 1000px;
  margin: 0 auto;
}
.events-upcoming h3 {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 2.5rem;
}
.upcoming-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 4rem;
}
.upcoming-item {
  font-size: 1rem;
  color: rgba(0,0,0,0.75);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ─── CONTACT — content (light) ─────────────────────────────── */
.contact-section {
  background: var(--light);
  padding: 5rem 2rem 5rem;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.contact-section p {
  font-size: 1rem;
  color: rgba(0,0,0,0.65);
  max-width: 680px;
  margin: 0 auto 1.25rem;
  line-height: 1.85;
  font-weight: 300;
}
.contact-email {
  display: inline-block;
  font-size: 1rem;
  color: rgba(0,0,0,0.65) !important;
  font-weight: 300;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.contact-email:hover { color: rgba(0,0,0,0.9) !important; }

/* Mobile-only heading — hidden on desktop */
.contact-mobile-heading {
  display: none;
  font-family: var(--sans);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}
.contact-mobile-sub {
  display: none;
  font-size: 1rem;
  color: rgba(0,0,0,0.65);
  margin-bottom: 2rem;
  line-height: 1.85;
  font-weight: 300;
}


/* ─── Contact page fill ──────────────────────────────────────── */
.contact-page-body {
  background: var(--light);
  flex: 1;
  display: flex;
  flex-direction: column;
}
/* ─── BACK TO START — inline in section, like homepage ──────── */
/* Used at bottom of every page's last section */
.back-to-start {
  display: block;
  text-align: center;
  padding-top: 4rem;
}
.back-to-start a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity 0.2s;
}
.back-to-start a:hover { opacity: 0.6; }
/* On light sections (how-we-work, upcoming events) */
.back-to-start--dark a {
  color: var(--black);
}

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 2rem;
}
.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
}
.footer-links { display: flex; gap: 2.5rem; }
.footer-links a {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
  letter-spacing: 0.04em;
}
.footer-links a:hover { color: var(--white); }

/* ─── Force black body on legal pages ───────────────────────── */
body { background: var(--black); }

/* ─── Default page (privacy, impressum) — black bg ──────────── */
.default-page-wrap {
  background: var(--black);
  min-height: 100vh;
}
.default-page {
  padding: calc(var(--nav-h) + 4rem) 2rem 6rem;
  max-width: 960px;
  margin: 0 auto;
}
.default-page h1 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 2.5rem;
}
.default-page h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--white);
  margin: 2rem 0 .6rem;
}
.default-page h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin: 1.5rem 0 .4rem;
}
.default-page p  { margin-bottom: 0.9rem; color: rgba(255,255,255,0.65); font-size: 1rem; line-height: 1.8; }
.default-page ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.default-page li { color: rgba(255,255,255,0.65); font-size: 1rem; margin-bottom: .3rem; line-height: 1.75; }
.default-page a  { color: rgba(255,255,255,0.5); text-decoration: underline; }
.default-page a:hover { color: var(--white); }
.default-page hr { border: none; border-top: 1px solid rgba(255,255,255,0.12); margin: 2rem 0; }
.default-page strong { color: var(--white); font-weight: 600; }

/* ─── Animations ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim { opacity: 0; }
.anim.visible { animation: fadeUp 0.7s cubic-bezier(.22,1,.36,1) forwards; }
.d1 { animation-delay: .05s; }
.d2 { animation-delay: .18s; }
.d3 { animation-delay: .32s; }

/* ─── Responsive ─────────────────────────────────────────────── */

/* ─── Events upcoming: remove any back-to-start ghost ───────── */
.events-upcoming .back-to-start { display: none; }
@media (max-width: 900px) {
  :root { --nav-h: 56px; }
  .site-header { padding: 0 1.25rem; }

  .main-nav {
    display: none;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: rgba(17,17,17,0.97);
    padding: 3rem 2rem;
    overflow-y: auto;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 1.75rem; }
  .main-nav a { font-size: 1rem; }
  .menu-toggle { display: flex; }

  .how-grid { grid-template-columns: 1fr; gap: 2rem; }
  .upcoming-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }

  /* Mobile strip hero: use square grid image, show middle 6 photos */
  .strip-hero__bg {
    background-image: url('assets/images/hero-strip-mobile.png') !important;
    background-size: cover !important;
    background-position: center center !important;
    padding-top: 60% !important;
  }

  /* Contact mobile: h1 only, centered in image */
  .strip-hero--contact .strip-hero__content { justify-content: center; padding-top: 0; }
  .strip-hero--contact h1 { font-size: clamp(1.2rem, 7vw, 1.8rem); }
  .contact-mobile-heading {
    display: block;
    font-family: var(--sans);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--black);
    margin-bottom: 1.25rem;
    line-height: 1.2;
  }
  .contact-mobile-sub {
    display: block;
    font-size: 1rem;
    color: rgba(0,0,0,0.65);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-weight: 300;
  }
}

@media (max-width: 480px) {
  .home-hero h1 {
    font-size: clamp(1.2rem, 7vw, 3rem);
    white-space: nowrap;
    letter-spacing: 0;
    padding: 0 0.5rem;
  }
  /* On very small screens allow wrap again */
  .strip-hero h1 { font-size: 1.2rem; letter-spacing: 0.08em; white-space: normal; }
  .strip-hero p { font-size: 1rem; }
}

/* ─── Desktop: larger text on Events & Contact ───────────────
   Only applies above 900px (mobile keeps 18px base)          */
@media (min-width: 901px) {

  /* Body paragraph text: 18px → 20px */
  .events-philosophy p,
  .events-how .how-grid p,
  .events-standard p,
  .events-standard li,
  .events-upcoming .upcoming-item,
  .contact-section p,
  .contact-email {
    font-size: 1.12rem;
    line-height: 1.9;
  }

  /* Section headings (THE PHILOSOPHY, HOW WE WORK etc): bump proportionally */
  .events-philosophy h2,
  .events-how h2,
  .events-standard h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  }

  /* Section sub-labels (UNCOMPROMISED STANDARDS. etc) */
  .events-philosophy .section-sub,
  .events-how .section-sub,
  .events-standard .section-sub {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
  }

  /* UPCOMING EVENTS label */
  .events-upcoming h3 {
    font-size: 0.9rem;
  }

  /* Contact email same as paragraph */
  .contact-email {
    font-size: 1.12rem !important;
  }
}
