/* ============================================================
   Hultebacka Industry Projects — Site Stylesheet
   Design system tokens + site-specific components
   ============================================================ */

/* ---- Fonts ----------------------------------------------- */
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/SourceSans3-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/IBMPlexMono-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/IBMPlexMono-500-latin.woff2") format("woff2");
}

/* ---- Color tokens ---------------------------------------- */
:root {
  --slate-900: #232b2b;
  --slate-800: #2f3a39;
  --slate-700: #404d4d;
  --slate-600: #4f5e5e;
  --slate-500: #647373;
  --sage-600:  #7c7c72;
  --sage-500:  #97978d;
  --sage-400:  #aaaaa0;
  --bone-400:  #b8b8ad;
  --bone-300:  #d1d1c6;
  --bone-200:  #e0e0d8;
  --bone-100:  #edede7;
  --bone-50:   #f6f6f2;
  --white:     #ffffff;
  --teal-800:  #2e4249;
  --teal-700:  #3f5860;
  --teal-600:  #527079;
  --teal-500:  #668490;
  --teal-400:  #84a0aa;
  --teal-200:  #c4d3d8;
  --teal-50:   #eef3f4;

  /* Semantic aliases */
  --surface-page:    var(--bone-50);
  --surface-card:    var(--white);
  --surface-sunken:  var(--bone-100);
  --surface-inverse: var(--slate-700);
  --surface-feature: var(--teal-600);
  --text-strong:     var(--slate-900);
  --text-body:       var(--slate-700);
  --text-muted:      var(--sage-600);
  --text-subtle:     var(--sage-500);
  --text-on-dark:    var(--bone-100);
  --border-subtle:   var(--bone-200);
  --border-default:  var(--bone-300);
  --action-bg:       var(--teal-500);
  --action-bg-hover: var(--teal-600);
  --shadow-focus:    0 0 0 3px rgba(102, 132, 144, 0.35);
  --shadow-sm:       0 1px 3px rgba(35,43,43,.08), 0 1px 2px rgba(35,43,43,.04);
  --shadow-md:       0 4px 12px rgba(35,43,43,.08), 0 2px 4px rgba(35,43,43,.05);
}

/* ---- Reset & base ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text-strong);
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul { padding-left: 20px; margin: 0; }
li { margin: 7px 0; }
a { color: inherit; text-decoration: none; transition: color 120ms; }
::selection { background: var(--teal-200); color: var(--slate-900); }

/* ---- Kicker (eyebrow) ------------------------------------ */
.kicker {
  display: block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 14px;
}

/* ---- Header ---------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 9px clamp(16px, 4vw, 52px);
  background: rgba(246,246,242,.92);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
  transition: background 200ms, border-color 200ms;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 14px; color: var(--text-strong);
}
.brand svg { width: 28px; height: 28px; flex: none; overflow: hidden; }
nav { display: flex; gap: 28px; font-size: 15px; font-weight: 600; color: var(--text-muted); }
nav a:hover { color: var(--teal-600); }
nav a.active { color: var(--text-strong); }

/* ---- Buttons --------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  border-radius: 6px; border: 1px solid transparent;
  font-family: inherit; font-size: 15px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: background 120ms, border-color 120ms, color 120ms;
}
.btn-primary { background: var(--action-bg); color: var(--white); border-color: var(--action-bg); }
.btn-primary:hover { background: var(--action-bg-hover); border-color: var(--action-bg-hover); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-outline { background: transparent; color: var(--teal-600); border-color: var(--teal-500); }
.btn-outline:hover { background: var(--teal-50); }
.btn-ghost { background: transparent; color: var(--white); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; border: none; min-height: 44px; padding: 0; cursor: pointer; font-family: inherit; font-size: 15px; }

/* ---- Layout helpers -------------------------------------- */
.section { padding: 88px clamp(20px, 5vw, 64px); }
.section-sm { padding: 40px clamp(20px, 5vw, 64px); }
.surface-white { background: var(--surface-card); border-block: 1px solid var(--border-subtle); }
.surface-teal { background: var(--surface-feature); color: var(--white); }
.surface-dark { background: var(--slate-800); color: var(--text-on-dark); }
.two-col { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(32px,6vw,88px); align-items: start; }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head h2 { margin-top: 12px; font-size: clamp(28px,3.5vw,44px); }
.section-head p { color: var(--text-muted); font-size: 18px; margin-top: 14px; }

