/* Progress Bouldering — static site styles
   Colours and font carried over from the original Flatsome theme. */

:root {
  --bg: #000000;
  --text: #ffffff;
  --yellow: #ffc84c;   /* primary */
  --purple: #e4b7ff;   /* secondary / links */
  --divider: #e6befe;
  --contact-bg: #0c1218;
  --radius: 5px;
  --max: 1270px;
  --font: "Chocolate Classical Sans", system-ui, sans-serif;
}

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

html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3 { line-height: 1.2; font-weight: 400; margin: 0 0 .6em; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--yellow); color: #000; padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: .5rem; top: .5rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 70px;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.logo img { height: 40px; width: auto; }

.icon-btn {
  width: 46px; height: 46px;
  display: inline-grid; place-items: center;
  background: var(--yellow);
  color: #000;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font: inherit;
  font-size: .85rem;
  letter-spacing: .05em;
  text-decoration: none;
}
.icon-btn:hover { filter: brightness(1.08); text-decoration: none; }
.icon-btn svg { width: 22px; height: 22px; }
.header-left { justify-self: start; }
.header-right { justify-self: end; }

/* ---------- Off-canvas menu ---------- */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(0,0,0,.7);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 50;
  width: 250px;
  background: #0b0b0b;
  border-right: 1px solid #222;
  padding: 1.25rem 1.25rem 2rem;
  transform: translateX(-100%);
  transition: transform .25s ease;
  display: flex; flex-direction: column; gap: 1.5rem;
}
body.menu-open .drawer { transform: none; }
body.menu-open .drawer-backdrop { opacity: 1; pointer-events: auto; }

.drawer nav ul { list-style: none; margin: 0; padding: 0; }
.drawer nav a {
  display: block;
  padding: .85rem 0;
  border-bottom: 1px solid #222;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .95rem;
}
.drawer nav a:hover, .drawer nav a[aria-current="page"] { color: var(--yellow); text-decoration: none; }
.drawer .lang { display: flex; gap: 1rem; font-size: .85rem; letter-spacing: .08em; }
.drawer .lang a { color: var(--purple); }
.drawer .lang a[aria-current="true"] { color: var(--yellow); }

