/* Hupera – site styles. Values mirror the original WordPress theme (Gutenify Photo Zone). */

@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/Jost-VariableFont_wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/Jost-Italic-VariableFont_wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #000;
  --bg-2: #0a0c11;
  --text: #f7f7f7;
  --heading: #fff;
  --primary: #467ff7;
  --primary-hover: #325ce8;
  --border: #323438;

  --sidebar-w: 400px;
  --gap: 1.2rem;              /* 19.2px – gallery/columns gap */
  --section-y: 100px;
  --section-x: 40px;

  --fs-body: 1.1rem;          /* 17.6px */
  --fs-colossal: clamp(2rem, 8vw, 5.25rem);
  --fs-gigantic: clamp(2.3rem, 6vw, 4rem);
  --fs-huge: clamp(2.5rem, 4vw, 3rem);
  --fs-section: clamp(36px, 3vw, 45px);
  --fs-medium: 1.7rem;
  --fs-h2: clamp(28px, 2.6vw, 32px);
  --fs-h3: clamp(20px, 1.9vw, 22px);
  --fs-h4: clamp(18px, 1.5vw, 20px);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Jost", system-ui, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: var(--heading); }
a:hover { color: var(--primary); }
h1, h2, h3, h4 { color: var(--heading); font-weight: 600; margin: 0; line-height: 1.38; }
p { margin: 0; }
p + p { margin-top: var(--gap); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--primary); color: #fff; padding: 8px 16px;
}
.skip-link:focus { left: 8px; top: 8px; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ------------------------------------------------------------------ layout */

.layout { display: flex; min-height: 100vh; }

.sidebar { flex: 0 0 var(--sidebar-w); background: var(--bg); }
.sidebar__inner {
  position: fixed; top: 0; left: 0;
  width: var(--sidebar-w); height: 100vh;
  overflow-y: auto;
  padding: 50px 40px 40px;
  background: var(--bg);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
}

.logo { align-self: center; }
.logo img { width: 60px; height: 95px; }

.tagline {
  color: var(--primary);
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

.menu {
  margin: 20px 0;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 19px;
  font-weight: 700;
}
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li a {
  display: inline-block;
  padding: 10px 20px;
  color: var(--heading);
  text-decoration: none;
  transition: color .2s;
}
/* Title Case is an English convention only */
:lang(en) .menu li a, :lang(en) .shots h2, :lang(en) .angle h2 { text-transform: capitalize; }
.menu li a:hover, .menu li a[aria-current="page"] { color: var(--primary); }
.menu__open, .menu__close { display: none; }

.langs {
  list-style: none; margin: 0; padding: 0 20px;
  display: flex; gap: 6px;
  font-size: 15px; font-weight: 600; letter-spacing: .04em;
}
.langs a {
  display: block; padding: 4px 10px;
  border: 1px solid var(--border); border-radius: 100px;
  color: #9a9ca1; text-decoration: none;
  transition: color .2s, border-color .2s;
}
.langs a:hover { color: #fff; border-color: #fff; }
.langs a[aria-current] { color: #fff; border-color: var(--primary); background: var(--primary); }

.follow { padding-top: 14vh; text-align: center; }
.follow p { color: var(--primary); }
.socials {
  list-style: none; margin: 16px 0 0; padding: 0;
  display: flex; justify-content: center; gap: 16px;
}
.socials a { display: block; padding: 4px; color: var(--heading); }
.socials a:hover { color: var(--primary); }
.socials svg { display: block; fill: currentColor; }

.main { flex: 1; min-width: 0; background: var(--bg); display: flex; flex-direction: column; }
.main > main { flex: 1; }

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

.page-header { background: var(--bg-2); padding: 40px; }
.page-header h1 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.43;
  text-transform: uppercase;
}
.page-header--post h1 { text-transform: none; max-width: 900px; margin: 0 auto; }

.page-body { padding: 40px 50px; }
.page-body--bleed { padding: 40px 0; }

/* ----------------------------------------------------------------- buttons */

.btn {
  display: inline-block;
  padding: 12.5px 30px;
  border-radius: 100px;
  background: var(--primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.7;
  text-decoration: none;
  transition: background-color .2s;
}
.btn:hover { background: var(--primary-hover); color: #fff; }
.btn-row { display: flex; justify-content: center; margin: 80px 0 20px; }
.btn-row--tight { margin-top: 20px; }

/* ------------------------------------------------------------------- media */

.zoom { overflow: hidden; }
.zoom img { transition: transform .6s ease; }
.zoom:hover img { transform: scale(1.08); }
.cover-img { width: 100%; height: 100%; object-fit: cover; }

/* photo galleries */
.photo-cols { display: flex; gap: var(--gap); align-items: flex-start; }
.photo-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--gap); }
.photo-col img { width: 100%; }
.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.photo-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

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

.hero {
  position: relative;
  min-height: 696px;
  display: flex; flex-direction: column; align-items: center;
  padding: 107px 20px 0;
  text-align: center;
  overflow: hidden;
}
.hero > img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0, 0, 0, .7); }
.hero > :not(img) { position: relative; z-index: 2; }
.hero h1 { font-size: var(--fs-colossal); line-height: 1.38; }
.hero h2 { font-size: var(--fs-h2); font-style: italic; margin-top: 7px; }
.hero .note { margin-top: auto; padding-bottom: 0; font-size: var(--fs-h4); font-weight: 600; color: #fff; }

.section { padding: var(--section-y) var(--section-x); }
.section--alt { background: var(--bg-2); }

.section-title { font-size: var(--fs-section); text-align: center; }
.section-title em { color: var(--primary); }
.rule { width: 100px; height: 2px; border: 0; margin: 15px auto 15px; background: var(--primary); }
.rule--left { margin-left: 15px; }

.shots h2 {
  font-size: var(--fs-h2);
  font-weight: 400;
  text-align: center;
  margin-bottom: 36px;
}
.shots h2 em { color: var(--primary); }
.shots__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); align-items: start; }
.shots__col { display: flex; flex-direction: column; gap: var(--gap); }
.shots__col img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.shots__col .square img { aspect-ratio: 1; }
.shots__col .tall { height: 664px; }
.shots__col .tall img { height: 100%; aspect-ratio: auto; }

