@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=Inter:wght@400;500;600&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --navy: #0D1B2A;
  --black: #000000;
  --steel: #2E6DA4;
  --steel-light: #4A8BC4;
  --pale: #E8EEF4;
  --pale-blue: #D6E4F0;
  --white: #FFFFFF;
  --gold: #B8962E;
  --gold-light: #D4AF5A;
  --grey-text: #6B7280;
  --grey-light: #9CA3AF;
  --rule: #D1D9E0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--navy);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--steel);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gold);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ── Typography ── */

.section-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background-color: var(--gold);
  flex-shrink: 0;
}

.credential-row {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
}

.credential-row .sep {
  color: var(--gold);
}

/* ── Header ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--white);
  height: 64px;
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-link:hover {
  opacity: 0.88;
}

img.logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: none;
}
/* Logo shown in original colors on white header. */

.logo-fallback {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--grey-text);
  letter-spacing: 0.01em;
}

.site-nav a:hover {
  color: var(--navy);
}

.site-nav a.active {
  color: var(--gold);
  box-shadow: inset 0 -2px 0 var(--gold);
  padding-bottom: 2px;
}

.site-nav .nav-disabled {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #B8BEC8;
  cursor: default;
  letter-spacing: 0.01em;
}

/* ── Sections ── */

section {
  padding: 80px 0;
}

section.bg-pale {
  background-color: var(--pale);
  border-top: 1px solid var(--pale-blue);
}

section.offer-section {
  padding: calc(80px - 1cm) 0;
}

section.bg-white {
  background-color: var(--white);
}

/* ── Hero ── */

.hero-clean {
  background-color: var(--white);
  padding: calc(28px + 1cm) 0 calc(20px + 1cm);
  border-bottom: 1px solid var(--rule);
}

.hero-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  align-items: center;
}

.hero-logo-col {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  grid-column: 1;
  padding-right: calc(1.5rem + 0.5cm);
}

.hero-logo {
  width: 100%;
  max-width: 364px;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.hero-logo-fallback {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: -0.02em;
}

.hero-content-col {
  grid-column: 2 / 4;
  padding-right: 0;
  padding-left: calc(1.5rem + 0.5cm);
}

.hero-intro {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.1875rem, 2.35vw, 1.4375rem);
  font-weight: 400;
  line-height: 1.75;
  color: var(--grey-text);
  text-align: justify;
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
}

.hero-emphasis {
  font-weight: 700;
  color: var(--navy);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-logo-col {
    animation: fadeInUp 0.8s ease both;
  }

  .hero-content-col {
    animation: fadeInUp 0.8s ease 0.15s both;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Offer columns ── */

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.offer-col {
  background: var(--white);
  padding: 2.2rem 1.5rem;
  border-top: 3px solid var(--steel);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  min-height: 460px;
}

.offer-col:nth-child(2) {
  border-top-color: var(--gold);
}

.offer-col h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  min-height: 3.3rem;
  line-height: 1.3;
}

.offer-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 1.25rem;
  color: var(--steel);
}

.offer-col:nth-child(2) .offer-icon {
  color: var(--gold);
}

.offer-col:nth-child(3) .offer-icon {
  color: var(--steel-light);
}

.offer-col ul {
  list-style: none;
  margin-top: 0.25rem;
}

.offer-col li {
  font-size: 1rem;
  color: var(--navy);
  padding: 0.35rem 0;
  padding-left: 1rem;
  position: relative;
  line-height: 1.45;
}

.offer-col li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1;
  top: 0.15rem;
}

/* ── Why Me ── */

.why-list {
  list-style: none;
}

.why-list li {
  border-left: 3px solid var(--steel);
  padding-left: 1.5rem;
  margin-bottom: 2rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--navy);
}

.why-list li:nth-child(even) {
  border-left-color: var(--gold);
}

.why-list li:last-child {
  margin-bottom: 0;
}

.accent {
  color: var(--gold);
  font-weight: 600;
}

/* ── How I Work ── */

.how-text {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--navy);
  max-width: 720px;
  margin-bottom: 1.5rem;
}

