/* Louripereiras — v0.2 "modern base, retro paint-slash accents".
   Modern typography/spacing + bold early-2000s colour blocks and diagonal slashes. */
:root {
  --ink: #14181f;
  --paper: #f6f5f2;
  --brand: #16324a;        /* deep structural blue */
  --brand-dark: #0e2233;
  /* Paint palette — the "slashes of colour" */
  --paint-blue: #1f78c2;
  --paint-orange: #e0592a;
  --paint-yellow: #f2b134;
  --paint-teal: #1a9e8f;
  --accent: var(--paint-orange);
  --muted: #5b6472;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.015em; font-weight: 800; }
a { color: var(--paint-blue); }

/* ---------- Top paint bar (retro multi-colour stripe) ---------- */
.paintbar {
  height: 8px; width: 100%;
  background: linear-gradient(90deg,
    var(--paint-blue) 0 25%, var(--paint-orange) 25% 50%,
    var(--paint-yellow) 50% 75%, var(--paint-teal) 75% 100%);
}

/* ---------- Hero with animated background ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.4s ease, transform 8s ease;
}
.slide.is-active { opacity: 1; transform: scale(1); }
.slide.placeholder { display: grid; place-items: center; }
.slide.placeholder span {
  font: 600 .72rem/1.4 system-ui; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.4);
  padding: .35rem .7rem; border-radius: 999px;
}
.slide.ph-1 { background: linear-gradient(135deg, #16324a, #0e2233); }
.slide.ph-2 { background: linear-gradient(135deg, #1f4a6b, #12314a); }
.slide.ph-3 { background: linear-gradient(135deg, #244f63, #16324a); }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(14,34,51,.15), rgba(14,34,51,.45));
}

/* Brushed diagonal colour band across the bottom of the hero */
.hero-band {
  position: absolute; left: -4%; right: -4%; bottom: -2.2rem; z-index: 2;
  height: 5.5rem; transform: rotate(-2.4deg);
  background: var(--paint-orange);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.hero-band::before, .hero-band::after {
  content: ""; position: absolute; left: 0; right: 0; height: .5rem;
}
.hero-band::before { top: -.5rem; background: var(--paint-yellow); }
.hero-band::after  { bottom: -.5rem; background: var(--paint-blue); }

.hero-content { position: relative; z-index: 3; padding: 2rem; max-width: 860px; }
.hero-title { font-size: clamp(2.1rem, 6.4vw, 4.2rem); margin: 0 0 .6rem; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero-subtitle { font-size: clamp(1rem, 2.4vw, 1.4rem); margin: 0; color: rgba(255,255,255,.92); font-weight: 500; }

.scroll-cue { display: inline-block; margin-top: 2.6rem; position: relative; z-index: 3; }
.scroll-cue span {
  display: block; width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,.75); border-radius: 14px; position: relative;
}
.scroll-cue span::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px;
  background: #fff; border-radius: 2px; transform: translateX(-50%);
  animation: scroll-dot 1.6s infinite;
}
@keyframes scroll-dot { 0%{opacity:0;top:8px} 40%{opacity:1} 80%{opacity:0;top:22px} 100%{opacity:0} }

/* ---------- Sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 5.5rem 1.5rem; }
.section h2 {
  font-size: clamp(1.7rem, 4vw, 2.6rem); margin: 0 0 1.7rem;
  position: relative; padding-bottom: .7rem;
}
/* Multi-colour "paint slash" underline */
.section h2::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 132px; height: 5px; border-radius: 3px;
  background: linear-gradient(90deg,
    var(--paint-blue) 0 25%, var(--paint-orange) 25% 50%,
    var(--paint-yellow) 50% 75%, var(--paint-teal) 75% 100%);
}
.about p { font-size: 1.12rem; max-width: 70ch; color: #2a3340; }

.services-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.services-grid li {
  background: #fff; border: 1px solid #e7e6e1; border-radius: 12px;
  padding: 1.15rem 1.25rem; font-weight: 700; color: var(--brand-dark);
  border-left: 6px solid var(--paint-blue);
  transition: transform .16s ease, box-shadow .16s ease;
}
.services-grid li:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(20,40,60,.12); }
/* Cycle the accent colour across cards for the retro multi-colour feel */
.services-grid li:nth-child(4n+2) { border-left-color: var(--paint-orange); }
.services-grid li:nth-child(4n+3) { border-left-color: var(--paint-yellow); }
.services-grid li:nth-child(4n+4) { border-left-color: var(--paint-teal); }

