/* FirstLevel IT — Web Design. Matched to firstlevelit.com main site. */
:root {
  --ink: #23201b;
  --ink-soft: #2c2820;
  --terracotta: #b8552f;
  --terracotta-light: #cf6a40;
  --terracotta-deep: #99441f;
  --cream: #f4f1ea;
  --muted: #6b6560;
  --border: #d9d3ca;
  --paper: #faf8f5;
  --surface: #f3efe7;
  --radius: 8px;
  --maxw: 1080px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ol, ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-family: 'Fraunces', Georgia, 'Times New Roman', serif; font-weight: 600; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--terracotta); color: var(--cream);
  padding: 10px 18px; border-radius: 6px; z-index: 100; font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Label (eyebrow) ---------- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
}
.label::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--terracotta);
  flex: none;
  align-self: center;
  margin-top: -1px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.btn-primary { background: var(--terracotta); color: var(--cream); }
.btn-primary:hover { background: var(--terracotta-deep); }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(244,241,234,.32); }
.btn-ghost:hover { border-color: var(--cream); background: rgba(244,241,234,.06); }

/* ---------- Brand mark ---------- */
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 1.2rem;
  color: var(--cream);
}
.brand .mark {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  background: var(--terracotta);
  color: var(--cream);
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  align-self: center;
}
.brand .sub { color: var(--terracotta); }

/* ---------- Header ---------- */
.site-header {
  background: var(--ink);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.site-header.scrolled { border-bottom-color: rgba(184,85,47,.4); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 66px;
}
.nav-menu { display: flex; align-items: center; gap: 2rem; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
  color: rgba(244,241,234,.72);
  font-size: .95rem;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--cream); }
.nav-cta {
  background: var(--terracotta) !important;
  color: var(--cream) !important;
  padding: 8px 18px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--terracotta-deep) !important; }

/* Mobile toggle — hidden on desktop */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent; border: 0; cursor: pointer;
  color: var(--cream);
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: ""; display: block;
  width: 22px; height: 2px; background: currentColor;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before { position: absolute; top: -6px; left: 0; }
.nav-toggle-bars::after  { position: absolute; top: 6px;  left: 0; }
.nav.open .nav-toggle-bars { background: transparent; }
.nav.open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav.open .nav-toggle-bars::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: var(--cream);
  padding: 96px 0 84px;
  position: relative;
  border-bottom: 1px solid var(--ink-soft);
}
.hero .wrap { position: relative; }
.hero .label { color: var(--terracotta); }

.hero-rule {
  height: 2px;
  margin: 26px 0 30px;
  background: linear-gradient(to right,
    var(--terracotta) 0,
    var(--terracotta) 132px,
    rgba(244,241,234,.16) 132px,
    rgba(244,241,234,.16) 100%);
}

.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-weight: 600;
  max-width: 16ch;
  margin: 0 0 28px;
  text-wrap: balance;
}
.hero h1 .hl {
  color: var(--terracotta);
  font-style: italic;
}
.hero p {
  font-size: 1.18rem;
  color: rgba(244,241,234,.82);
  max-width: 54ch;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.hero-trust {
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid rgba(244,241,234,.14);
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  color: rgba(244,241,234,.68);
  font-size: .94rem;
}
.hero-trust span {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.hero-trust span::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--terracotta);
  flex: none;
  align-self: center;
}

/* ---------- Sections ---------- */
section { padding: 86px 0; }

.section-head { max-width: 60ch; margin-bottom: 50px; }
.section-head h2 {
  font-size: clamp(2rem, 3.6vw, 2.7rem);
  letter-spacing: -0.01em;
  margin: 14px 0 4px;
  line-height: 1.1;
}
.section-head h2::after {
  content: "";
  display: block;
  width: 32px; height: 2px;
  background: var(--terracotta);
  margin-top: 8px;
}
.section-head p { color: var(--muted); font-size: 1.1rem; }

section:nth-of-type(even) { background: var(--paper); }

