/* ─────────────────────────────────────────────
   MONAGHSOFT — Main Stylesheet
   Palette: cream bg, charcoal text, serif headings
   ───────────────────────────────────────────── */

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

:root {
  --bg:          #eae6df;
  --bg-alt:      #e2ddd5;
  --bg-white:    #f5f2ed;
  --text:        #1a1a22;
  --text-muted:  #7a7570;
  --border:      rgba(26,26,34,0.12);
  --accent:      #9b8c7a;   /* warm taupe for the M mark */
  --serif:       'Playfair Display', Georgia, serif;
  --sans:        'Inter', system-ui, sans-serif;
  --radius:      4px;
  --transition:  0.3s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; background: none; border: none; color: inherit; font-family: inherit; }
select, input, textarea { font-family: var(--sans); font-size: 1rem; }

/* ── Layout ────────────────────────────────── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
}
.section { padding: 120px 0; }

/* ── Typography helpers ─────────────────────── */
.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.01em;
}
.section-title em {
  font-style: italic;
  font-weight: 400;
}
.section-header { margin-bottom: 72px; }

/* ── Reveal ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--dark {
  background: var(--text);
  color: var(--bg);
}
.btn--dark:hover { background: #2e2e3a; transform: translateY(-1px); }

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--outline:hover { border-color: var(--text); transform: translateY(-1px); }

.btn--full { width: 100%; justify-content: center; }

.btn__spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── NAV ─────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px 0;
  transition: var(--transition);
}
.nav.scrolled {
  background: rgba(234,230,223,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
}
.nav__logo-mark {
  width: 22px; height: 20px;
  color: var(--text);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav__link {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav__link--active,
.nav__link:hover { color: var(--text); }
.nav__cta {
  font-size: 0.88rem;
  font-weight: 500;
  padding: 10px 22px;
  border: 1px solid var(--text);
  border-radius: var(--radius);
  color: var(--text);
  transition: var(--transition);
}
.nav__cta:hover {
  background: var(--text);
  color: var(--bg);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
}
.nav__burger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.nav__burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu ul { text-align: center; }
.mobile-menu li { margin: 28px 0; }
.mobile-menu a {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--text); }

/* ── HERO ─────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 32px 100px;
  position: relative;
}

.hero__inner { max-width: 780px; }

.hero__logo-mark {
  margin: 0 auto 32px;
  display: flex;
  justify-content: center;
}
.hero__logo-mark img { width: 120px; height: auto; }
.nav__logo-mark { display: block; width: 28px; height: auto; }

.hero__location {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.hero__headline {
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.hero__line { display: block; }
.hero__line--italic { font-style: italic; }

.cursor {
  display: inline-block;
  font-style: normal;
  font-weight: 300;
  animation: blink 1s step-end infinite;
  color: var(--accent);
  margin-left: 2px;
}
@keyframes blink { 50% { opacity: 0; } }

.hero__sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 48px;
  line-height: 1.8;
  font-weight: 300;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollFade 2.4s ease infinite;
}
@keyframes scrollFade {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ── SERVICES ─────────────────────────────────── */
.services { background: var(--bg-white); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
}

.service-card {
  padding: 40px 36px;
  border-right: 1px solid var(--border);
  transition: background var(--transition);
  position: relative;
}
.service-card:last-child { border-right: none; }
.service-card:hover { background: var(--bg-alt); }

.service-card__number {
  font-family: var(--serif);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-style: italic;
}
.service-card h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 16px;
}
.service-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 28px;
}
.service-card__link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: border-color var(--transition);
}
.service-card__link:hover { border-color: var(--text); }

/* ── PULL QUOTE ───────────────────────────────── */
.pull-quote {
  background: var(--text);
  padding: 64px 0;
}
.pull-quote blockquote {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-style: italic;
  font-weight: 400;
  color: var(--bg);
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* ── ABOUT ────────────────────────────────────── */
.about { background: var(--bg); }

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
  align-items: start;
}
.about__right p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.about__stats {
  display: flex;
  align-items: center;
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}
.stat {
  flex: 1;
  text-align: center;
}
.stat__num {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat__suffix {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--text-muted);
}
.stat__label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 8px;
}
.stat__divider {
  width: 1px;
  height: 64px;
  background: var(--border);
}

/* ── PROCESS ──────────────────────────────────── */
.process { background: var(--bg-white); }

.process__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.process-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.process-item:first-child { border-top: 1px solid var(--border); }
.process-item__num {
  font-family: var(--serif);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
  padding-top: 4px;
}
.process-item h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 10px;
}
.process-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 560px;
}

/* ── CONTACT ──────────────────────────────────── */
.contact { background: var(--bg); }

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.contact__left p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 36px;
}
.contact__details { display: flex; flex-direction: column; gap: 20px; }
.contact__detail strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.contact__detail a,
.contact__detail span {
  font-size: 0.92rem;
  color: var(--text);
}
.contact__detail a:hover { text-decoration: underline; }

/* Form */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.form-group label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(26,26,34,0.06);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); opacity: 0.5; }
.form-error { font-size: 0.75rem; color: #b94040; min-height: 1em; }
.form-success {
  padding: 16px;
  background: rgba(60,120,60,0.08);
  border: 1px solid rgba(60,120,60,0.2);
  border-radius: var(--radius);
  color: #2d6a2d;
  font-size: 0.88rem;
  font-weight: 500;
  margin-top: 16px;
}

/* ── FOOTER ───────────────────────────────────── */
.footer {
  background: var(--text);
  color: var(--bg);
  padding: 64px 0 32px;
}
.footer .nav__logo-mark { color: var(--bg); }
.footer .nav__logo-text { color: var(--bg); }

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer__brand p {
  font-size: 0.85rem;
  color: rgba(234,230,223,0.55);
  margin-top: 14px;
  line-height: 1.6;
}
.footer__location {
  font-size: 0.72rem !important;
  letter-spacing: 0.1em;
  margin-top: 6px !important;
}
.footer__links h4 {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(234,230,223,0.45);
  margin-bottom: 16px;
}
.footer__links ul { display: flex; flex-direction: column; gap: 10px; }
.footer__links a {
  font-size: 0.85rem;
  color: rgba(234,230,223,0.65);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--bg); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(234,230,223,0.1);
  font-size: 0.78rem;
  color: rgba(234,230,223,0.35);
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 900px) {
  .about__grid    { grid-template-columns: 1fr; gap: 40px; }
  .contact__grid  { grid-template-columns: 1fr; gap: 48px; }
  .footer__inner  { grid-template-columns: 1fr 1fr; }
  .services__grid { grid-template-columns: 1fr 1fr; }
  .service-card:nth-child(2) { border-right: none; }
  .service-card:nth-child(3) { border-top: 1px solid var(--border); }
}

@media (max-width: 680px) {
  .section { padding: 80px 0; }
  .container { padding: 0 20px; }
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .services__grid { grid-template-columns: 1fr; }
  .service-card { border-right: none; border-bottom: 1px solid var(--border); }
  .about__stats { flex-wrap: wrap; gap: 40px; }
  .stat__divider { display: none; }
  .stat { min-width: 40%; }
  .process-item { grid-template-columns: 48px 1fr; gap: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .hero__headline { font-size: clamp(2.6rem, 11vw, 4.5rem); }
}
