/* ===========================================================================
   Agnieszka Chojnacka — odtworzenie strony agachojnacka.pl
   =========================================================================== */

:root{
  --ink:#414141;          /* główny tekst / nagłówki           */
  --body:#727272;         /* akapity                           */
  --muted:#999997;        /* etykiety, podpisy                 */
  --mint:#d4e1df;         /* tło sekcji miętowych              */
  --grey:#f2f2f2;         /* tło sekcji szarych / kart         */
  --sage:#a3b8b4;         /* przyciski, stany aktywne          */
  --sage-dark:#8ba29d;    /* hover przycisku                   */
  --dark:#42474a;         /* stopka                            */
  --green:#39c741;        /* akcent pod nagłówkiem hero        */
  --line:#c9c9c9;         /* cienka kreska pod nagłówkami      */
  --maxw:1900px;
  --font:"Helvetica Neue",Helvetica,"Segoe UI",Arial,sans-serif;
}

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

html{scroll-behavior:smooth}

body{
  font-family:var(--font);
  font-weight:300;
  color:var(--body);
  background:#fff;
  line-height:1.9;
  font-size:17px;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}

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

/* ------------------------------------------------------------------ helpers */
.rule{
  display:block;
  width:44px;height:2px;
  background:var(--line);
  margin:26px 0;
}
.rule--green{background:var(--green)}

h1,h2,h3{color:var(--ink);font-weight:300;line-height:1.1}

.lead{
  font-size:clamp(19px,2.3vw,29px);
  line-height:1.5;
  color:var(--muted);
}

/* ------------------------------------------------------------------- header */
.site-header{
  position:fixed;top:0;left:0;right:0;z-index:100;
  background:#fff;
  border-bottom:1px solid #ededed;
}
.site-header__inner{
  max-width:var(--maxw);
  margin:0 auto;
  min-height:62px;
  display:flex;align-items:center;justify-content:flex-end;
  padding:0 clamp(18px,4vw,60px);
}
.nav{display:flex;gap:34px}
.nav a{
  text-decoration:none;
  color:var(--body);
  font-size:16px;
  padding:6px 0;
  white-space:nowrap;
  transition:color .2s;
}
.nav a:hover,.nav a.is-active{color:var(--sage)}