.angle { padding: var(--section-y) 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.angle h2 { font-size: var(--fs-huge); line-height: 1.43; margin-bottom: var(--gap); }
.angle p { margin-bottom: var(--gap); }
.angle__img { height: 639px; }

.doors__kicker { font-size: var(--fs-h4); max-width: 900px; margin: 0 auto; }
.doors h2 { font-size: var(--fs-section); }
.doors__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: 34px; }
.doors__grid img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }

.quote {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 45px 15px 15px 30px;
  border-left: 4px solid var(--primary);
  border-radius: 15px;
  background: var(--bg-2);
}
.quote::before {
  content: "\201C";
  position: absolute; top: 0; left: 30px;
  color: var(--primary);
  font-size: 4rem; line-height: 1; font-weight: 700;
}
.quote p { font-size: var(--fs-medium); font-style: italic; color: #fff; }

/* -------------------------------------------------------------- post cards */

.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap);
}
.card { background: var(--bg-2); box-shadow: 0 10px 30px rgba(0, 0, 0, .6); display: flex; flex-direction: column; }
.card__cover {
  min-height: 270px;
  display: flex; align-items: flex-end;
  padding: 17.6px 17.6px 20px 40px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 56%, rgba(0, 0, 0, .61) 100%), var(--bg-2);
}
.tag {
  margin: 5px;
  padding: 2px 10px;
  border-left: 2px solid var(--primary);
  color: var(--primary);
  font-size: 14px;
  text-decoration: none;
}
.card__body { flex: 1; background: var(--bg); padding: 0 40px 40px; }
.card__title { font-size: var(--fs-h3); font-weight: 700; line-height: 1.36; padding-top: 22px; }
.card__title a { text-decoration: none; }
.card__date { display: inline-block; margin: 10px 0 10px; color: var(--primary); text-decoration: none; }
.more { color: var(--heading); }

/* ------------------------------------------------------------- text pages */

.pricing-banner { width: 100%; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: var(--gap); }
.cols-3 > * { margin: 0; }
.cols-3 strong { color: var(--heading); }

