/* ======================================
CI FONTS
====================================== */

@font-face {
  font-family: NettoWeb;
  src: url("../typo/ff_netto_web_regular/NettoWeb.woff") format("woff");
}

@font-face {
  font-family: NettoWeb-Light;
  src: url("../typo/ff_netto_web_light/NettoWeb-Light.woff") format("woff");
}


/* ======================================
CI FONT BASELINE
Ensure CI fonts are used everywhere
====================================== */

html,
body {
  font-family: NettoWeb-Light, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: NettoWeb, sans-serif;
}

p,
li {
  font-family: NettoWeb-Light, sans-serif;
}

a,
.btn-primary,
.nav-button {
  font-family: NettoWeb, sans-serif;
}


/* ======================================
BASE STYLES
====================================== */

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

body {
  font-family: NettoWeb-Light, sans-serif;
  color: #333;
  line-height: 1.7;
}


/* ======================================
COLOR VARIABLES
====================================== */

:root {
  --primary: #0085AD;
  --lightbg: #f4f8fa;
  --border: #e6eef2;
}


/* ======================================
TYPOGRAPHY SCALE
====================================== */

h1 {
  font-family: NettoWeb;
  font-size: 46px;
  line-height: 1.2;
  color: var(--primary);
  margin-bottom: 22px;
}

h2 {
  font-family: NettoWeb;
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 34px;
}

h3 {
  font-family: NettoWeb;
  font-size: 23px;
  color: var(--primary);
  margin-bottom: 12px;
}

p {
  font-size: 20px;
  margin-bottom: 18px;
}

li {
  font-size: 20px;
}


/* ======================================
CONTAINER / LAYOUT
====================================== */

.container {
  width: 1000px;
  margin: auto;
  padding-top: 70px;
  padding-bottom: 70px;
}

.narrow {
  max-width: 720px;
}


/* ======================================
NAVIGATION
====================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #eee;
  background: white;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.navbar .container {
  padding-top: 20px;
  padding-bottom: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.nav-links li {
  display: flex;
  align-items: center;
}

/* navigation links */

.nav-button {
  font-family: NettoWeb, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: #0085AD;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-button:hover {
  background: #f4f8fa;
}

/* contact highlight */

.nav-contact {
  border: 1px solid #0085AD;
}

.nav-contact:hover {
  background: #0085AD;
  color: white;
}

/* sticky anchor offset */

section {
  scroll-margin-top: 90px;
}

html {
  scroll-behavior: smooth;
}


/* ======================================
LANGUAGE SWITCH
====================================== */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-switch span {
  color: #0085AD;
  opacity: 0.7;
  line-height: 1;
}

.lang-switch .nav-button {
  padding: 8px 0;
}

.active-lang {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1.5px;
}


/* ======================================
LOGO
====================================== */

.logo-block {
  display: flex;
  flex-direction: column;
}

.logo-block img {
  height: 84px;
  width: 177px;
}

.logo-tagline {
  font-size: 13px;
  color: #6f8b96;
  margin-top: 3px;
}


/* ======================================
HERO SECTION
====================================== */

.hero {
  background: #f4f8fa;
  padding-top: 90px;
  padding-bottom: 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.hero-text {
  max-width: 620px;
}

.subtitle {
  font-size: 22px;
  max-width: 620px;
  line-height: 1.5;
}

.experience-line {
  font-size: 16px;
  color: #6f8b96;
  margin-top: 10px;
}


/* ======================================
PRIMARY BUTTON
====================================== */

.btn-primary {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 28px;
  background: var(--primary);
  color: white;
  font-family: NettoWeb;
  border-radius: 4px;
  text-decoration: none;
}


/* ======================================
ABOUT SECTION LAYOUT
====================================== */

.about-grid{
  display:grid;
  grid-template-columns:220px 1fr;
  gap:40px;
  align-items:center;
}

.about-photo{
  display:flex;
  align-items:center;
  justify-content:center;
}

.about-photo img{
  width:200px;
  max-width:100%;
  border-radius:6px;
  display:block;
}


/* ======================================
SECTION BACKGROUNDS
====================================== */

.section-light {
  background: #f4f8fa;
}

.section-white {
  background: white;
}


/* ======================================
SECTION SEPARATORS
====================================== */

section {
  border-bottom: 1px solid #edf3f6;
}


/* ======================================
EXPERTISE CARDS
====================================== */

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.expertise-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.expertise-card ul {
  padding-left: 18px;
}


/* ======================================
PROJECT CARDS
====================================== */

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.project-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card ul {
  padding-left: 18px;
}


/* ======================================
CARD HOVER EFFECT
====================================== */

.expertise-card:hover,
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}


