/* ============================================================
   SAARA GARZA MÄKI — CV WEBSITE
   Style B: Sharp Editorial — White, strong type, green accent
   Fonts: Cormorant Garamond (headings) + DM Sans (body)
   ============================================================ */

:root {
  --green:       #2D5016;
  --green-mid:   #3D6B1E;
  --green-light: #EAF0E3;
  --white:       #ffffff;
  --off-white:   #F5F5F3;
  --ink:         #111111;
  --ink-mid:     #555555;
  --ink-light:   #aaaaaa;
  --rule:        #E5E5E3;
  --serif:       'Playfair Display', Georgia, serif;
  --sans:        'Lato', system-ui, sans-serif;
  --max-w:       1080px;
  --radius:      2px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 2.5rem;
  height: 52px;
  background: rgba(255,255,255,0);
  transition: background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav--scrolled {
  background: rgba(255,255,255,0.97);
  border-color: var(--rule);
  backdrop-filter: blur(8px);
}
.nav__logo {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-right: auto;
  transition: color 0.4s;
}
.nav--scrolled .nav__logo { color: var(--ink); }
.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav__links a {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.nav--scrolled .nav__links a { color: var(--ink-light); }
.nav__links a:hover,
.nav__links a.active { color: var(--white); }
.nav--scrolled .nav__links a:hover,
.nav--scrolled .nav__links a.active { color: var(--ink); }
.nav__cta {
  margin-left: 2rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  border-bottom: 1px solid rgba(255,255,255,0.5);
  padding-bottom: 1px;
  transition: color 0.4s, border-color 0.4s;
}
.nav--scrolled .nav__cta { color: var(--green); border-color: var(--green); }
.nav__cta:hover { opacity: 0.7; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
}
.btn--primary {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--white);
}
.btn--primary:hover { background: var(--off-white); }
.btn--secondary {
  background: transparent;
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.35);
}
.btn--secondary:hover { border-color: rgba(255,255,255,0.7); color: #fff; }
.btn--dark {
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
}
.btn--dark:hover { background: var(--green); border-color: var(--green); }
.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}
.btn--outline:hover { border-color: var(--ink); }

/* ── SECTION STRUCTURE ── */
.section { padding: 3.5rem 0; border-top: 1px solid var(--rule); }
.section__label {
  display: block;
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.4rem;
}
.section__title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 1.75rem;
}

/* ── TWO-COL ── */
.two-col {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 3rem;
  align-items: start;
}
.two-col__label { padding-top: 0.1rem; }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-top: 52px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('hero-bg.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.45) 0%,
    rgba(0,0,0,0.55) 60%,
    rgba(0,0,0,0.75) 100%
  );
  z-index: 1;
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 2.5rem 3.5rem;
}
.hero__eyebrow {
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero__eyebrow::before {
  content: '';
  width: 1.5rem;
  height: 1px;
  background: rgba(255,255,255,0.4);
  display: inline-block;
}
.hero__name {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 400;
  line-height: 0.95;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}
.hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero__role {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.5rem;
}
.hero__tagline {
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-style: italic;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  max-width: 460px;
  line-height: 1.5;
}
.hero__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* ── CONTACT STRIP ── */
.contact-strip {
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--off-white);
}
.contact-strip__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.contact-strip__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--ink-mid);
  transition: color 0.2s;
}
a.contact-strip__item:hover { color: var(--green); }
.contact-strip__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* ── ABOUT ── */
.about__content { display: flex; gap: 3rem; align-items: flex-start; }
.about__text-col { flex: 1; }
.about__photo-wrap { flex-shrink: 0; }
.about__photo {
  width: 160px;
  height: 160px;
  border-radius: 4px;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(10%);
}
.about__text {
  font-size: 0.95rem;
  color: var(--ink-mid);
  margin-bottom: 0.9rem;
  line-height: 1.75;
}
.about__stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
}
.about__stat-num {
  display: block;
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.2rem;
}
.about__stat-label {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-light);
}

