/* Nexora Solutions — one page site */

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-italic-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --cream: #FAF7F0;
  --cream-2: #F2EDE1;
  --pine-950: #0E241C;
  --pine-900: #143528;
  --ink: #22312A;
  --muted: #6C7468;
  --accent: #2AAE70;
  --accent-deep: #1E7C51;
  --sand: #E9C46A;
  --clay: #C4744C;
  --line: #E3DCCB;
  --radius: 18px;
  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* the tilted ticker band pokes past the viewport edges */
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  border: 0;
  font: 600 15px/1 var(--font-body);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:active { transform: translateY(1px); }

.btn-dark {
  background: var(--pine-950);
  color: var(--cream);
}
.btn-dark:hover {
  background: var(--pine-900);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(14, 36, 28, 0.22);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-outline:hover {
  border-color: var(--accent-deep);
  color: var(--accent-deep);
  transform: translateY(-2px);
}

.btn-block { width: 100%; }

/* header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}
.site-header.scrolled {
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 38px; height: 38px; }
.brand-text {
  font: 700 16px/1.05 var(--font-body);
  letter-spacing: 0.13em;
  color: var(--pine-950);
  display: flex;
  flex-direction: column;
}
.brand-text small {
  font: 600 8.5px/1 var(--font-body);
  letter-spacing: 0.42em;
  color: var(--accent-deep);
  margin-top: 3px;
}

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav > a:not(.nav-cta) {
  color: var(--muted);
  font: 500 15px/1 var(--font-body);
  padding: 6px 0;
  position: relative;
  transition: color .18s ease;
}
.site-nav > a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-deep);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.site-nav > a:not(.nav-cta):hover,
.site-nav > a.active:not(.nav-cta) { color: var(--pine-950); }
.site-nav > a.active::after { transform: scaleX(1); }
.nav-cta { padding: 12px 22px; font-size: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--pine-950);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* hero */
.hero {
  position: relative;
  padding: 190px 0 120px;
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
.hero::before {
  width: 480px; height: 480px;
  right: -140px; top: -120px;
  background: rgba(42, 174, 112, 0.16);
}
.hero::after {
  width: 420px; height: 420px;
  left: -160px; bottom: -180px;
  background: rgba(233, 196, 106, 0.28);
}

.hero-inner {
  position: relative;
  max-width: 780px;
  text-align: center;
  margin-inline: auto;
}

.eyebrow {
  font: 600 13px/1 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 26px;
}
.eyebrow .star { color: var(--sand); margin-right: 6px; }

.hero h1 {
  font-size: clamp(2.7rem, 6.2vw, 4.4rem);
  color: var(--pine-950);
  margin-bottom: 26px;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent-deep);
  position: relative;
  white-space: nowrap;
  padding: 0 2px;
}
/* hand drawn underline for the italic word */
.hero h1 em::after {
  content: '';
  position: absolute;
  left: 4%; right: 4%; bottom: -10px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M3 8.5C25 3.5 55 3 78 5.5c15 1.6 28 2.7 39-1' fill='none' stroke='%23E9C46A' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}

.hero-sub {
  max-width: 560px;
  margin: 0 auto 38px;
  color: var(--muted);
  font-size: 17.5px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* service ticker band */
.ticker {
  background: var(--pine-950);
  color: var(--cream);
  transform: rotate(-1.3deg) scale(1.02);
  overflow: hidden;
  padding: 17px 0;
  margin: 10px -8px 0;
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
}
.ticker span {
  font: italic 600 19px/1 var(--font-head);
  letter-spacing: 0.02em;
}
.ticker i { font-style: normal; color: var(--sand); font-size: 15px; }

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* sections */
.section { padding: 110px 0; }

.sec-head {
  display: flex;
  align-items: baseline;
  gap: 22px;
  margin-bottom: 58px;
  padding-top: 26px;
  border-top: 1.5px solid var(--ink);
}
.sec-num {
  font: italic 600 17px/1 var(--font-head);
  color: var(--accent-deep);
  flex: none;
}
.sec-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  color: var(--pine-950);
}
.sec-head-light { border-top-color: rgba(250, 247, 240, 0.35); }
.sec-head-light h2 { color: var(--cream); }
.sec-head-light .sec-num { color: var(--sand); }

/* about */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: start;
}

.about-copy .lead {
  font: 500 21px/1.55 var(--font-head);
  color: var(--pine-950);
  margin-bottom: 18px;
}
.about-copy p:not(.lead) { color: var(--muted); max-width: 540px; }

.about-points { display: grid; gap: 0; align-content: start; }
.about-points li {
  position: relative;
  padding: 16px 2px 16px 30px;
  font-weight: 500;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
}
.about-points li:first-child { border-top: 1px solid var(--line); }
.about-points li::before {
  content: '✳';
  position: absolute;
  left: 0; top: 15px;
  color: var(--accent);
  font-size: 15px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
  margin-top: 74px;
}
.stat { border-top: 1.5px solid var(--ink); padding-top: 18px; }
.stat strong {
  display: block;
  font: 600 clamp(2.2rem, 3.6vw, 3rem)/1 var(--font-head);
  color: var(--pine-950);
  margin-bottom: 8px;
}
.stat strong::after { content: '+'; color: var(--accent); }
.stat:last-child strong::after { content: '%'; }
.stat span {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

/* services */
.services { background: var(--cream-2); }

.service-row {
  display: grid;
  grid-template-columns: 70px 1fr 1.3fr 54px;
  align-items: center;
  gap: 26px;
  padding: 30px 10px;
  border-top: 1px solid var(--line);
  transition: background .2s ease, padding .2s ease;
}
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row:hover { background: var(--cream); padding-left: 20px; }

.row-num {
  font: italic 600 16px/1 var(--font-head);
  color: var(--muted);
}
.service-row h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  color: var(--pine-950);
}
.service-row p { color: var(--muted); font-size: 15px; }

.row-arrow {
  width: 46px; height: 46px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.row-arrow svg { width: 20px; height: 20px; }
.service-row:hover .row-arrow {
  background: var(--pine-950);
  border-color: var(--pine-950);
  color: var(--cream);
  transform: rotate(45deg);
}

/* past work */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.work-card:nth-child(2) { transform: translateY(34px); }
.work-card:nth-child(2).visible { transform: translateY(34px); }

.thumb {
  position: relative;
  aspect-ratio: 4 / 3.1;
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}
.thumb-a { background: linear-gradient(150deg, var(--pine-900), var(--pine-950)); }
.thumb-b { background: linear-gradient(150deg, var(--sand), #D9A93F); }
.thumb-c { background: linear-gradient(150deg, var(--clay), #A85835); }

.thumb-letter {
  font: italic 600 clamp(4.6rem, 8vw, 6.4rem)/1 var(--font-head);
  color: var(--cream);
  transition: transform .3s ease;
}
.thumb-b .thumb-letter { color: var(--pine-950); }
.work-card:hover .thumb-letter { transform: rotate(-7deg) scale(1.08); }

.thumb .ring {
  position: absolute;
  width: 130px; height: 130px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  right: -34px; top: -34px;
}
.thumb-b .ring { border-color: rgba(14, 36, 28, 0.3); }
.thumb .dot {
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--sand);
  left: 22px; bottom: 24px;
}
.thumb-b .dot { background: var(--pine-950); }
.thumb-c .dot { background: var(--cream); }

.work-info h3 { font-size: 22px; color: var(--pine-950); margin-bottom: 8px; }
.work-info p { color: var(--muted); font-size: 15px; margin-bottom: 15px; }

.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tags span {
  font: 600 12px/1 var(--font-body);
  letter-spacing: 0.03em;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--cream-2);
  border-radius: 999px;
  padding: 7px 13px;
}

/* contact */
.contact {
  background: var(--pine-950);
  color: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 60px;
  align-items: start;
}

.contact-lead {
  font: 500 20px/1.5 var(--font-head);
  color: var(--cream);
  margin-bottom: 34px;
  max-width: 400px;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 17px 0;
  border-top: 1px solid rgba(250, 247, 240, 0.14);
  transition: transform .2s ease;
}
a.info-row:hover { transform: translateX(5px); }
.info-row:last-of-type { border-bottom: 1px solid rgba(250, 247, 240, 0.14); }

.info-icon {
  width: 46px; height: 46px;
  flex: none;
  border: 1.5px solid rgba(250, 247, 240, 0.25);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent);
}
.info-icon svg { width: 21px; height: 21px; }

.info-row small {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250, 247, 240, 0.5);
  margin-bottom: 2px;
}
.info-row > span:last-child { font-weight: 500; font-size: 15.5px; word-break: break-word; }

.hours {
  margin-top: 26px;
  font-size: 14px;
  color: rgba(250, 247, 240, 0.55);
  max-width: 380px;
}

.contact-form {
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 38px;
}

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--pine-950);
}
.field input,
.field textarea {
  width: 100%;
  font: 400 15px/1.5 var(--font-body);
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(42, 174, 112, 0.14);
}
.field input.error,
.field textarea.error { border-color: #C0452F; }

.form-status { margin-top: 14px; font-size: 14px; font-weight: 500; min-height: 20px; }
.form-status.ok { color: var(--accent-deep); }
.form-status.err { color: #C0452F; }

/* footer */
.site-footer {
  background: var(--cream);
  border-top: 1px solid var(--line);
  padding: 46px 0 0;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding-bottom: 34px;
}

.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a {
  color: var(--muted);
  font-size: 14.5px;
  transition: color .18s ease;
}
.footer-nav a:hover { color: var(--pine-950); }

.socials { display: flex; gap: 12px; }
.socials a {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  color: var(--ink);
  transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}
.socials a:hover {
  background: var(--pine-950);
  border-color: var(--pine-950);
  color: var(--cream);
  transform: translateY(-3px);
}
.socials svg { width: 19px; height: 19px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 20px 0 24px;
  font-size: 13.5px;
  color: var(--muted);
}

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
/* keep the offset card offset once revealed */
.work-card:nth-child(2).reveal { transform: translateY(60px); }
.work-card:nth-child(2).reveal.visible { transform: translateY(34px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .work-card:nth-child(2).reveal { opacity: 1; transform: none; transition: none; }
  .work-card:nth-child(2).reveal.visible { transform: none; }
  .ticker-track { animation: none; }
}

/* responsive */
@media (max-width: 1024px) {
  .service-row { grid-template-columns: 54px 1fr 1.2fr 50px; gap: 18px; }
}

@media (max-width: 880px) {
  .hero { padding: 150px 0 90px; }
  .section { padding: 84px 0; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 56px; }

  .service-row {
    grid-template-columns: 1fr 46px;
    grid-template-areas: "num arrow" "name arrow" "desc arrow";
    gap: 6px 16px;
    padding: 26px 6px;
  }
  .row-num { grid-area: num; }
  .service-row h3 { grid-area: name; }
  .service-row p { grid-area: desc; }
  .row-arrow { grid-area: arrow; align-self: center; }
  .service-row:hover { padding-left: 6px; }

  .work-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .work-card:nth-child(2),
  .work-card:nth-child(2).visible,
  .work-card:nth-child(2).reveal.visible { transform: none; }
  .work-card:nth-child(2).reveal { transform: translateY(26px); }

  .contact-grid { grid-template-columns: 1fr; gap: 44px; }

  /* mobile nav */
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: 76px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 22px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform .25s ease, opacity .25s ease, visibility .25s;
  }
  .site-nav.open { transform: none; opacity: 1; visibility: visible; }
  .site-header:not(.scrolled) { background: var(--cream); }
  .site-nav > a:not(.nav-cta) {
    padding: 15px 2px;
    font-size: 16px;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .site-nav > a:not(.nav-cta)::after { display: none; }
  .nav-cta { margin-top: 16px; justify-content: center; padding: 14px; }
}

@media (max-width: 560px) {
  .container { width: min(1120px, 100% - 40px); }
  .hero { padding: 136px 0 76px; }
  .hero h1 { font-size: clamp(2.2rem, 9.5vw, 2.7rem); }
  .ticker span { font-size: 16px; }

  .sec-head { gap: 14px; margin-bottom: 44px; }
  .stats { gap: 22px; }
  .contact-form { padding: 28px 22px; }
  .footer-grid { flex-direction: column; text-align: center; padding-bottom: 28px; }
  .footer-bottom { justify-content: center; text-align: center; }
}