/* Diagonal colour-slash divider */
.slash-divider {
  height: 64px; margin: 1rem 0; overflow: hidden; position: relative;
}
.slash-divider::before {
  content: ""; position: absolute; inset: -20px -10px; transform: rotate(-2.6deg);
  background: repeating-linear-gradient(90deg,
    var(--paint-blue) 0 40px, var(--paint-orange) 40px 80px,
    var(--paint-yellow) 80px 120px, var(--paint-teal) 120px 160px);
  opacity: .92;
}

/* Bold colour-block sections */
.block { max-width: var(--max); margin: 0 auto 1.5rem; border-radius: 18px; color: #fff; position: relative; overflow: hidden; }
.block .section { padding-top: 3.2rem; padding-bottom: 3.2rem; }
.block h2 { color: #fff; }
.hiring { background: var(--brand); text-align: center; }
.hiring h2::after { left: 50%; transform: translateX(-50%); }
.contacts { background: var(--brand-dark); }
/* Angled top accent strip on colour blocks */
.block::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 10px;
  background: linear-gradient(90deg,
    var(--paint-blue) 0 25%, var(--paint-orange) 25% 50%,
    var(--paint-yellow) 50% 75%, var(--paint-teal) 75% 100%);
}

.btn {
  display: inline-block; background: var(--paint-orange); color: #fff; text-decoration: none;
  padding: .85rem 1.7rem; border-radius: 10px; font-weight: 800; margin-top: .5rem;
  box-shadow: 0 6px 16px rgba(224,89,42,.35);
}
.btn:hover { filter: brightness(1.05); }

.contacts-grid { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; }
.contacts a { color: #fff; }
.contact-details p { margin: .45rem 0; }
.socials { display: flex; gap: .8rem; align-items: flex-start; flex-wrap: wrap; }
.social {
  display: inline-block; padding: .6rem 1.15rem; border: 2px solid rgba(255,255,255,.55);
  border-radius: 999px; text-decoration: none; font-weight: 700;
}
.social:hover { background: rgba(255,255,255,.12); }
@media (max-width: 720px) { .contacts-grid { grid-template-columns: 1fr; } }

.site-footer { text-align: center; padding: 2.4rem 1.5rem; color: var(--muted); font-size: .9rem; }

@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
  .scroll-cue span::after { animation: none; }
}

/* ---------- Contacts extras ---------- */
.contact-intro { max-width: 62ch; color: rgba(255,255,255,.9); margin: 0 0 1.6rem; }
.phones { list-style: none; margin: .2rem 0 .8rem; padding: 0; }
.phones li { margin: .25rem 0; font-size: 1.05rem; }
.phones .pname { color: rgba(255,255,255,.7); font-weight: 500; }

/* ---------- Public application form ---------- */
.form-page { max-width: 640px; }
.form-page .back { display:inline-block; margin-bottom:1rem; text-decoration:none; font-weight:600; }
.apply-form .form-field { margin-bottom:1rem; }
.apply-form label { display:block; font-weight:700; margin-bottom:.35rem; color: var(--brand-dark); }
.apply-form input, .apply-form textarea { width:100%; padding:.75rem .85rem; border:1px solid #cfd2d8; border-radius:8px; font:inherit; }
.apply-form textarea { min-height:130px; resize:vertical; }
.apply-form .hp { position:absolute; left:-9999px; width:1px; height:1px; opacity:0; }
.form-errors { background:#fdecea; color:#b3261e; border:1px solid #f5c6c2; padding:.7rem .95rem; border-radius:10px; margin-bottom:1rem; }
.form-errors ul { margin:0; padding-left:1.1rem; }
.success-box { background:#eef7ee; border:1px solid #cfe6cf; color:#215d27; padding:1.6rem; border-radius:14px; }
.success-box h1 { margin-top:0; }

/* ---------- Instagram ---------- */
.ig-grid { display:grid; gap:.6rem; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); }
.ig-item { display:block; aspect-ratio:1/1; overflow:hidden; border-radius:10px; background:#e9eaed; }
.ig-item img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .3s ease; }
.ig-item:hover img { transform:scale(1.06); }
.ig-follow { margin-top:1.4rem; }
