/* gorankelecic.com — close-to-original clean rebuild.
   Function-first: full-bleed hero panels, banner pages, split sections,
   testimonials. Design refinement happens in the redesign phase. */

:root {
  --ink: #222;
  --muted: #777;
  --line: #e5e5e5;
  --accent: #3b6ea5;
  --max: 60rem;
  --prose: 44rem;
  --header-h: 4rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
}

img { max-width: 100%; display: block; }
a { color: var(--accent); }

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.5rem;
  color: #fff;
  background: linear-gradient(rgba(0,0,0,.45), transparent);
}
.brand {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  font-size: clamp(1.2rem, 3vw, 2.2rem);
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.4rem; }
.site-nav li { position: relative; }
.site-nav a, .site-nav span {
  color: inherit;
  text-decoration: none;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
  opacity: .85;
}
.site-nav .is-active > a,
.site-nav .is-active > span,
.site-nav a:hover, .site-nav span:hover { opacity: 1; }
.site-nav li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  translate: -50% 0;
  flex-direction: column;
  gap: 0;
  background: rgba(20,20,20,.92);
  padding: .5rem 0;
  min-width: 10rem;
  text-align: center;
}
.site-nav li:hover ul,
.site-nav li:focus-within ul { display: flex; }
.site-nav li ul a { display: block; padding: .45rem 1rem; text-shadow: none; }

/* ---------- home panels ---------- */

.panel {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
}
.panel-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.25);
}
.panel-overlay {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 1rem;
  max-width: 46rem;
}
.panel-overlay p {
  margin: 0;
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.panel-content {
  padding: 4rem 1.5rem;
}
.panel-content .prose { text-align: center; }
.panel-content h3 { font-size: 1.3rem; font-weight: 600; margin: .6rem 0; }

.scroll-arrow {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  translate: -50% 0;
  z-index: 1;
  width: 2.6rem;
  height: 2.6rem;
}
.scroll-arrow::before {
  content: "";
  position: absolute;
  inset: 30% 25% auto 25%;
  aspect-ratio: 2/1;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
  rotate: -45deg;
  opacity: .9;
}

/* ---------- page banner ---------- */

.banner {
  position: relative;
  min-height: 55vh;
  display: grid;
  place-items: center;
}
.banner > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}
.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.3);
}
.banner-text {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: center;
  padding: calc(var(--header-h) + 1rem) 1rem 1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.banner-text h1 {
  margin: 0 0 .4rem;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: .02em;
}
.banner-text p {
  margin: .1rem 0;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  font-weight: 500;
}

/* ---------- content flow ---------- */

main { min-height: 40vh; }
body:not(.is-home) main { padding: 3.5rem 1.5rem 4.5rem; }

.prose {
  max-width: var(--prose);
  margin: 0 auto 2.5rem;
}
.prose h2 { font-size: 1.7rem; margin: 2.2rem 0 .8rem; }
.prose h3, .split-text h3 {
  font-size: 1.05rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.prose h3 { margin: 2.4rem 0 .7rem; }
.prose > :first-child { margin-top: 0; }

.split {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 2.5rem;
  align-items: start;
  max-width: var(--max);
  margin: 0 auto 3rem;
}
.split--reverse .split-media { order: 2; }
.split-media { margin: 0; }
.split-media img { width: 100%; height: auto; }
.split-text h3 { margin: 0 0 .7rem; }

figure.wide { max-width: var(--max); margin: 0 auto 3rem; }

.testimonial {
  max-width: var(--prose);
  margin: 0 auto 2rem;
  padding-left: 1.2rem;
  border-left: 3px solid var(--line);
}
.testimonial blockquote {
  margin: 0;
  font-size: 1.15rem;
  font-style: italic;
  color: #444;
}
.testimonial blockquote::before { content: "“ "; }
.testimonial blockquote::after { content: " ”"; }
.testimonial figcaption { margin-top: .4rem; color: var(--muted); font-size: .9rem; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
  text-align: center;
}
.site-footer p { max-width: var(--max); margin: 0 auto; padding: 1.8rem 1.5rem 2.4rem; }
.site-footer a { color: inherit; }

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  .site-header { padding: 0 1rem; }
  .site-nav ul { gap: .9rem; flex-wrap: wrap; }
  .split, .split--reverse { grid-template-columns: 1fr; gap: 1.2rem; }
  .split--reverse .split-media { order: 0; }
}