/* ── TIMELINE ── */
.timeline { margin-top: 0; }
.timeline__item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 3rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule);
}
.timeline__item:last-child { border-bottom: 1px solid var(--rule); }
.timeline__date {
  display: block;
  font-size: 0.73rem;
  color: var(--ink-light);
  margin-bottom: 0.2rem;
  padding-top: 0.2rem;
}
.timeline__location {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}
.timeline__role {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.2rem;
  line-height: 1.2;
}
.timeline__company {
  font-size: 0.78rem;
  color: var(--ink-light);
  margin-bottom: 0.9rem;
}
.timeline__bullets { margin-bottom: 1rem; }
.timeline__bullets li {
  font-size: 0.88rem;
  color: var(--ink-mid);
  padding-left: 1rem;
  position: relative;
  margin-bottom: 0.35rem;
  line-height: 1.6;
}
.timeline__bullets li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--green);
}
.timeline__achievements {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  background: var(--off-white);
  border-left: 2px solid var(--green);
}
.timeline__achievement-stat {
  display: block;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--green);
  line-height: 1;
  margin-bottom: 0.15rem;
}
.timeline__achievement-label {
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-light);
}

/* ── TESTIMONIALS ── */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.testimonial {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.testimonial__mark {
  font-family: var(--serif);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--green);
  opacity: 0.2;
  display: block;
  margin-bottom: -1rem;
  user-select: none;
}
.testimonial__quote {
  font-size: 0.88rem;
  color: var(--ink-mid);
  line-height: 1.7;
  flex: 1;
}
.testimonial__author {
  border-top: 1px solid var(--rule);
  padding-top: 0.9rem;
}
.testimonial__name {
  display: block;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.15rem;
}
.testimonial__title {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-light);
}

/* ── EDUCATION ── */
.education__item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 3rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.education__item:last-child { border-bottom: 1px solid var(--rule); }
.education__year {
  font-size: 0.73rem;
  color: var(--ink-light);
  padding-top: 0.25rem;
}
.education__degree {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.2rem;
}
.education__school { font-size: 0.8rem; color: var(--ink-light); }

