/* Aspire Design Ltd */

@font-face {
  font-family: "Oswald";
  src: url("../fonts/oswald-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Oswald";
  src: url("../fonts/oswald-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --ink: #0d0d0d;
  --muted: #6b6b6b;
  --line: #d9d9d9;
  --paper: #fff;
  --display: "Oswald", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(1.25rem, 4.5vw, 4rem);
  --section: clamp(4rem, 9vw, 7.5rem);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, .wordmark {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 0;
}
h1 { font-size: clamp(2rem, 3.4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); }

.wrap { width: min(100% - 2 * var(--gutter), 76rem); margin-inline: auto; }

.visually-hidden, .skip {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip:focus {
  width: auto; height: auto; clip-path: none;
  left: 1rem; top: 1rem; z-index: 20;
  background: var(--ink); color: var(--paper); padding: .5rem 1rem;
}

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.wordmark { font-size: 1.15rem; text-decoration: none; white-space: nowrap; }
.logo { display: block; flex: none; }
.logo img { height: 1.7rem; width: auto; }
nav { display: flex; gap: clamp(1rem, 2.5vw, 2rem); }
nav a {
  text-decoration: none; font-size: .975rem; padding: .25rem 0;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .25s;
}
nav a:hover, nav a:focus-visible, nav a[aria-current] { background-size: 100% 1px; }

/* Buttons and links ------------------------------------------------------- */
.btn {
  display: inline-block;
  min-width: 11rem;
  padding: 1.05rem 2rem;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: inherit; font-size: .975rem;
  text-align: center; text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn:hover, .btn:focus-visible { background: var(--ink); color: var(--paper); }
.btn[disabled] { opacity: .5; cursor: progress; }

.arrow-link { text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: .15rem; }
.arrow-link::after { content: "\2192"; display: inline-block; margin-left: .5rem; transition: transform .2s; }
.arrow-link:hover::after { transform: translateX(4px); }

/* Home -------------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 5rem) var(--section);
}
.hero-text p { margin: 2rem 0 2.75rem; max-width: 24em; }
.hero-img { margin: 0; }

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  padding-bottom: var(--section);
}
.about-text { max-width: 34em; }
.about .links { display: flex; flex-wrap: wrap; gap: .75rem 2.25rem; margin-top: 2.25rem; }

/* Page heading (Services, Portfolio) -------------------------------------- */
.page-head { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem); }
.page-head p { margin-top: 1.1rem; max-width: 32em; }

/* Services ---------------------------------------------------------------- */
.services { padding-bottom: var(--section); }
.steps { list-style: none; margin: 0; padding: 0; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding-bottom: clamp(2.25rem, 4.5vw, 3.5rem);
}
.step:last-child { padding-bottom: 0; }
/* Line joining each number to the next. */
.step:not(:last-child)::before {
  content: "";
  position: absolute; left: 1.75rem; top: 3.5rem; bottom: 0;
  border-left: 1px solid var(--line);
}
.step-num {
  display: grid; place-items: center;
  width: 3.5rem; height: 3.5rem;
  border: 1.5px solid var(--ink); border-radius: 50%;
  background: var(--paper);
  font-family: var(--display); font-size: 1.4rem; line-height: 1;
}
.step-body { padding-top: .7rem; }
.step h2 { font-size: 1.4rem; margin-bottom: .8rem; }
.step dl { margin: 0; max-width: 46em; }
.step dl div + div { margin-top: .45rem; }
.step dt { display: inline; font-weight: 700; }
.step dd { display: inline; margin: 0; }

.cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-block: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--section);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}

/* Portfolio slider -------------------------------------------------------- */
.slider { padding-bottom: var(--section); }
.slider-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem 2rem;
  padding-block: clamp(2rem, 4.5vw, 3.75rem) clamp(1.5rem, 3vw, 2.25rem);
}
.slider-head p { margin-top: 1rem; max-width: 30em; }
.slider-head .social { justify-content: flex-start; }
.slider-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.slider-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; background: #f3f3f3; }
.slide img { width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - 19rem); min-height: 18rem; object-fit: cover; }
.slider-controls { display: flex; align-items: center; gap: .6rem; flex: none; }
.slider-count { margin-right: .9rem; font-family: var(--display); font-size: 1.1rem; letter-spacing: .04em; }
.slider-btn {
  display: none; place-items: center;
  width: 3rem; height: 3rem; padding: 0;
  border: 1.5px solid var(--ink); border-radius: 50%;
  background: transparent; color: var(--ink);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.js .slider-btn { display: grid; }
.slider-btn:hover, .slider-btn:focus-visible { background: var(--ink); color: var(--paper); }

.social { display: flex; gap: .75rem; justify-content: center; margin-top: 1.1rem; }
.social a { display: inline-flex; transition: opacity .2s; }
.social a:hover { opacity: .55; }

/* Contact ----------------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 7vw, 6.5rem);
  align-items: start;
  padding-block: clamp(2.5rem, 6vw, 5rem) var(--section);
}
.contact-intro p { margin-top: 1.4rem; max-width: 26em; }
.contact-details { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; gap: 1rem; }
.contact-details span { display: block; font-size: .8rem; color: var(--muted); }
.contact-details a { font-family: var(--display); font-size: 1.35rem; text-decoration: none; }
.contact-details a:hover { text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }

.form fieldset { border: 0; margin: 0; padding: 0; }
.form legend, .form .lg { padding: 0; font-size: 1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: .4rem; }
.form label { display: block; }
.form label span { display: block; font-size: .8rem; }
.form label .lg { font-size: 1rem; }
.form em { font-style: normal; font-size: .75rem; color: var(--muted); margin-left: .2rem; }
.form .field { margin-top: 1.6rem; }
.form input, .form textarea {
  width: 100%;
  border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0;
  background: transparent; color: var(--ink);
  font: inherit;
  padding: .6rem 0;
}
.form textarea { resize: vertical; min-height: 6.5rem; }
.form input:focus, .form textarea:focus { outline: none; border-bottom-width: 2.5px; padding-bottom: calc(.6rem - 1px); }
.form .actions { margin-top: 2rem; }
.form .actions .btn { min-width: 0; padding: .9rem 1.75rem; }
.hp { position: absolute; left: -999rem; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0 0 1.5rem; padding: .85rem 1rem; border: 1.5px solid var(--ink); }
.form-status:empty { display: none; }
.form-status.is-error { border-color: #a4262c; color: #a4262c; }

/* Footer ------------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.5rem 3rem; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; }
.site-footer .wordmark { font-size: 1.35rem; }
.site-footer .logo img { height: 2rem; }
.footer-brand { display: grid; gap: 1.25rem; justify-items: start; }
.lbp { width: 4.75rem; height: auto; }
.footer-contact { display: grid; gap: .2rem; justify-items: end; }
.footer-contact .social { margin-top: .7rem; }

/* Scroll reveal (only when JavaScript is running) ------------------------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Small screens ----------------------------------------------------------- */
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero-img { order: -1; }
  .hero-text p { margin: 1.25rem 0 1.75rem; }
  .about, .contact { grid-template-columns: 1fr; }
  .about { gap: 1rem; }
  .slider { width: 100%; }
  .slider-head { flex-direction: column; align-items: stretch; padding-inline: var(--gutter); }
  .slider-count { margin-right: auto; }
  .slide img { aspect-ratio: 3 / 2; max-height: none; min-height: 0; }
}
@media (max-width: 480px) {
  nav { gap: .9rem; }
  nav a { font-size: .9rem; }
  .wordmark { font-size: 1.05rem; }
  .site-header .logo img { height: 1.25rem; }
  .step { grid-template-columns: 2.75rem minmax(0, 1fr); gap: 1rem; }
  .step-num { width: 2.75rem; height: 2.75rem; font-size: 1.15rem; }
  .step:not(:last-child)::before { left: 1.375rem; top: 2.75rem; }
  .step-body { padding-top: .4rem; }
  .form .row { grid-template-columns: 1fr; }
  .btn { min-width: 0; }
  .footer-grid { flex-direction: column; }
  .footer-contact { justify-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  .slider-track { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Very narrow phones: navigation drops below the logo. */
@media (max-width: 400px) {
  .site-header .bar { flex-wrap: wrap; gap: .15rem 1rem; padding-block: .7rem; }
}