.text-link {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--steel);
  border-bottom: 1px solid var(--gold);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.text-link:hover {
  color: var(--gold);
  border-bottom-color: var(--steel);
}

/* ── Footer ── */

.site-footer {
  background-color: var(--white);
  color: var(--steel);
  padding: 12px 0 0;
  border-top: 1px solid var(--rule);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  padding-bottom: 8px;
  align-items: center;
}

.footer-grid--home {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  justify-items: center;
  gap: 1.5rem;
}

.footer-item {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1rem;
  line-height: 1.45;
}

.footer-item a {
  color: var(--steel);
  white-space: nowrap;
}

.footer-item a:hover {
  color: var(--navy);
}

.footer-logo {
  flex-shrink: 0;
}

footer img.logo {
  height: 132px;
  filter: none;
}

.footer-tagline {
  font-size: 0.8125rem;
  color: var(--steel);
  margin-top: 0;
  letter-spacing: 0.02em;
}

.footer-col p,
.footer-col a {
  font-size: 1rem;
  color: var(--steel);
  line-height: 1.45;
  white-space: nowrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.footer-col a:hover {
  color: var(--navy);
}

.footer-bottom {
  border-top: 1px solid var(--rule);
  padding: 10px 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--steel);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ── Services Page ── */

.services-title-section {
  padding: 48px 0 40px;
  background-color: var(--white);
  border-bottom: 1px solid var(--rule);
}

.services-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.services-subtitle {
  font-size: 1.0625rem;
  color: var(--grey-text);
  max-width: 720px;
  line-height: 1.7;
}

.services-overview-section {
  padding: 48px 0;
}

.services-overview {
  list-style: none;
  counter-reset: service-counter;
  max-width: 900px;
}

.services-overview li {
  counter-increment: service-counter;
  border-bottom: 1px solid var(--rule);
  padding: 0.85rem 0;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.services-overview li:first-child {
  border-top: 1px solid var(--rule);
}

.services-overview li::before {
  content: counter(service-counter, decimal-leading-zero);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--steel);
  flex-shrink: 0;
  width: 1.5rem;
}

.services-overview a {
  font-size: 1rem;
  color: var(--navy);
  line-height: 1.5;
}

.services-overview a:hover {
  color: var(--steel);
}

.service-block {
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 80px;
}

.service-block:first-of-type {
  padding-top: 0;
}

.service-block:last-of-type {
  border-bottom: none;
}

.service-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.service-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--navy);
  max-width: 900px;
}

.services-cta {
  margin-top: 2.5rem;
  font-size: 1rem;
  color: var(--grey-text);
}

/* ── Contact Page ── */

.contact-title-section {
  padding: 48px 0 40px;
  background-color: var(--white);
  border-bottom: 1px solid var(--rule);
}

.contact-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.contact-subtitle {
  font-size: 1.0625rem;
  color: var(--grey-text);
  max-width: 640px;
  line-height: 1.7;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-intro {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--navy);
  margin-bottom: 2rem;
  max-width: 420px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item dt {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.25rem;
}

.contact-item dd {
  font-size: 1.0625rem;
  color: var(--navy);
}

.contact-item a {
  color: var(--steel);
}

.contact-item a:hover {
  color: var(--gold);
}

.contact-form {
  background: var(--white);
  padding: 2rem;
  border-top: 3px solid var(--steel);
  border-radius: 2px;
}

.form-row {
  margin-bottom: 1.25rem;
}

.form-row label {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.4rem;
}

.form-row input,
.form-row textarea,
.form-row input[type="file"] {
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0.65rem 0.75rem;
  transition: border-color 0.2s ease;
}

.form-row input[type="file"] {
  padding: 0.5rem 0.75rem;
  cursor: pointer;
}

.form-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--grey-text);
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--grey-text);
  margin-top: 0.4rem;
}

.form-status {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 2px;
}

.form-status--success {
  color: var(--navy);
  background-color: var(--pale);
  border-left: 3px solid var(--steel);
}

.form-status--error {
  color: var(--navy);
  background-color: #FEF2F2;
  border-left: 3px solid #C53030;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--steel);
}

.form-row textarea {
  resize: vertical;
  min-height: 140px;
}

