/*
Theme Name: Haiu Nicolae CV
Theme URI: https://haiunicolae.ro/
Author: Haiu Nicolae
Description: One-page CV and portfolio theme for Haiu Nicolae.
Version: 1.0.10
Text Domain: haiu-cv
*/

:root {
  --ink: #10161c;
  --muted: #10161c;
  --readable: #10161c;
  --readable-soft: #1f2933;
  --paper: #f7f8f7;
  --panel: #ffffff;
  --line: #dfe5e8;
  --dark: #0b1117;
  --dark-2: #111b23;
  --cyan: #21d8d2;
  --gold: #c9a76d;
  --green: #8fc66b;
  --shadow: 0 20px 60px rgba(7, 13, 20, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  letter-spacing: 0;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr minmax(180px, 260px);
  align-items: center;
  gap: 24px;
  padding: 12px clamp(20px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(16, 22, 28, 0.08);
  backdrop-filter: blur(18px);
  transition: padding 180ms ease, gap 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: min(260px, 24vw);
  min-width: 170px;
  text-decoration: none;
  transition: width 180ms ease, min-width 180ms ease;
}

.brand img {
  width: 100%;
  max-height: 48px;
  object-fit: contain;
  transition: max-height 180ms ease;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
  color: var(--ink);
  font-size: 15px;
  font-weight: 720;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
}

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

.site-nav .nav-download {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  color: var(--ink);
  font-weight: 760;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 69px);
  background:
    linear-gradient(90deg, rgba(7, 17, 22, 0.98) 0%, rgba(7, 17, 22, 0.9) 34%, rgba(7, 17, 22, 0.1) 50%, rgba(7, 17, 22, 0) 100%),
    url("assets/real/banner-cv.jpg") center center / cover no-repeat;
  color: #fff;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(760px, 54vw);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 76px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 740px;
  margin: 0;
  font-size: clamp(48px, 6.4vw, 96px);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 720px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(18px, 2vw, 24px);
}

.hero-actions,
.work-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  color: #fff;
  font-weight: 760;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
}

.button.primary {
  border-color: var(--cyan);
  background: var(--cyan);
  color: #061014;
}

.section .button {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.section .button.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.disabled-button {
  opacity: 0.48;
  cursor: not-allowed;
  user-select: none;
}

.cv-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.summary-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.summary-band div {
  padding: 26px clamp(18px, 3vw, 42px);
  border-right: 1px solid var(--line);
}

.summary-band div:last-child {
  border-right: 0;
}

.summary-band strong,
.summary-band span {
  display: block;
}

.summary-band strong {
  font-size: 18px;
}

.summary-band span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 620;
}

.section {
  padding: clamp(54px, 8vw, 108px) clamp(22px, 5vw, 76px);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(30px, 6vw, 86px);
  align-items: start;
}

.section h2 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(34px, 4.8vw, 66px);
  line-height: 1;
  letter-spacing: 0;
}

.section h3 {
  margin: 0 0 12px;
  font-size: 21px;
  line-height: 1.2;
}

.section p {
  margin: 0;
  color: var(--readable);
}

.section p + p {
  margin-top: 16px;
}

.prose {
  max-width: 880px;
  font-size: 18px;
}

.section-heading {
  max-width: 900px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  margin-top: 16px;
  font-size: 18px;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.skill-grid article {
  min-height: 240px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.tools-section {
  padding-top: 0;
}

.tool-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-list span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 720;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.timeline-item.featured {
  border-color: rgba(33, 216, 210, 0.55);
  box-shadow: 0 20px 60px rgba(26, 91, 95, 0.1);
}

.date {
  color: var(--ink);
  font-weight: 800;
}

.company {
  margin-bottom: 14px !important;
  color: #2d3a43 !important;
  font-weight: 750;
}

.timeline ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--readable);
}

.timeline li + li {
  margin-top: 10px;
}

.work-section {
  background: var(--dark);
  color: #fff;
}

.work-section .section-heading p:not(.eyebrow),
.work-section p {
  color: rgba(255, 255, 255, 0.92);
}

.portfolio-banner {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #071116;
  line-height: 0;
}

.portfolio-banner img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
}

.work-section .work-actions {
  justify-content: center;
  margin-top: 24px;
}

.work-section .button.primary {
  border-color: var(--cyan);
  background: var(--cyan);
  color: #061014;
}

.education-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.education-list div {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.education-list span {
  color: var(--readable-soft);
  font-weight: 620;
}

.fine-art-actions {
  margin-top: 26px;
}

.contact-section {
  background: #fff;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.contact-content {
  min-width: 0;
}

.contact-section h2 {
  max-width: 980px;
}

.contact-content > p:not(.eyebrow) {
  max-width: 820px;
  margin-top: 20px;
  font-size: 18px;
}

.contact-portrait {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 4px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef2f1;
  box-shadow: 0 20px 60px rgba(16, 22, 28, 0.08);
}

.contact-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 760;
}

.contact-form {
  display: grid;
  grid-column: 1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 980px;
  margin-top: 34px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
}

.contact-form .full {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
  background: #fff;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  width: fit-content;
  border-color: var(--ink);
  background: var(--ink);
  cursor: pointer;
}

.contact-form-placeholder,
.contact-form-wordpress {
  display: block;
}

.contact-form-placeholder p {
  max-width: 720px;
  margin: 0;
  color: var(--readable);
}

.contact-form-wordpress .wpcf7-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.contact-form-wordpress .wpcf7-form p {
  margin: 0;
}

