/* ---------------------------------------------------------
   Lorenzo Trefry Portfolio
   Fonts: Bebas Neue (display) + Anonymous Pro (body)
--------------------------------------------------------- */

:root {
  --dark: #484848;
  --text-dark: #111a0b;
  --link-blue: #529fc6;
  --link-blue-hover: #013854;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: var(--text-dark);
}

body {
  font-family: 'Anonymous Pro', monospace;
}

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

/* ---------- Hero ---------- */

.title-section {
  position: relative;
  min-height: 100vh;
  background-color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 5%;
  overflow: hidden;
}

.title-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.title-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.25) 25%,
    rgba(0,0,0,0.50) 50%,
    rgba(0,0,0,0.25) 75%,
    rgba(0,0,0,0) 100%);
}

.title-header {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.title {
  margin: 0;
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 88px;
  font-weight: normal;
  line-height: 1.2;
  text-shadow: 0 2px 2px rgba(0,0,0,0.25);
}

.subtitle {
  margin-top: 1rem;
  color: #fff;
  font-family: 'Anonymous Pro', monospace;
  font-size: 21px;
  font-weight: 300;
  line-height: 1.8;
  text-shadow: 0 2px 2px rgba(0,0,0,0.25);
}

@media (max-width: 767px) {
  .title-section { padding: 32px 5%; }
  .title { font-size: 47px; }
  .subtitle { font-size: 17px; }
}

/* ---------- Site nav ---------- */

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background: #000;
}

nav.site-nav a {
  padding: 16px 24px;
  font-family: 'Anonymous Pro', monospace;
  font-size: 15px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #999;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}

nav.site-nav a:hover {
  color: #fff;
}

nav.site-nav a.active {
  color: #fff;
  border-bottom-color: #fff;
}

@media (max-width: 767px) {
  nav.site-nav a { padding: 12px 14px; font-size: 13px; }
}

/* ---------- Placeholder pages ---------- */

.placeholder-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 45vh;
  text-align: center;
}

.placeholder-section p {
  margin-top: 0.75em;
  color: #888;
}

/* ---------- Writing list ---------- */

.writing-list {
  padding: 2.5rem 0 4rem;
}

.writing-list .content-container {
  max-width: 640px;
}

.writing-item {
  padding: 2rem 0;
  border-bottom: 1px solid #eee;
}

.writing-item:first-child {
  padding-top: 0;
}

.writing-item:first-child h3 {
  margin-top: 0;
}

.writing-item:last-child {
  border-bottom: none;
}

.writing-item p {
  margin-top: 0.5em;
  color: #444;
}

.writing-item .link-button {
  margin-top: 1.25rem;
}

.writing-more {
  margin-top: 0.75rem;
}

.writing-more summary {
  cursor: pointer;
  font-family: 'Anonymous Pro', monospace;
  font-size: 15px;
  color: #b8901f;
  text-decoration: underline;
  list-style: none;
}

.writing-more summary::-webkit-details-marker {
  display: none;
}

.writing-more summary:hover {
  color: #8a6c17;
}

.writing-more[open] summary {
  margin-bottom: 0.5rem;
}

.writing-more p {
  margin-top: 0;
  color: #444;
}

/* ---------- Values tabs ---------- */

.values-section {
  padding: 1rem 0 4rem;
}

.values-section .content-container {
  max-width: 720px;
}

.values-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1.5rem;
}

.values-tab {
  background: none;
  border: none;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  font-family: 'Anonymous Pro', monospace;
  font-size: 15px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #999;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}

.values-tab:hover {
  color: #000;
}

.values-tab.active {
  color: #000;
  border-bottom-color: #000;
}

.values-caption {
  margin-top: 1.5rem;
  text-align: center;
  color: #666;
  font-size: 16px;
}

.values-panels {
  margin-top: 2rem;
}

.values-panel {
  display: none;
}

.values-panel.active {
  display: block;
}

/* ---------- Q&A form ---------- */

.qa-section {
  padding: 4rem 0;
  min-height: 60vh;
}

.text-center h3 {
  text-align: center;
}

/* ---------- Public FAQ list ---------- */

.faq-list {
  max-width: 640px;
  margin: 2.5rem auto 0;
}

.faq-empty {
  text-align: center;
  color: #888;
}

.faq-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid #eee;
}