.nav-toggle{
  display:none;
  background:none;border:0;cursor:pointer;
  width:40px;height:40px;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after{
  content:"";display:block;position:relative;
  width:24px;height:1.5px;background:var(--ink);margin:0 auto;
}
.nav-toggle span::before{position:absolute;top:-7px}
.nav-toggle span::after{position:absolute;top:7px}

/* --------------------------------------------------------------- structure */
main{padding-top:62px}

.strip{
  display:grid;
  grid-template-columns:1fr 1fr;
  min-height:88vh;
}
.strip__media{position:relative;overflow:hidden;min-height:340px}
.strip__media img{
  position:absolute;inset:0;
  width:100%;height:100%;
  object-fit:cover;
}
.strip__body{
  display:flex;flex-direction:column;justify-content:center;
  padding:clamp(40px,7vw,120px) clamp(26px,8vw,130px);
}
.strip--mint .strip__body{background:var(--mint)}
.strip--grey .strip__body{background:var(--grey)}

.strip__body p+p{margin-top:1.2em}
.strip__body .lead+p,.strip__body p{margin-top:1.1em}

/* hero ------------------------------------------------------------------- */
.hero h1{
  font-size:clamp(46px,7.6vw,92px);
  line-height:1.04;
  margin-bottom:34px;
}
.hero .lead{color:#8a8a88}

/* section headings ----------------------------------------------------- */
.section-h{
  font-size:clamp(34px,5vw,56px);
  margin-bottom:4px;
}

/* ------------------------------------------------------------- full block */
.block{
  max-width:var(--maxw);
  margin:0 auto;
  padding:clamp(60px,9vw,130px) clamp(26px,8vw,150px);
}
.block__intro{max-width:820px;margin-bottom:60px}
.block__intro .section-h{margin-bottom:18px}

/* ---------------------------------------------------------- projekty grid */
.projects{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:40px 46px;
}
.project{
  display:grid;
  grid-template-columns:1fr 1fr;
  background:var(--grey);
}
.project__img{
  align-self:center;
  padding:14px;
  background:#fff;
}
.project__img img{width:100%;height:100%;object-fit:cover}
.project__text{
  padding:34px 30px;
  display:flex;flex-direction:column;
  gap:10px;
  align-self:center;
}
.project__label{font-size:15px;color:var(--muted)}
.project__title{
  font-size:clamp(19px,1.5vw,23px);
  color:var(--ink);
  line-height:1.35;
}
.btn{
  align-self:flex-start;
  margin-top:14px;
  display:inline-block;
  background:var(--sage);
  color:#fff;
  text-decoration:none;
  padding:13px 30px;
  font-size:15px;
  border:0;cursor:pointer;
  transition:background .2s;
}
.btn:hover{background:var(--sage-dark)}
.btn--block{align-self:stretch;width:100%;text-align:center;margin-top:22px;padding:15px}

/* ------------------------------------------------------------ co robię?  */
.cv{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0;
  max-width:var(--maxw);
  margin:0 auto;
}
.cv__text{padding:clamp(50px,8vw,120px) clamp(26px,7vw,120px)}
.cv__media{
  display:flex;flex-direction:column;align-items:flex-start;
  align-self:start;
  gap:26px;
  padding:clamp(60px,9vw,130px) clamp(20px,5vw,80px) 40px;
}
.cv__media img{width:100%;max-width:460px;height:auto;object-fit:cover}

.cv h2{font-size:clamp(34px,5vw,56px);margin-bottom:2px}
.cv h3{
  font-size:clamp(24px,2.6vw,32px);
  margin:52px 0 6px;
}
.cv h3:first-of-type{margin-top:40px}
.cv .year{
  font-weight:400;
  color:var(--ink);
  margin:26px 0 8px;
}
.cv ul{list-style:none;display:flex;flex-direction:column;gap:14px}
.cv li{position:relative;padding-left:22px}
.cv li::before{
  content:"";position:absolute;left:0;top:13px;
  width:5px;height:5px;border-radius:50%;
  background:var(--sage);
}
.cv a{word-break:break-word;color:var(--body)}

/* --------------------------------------------------------------- kontakt */
.contact{
  display:grid;
  grid-template-columns:1fr 1fr;
  min-height:92vh;
}
.contact__media{position:relative;overflow:hidden;min-height:320px}
.contact__media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.contact__body{
  background:var(--grey);
  padding:clamp(46px,7vw,110px) clamp(26px,7vw,120px);
  display:flex;flex-direction:column;justify-content:center;
}
.contact__body h2{font-size:clamp(32px,4.4vw,52px)}
.contact__info{margin:8px 0 34px}
.contact__info a{text-decoration:none}

.form{display:flex;flex-direction:column;gap:18px;max-width:520px}
.form__honey{position:absolute;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none}
.form__status{
  font-size:15px;line-height:1.5;margin-top:2px;
  color:var(--body);
}
.form__status.is-ok{color:#3c7a4e}
.form__status.is-err{color:#b0403a}
.field{display:flex;flex-direction:column;gap:7px}
.field label{font-size:15px;color:var(--ink)}
.field input,.field textarea{
  font-family:inherit;font-size:16px;font-weight:300;
  background:#fff;border:1px solid #e3e3e3;
  padding:12px 14px;
  color:var(--ink);
  width:100%;
}
.field textarea{min-height:52px;resize:vertical}
.field input:focus,.field textarea:focus{outline:2px solid var(--sage);border-color:transparent}

/* ---------------------------------------------------------------- stopka */
.site-footer{
  background:var(--dark);
  color:#cfd3d2;
  text-align:center;
  font-size:14px;
  padding:26px 20px;
}

/* ============================================================ RESPONSIVE */
@media (max-width:900px){
  body{font-size:16px;line-height:1.8}

  .nav-toggle{display:block}
  .nav{
    position:absolute;top:100%;left:0;right:0;
    flex-direction:column;gap:0;
    background:#fff;
    border-bottom:1px solid #ededed;
    max-height:0;overflow:hidden;
    transition:max-height .3s ease;
  }
  .nav.is-open{max-height:70vh}
  .nav a{
    padding:15px clamp(18px,4vw,60px);
    border-top:1px solid #f0f0f0;
    font-size:17px;
  }

  .strip,
  .cv,
  .contact{grid-template-columns:1fr}

  /* obraz zawsze nad tekstem */
  .strip__media,
  .contact__media{
    position:relative;
    min-height:0;
    height:62vw;max-height:440px;
    order:-1;
  }
  .strip__media img,
  .contact__media img{position:absolute}
  #o-mnie .strip__media img{object-position:top center}

  .strip{min-height:0}
  .strip__body{padding:44px clamp(22px,7vw,40px) 54px}

  .projects{grid-template-columns:1fr;gap:32px}
  .project{grid-template-columns:1fr}
  .project__img{padding:0}
  .project__img img{max-height:none}
  .project__text{padding:26px 24px 30px}
  .btn{align-self:stretch;text-align:center}

  .cv__media{flex-direction:row}
  .cv__media img{width:50%;height:56vw;max-height:360px}
  .cv h3:first-of-type{margin-top:20px}

  .contact__media{height:60vw}
  .form{max-width:none}
}

@media (max-width:520px){
  .cv__media{flex-direction:column}
  .cv__media img{width:100%;height:64vw;max-height:320px}
  .hero h1{font-size:clamp(40px,11vw,60px)}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none!important}
}