.contact-form-wordpress .wpcf7-form p:nth-of-type(4),
.contact-form-wordpress .wpcf7-form p:has(textarea),
.contact-form-wordpress .wpcf7-response-output {
  grid-column: 1 / -1;
}

.contact-form-wordpress label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
}

.contact-form-wordpress input,
.contact-form-wordpress textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
  background: #fff;
}

.contact-form-wordpress textarea {
  resize: vertical;
}

.contact-form-wordpress input[type="submit"] {
  width: fit-content;
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
  font-weight: 760;
  cursor: pointer;
}

.fine-art-hero {
  min-height: 62vh;
  background:
    linear-gradient(90deg, rgba(7, 17, 22, 0.96), rgba(7, 17, 22, 0.74)),
    radial-gradient(circle at 82% 18%, rgba(201, 167, 109, 0.2), transparent 28%),
    #071116;
}

.detail-grid,
.art-gallery {
  display: grid;
  gap: 16px;
}

.detail-grid {
  grid-template-columns: repeat(3, 1fr);
}

.detail-grid article,
.art-gallery figure {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.art-gallery {
  grid-template-columns: repeat(3, 1fr);
}

.art-placeholder {
  display: grid;
  place-items: center;
  min-height: 240px;
  border-radius: 6px;
  color: var(--readable);
  font-weight: 760;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(16, 22, 28, 0.08), rgba(16, 22, 28, 0.02)),
    #f1f4f4;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: minmax(170px, 220px) 1fr minmax(170px, 220px);
    gap: 18px;
  }

  .site-nav {
    gap: 16px;
  }

  .two-column {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    background-position: 60% center;
  }

  .summary-band,
  .skill-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .site-header {
    position: sticky;
    top: 0;
    grid-template-columns: 1fr;
    align-items: center;
    justify-items: center;
    gap: 12px;
    padding: 12px 18px 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 30px rgba(16, 22, 28, 0.06);
  }

  .brand {
    width: min(300px, 82vw);
  }

  .site-nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: 14px;
    line-height: 1.2;
  }

  .site-header.is-scrolled {
    gap: 6px;
    padding-block: 7px 9px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 32px rgba(16, 22, 28, 0.12);
  }

  .site-header.is-scrolled .brand {
    width: min(210px, 58vw);
  }

  .site-header.is-scrolled .brand img {
    max-height: 32px;
  }

  .site-header.is-scrolled .site-nav {
    gap: 6px 11px;
    font-size: 13px;
  }

  .summary-band,
  .skill-grid,
  .timeline-item,
  .contact-form,
  .contact-layout,
  .contact-form-wordpress .wpcf7-form,
  .detail-grid,
  .art-gallery {
    grid-template-columns: 1fr;
  }

  .contact-portrait {
    grid-column: auto;
    grid-row: auto;
    order: 2;
    width: min(100%, 420px);
    margin: 26px auto 0;
  }

  .contact-form,
  .contact-form-wordpress {
    order: 3;
  }

  .hero {
    min-height: 780px;
    align-items: flex-start;
    background:
      linear-gradient(180deg, rgba(7, 17, 22, 0.99) 0%, rgba(7, 17, 22, 0.94) 40%, rgba(7, 17, 22, 0.34) 64%, rgba(7, 17, 22, 0.08) 100%),
      url("assets/real/banner-cv.jpg") 62% bottom / auto 60% no-repeat,
      #071116;
  }

  .hero-copy {
    width: 100%;
    padding-top: 54px;
    padding-bottom: 330px;
  }

  .hero h1 {
    font-size: clamp(44px, 13vw, 62px);
  }

  .portfolio-banner {
    height: auto !important;
    min-height: 0 !important;
  }

  .portfolio-banner img {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
  }

  .summary-band div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 10px 14px 12px;
  }

  .brand {
    width: min(260px, 84vw);
  }

  .brand img {
    max-height: 42px;
  }

  .site-nav {
    gap: 8px 12px;
    font-size: 13px;
    font-weight: 780;
  }

  .site-header.is-scrolled {
    padding-block: 6px 8px;
  }

  .site-header.is-scrolled .brand {
    width: min(190px, 56vw);
  }

  .site-header.is-scrolled .brand img {
    max-height: 30px;
  }

  .site-header.is-scrolled .site-nav {
    gap: 5px 10px;
    font-size: 12px;
  }

  .section {
    padding: 48px 18px;
  }

  .hero {
    min-height: 760px;
    background:
      linear-gradient(180deg, rgba(7, 17, 22, 0.99) 0%, rgba(7, 17, 22, 0.96) 46%, rgba(7, 17, 22, 0.34) 70%, rgba(7, 17, 22, 0.08) 100%),
      url("assets/real/banner-cv.jpg") 61% bottom / auto 56% no-repeat,
      #071116;
  }

  .hero-copy {
    padding: 44px 18px 315px;
  }

  .hero h1 {
    font-size: clamp(39px, 12vw, 52px);
    line-height: 0.98;
  }

  .hero-lede {
    margin-top: 22px;
    font-size: 17px;
    line-height: 1.45;
  }

  .hero-actions,
  .cv-downloads,
  .contact-links,
  .work-actions {
    width: 100%;
  }

  .button,
  .contact-links a,
  .contact-form-wordpress input[type="submit"] {
    width: 100%;
  }

  .timeline-item,
  .skill-grid article {
    padding: 22px;
  }
}