/* ---- Homepage hero --------------------------------------- */
.hero {
  min-height: 88vh; position: relative;
  display: flex; align-items: flex-end;
  padding: 140px clamp(20px,5vw,64px) 72px;
  overflow: hidden; background: var(--teal-800);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg,
      rgba(46,66,73,.92) 0%,
      rgba(63,88,96,.66) 48%,
      rgba(82,112,121,.22) 100%),
    url('https://www.industryprojects.se/assets/images/freepik-the-style-is-candid-image-photography-with-natural-16135-896x1152.jpg') center/cover;
}
.hero-copy { position: relative; max-width: 900px; color: var(--white); }
.hero-copy h1 {
  font-size: clamp(40px,6.5vw,80px); line-height: 1.0;
  margin-bottom: 22px; color: var(--white); letter-spacing: -0.02em;
}
.hero-copy > p { font-size: 20px; color: rgba(255,255,255,.84); max-width: 680px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---- Page hero (service pages) --------------------------- */
.page-hero {
  padding: clamp(56px,8vw,96px) clamp(20px,5vw,64px) clamp(44px,6vw,64px);
  background: var(--surface-feature); color: var(--white);
}
.page-hero h1 { font-size: clamp(32px,4.5vw,58px); margin-top: 12px; margin-bottom: 18px; color: var(--white); }
.page-hero > p { font-size: 19px; color: rgba(255,255,255,.82); max-width: 640px; margin: 0; }

/* ---- Systems strip --------------------------------------- */
.systems-strip { display: flex; flex-wrap: wrap; gap: 9px; }
.systems-strip span {
  padding: 6px 13px; border: 1px solid var(--border-default);
  border-radius: 4px; font-family: "IBM Plex Mono", monospace;
  font-size: 12px; font-weight: 500; color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ---- Service cards (homepage) ---------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 18px; }
.card {
  padding: 28px; background: var(--surface-card);
  border: 1px solid var(--border-subtle); border-top: 3px solid var(--border-default);
  border-radius: 10px; display: flex; flex-direction: column;
  transition: box-shadow 200ms, border-top-color 200ms;
}
.card:hover { box-shadow: var(--shadow-md); border-top-color: var(--teal-500); }
.card.featured {
  background: var(--teal-600); color: var(--white);
  border-color: var(--teal-600); border-top-color: var(--teal-400);
}
.card.featured:hover { box-shadow: var(--shadow-md); border-top-color: var(--white); }
.card-num { font-family: "IBM Plex Mono", monospace; font-size: 12px; font-weight: 500; color: var(--teal-500); letter-spacing: 0.08em; display: block; margin-bottom: 12px; }
.card.featured .card-num { color: rgba(255,255,255,.6); }
.card h3 { font-size: 19px; margin-bottom: 10px; color: var(--text-strong); }
.card.featured h3 { color: var(--white); }
.card p, .card li { color: var(--text-muted); font-size: 15px; }
.card.featured p, .card.featured li { color: rgba(255,255,255,.8); }
.card-link { display: inline-block; margin-top: auto; padding-top: 14px; font-size: 14px; font-weight: 600; color: var(--teal-600); }
.card-link:hover { color: var(--teal-700); }
.card.featured .card-link { color: rgba(255,255,255,.9); }

/* ---- Delivery steps -------------------------------------- */
.steps { display: grid; gap: 12px; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 20px; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: 10px; }
.step-num { display: grid; place-items: center; width: 36px; height: 36px; background: var(--teal-50); border-radius: 50%; color: var(--teal-600); font-family: "IBM Plex Mono", monospace; font-size: 13px; font-weight: 600; }
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--text-muted); font-size: 15px; margin: 0; }

/* ---- About card ------------------------------------------ */
.about-card { padding: 32px; border-radius: 10px; background: var(--teal-600); color: var(--white); }
.about-card p { color: rgba(255,255,255,.82); font-size: 16px; margin-top: 10px; }
.company-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.company-list span { padding: 7px 13px; border: 1px solid rgba(255,255,255,.25); border-radius: 4px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.9); background: rgba(255,255,255,.08); }

/* ---- Proof / experience ---------------------------------- */
.proof { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(32px,6vw,88px); align-items: start; }
.proof-main { padding: 32px; border-radius: 10px; background: var(--slate-800); color: var(--text-on-dark); }
.proof-main h3 { color: var(--white); font-size: 20px; margin-bottom: 14px; }
.proof-main p { color: rgba(255,255,255,.78); font-size: 16px; }
.proof-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.proof-item { padding: 18px 20px; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: 8px; }
.proof-item strong { display: block; color: var(--text-strong); font-size: 15px; margin-bottom: 6px; }
.proof-item p { color: var(--text-muted); font-size: 14px; margin: 0; }
.logos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.logos span { padding: 7px 13px; border: 1px solid var(--border-default); border-radius: 4px; font-size: 13px; font-weight: 600; color: var(--text-muted); }

/* ---- Partner image --------------------------------------- */
.partner-image { min-height: 400px; border-radius: 10px; background: url('/assets/images/sweden-india-map.svg') center/cover; }

/* ---- Service page areas ---------------------------------- */
.service-areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 18px; }
.service-area { padding: 26px; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: 10px; }
.service-area h3 { font-size: 17px; margin-bottom: 10px; }
.service-area p, .service-area li { color: var(--text-muted); font-size: 15px; }

/* ---- Outcomes -------------------------------------------- */
.outcomes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 10px; }
.outcomes li { margin: 0; padding: 14px 18px; background: var(--teal-50); border: 1px solid var(--teal-200); border-radius: 8px; font-weight: 600; font-size: 15px; color: var(--teal-700); }