/* ── SKILLS ── */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 3rem;
}
.skills__group--wide { grid-column: 1 / -1; }
.skills__group-title {
  font-size: 0.67rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-light);
  margin-bottom: 0.65rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--rule);
}
.skills__list li {
  font-size: 0.87rem;
  color: var(--ink-mid);
  padding: 0.28rem 0;
  border-bottom: 1px solid var(--off-white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.skills__list li::before {
  content: '';
  width: 3px;
  height: 3px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
}
.skills__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.skills__tag {
  font-size: 0.73rem;
  padding: 0.22rem 0.65rem;
  border: 1px solid var(--rule);
  border-radius: 100px;
  color: var(--ink-mid);
  background: var(--white);
  transition: border-color 0.2s, color 0.2s;
}
.skills__tag:hover { border-color: var(--green); color: var(--green); }

/* ── LANGUAGES ── */
.languages__grid { display: flex; }
.language__item {
  flex: 1;
  padding: 1.25rem;
  border-right: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.language__item:first-child { border-left: 1px solid var(--rule); }
.language__name {
  display: block;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.1rem;
}
.language__level {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-light);
  margin-bottom: 0.75rem;
}
.language__bar { height: 2px; background: var(--rule); border-radius: 2px; overflow: hidden; }
.language__fill { height: 100%; background: var(--green); }

/* ── CONTACT FORM ── */
.contact-form { background: var(--white); }
.contact-form__inner {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-form__intro {
  font-size: 0.85rem;
  color: var(--ink-light);
  line-height: 1.65;
  margin-top: 0.4rem;
}
.contact-form__form { display: flex; flex-direction: column; gap: 0.9rem; }
.cf-row { display: flex; flex-direction: column; gap: 0.9rem; }
.cf-row--two { flex-direction: row; gap: 0.9rem; }
.cf-row--two .cf-field { flex: 1; }
.cf-row--submit { flex-direction: row; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.cf-field { display: flex; flex-direction: column; gap: 0.3rem; }
.cf-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
}
.cf-label span { color: var(--green); }
.cf-input {
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--ink);
  background: var(--off-white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.6rem 0.85rem;
  width: 100%;
  transition: border-color 0.2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.cf-input:focus { border-color: var(--ink); background: var(--white); }
.cf-input::placeholder { color: var(--ink-light); }
.cf-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23aaa' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.25rem;
  cursor: pointer;
}
.cf-textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.cf-note { font-size: 0.7rem; color: var(--ink-light); line-height: 1.5; }
.cf-success {
  background: var(--green-light);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  font-size: 0.88rem;
  color: var(--green);
  font-weight: 500;
}

/* ── FOOTER ── */
.footer {
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
  background: var(--off-white);
}
.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer__text { font-size: 0.7rem; color: var(--ink-light); }
.footer__credit { font-size: 0.7rem; color: var(--ink-light); }
.footer__credit a { color: var(--ink-light); text-decoration: underline; text-underline-offset: 2px; transition: color 0.2s; }
.footer__credit a:hover { color: var(--ink); }
.footer__link {
  font-size: 0.7rem;
  color: var(--ink-light);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}
.footer__link:hover { color: var(--ink); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__eyebrow { animation: fadeUp 0.5s ease both 0.1s; }
.hero__name    { animation: fadeUp 0.6s ease both 0.2s; }
.hero__bottom  { animation: fadeUp 0.6s ease both 0.35s; }

/* ── RESPONSIVE — TABLET ── */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .two-col,
  .timeline__item,
  .education__item,
  .contact-form__inner { grid-template-columns: 1fr; gap: 0.75rem; }
  .hero__bottom { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .skills__grid { grid-template-columns: 1fr; }
  .skills__group--wide { grid-column: auto; }
  .contact-strip__inner { gap: 1rem; }
  .languages__grid { flex-wrap: wrap; }
  .language__item { flex: 1 1 40%; border-left: 1px solid var(--rule); }
  .about__content { flex-direction: column-reverse; align-items: flex-start; }
}

/* ── RESPONSIVE — MOBILE ── */
@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .nav { padding: 0 1.25rem; }
  .nav__cta { display: none; }
  .section { padding: 2.5rem 0; }
  .hero__name { font-size: clamp(2.8rem, 12vw, 4rem); }
  .hero__actions { flex-wrap: wrap; }
  .cf-row--two { flex-direction: column; }
  .cf-row--submit { flex-direction: column; align-items: flex-start; }
  .about__stats { gap: 1.5rem; }
  .footer .container { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
}

/* ── PRINT ── */
@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { font-size: 9pt; background: #fff; color: #000; }
  .nav, .hero__actions, .footer, .btn,
  .contact-form, .contact-strip { display: none !important; }
  .hero {
    min-height: 0;
    background: none;
    padding: 0;
    display: block;
  }
  .hero__bg, .hero__overlay { display: none; }
  .hero__inner { padding: 1rem 0 0.75rem; border-bottom: 1.5pt solid #2D5016; }
  .hero__eyebrow { color: #2D5016; }
  .hero__name { font-size: 26pt; color: #000; margin-bottom: 0.5rem; }
  .hero__bottom { border-top: none; padding-top: 0.25rem; }
  .hero__role { color: #666; }
  .hero__tagline { color: #444; font-size: 10pt; }
  .section { padding: 0.6rem 0; border-top: 0.5pt solid #E5E5E3; }
  .section__label { font-size: 6.5pt; }
  .section__title { font-size: 13pt; margin-bottom: 0.5rem; }
  .two-col,
  .timeline__item,
  .education__item { grid-template-columns: 100px 1fr; gap: 1rem; padding: 0.5rem 0; }
  .timeline__role { font-size: 11pt; }
  .timeline__company { font-size: 7.5pt; margin-bottom: 0.3rem; }
  .timeline__bullets li { font-size: 8pt; margin-bottom: 0.15rem; }
  .timeline__achievements { padding: 0.3rem 0.6rem; gap: 1rem; background: #f5f5f5; }
  .timeline__achievement-stat { font-size: 9.5pt; }
  .testimonials { display: none; }
  .education__degree { font-size: 10pt; }
  .education__school { font-size: 7.5pt; }
  .skills__grid { grid-template-columns: repeat(2,1fr); gap: 0.75rem; }
  .skills__list li { font-size: 8pt; padding: 0.1rem 0; }
  .skills__tag { font-size: 7pt; padding: 0.1rem 0.4rem; }
  .languages__grid { flex-wrap: nowrap; }
  .language__item { padding: 0.5rem; }
  .language__name { font-size: 9.5pt; }
  .language__level { font-size: 6pt; margin-bottom: 0.3rem; }
  .about__photo { display: none; }
  .container { max-width: 100%; padding: 0; }
  a[href]::after { content: none; }
}