/* ---------- Home hero (Lottie) ---------- */
.hero {
  min-height: calc(100vh - 70px);
  display: grid; place-items: center;
  padding: 30px 0;
}
.hero lottie-player {
  width: min(60vw, 900px);
  height: 300px;
}
@media (min-width: 550px) { .hero lottie-player { height: 700px; } }
.hero-fallback { color: var(--yellow); font-size: 2rem; text-align: center; }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr;
}
.about-photo {
  min-height: 100vw;
  background: center 42% / cover no-repeat;
  background-position: 55% 42%;
}
.about-text { padding: 30px; }
.about-text h2 { color: var(--yellow); font-size: 2.25rem; }
.divider { width: 150px; height: 3px; background: var(--divider); margin: 1.5em 0; border: 0; }
.people { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.people h3 { color: var(--yellow); font-size: 1.4rem; }
.people p { margin: 0 0 .8em; }

@media (min-width: 550px) { .about-photo { min-height: 400px; } }
@media (min-width: 850px) {
  .about { grid-template-columns: 1fr 1fr; align-items: center; }
  .about-photo { order: 2; min-height: 0; aspect-ratio: 1 / 1; }
  .about-text { padding: 0 2rem 0 15%; max-width: 83%; box-sizing: content-box; }
  .people { grid-template-columns: 1fr 1fr; }
}

/* ---------- Contact ---------- */
.contact-section { background: var(--contact-bg); padding: 45px 1rem; }
@media (min-width: 550px) { .contact-section { padding: 60px 1.5rem; } }
@media (min-width: 850px) { .contact-section { padding: 100px 1.5rem; } }
.contact-card { max-width: var(--max); margin: 0 auto; background: #000; }
.contact-top { display: grid; grid-template-columns: 1fr; align-items: center; }
.contact-intro { text-align: center; padding: 50px 30px 40px; color: var(--purple); }
.contact-intro h2 { font-size: 1.8rem; }
.contact-slogan { text-align: center; padding: 30px; }
.contact-slogan h1 { color: var(--yellow); font-size: clamp(2rem, 5vw, 3.2rem); margin: 0; }
.socials { display: flex; justify-content: center; gap: 1.5rem; margin-top: 1rem; }
.socials a { color: var(--purple); }
.socials svg { width: 32px; height: 32px; }
@media (min-width: 550px) { .contact-intro { padding: 70px 70px 50px; } }
@media (min-width: 850px) { .contact-top { grid-template-columns: 5fr 7fr; } }

.contact-form { padding: 0 30px 50px; max-width: 760px; margin: 0 auto; }
.contact-form label { display: block; margin-bottom: 1.1rem; color: var(--text); }
.contact-form input, .contact-form textarea {
  display: block; width: 100%;
  margin-top: .35rem;
  padding: .75rem .9rem;
  background: #111; color: var(--text);
  border: 1px solid #333; border-radius: var(--radius);
  font: inherit;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--purple); outline-offset: 1px; border-color: transparent; }
.contact-form textarea { min-height: 160px; resize: vertical; }
.btn {
  display: inline-block;
  background: var(--yellow); color: #000;
  border: 0; border-radius: var(--radius);
  padding: .8rem 2rem;
  font: inherit; text-transform: uppercase; letter-spacing: .08em;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.form-note { font-size: .85rem; color: #aaa; margin-top: .8rem; }

/* ---------- Privacy (accordion) ---------- */
.legal { max-width: 900px; margin: 0 auto; padding: 30px 1.5rem 60px; }
.legal h1 { color: var(--yellow); font-size: 2rem; }
.legal details { border-bottom: 1px solid #222; }
.legal summary {
  cursor: pointer; list-style: none;
  padding: 1rem 2rem 1rem 0; position: relative;
  font-size: 1.1rem;
}
.legal summary::-webkit-details-marker { display: none; }
.legal summary::after {
  content: ""; position: absolute; right: .3rem; top: 1.35rem;
  width: 9px; height: 9px;
  border-right: 2px solid var(--yellow); border-bottom: 2px solid var(--yellow);
  transform: rotate(45deg); transition: transform .2s;
}
.legal details[open] summary::after { transform: rotate(-135deg); top: 1.6rem; }
.legal details[open] summary { color: var(--yellow); }
.legal .content { padding: 0 0 1rem; color: #ddd; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid #1a1a1a;
  padding: 1.5rem;
  font-size: .85rem;
  color: #888;
}
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
  justify-content: space-between; align-items: center;
}
.footer-inner nav { display: flex; gap: 1.25rem; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 15vh 1.5rem; }
.notfound h1 { color: var(--yellow); font-size: 3rem; }

@media (prefers-reduced-motion: reduce) {
  .drawer, .drawer-backdrop { transition: none; }
}

/* ---------- Flags in menu + Instagram icon in footer ---------- */
.drawer .lang a { display: inline-flex; align-items: center; gap: .45rem; }
.drawer .lang .flag { height: 13px; width: auto; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.drawer .lang a:not([aria-current="true"]) .flag { opacity: .75; }
.footer-inner nav { align-items: center; }
.footer-ig { display: inline-flex; color: var(--purple); }
.footer-ig svg { width: 22px; height: 22px; }
.footer-ig:hover { color: var(--yellow); }

/* Flags only, pinned to the bottom of the menu */
.drawer .lang { margin-top: auto; gap: 1rem; }
.drawer .lang a { padding: 2px; border-radius: 2px; line-height: 0; }
.drawer .lang .flag { height: 11px; }
.drawer .lang a[aria-current="true"] { outline: 1px solid var(--yellow); outline-offset: 1px; }
.drawer .lang a:hover .flag { opacity: 1; }

/* Menu + language buttons pinned to the page corners */
.header-inner { max-width: none; padding: 0 1rem; }

/* About photo: smaller, portrait, with space around it */
.about-photo {
  min-height: 0;
  width: calc(100% - 3rem);
  max-width: 480px;
  aspect-ratio: 4 / 5;
  margin: 1.5rem auto 0;
  border-radius: 5px;
  background-position: 55% 42%;
}
@media (min-width: 850px) {
  .about-photo {
    width: 80%;
    max-width: 560px;
    min-height: 0;
    aspect-ratio: 4 / 5;
    justify-self: end;
    margin: 3rem 3rem 3rem 0;
  }
}