/* ---------- Work / Portfolio ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.work-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--terracotta);
  transition: transform .25s ease, background .25s ease;
  background: var(--surface);
}
.work-card:hover { transform: translateY(-4px); background: var(--cream); }
.work-card h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.work-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: .96rem;
}
.work-card a {
  display: inline-block;
  font-size: .92rem;
  font-weight: 500;
  color: var(--terracotta);
  transition: color .2s;
}
.work-card a:hover { color: var(--terracotta-deep); }

/* ---------- Pricing ---------- */
#pricing { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.pricing-card {
  padding: clamp(28px, 3.5vw, 44px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--cream);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.pricing-card:hover {
  border-color: var(--terracotta);
  box-shadow: 0 4px 16px rgba(35,32,27,.06);
}
.pricing-card h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.price {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2.2rem, 3.5vw, 2.8rem);
  font-weight: 600;
  color: var(--terracotta);
  margin: 0 0 16px;
  line-height: 1;
}
.pricing-card p {
  margin: 0 0 12px;
  color: var(--muted);
  max-width: 42ch;
}
.pricing-card p:last-child { margin-bottom: 0; }
.pricing-note {
  font-size: .95rem;
  font-style: italic;
  color: var(--muted);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ---------- How it works ---------- */
#how { background: var(--cream); }
.steps { display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.step-num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.6rem;
  font-weight: 500;
  line-height: 1;
  color: #cdc3b0;
  transition: color .2s ease;
}
.step:hover .step-num { color: var(--terracotta); }
.step h3 {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.step p {
  margin: 0;
  color: var(--muted);
  font-size: .98rem;
  max-width: 52ch;
}

/* ---------- Contact ---------- */
.contact-card {
  background: var(--ink);
  color: var(--cream);
  border-radius: 14px;
  padding: 54px clamp(28px, 5vw, 60px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  border: 1px solid var(--ink-soft);
}
.contact-card .label { color: var(--terracotta); margin-bottom: 16px; }
.contact-card h2 {
  font-size: clamp(2rem, 3.6vw, 2.5rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 6px;
}
.contact-card h2::after {
  content: "";
  display: block;
  width: 32px; height: 2px;
  background: var(--terracotta);
  margin-top: 8px;
}
.contact-card > div:first-child p {
  color: rgba(244,241,234,.8);
  font-size: 1.08rem;
  margin-bottom: 26px;
}
.whatsapp-link {
  color: var(--terracotta);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(184,85,47,.42);
  white-space: nowrap;
}
.whatsapp-link:hover { color: var(--terracotta-light); text-decoration-color: currentColor; }
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--terracotta);
}
.contact-email:hover { color: var(--terracotta-light); }

.contact-form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label {
  font-size: .85rem;
  font-weight: 500;
  color: rgba(244,241,234,.72);
}
.field input, .field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid rgba(244,241,234,.18);
  background: rgba(244,241,234,.05);
  color: var(--cream);
  width: 100%;
  transition: border-color .2s, background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(244,241,234,.42); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  background: rgba(244,241,234,.09);
}
.field textarea { resize: vertical; min-height: 96px; }
.contact-form .btn-primary { justify-content: center; margin-top: 4px; }

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: rgba(244,241,234,.62);
  padding: 38px 0;
  border-top: 1px solid var(--ink-soft);
}
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: .92rem;
}
.foot a { color: rgba(244,241,234,.62); }
.foot a:hover { color: var(--cream); }
.foot .brand { font-size: 1.05rem; color: var(--cream); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.will-animate { will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }

/* Staggered children inside a .reveal-group */
.reveal-group > .reveal:nth-child(1) { transition-delay: 0.00s; }
.reveal-group > .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-group > .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-group > .reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal-group > .reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal-group > .reveal:nth-child(6) { transition-delay: 0.40s; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0 24px; background: var(--ink);
    border-bottom: 1px solid var(--ink-soft);
    max-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
    transition: max-height .3s ease, opacity .2s ease, visibility 0s linear .3s;
  }
  .nav.open .nav-menu { max-height: 80vh; overflow-y: auto; opacity: 1; visibility: visible; transition: max-height .3s ease, opacity .2s ease, visibility 0s; }
  .nav-links { flex-direction: column; gap: 0; padding: .5rem 0; }
  .nav-links a { padding-block: .85rem; font-size: 1.05rem; }
  .nav-menu .nav-cta { margin: .5rem 0 1.2rem; justify-content: center; }
  .work-grid, .pricing-grid { grid-template-columns: 1fr; }
  .steps .step { grid-template-columns: 54px 1fr; gap: 20px; }
  .step-num { font-size: 2rem; }
  .contact-card { grid-template-columns: 1fr; padding: 40px 26px; }
  .foot { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
