/* ------- Variables & base styles ------- */


:root {
  --ink: #15181b;
  --cream: #f4f1ea;
  --orange: #f7872c;
  --muted: #5d5a55;
  color-scheme: light;
}

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

* {
  margin: 0;
}

[hidden] {
  display: none !important;
}

html {
  scroll-padding-top: 80px;
}

body {
  font: 16px/1.6 'DM Sans', system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

h1,
h2,
h3 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 400;
  line-height: 1.12;
}

h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.3rem; }

a {
  color: inherit;
}

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


/* ------- Layout ------- */

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 64px 0;
}

.dark {
  background: var(--ink);
  color: var(--cream);
}

.grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

.cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cols-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.about-intro {
  grid-template-columns: 1fr 2fr;
}

@media (max-width: 700px) {
  .about-intro {
    grid-template-columns: 1fr;
  }
}


/* ------- Typography helpers ------- */

.highlighted {
  display: inline-block;
  min-width: 36px;
  margin-bottom: 14px;
  padding-top: 12px;
  border-top: 2px solid var(--orange);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* Handwritten accent text */
.script {
  font-family: 'Caveat', cursive;
  font-size: 1.7rem;
  line-height: 1.15;
  color: var(--orange);
}

.script-lg {
  font-size: 2.2rem;
}

.script-intro {
  font-family: 'Caveat', cursive;
  font-size: 2.2rem;
  line-height: 1.15;
  color: var(--orange);
}

.muted {
  color: var(--muted);
}

.dark .muted,
.cta .muted {
  color: #b9b5ac;
}

.label {
  display: block;
  margin: 6px 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.centered {
  text-align: center;
}

.text-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-decoration: none;
  text-transform: uppercase;
}


/* ------- Buttons ------- */

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 13px 24px;
  border: 0;
  background: var(--orange);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.btn:hover {
  filter: brightness(1.08);
}

.btn-outline {
  background: none;
  border: 2px solid var(--orange);
  color: inherit;
}


/* ------- Header & navigation ------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: env(safe-area-inset-top, 0);
  background: var(--cream);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 120px;
}

.logo {
  display: inline-block;
  font: 700 1.6rem 'DM Sans', sans-serif;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo small {
  display: block;
  margin-top: 5px;
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  white-space: nowrap;
}

.site-nav a,
.footer-nav a {
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a {
  margin-left: 30px;
}

.site-nav a.active {
  border-color: var(--orange);
}

.menu-toggle {
  display: none;
  border: 0;
  background: none;
  font-size: 1.7rem;
  cursor: pointer;
}


/*  ------- Images ------- */

.placeholder {
  display: grid;
  place-items: center;
  min-height: 200px;
  padding: 10px;
  background: repeating-linear-gradient(45deg, #2b3135, #2b3135 12px, #323a3f 12px, #323a3f 24px);
  color: #a9b1b5;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.placeholder-light {
  background: repeating-linear-gradient(45deg, #e4dfd3, #e4dfd3 12px, #ebe7dc 12px, #ebe7dc 24px);
  color: #8a8579;
}

.placeholder-landscape { aspect-ratio: 4 / 3; }
.placeholder-portrait  { aspect-ratio: 3 / 4; }
.placeholder-square    { aspect-ratio: 1; }

.card-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.fit-image {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.fit-image-portrait {
  aspect-ratio: 3 / 4;
  object-position: center top;
}

.fit-image-short {
  aspect-ratio: 16 / 7;
}

@media (max-width: 700px) {
  .fit-image-short {
    aspect-ratio: 4 / 3;
  }
}

/* ------- Hero ------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
}

.hero .placeholder {
  position: absolute;
  inset: 0;
  min-height: 0;
  opacity: 0.55;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

/* Mobile: keep the right side of the hero banners (the focal point) in view */
@media (max-width: 820px) {
  .hero .hero-image {
    object-position: 80% center;
  }
}

.hero .container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 440px;
  padding-top: 80px;
  padding-bottom: 80px;
}

.hero .lead {
  max-width: 520px;
  margin-top: 18px;
}

.hero .script {
  position: absolute;
  right: 24px;
  bottom: 32px;
  font-size: 1.9rem;
  text-align: right;
}


/* ------- Cards & icons ------- */

.card {
  padding: 22px;
  background: rgba(255, 255, 255, 0.53);
  border: 1px solid rgba(0, 0, 0, 0.07);
}

.card p {
  font-size: 0.92rem;
}

/* Cards that line up their links and tags along the bottom edge */
.card-stack {
  display: flex;
  flex-direction: column;
}

.card-stack .text-link,
.card-stack .project-tags {
  margin-top: auto;
  padding-top: 12px;
}

.project-tags {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.icon-circle {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  color: var(--orange);
}

.icon-circle svg {
  width: 24px;
  height: 24px;
}

.centered .icon-circle {
  margin: 0 auto 12px;
}

.icon {
  display: block;
  margin-bottom: 6px;
  color: var(--orange);
}

.icon svg {
  width: 26px;
  height: 26px;
}

.info-card {
  display: flex;
  gap: 16px;
}

.info-icon {
  flex: none;
  margin: 2px 0 0;
}


/* ------- Process steps ------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 22px;
}

.steps > div {
  text-align: center;
}

.steps b {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  color: var(--orange);
  font: 400 1.1rem 'Newsreader', serif;
}

.steps p {
  font-size: 0.88rem;
}


/* ------- Lists ------- */

.check-list {
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 6px 0 6px 28px;
}

.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--orange);
}

/* Fox paw print bullets */
.paw-list li {
  padding-left: 36px;
}

.paw-list li::before {
  content: "";
  top: 9px;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f7872c'%3E%3Cellipse cx='4.8' cy='11' rx='1.9' ry='2.5'/%3E%3Cellipse cx='9' cy='5.8' rx='2' ry='2.7'/%3E%3Cellipse cx='15' cy='5.8' rx='2' ry='2.7'/%3E%3Cellipse cx='19.2' cy='11' rx='1.9' ry='2.5'/%3E%3Cpath d='M12 12c-3 0-6 3.2-6 6 0 1.8 1.4 2.8 3 2.8 1 0 1.9-.5 3-.5s2 .5 3 .5c1.6 0 3-1 3-2.8 0-2.8-3-6-6-6z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.belief {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
}


/* ------- Portfolio filter ------- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.filter-bar button {
  padding: 6px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: inherit;
  font: 500 0.72rem 'DM Sans', sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}

.filter-bar button.active {
  border-color: var(--orange);
}


/* ------- Call to action banner ------- */

.cta {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
}

.cta .placeholder {
  position: absolute;
  inset: 0;
  min-height: 0;
  opacity: 0.45;
}

.cta .container {
  position: relative;
  padding-top: 64px;
  padding-bottom: 64px;
}

.cta-box {
  max-width: 520px;
  margin-left: auto;
  padding: 32px;
  background: rgba(21, 24, 27, 0.6);   /* lower = more of the banner shows through */
}


/* ------- Testimonials ------- */

.quote-text {
  font: 400 1.25rem/1.6 'Newsreader', serif;
}

.slider-controls button {
  width: 42px;
  height: 42px;
  margin-right: 8px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  background: none;
  color: var(--orange);
  font-size: 1.1rem;
  cursor: pointer;
}


/* ------- Client logo slider ------- */

.logo-slider-section {
  padding: 48px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.logo-slider-section .highlighted {
  display: block;
  width: fit-content;
  margin: 0 auto 24px;
}

.logo-slider {
  --visible: 5;            /* how many logos show at once */
  overflow: hidden;
}

.logo-track {
  display: flex;
  padding: 0;
  list-style: none;
}

.logo-track li {
  flex: 0 0 calc(100% / var(--visible));
  padding: 0 12px;
}

/* Fewer logos than slots: no sliding, just centre them */
.logo-slider.is-static .logo-track {
  justify-content: center;
}

.logo-track a {
  display: block;
}

.logo-track img {
  display: block;
  width: 100%;
  max-width: 160px;
  aspect-ratio: 3 / 2;
  margin: 0 auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.7;
  transition: filter 0.3s, opacity 0.3s;
}

.logo-track a:hover img,
.logo-track a:focus-visible img {
  filter: none;
  opacity: 1;
}

@media (max-width: 900px) {
  .logo-slider { --visible: 4; }
}

@media (max-width: 600px) {
  .logo-slider { --visible: 3; }
}

@media (max-width: 420px) {
  .logo-slider { --visible: 2; }
}

/* Reduced motion: no auto-sliding, the row can be scrolled by hand instead */
@media (prefers-reduced-motion: reduce) {
  .logo-slider { overflow-x: auto; }
}


/* ------- FAQ accordion (native details/summary) ------- */

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.27);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--orange);
  font-size: 1.3rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "\2013";
}

.faq-item p {
  padding: 0 0 14px;
  color: #cfcac0;
  font-size: 0.92rem;
}


/* ------- Contact form ------- */

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.53);
  font: inherit;
}