.form-submit {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  background-color: var(--steel);
  border: none;
  border-radius: 2px;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.form-submit:hover {
  background-color: var(--navy);
}

.form-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.form-submit:disabled:hover {
  background-color: var(--steel);
}

/* ── CV Page ── */

.cv-title-section {
  padding: 64px 0 48px;
  background-color: var(--white);
  border-bottom: 3px solid var(--steel);
}

.cv-title-grid {
  display: grid;
  grid-template-columns: 65% 35%;
  gap: 2rem;
  align-items: center;
}

.cv-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.cv-subline {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--steel);
  margin-bottom: 1rem;
}

.cv-credentials {
  margin-bottom: 0.75rem;
}

.cv-location {
  font-size: 0.9375rem;
  color: var(--grey-text);
}

img.profile {
  width: 180px;
  height: 220px;
  object-fit: cover;
  object-position: center top;
  border-radius: 2px;
  display: block;
  margin-left: auto;
  border-bottom: 3px solid var(--gold);
}

.cv-summary-text {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--navy);
  max-width: 900px;
}

.experience-block {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--rule);
}

.experience-block:first-of-type {
  padding-top: 0;
}

.experience-block:last-of-type {
  border-bottom: none;
}

.exp-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

.exp-company {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.exp-role {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--steel);
  margin-top: 0.2rem;
}

.exp-dates {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
  text-align: right;
}

.exp-function {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-text);
  margin-bottom: 1rem;
}

.exp-body {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--navy);
  margin-bottom: 1.25rem;
  max-width: 820px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--steel);
  border: 1px solid var(--steel);
  border-radius: 4px;
  padding: 0.25rem 0.625rem;
  background: var(--pale);
}

.skill-tag:nth-child(odd) {
  border-color: var(--gold);
  color: var(--navy);
  background: rgba(184, 150, 46, 0.08);
}

.qual-table {
  width: 100%;
  border-collapse: collapse;
}

.qual-table tr {
  border-bottom: 1px solid var(--rule);
}

.qual-table tr:last-child {
  border-bottom: none;
}

.qual-table td {
  padding: 1rem 0;
  font-size: 0.9375rem;
  vertical-align: middle;
}

.qual-name {
  color: var(--navy);
  width: 40%;
}

.qual-institution {
  color: var(--grey-text);
  width: 40%;
}

.qual-year {
  color: var(--gold);
  font-weight: 600;
  text-align: right;
  width: 20%;
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-logo-col,
  .hero-content-col {
    grid-column: 1;
  }

  .hero-logo {
    max-width: 210px;
    margin-left: 0;
  }

  .hero-logo-col {
    justify-content: flex-start;
    margin-left: 0;
  }

  .hero-content-col {
    padding-right: 0;
    padding-left: 0;
  }

  .hero-intro {
    text-align: left;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-intro {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .site-header {
    height: 56px;
  }

  img.logo {
    height: 48px;
  }

  footer img.logo {
    height: 104px;
  }

  section {
    padding: 48px 0;
  }

  section.offer-section {
    padding: calc(48px - 1cm) 0;
  }

  .hero-clean {
    padding: calc(20px + 1cm) 0 calc(14px + 1cm);
  }

  .hero-logo {
    max-width: 182px;
  }

  .site-nav {
    gap: 1rem;
  }

  .site-nav a,
  .site-nav .nav-disabled {
    font-size: 0.8125rem;
  }

  .offer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-grid--home {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .footer-item a {
    white-space: normal;
  }

  .exp-top-row {
    flex-direction: column;
    gap: 0.25rem;
  }

  .exp-dates {
    text-align: left;
  }

  .qual-table td {
    display: block;
    width: 100%;
    padding: 0.25rem 0;
  }

  .qual-table tr {
    display: block;
    padding: 1rem 0;
  }

  .qual-year {
    text-align: left;
    padding-bottom: 0;
  }
}

@media (max-width: 640px) {
  .cv-title-grid {
    grid-template-columns: 1fr;
  }

  .cv-photo-col {
    order: 2;
    display: flex;
    justify-content: center;
  }

  img.profile {
    width: 120px;
    height: 146px;
    margin-left: 0;
    margin-right: 0;
  }
}
