/* ============================================================
   Mofetty — corporate site styles
   Palette: neutral paper + navy ink + brass accent
   ============================================================ */

:root {
  --paper:      #FCFCFB;
  --paper-2:    #F1F1EE;
  --ink:        #0F1720;
  --ink-2:      #3D4752;
  --ink-3:      #5C6672;
  --line:       #E1E1DC;
  --accent:     #8C5F27;
  --accent-2:   #6F4A1D;
  --accent-on-dark: #C08A3E;
  --dark:       #0D1620;
  --dark-2:     #14202C;
  --on-dark:    #EDF0F2;
  --on-dark-2:  #93A0AC;

  --maxw: 1160px;
  --radius: 4px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }

.eyebrow {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  margin-top: 0.72em;
  background: currentColor;
  flex: none;
}
.eyebrow--light { color: var(--accent-on-dark); }

.ink-accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 13px 24px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--solid:hover { background: #1B2836; border-color: #1B2836; }
.btn--ghost { background: transparent; color: var(--ink); border-color: #C9C9C3; }
.btn--ghost:hover { border-color: var(--ink); }
.section--dark .btn--solid,
.contact .btn--solid { background: var(--accent-on-dark); color: #17120A; border-color: var(--accent-on-dark); }
.section--dark .btn--solid:hover,
.contact .btn--solid:hover { background: #D29A4B; border-color: #D29A4B; }
.btn--lg { padding: 15px 28px; font-size: 1rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 600; }
.brand__mark {
  width: 10px; height: 22px;
  background: var(--ink);
  border-left: 3px solid var(--accent);
  flex: none;
}
.footer__brand .brand__mark { background: var(--on-dark); border-left-color: var(--accent-on-dark); }
.brand__name { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; }

.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color .15s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__cta { }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.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); }

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 24px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { text-decoration: none; color: var(--ink); padding: 12px 4px; font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-menu a:last-child { border: 0; margin-top: 8px; }
.mobile-menu .btn { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 96px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: var(--line);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 920px; }
.hero__title {
  font-size: clamp(2.6rem, 7.2vw, 5.4rem);
  margin: 0 0 26px;
}
.hero__lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--ink-2);
  max-width: 640px;
  margin: 0 0 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 0;
  padding-top: 34px;
  border-top: 1px solid var(--line);
  max-width: 760px;
}
.hero__stats dt { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.7rem, 3.2vw, 2.4rem); color: var(--ink); line-height: 1; }
.hero__stats dd { margin: 10px 0 0; font-size: 0.9rem; color: var(--ink-3); line-height: 1.5; }

/* ---------- Positioning strip ---------- */
.strip {
  background: var(--ink);
  color: var(--on-dark);
  padding: clamp(48px, 7vw, 88px) 0;
}
.strip__line {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3.4vw, 2.5rem);
  line-height: 1.25;
  margin: 0;
  max-width: 940px;
}
.strip__line em { color: var(--accent-on-dark); font-style: normal; font-weight: 600; }

/* ---------- Generic section ---------- */
.section { padding: clamp(64px, 9vw, 130px) 0; }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--soft { background: var(--paper-2); }
.section__head { max-width: 720px; margin-bottom: 56px; }
.section__title { font-size: clamp(1.9rem, 4.4vw, 3.2rem); }
.section__sub { font-size: 1.08rem; color: var(--ink-2); margin: 18px 0 0; }
.section--dark .section__sub { color: var(--on-dark-2); }

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 44px;
}
.card {
  background: transparent;
  border-top: 1px solid var(--line);
  padding: 26px 0 4px;
  transition: border-color .25s var(--ease);
}
.card:hover { border-top-color: var(--accent); }
.card__num {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  font-weight: 600;
}
.card h3 { font-size: 1.28rem; margin: 12px 0 10px; }
.card p { margin: 0; color: var(--ink-2); font-size: 0.98rem; }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: none;
}
.step {
  border-top: 2px solid color-mix(in srgb, var(--on-dark) 22%, transparent);
  padding-top: 24px;
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin-bottom: 18px;
}
.step h3 { font-size: 1.35rem; margin-bottom: 10px; }
.step p { margin: 0; color: var(--on-dark-2); font-size: 0.98rem; }

/* ---------- Why ---------- */
.why__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.why__list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 18px; }
.why__list li { position: relative; padding-left: 30px; color: var(--ink-2); }
.why__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 12px; height: 12px;
  border-radius: 3px;
  background: var(--accent);
  transform: rotate(45deg);
}
.why__list strong { color: var(--ink); }

.why__panel {
  background: var(--ink);
  color: var(--on-dark);
  border-radius: 22px;
  padding: 38px 34px;
  display: grid;
  gap: 26px;
}
.why__stat { display: flex; align-items: baseline; gap: 16px; border-bottom: 1px solid rgba(255,255,255,.12); padding-bottom: 20px; }
.why__stat:last-child { border-bottom: 0; padding-bottom: 0; }
.why__big { font-family: var(--font-serif); font-size: 2.8rem; color: var(--accent); line-height: 1; }
.why__stat span:last-child { color: var(--on-dark-2); font-size: 0.95rem; }

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.about__body p { font-size: 1.12rem; color: var(--ink-2); margin: 0 0 20px; }
.about__body p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.contact__direct { margin-top: 26px; color: var(--on-dark-2); }
.contact__direct a { color: var(--accent); text-decoration: none; font-weight: 600; }
.contact__direct a:hover { text-decoration: underline; }
.contact__address {
  margin-top: 18px; font-style: normal; color: var(--on-dark-2);
  font-size: 0.94rem; line-height: 1.7;
}
.contact__address strong { color: var(--on-dark); }

.contact__form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--on-dark); }
.field input, .field textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--on-dark);
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  padding: 13px 15px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}
.contact__form .btn { justify-self: start; margin-top: 4px; }
.form__note { margin: 6px 0 0; font-size: 0.92rem; color: var(--on-dark-2); min-height: 1.2em; }
.form__note.is-ok { color: #6BE28A; }
.form__note.is-err { color: #FF8A6B; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: var(--on-dark-2); padding: 60px 0 40px; border-top: 1px solid rgba(255,255,255,.08); }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px 24px; align-items: start; }
.footer__brand { display: grid; gap: 8px; }
.footer__brand .brand__name { color: var(--on-dark); }
.footer__brand p { margin: 6px 0 0; font-size: 0.95rem; max-width: 320px; }
.footer__brand { grid-row: span 2; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 18px; justify-self: end; }
.footer__nav a { color: var(--on-dark-2); text-decoration: none; font-size: 0.95rem; }
.footer__nav a:hover { color: var(--on-dark); }
.footer__entity {
  grid-column: 1 / -1; display: grid; gap: 10px; max-width: 720px;
  margin-top: 14px; padding-top: 22px; font-size: 0.86rem; line-height: 1.65;
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer__entity p { margin: 0; }
.footer__entity address { font-style: normal; margin: 0; }
.footer__entity strong { color: var(--on-dark); }
.footer__entity a { color: var(--on-dark-2); }
.footer__entity a:hover { color: var(--on-dark); }
.footer__legal { grid-column: 1 / -1; justify-self: start; font-size: 0.86rem; margin: 0; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .why__grid, .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__brand { grid-row: auto; }
  .footer__nav, .footer__legal { justify-self: start; }
  .footer__legal { grid-column: 1; }
}
@media (max-width: 680px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .cards, .steps { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: 1fr; gap: 22px; }
}