.about h1 { font-size: var(--fs-colossal); text-align: center; }
.about__text { max-width: 493px; margin: var(--gap) auto 0; font-size: var(--fs-medium); }

.contact-big { font-size: var(--fs-colossal); line-height: 1.6; overflow-wrap: anywhere; }
.contact-big + .contact-big { margin-top: var(--gap); font-size: var(--fs-gigantic); font-weight: 700; }

.services h1, .services h2 { font-size: var(--fs-colossal); line-height: 1.2; }
.services__intro { display: grid; grid-template-columns: 2fr 3fr; gap: 40px; margin-top: 40px; align-items: start; }
.services__steps { display: grid; grid-template-columns: 1fr 1fr 152px; gap: 40px; margin-top: 40px; align-items: start; }
.services__steps strong { color: var(--heading); }
.services__types { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; margin-top: 40px; align-items: center; }
.services .spacer { height: 80px; }

/* -------------------------------------------------------------------- post */

.post-meta { max-width: 900px; margin: 0 auto 30px; color: var(--primary); }
.post-meta a { color: var(--primary); }
.prose { max-width: 900px; margin: 0 auto; }
.prose h3 { font-size: var(--fs-h3); margin-top: 2rem; }
.prose > * + * { margin-top: var(--gap); }
.prose ol, .prose ul { padding-left: 20px; }
.prose strong { color: var(--heading); }

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

.site-footer { background: var(--bg-2); padding: 4rem 3rem; }
.site-footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); padding: 20px 0; }
.site-footer h2 { font-size: 1.5rem; line-height: 1.36; }
.site-footer p { margin-top: 10px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--primary); }

/* ------------------------------------------------------------------ 404 */
.not-found { text-align: center; padding: 120px 20px; }
.not-found h1 { font-size: var(--fs-colossal); }
.not-found p { margin: 20px 0 40px; }

/* ============================================================== responsive */

@media (max-width: 1100px) {
  :root { --sidebar-w: 300px; }
  .angle { padding-left: 40px; padding-right: 40px; }
}

@media (max-width: 781px) {
  :root { --section-y: 70px; --section-x: 20px; }

  .layout { display: block; }
  .sidebar__inner { position: static; width: auto; height: auto; overflow: visible; border-right: 0; padding: 50px 40px 40px; }
  .follow { padding-top: 24px; }
  .langs { justify-content: center; padding: 0; }

  /* collapsed menu */
  .menu { margin: 20px 0; padding: 20px 0; }
  .menu__open {
    display: block; padding: 5px; border: 1px solid var(--border);
    background: transparent; color: var(--heading); cursor: pointer;
  }
  .menu__open svg { display: block; }
  .menu__panel {
    display: none;
    position: fixed; inset: 0; z-index: 50;
    background: var(--bg);
    padding: 80px 30px 30px;
    overflow-y: auto;
  }
  .menu--open .menu__panel { display: block; }
  .menu__close {
    display: block; position: absolute; top: 20px; right: 20px;
    padding: 5px; border: 0; background: transparent; color: var(--heading); cursor: pointer;
  }
  .menu__panel li a { font-size: 24px; padding: 12px 0; }

  .hero { min-height: 543px; padding-top: 107px; }
  .hero .note { padding-bottom: 20px; }
  .shots__grid, .doors__grid, .cards { grid-template-columns: 1fr; }
  .shots__col .tall { height: 500px; }
  .angle { grid-template-columns: 1fr; padding: var(--section-y) 20px; gap: 40px; }
  .angle__img { height: 480px; }
  .quote p { font-size: 1.3rem; }

  .page-header { padding: 30px 20px; }
  .page-body { padding: 30px 20px; }
  .photo-cols { flex-direction: column; }
  .photo-grid { grid-template-columns: 1fr; }
  .cols-3, .services__intro, .services__types { grid-template-columns: 1fr; }
  .services__steps { grid-template-columns: 1fr; }
  .services__steps > figure { display: none; }

  .site-footer { padding: 3rem 20px; }
  .site-footer__cols { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .zoom img, .btn, .menu li a { transition: none; }
  .zoom:hover img { transform: none; }
}