.faq-item:first-child {
  border-top: 1px solid #eee;
}

.faq-question {
  font-family: 'Anonymous Pro', monospace;
  font-weight: 700;
  color: var(--text-dark);
}

.faq-answer {
  margin-top: 0.5em;
  color: #444;
}

/* ---------- Ask a question ---------- */

.qa-ask {
  max-width: 640px;
  margin: 3.5rem auto 0;
  padding-top: 2.5rem;
  border-top: 1px solid #eee;
}

.qa-ask p {
  margin-top: 0.5em;
  color: #666;
}

.qa-form {
  margin: 2rem auto 0;
  max-width: 480px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.qa-honeypot {
  display: none;
}

.qa-form label {
  font-family: 'Anonymous Pro', monospace;
  font-size: 14px;
  color: #666;
  margin-top: 1rem;
}

.qa-optional {
  color: #999;
}

.qa-form input[type="text"],
.qa-form textarea {
  font-family: 'Anonymous Pro', monospace;
  font-size: 16px;
  color: var(--text-dark);
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 10px 12px;
  resize: vertical;
}

.qa-form input[type="text"]:focus,
.qa-form textarea:focus {
  outline: none;
  border-color: #000;
}

.qa-disclosure {
  margin-top: 0.75rem;
  font-size: 13px;
  color: #888;
}

.qa-submit {
  align-self: center;
  margin-top: 1.5rem;
  border: none;
  cursor: pointer;
  font-size: 17px;
}

.qa-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.qa-status {
  margin-top: 1rem;
  min-height: 1.2em;
  text-align: center;
  font-size: 15px;
}

.qa-status.success {
  color: #1a7a3c;
}

.qa-status.error {
  color: #b3261e;
}

/* ---------- Shared content container ---------- */

.content-container {
  max-width: 60%;
  margin: 0 auto;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.single-column .content-container,
.photo-grid-section .content-container {
  max-width: 60%;
}

.text-center {
  text-align: center;
}

.text-center h2 {
  text-align: center;
}


h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 58px;
  font-weight: bold;
  line-height: 1.2;
  color: #000;
  margin: 0 0 0.25em;
  text-align: left;
}

h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 35px;
  font-weight: normal;
  line-height: 1.3;
  color: #000;
  margin: 1.5em 0 0.25em;
  text-align: left;
}

.content-container > h3:first-child {
  margin-top: 0;
}

p {
  font-family: 'Anonymous Pro', monospace;
  font-size: 19px;
  line-height: 1.8;
  color: var(--text-dark);
  margin: 0;
}

@media (max-width: 767px) {
  .content-container,
  .single-column .content-container,
  .photo-grid-section .content-container,
  .single-column.full-image .content-container,
  .writing-list .content-container,
  .values-section .content-container {
    max-width: 90%;
  }
  h2 { font-size: 35px; }
  h3 { font-size: 26px; }
  p { font-size: 17px; }
}

/* ---------- Photo grid ---------- */

.photo-grid-section {
  padding-bottom: 2.5rem;
}

.photo-grid-section .content-container {
  padding-top: 0;
}

.photo-grid {
  margin: 0;
  padding: 0;
}

.photo-group {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  height: 320px;
  margin-bottom: 12px;
}

.photo-group-small {
  height: 190px;
}

.photo-tile {
  height: 100%;
}

.photo-tile img {
  height: 100%;
  width: auto;
  max-width: 100%;
}

@media (max-width: 767px) {
  .photo-group { height: 200px; }
  .photo-group-small { height: 120px; }

  .photo-group-mobile-stack {
    height: auto;
    flex-direction: column;
  }
  .photo-group-mobile-stack .photo-tile {
    height: auto;
    width: 100%;
  }
  .photo-group-mobile-stack .photo-tile img {
    height: auto;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
  }
}