/* ======================================
HOW I WORK GRID
====================================== */

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.approach-step {
  padding: 25px;
}


/* ======================================
CONTACT BOX
====================================== */

.contact-box {
  max-width: 720px;
  margin: auto;
  text-align: center;
}


/* ======================================
FOOTER
====================================== */

footer {
  border-top: 1px solid #eee;
  padding: 30px 0;
  text-align: center;
}


/* ======================================
RESPONSIVE DESIGN
====================================== */

/* desktop / laptop */
@media (max-width: 1200px) {

  .container {
    width: min(92%, 1100px);
  }

  .nav-links {
    gap: 12px;
  }

  .nav-button {
    padding: 7px 12px;
  }

  .about-grid {
    gap: 32px;
  }

  .expertise-grid,
  .project-grid,
  .approach-grid {
    gap: 24px;
  }
}


/* tablet: 2 rows */
@media (max-width: 900px) {

  .container {
    width: 92%;
  }

  .nav-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: end;
    align-items: center;
    column-gap: 10px;
    row-gap: 6px;
    margin: 0;
    padding: 0;
  }

  .nav-button {
    padding: 6px 10px;
    font-size: 15px;
  }

  .lang-switch {
    gap: 3px;
  }

  .lang-switch .nav-button {
    padding: 6px 0;
  }

  .hero {
    padding-top: 70px;
    padding-bottom: 56px;
  }

  .subtitle {
    font-size: 20px;
    max-width: 100%;
  }

  .experience-line {
    font-size: 15px;
  }

  /* About stays side by side on tablet */
  .about-grid {
    grid-template-columns: 200px 1fr;
    gap: 24px;
    align-items: start;
  }

  .about-photo img {
    width: 180px;
  }

  .about-text {
    max-width: 100%;
  }

  /* Cards go to 2 columns */
  .expertise-grid,
  .project-grid,
  .approach-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .expertise-card,
  .project-card,
  .approach-step {
    padding: 22px;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 21px;
  }

  p,
  li {
    font-size: 18px;
  }
}


/* phone: 3 rows */
@media (max-width: 600px) {

  .container {
    width: calc(100% - 24px);
  }

  .navbar .container {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .nav-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: end;
    align-items: center;
    column-gap: 8px;
    row-gap: 4px;
    margin: 0;
    padding: 0;
  }

  .nav-button {
    padding: 4px 8px;
    font-size: 14px;
    border-radius: 3px;
  }

  .nav-contact {
    padding: 4px 8px;
  }

  .lang-switch {
    gap: 2px;
  }

  .lang-switch .nav-button {
    padding: 4px 0;
  }

  .hero {
    padding-top: 50px;
    padding-bottom: 40px;
  }

  .hero-grid {
    gap: 24px;
  }

  .hero-text {
    max-width: 100%;
  }

  .subtitle {
    font-size: 18px;
    max-width: 100%;
    line-height: 1.5;
  }

  .experience-line {
    font-size: 14px;
  }

  /* About stacks on phone */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-photo img {
    width: 160px;
  }

  .about-text {
    max-width: 100%;
  }

  /* Cards stack to 1 column */
  .expertise-grid,
  .project-grid,
  .approach-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .expertise-card,
  .project-card,
  .approach-step {
    padding: 18px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 25px;
    margin-bottom: 24px;
  }

  h3 {
    font-size: 20px;
  }

  p,
  li {
    font-size: 17px;
  }

  .btn-primary {
    padding: 10px 20px;
  }
}