.contact-form .btn {
  width: 100%;
  margin: 0;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.form-note {
  font-size: 0.82rem;
}

.form-note svg {
  width: 16px;
  height: 16px;
  vertical-align: -3px;
  color: var(--orange);
}

.form-intro {
  margin: 10px 0 20px;
}

.form-error {
  color: #c0392b;
  font-size: 0.9rem;
}

.btn:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Confirmation popup */
.form-dialog {
  width: calc(100% - 48px);
  max-width: 440px;
  margin: auto;            /* needed because of the global margin reset */
  padding: 36px;
  border: 0;
  background: var(--cream);
  color: var(--ink);
  text-align: center;
}

.form-dialog::backdrop {
  background: rgba(21, 24, 27, 0.7);
}

/* ------- Footer ------- */

.site-footer {
  padding: 36px 0;
  background: var(--ink);
  color: var(--cream);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.footer-nav a {
  margin-right: 14px;
  font-size: 0.66rem;
}

.site-footer small {
  display: block;
  width: 100%;
  color: #aaa;
  font-size: 0.75rem;
}

.site-footer .logo small {
  width: auto;
  color: inherit;
  font-size: 0.55rem;
}


/* ------- Utilities ------- */

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 12px; }
.mt-4 { margin-top: 24px; }
.mt-5 { margin-top: 32px; }
.mb-lg { margin-bottom: 36px; }
.my-2 { margin-top: 12px; margin-bottom: 12px; }
.my-3 { margin-top: 16px; margin-bottom: 16px; }
.pt-0 { padding-top: 0; }
.gap-0 { gap: 0; }
.gap-sm { gap: 12px; }
.align-top { align-items: start; }
.align-stretch { align-items: stretch; }
.space-between { justify-content: space-between; }
.span-2 { grid-column: span 2; }
.fw-medium { font-weight: 500; }
.text-accent { color: var(--orange); }
.border-accent { border-top: 1px solid var(--orange); }
.quote-wide { max-width: 760px; }
.split-content { padding: 48px 24px; }
.extras-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }


/* ------- Responsive ------- */

/* Wide screens: leave room for the handwritten tagline in the hero */
@media (min-width: 1101px) {
  .hero .container {
    padding-right: 260px;
  }
}

/* Tablet and below: tagline drops into the normal flow */
@media (max-width: 1100px) {
  .hero .script {
    position: static;
    margin-top: 24px;
    text-align: left;
  }
}

/* Mobile navigation */
@media (max-width: 820px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    padding: 12px 24px 20px;
    background: var(--cream);
    border-bottom: 1px solid rgba(0, 0, 0, 0.13);
  }

  .site-nav.open {
    display: block;
  }

  .site-nav a {
    display: block;
    margin: 0;
    padding: 12px 0;
  }
}

@media (max-width: 700px) {
  .cta-box {
    margin-left: 0;
  }
}