.photo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  height: 110px;
}

.photo-row .photo-tile img {
  height: 100%;
  width: auto;
  max-width: 100%;
}

.content-container.wide {
  max-width: 1100px;
}

@media (max-width: 767px) {
  .photo-row { height: 75px; }
}

figcaption {
  margin-top: 0.5em;
  font-family: 'Anonymous Pro', monospace;
  font-size: 15px;
  line-height: 1.9;
  text-align: center;
  color: var(--text-dark);
}

/* ---------- Home highlights ---------- */

.home-highlights {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 6% 3rem;
}

.home-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1 1 320px;
  max-width: 400px;
}

.home-highlight-photo {
  display: block;
  text-decoration: none;
  transition: opacity .15s ease;
}

.home-highlight-photo:hover {
  opacity: 0.85;
}

.home-highlight img {
  height: 260px;
  width: auto;
  max-width: 100%;
}

.home-highlight-title {
  display: block;
  margin-top: 1rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  line-height: 1.3;
  text-align: center;
  color: #000;
}

@media (max-width: 767px) {
  .home-highlights { padding: 2.5rem 5% 1.5rem; gap: 2.5rem; }
  .home-highlight img { height: 220px; }
}

.home-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 6% 3.5rem;
}

.home-card {
  flex: 1 1 320px;
  max-width: 400px;
  text-align: center;
}

.home-card h3 {
  text-align: center;
  margin-top: 0;
}

.home-card p {
  color: #444;
}

@media (max-width: 767px) {
  .home-cards { padding: 1.5rem 5% 2.5rem; gap: 2.5rem; }
}

/* ---------- Split (image + text) sections ---------- */

.split-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 6%;
}

.split-section.image-on-right {
  flex-direction: row-reverse;
}

.split-image {
  flex: 0 1 auto;
  min-width: 0;
  height: 480px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.split-image img {
  height: 100%;
  width: auto;
  max-width: 100%;
}

.split-image.two-up {
  flex: 0 1 auto;
  min-width: 0;
  height: 190px;
  max-height: none;
  background: transparent;
  overflow: visible;
  gap: 12px;
}

.split-image.two-up img {
  flex: 0 0 auto;
  height: 100%;
  width: auto;
  max-width: none;
}

.split-section .content-container {
  flex: 1 1 40%;
  max-width: 460px;
  padding: 2.5rem;
  margin: 0 auto;
}

.split-section.compact {
  gap: 8px;
  padding: 0 5%;
}

.split-section.compact .content-container {
  flex: 0 1 300px;
  max-width: 300px;
  padding: 1.5rem 0.5rem;
}

@media (max-width: 767px) {
  .split-section,
  .split-section.image-on-right {
    flex-direction: column;
  }
  .split-image { height: 320px; width: 100%; }
  .split-image.two-up {
    flex-direction: column;
    height: auto;
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }
  .split-image.two-up img {
    height: auto;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
  }
  .split-section .content-container {
    max-width: 90%;
  }
}

/* ---------- Buttons & links ---------- */

.link-button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 9px 17px 5px;
  border-radius: 0.2em;
  background: #000;
  color: #fff;
  font-family: 'Anonymous Pro', monospace;
  font-size: 17px;
  text-decoration: none;
  text-align: center;
  transition: color .15s linear, background-color .15s ease-in-out;
}

.link-button:hover {
  background: #262626;
}

a:not(.link-button) {
  color: var(--link-blue);
  text-decoration: underline;
  transition: color .15s linear;
}

a:not(.link-button):hover {
  color: var(--link-blue-hover);
}

/* ---------- Social links ---------- */

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 0.75rem;
}

.social-links a {
  font-family: 'Anonymous Pro', monospace;
  font-size: 14px;
  color: #999;
  text-decoration: none;
}

.social-links a:hover {
  color: #666;
  text-decoration: underline;
}

/* ---------- Footer ---------- */

footer {
  text-align: center;
  padding: 2rem 5%;
  font-family: 'Anonymous Pro', monospace;
  font-size: 14px;
  color: #666;
}