/* ---- Contact page ---------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(32px,6vw,80px); align-items: center; }
.contact-detail { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--text-body); padding: 14px 0; border-bottom: 1px solid var(--border-subtle); }
.contact-detail:last-child { border-bottom: none; }
.contact-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: var(--teal-50); border-radius: 6px; flex: none; }
.contact-detail-label { font-size: 12px; font-family: "IBM Plex Mono", monospace; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-subtle); display: block; }
.contact-detail-value { font-weight: 600; color: var(--text-strong); }
.contact-detail a { color: var(--teal-600); }
.contact-detail a:hover { color: var(--teal-700); }
.entity-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.entity-card { padding: 28px; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: 10px; }
.entity-flag { font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-600); display: block; margin-bottom: 10px; }
.entity-card h3 { font-size: 16px; margin-bottom: 12px; }
.entity-card p { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin: 0; }

/* ---- Contact form ---------------------------------------- */
.form-card { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: 10px; padding: clamp(24px,4vw,36px); }
.req { color: var(--teal-500); }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field label { font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-subtle); }
.form-field input,
.form-field textarea {
  -webkit-appearance: none; appearance: none;
  width: 100%; box-sizing: border-box;
  padding: 11px 14px;
  background: var(--bone-50);
  border: 1.5px solid var(--bone-300);
  border-radius: 6px;
  font-family: "Source Sans 3", sans-serif;
  font-size: 16px; color: var(--text-strong); line-height: 1.4;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--sage-400); }
.form-field input:focus,
.form-field textarea:focus { border-color: var(--teal-500); box-shadow: var(--shadow-focus); }
.form-field textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.form-btn { display: flex; width: 100%; justify-content: center; margin-top: 4px; }
.form-status { font-size: 14px; line-height: 1.5; padding: 12px 15px; border-radius: 6px; display: none; }
.form-status.success { background: var(--teal-50); color: var(--teal-700); border: 1px solid var(--teal-200); display: block; }
.form-status.error { background: #fff2f2; color: #b91c1c; border: 1px solid #fecaca; display: block; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

/* ---- CTA contact section (inside pages) ------------------ */
/* Teal background distinguishes it from the slate-800 footer */
.cta-band { background: var(--surface-feature); }
.cta-inner {
  display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr);
  gap: clamp(32px,6vw,56px); align-items: center;
  padding: clamp(40px,5vw,64px) clamp(20px,5vw,64px);
  color: var(--white);
}
.cta-inner h2 { font-size: clamp(22px,2.8vw,34px); color: var(--white); margin-top: 10px; }
.cta-inner p { color: rgba(255,255,255,.76); font-size: 16px; margin-top: 10px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

/* ---- About page ------------------------------------------ */
.bio-grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: clamp(32px,6vw,88px); align-items: start; }
.bio-grid p { color: var(--text-muted); font-size: 17px; margin-top: 14px; }
.exp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 16px; }
.exp-item { padding: 22px 26px; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: 10px; }
.exp-item h3 { font-size: 16px; margin-bottom: 8px; }
.exp-item p { color: var(--text-muted); font-size: 14px; margin: 0; }

/* ---- People grid ----------------------------------------- */
.people-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 20px; margin-top: 32px; }
.person-card { padding: 32px; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: 10px; }
.person-card h3 { font-size: 20px; margin: 10px 0 12px; }
.person-card p { color: var(--text-muted); font-size: 15px; line-height: 1.65; margin: 0 0 18px; }
.person-card a { font-size: 14px; color: var(--teal-600); text-decoration: none; }
.person-card a:hover { color: var(--teal-700); }

/* ---- Footer ---------------------------------------------- */
.site-footer { background: var(--slate-800); color: var(--bone-200); padding: 56px clamp(20px,5vw,64px) 32px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid var(--slate-600); }
.footer-brand p { color: var(--sage-500); font-size: 14px; margin-top: 16px; max-width: 260px; }
.footer-col-head { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage-500); margin-bottom: 14px; display: block; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--bone-200); }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; font-size: 13px; color: var(--sage-500); gap: 16px; flex-wrap: wrap; }
.footer-entities { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.04em; }

/* ---- Logo text in footer --------------------------------- */
.footer-wordmark { font-weight: 700; font-size: 14px; color: var(--white); display: flex; align-items: center; gap: 10px; }
.footer-wordmark svg { width: 28px; height: 28px; }

/* Mobile --------------------------------------------------- */
@media (max-width: 900px) {
  .site-header { flex-wrap: wrap; }
  nav { flex-wrap: wrap; gap: 12px; font-size: 14px; }
  .hero { min-height: auto; padding-top: 90px; }
  .hero-copy h1 { font-size: 38px; }
  .two-col, .proof, .bio-grid, .contact-grid, .cta-inner { grid-template-columns: 1fr; }
  .proof-list, .entity-cards { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 540px) {
  .footer-inner { grid-template-columns: 1fr; }
}
