/* Kriti Studio — design system
   Monochrome base + single terracotta accent. */

:root {
  --ink:        #16151a;
  --ink-soft:   #4a4852;
  --ink-faint:  #8a8791;
  --paper:      #faf8f5;
  --paper-alt:  #f2eee8;
  --line:       #e2ddd5;
  --accent:     #c65d3b;
  --accent-dk:  #a44a2c;

  --font-display: ui-serif, Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;

  --wrap: 1140px;
  --gut: clamp(1.25rem, 4vw, 3rem);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent-dk); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 245, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 74px;
}

.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand-text { display: flex; align-items: baseline; gap: 0.6rem; }
.brand-logo { height: 42px; width: auto; display: block; }
/* Logo is black ink on transparency, so it vanishes on the dark footer.
   Inverting flips the ink to white while leaving the alpha channel intact. */
.footer-brand .brand-logo { filter: invert(1); height: 46px; margin-bottom: 0.9rem; }
.brand-mark {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 600; letter-spacing: -0.02em;
}
.brand-mark em { font-style: normal; color: var(--accent); }
.brand-sub {
  font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 500;
}

.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav a {
  color: var(--ink-soft); text-decoration: none;
  font-size: 0.92rem; font-weight: 500;
}
.nav a:hover { color: var(--ink); }
.nav .btn { color: #fff; }

/* Two labels for the header CTA; the media query swaps which one shows. */
.cta-short { display: none; }

.nav-toggle { display: none; }

.btn {
  display: inline-block;
  background: var(--ink); color: #fff;
  padding: 0.72rem 1.5rem;
  border-radius: 100px;
  font-size: 0.92rem; font-weight: 500;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}
.btn:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }
.btn-accent { background: var(--accent); }
.btn-accent:hover { background: var(--accent-dk); }

/* ---------- hero ---------- */

.hero { padding: clamp(4rem, 11vw, 8.5rem) 0 clamp(3rem, 7vw, 5rem); }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  max-width: 17ch;
  margin-bottom: 1.4rem;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p.lede {
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 2.4rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }

.hero-meta {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2rem;
}
.hero-meta div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem; font-weight: 600; color: var(--ink);
  line-height: 1;
}
.hero-meta div span { font-size: 0.88rem; color: var(--ink-faint); }

/* ---------- sections ---------- */

section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--paper-alt); }

.section-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; margin: 0; }

/* ---------- services ---------- */

/* Four services, so a fixed 2x2 on desktop — auto-fit would leave an orphan
   card on a third row at common widths. */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 720px) { .services { grid-template-columns: 1fr; } }

.service {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2rem 1.8rem;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.section-alt .service { background: #fff; }
.service:hover { border-color: var(--accent); transform: translateY(-3px); }
.service-num {
  font-family: var(--font-display);
  font-size: 0.85rem; color: var(--accent);
  letter-spacing: 0.08em; display: block; margin-bottom: 0.9rem;
}
.service h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.service p { margin: 0 0 1rem; color: var(--ink-soft); font-size: 0.96rem; }
.service ul { margin: 0; padding-left: 1.1rem; color: var(--ink-faint); font-size: 0.9rem; }
.service ul li { margin-bottom: 0.3rem; }

/* ---------- process ---------- */

.process { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2.2rem; }
.step-num {
  font-family: var(--font-display);
  font-size: 2.6rem; color: var(--accent);
  line-height: 1; display: block; margin-bottom: 0.7rem;
}
.process h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.process p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- about ---------- */

.about-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.about-body p { color: var(--ink-soft); }
.about-body p:first-of-type {
  font-size: 1.15rem; color: var(--ink);
  font-family: var(--font-display); line-height: 1.55;
}

.fact-card {
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.9rem;
}
.section-alt .fact-card { background: #fff; }
.fact-card h3 { font-size: 1.05rem; margin-bottom: 1.2rem; }
.fact-row { padding: 0.7rem 0; border-top: 1px solid var(--line); }
.fact-row:first-of-type { border-top: none; padding-top: 0; }
.fact-row dt {
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 0.2rem;
}
.fact-row dd { margin: 0; font-size: 0.95rem; color: var(--ink); }
.fact-card dl { margin: 0; }

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.contact-list li:first-child { padding-top: 0; }
.contact-list .label {
  display: block; font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.3rem;
}
.contact-list .value { font-size: 1.02rem; color: var(--ink); font-style: normal; }
.contact-list .value a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--accent); }
.contact-list .value a:hover { color: var(--accent); }

.hours { font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: #b9b6c0;
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  font-size: 0.92rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #2e2c36;
}
.site-footer h4 {
  color: #fff; font-family: var(--font-sans);
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  margin: 0 0 1rem; font-weight: 600;
}
.site-footer a { color: #b9b6c0; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 0.55rem; }

.footer-brand .brand-mark { color: #fff; font-size: 1.5rem; }
.footer-brand .brand-mark em { color: var(--accent); font-style: normal; }
.footer-brand p { margin: 0.8rem 0 0; max-width: 38ch; color: #918e9a; }

/* Social links are plain anchors with inline SVG — no platform embed scripts,
   which keeps the "no third-party scripts" claim in the privacy policy true. */
.social { display: flex; gap: 0.7rem; margin-top: 1.3rem; }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid #34323d; border-radius: 50%;
  color: #b9b6c0;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.social svg { width: 17px; height: 17px; fill: currentColor; display: block; }

/* Legal identity block — carries the registered details Meta reviewers check. */
.legal-block {
  padding: 1.8rem 0 1.2rem;
  border-bottom: 1px solid #2e2c36;
  color: #918e9a;
  font-size: 0.86rem;
  line-height: 1.75;
}
.legal-block strong { color: #d8d5dd; font-weight: 600; }
.legal-block .legal-name { color: #fff; }

.footer-bottom {
  padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; align-items: center;
  color: #7c7986; font-size: 0.85rem;
}
.footer-bottom nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* ---------- legal pages ---------- */

.page-head {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); margin-bottom: 0.5rem; }
.page-head p { color: var(--ink-faint); margin: 0; font-size: 0.95rem; }

.prose { max-width: 74ch; padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.prose h2 {
  font-size: 1.45rem; margin-top: 2.6rem;
  padding-top: 1.6rem; border-top: 1px solid var(--line);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.prose h3 { font-size: 1.1rem; margin-top: 1.8rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.5rem; }
.prose .callout {
  background: var(--paper-alt);
  border-left: 3px solid var(--accent);
  padding: 1.2rem 1.4rem;
  border-radius: 0 10px 10px 0;
  margin: 1.8rem 0;
}
.prose .callout p { margin: 0; color: var(--ink); font-size: 0.95rem; }

.skip-link {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff; padding: 0.7rem 1.2rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav { gap: 1.1rem; }
  .brand-logo { height: 34px; }
  /* Stack the attribution under the wordmark — inline it wraps to three lines
     and blows out the header. */
  .brand-text { flex-direction: column; align-items: flex-start; gap: 0.15rem; }
  .brand-sub { font-size: 0.56rem; }
  .nav a:not(.btn) { display: none; }
  /* Full CTA text wraps to two lines at this width and swamps the header. */
  .site-header .btn { padding: 0.6rem 1.05rem; font-size: 0.85rem; white-space: nowrap; }
  .cta-full { display: none; }
  .cta-short { display: inline; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .hero-meta { gap: 1.5rem; }
}
