/* Emrazina Technologies: site styles */
:root {
  --paper: #f3f5f1;
  --white: #ffffff;
  --ink: #0f2623;
  --moss: #2c5a4f;
  --mist: #dde6df;
  --slate: #44544f;
  --marigold: #f0b429;
  --line: #c9d3cc;
  --radius: 6px;
  --wrap: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Public Sans", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--marigold); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -0.03em; }
h3 { font-size: 1.3rem; letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0 0 1.1em; max-width: 68ch; }
.lede { font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.55; color: var(--slate); max-width: 58ch; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand-mark { width: 30px; height: 30px; background: var(--ink); color: var(--marigold); display: grid; place-items: center; border-radius: 4px; font-size: 1.05rem; font-weight: 800; line-height: 1; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: var(--radius); font-weight: 500; font-size: 0.98rem; }
.nav a:hover { background: var(--mist); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.nav .nav-cta { background: var(--marigold); font-weight: 600; margin-left: 8px; }
.nav .nav-cta:hover { background: #e2a417; }
.menu-btn { display: none; background: none; border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 8px 14px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }

/* Buttons */
.btn { display: inline-block; text-decoration: none; font-weight: 600; padding: 14px 24px; border-radius: var(--radius); border: 2px solid var(--ink); background: var(--ink); color: var(--paper); transition: transform 0.15s ease, background 0.15s ease; }
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-gold { background: var(--marigold); color: var(--ink); }
.btn-gold:hover { background: #e2a417; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Bands */
.band { padding: clamp(56px, 9vw, 112px) 0; }
.band-mist { background: var(--mist); }
.band-ink { background: var(--ink); color: var(--paper); }
.band-gold { background: var(--marigold); }
.band-ink .lede, .band-ink p { color: #cfdad3; }

/* Hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 9vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { max-width: 14ch; }

/* Work order slip: the one memorable element */
.slip { background: var(--white); border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--marigold); border-radius: 4px; position: relative; }
.slip-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 22px; border-bottom: 2px dashed var(--ink); font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.slip-head span { font-family: var(--body); font-weight: 500; font-size: 0.9rem; color: var(--slate); }
.slip ul { list-style: none; margin: 0; padding: 8px 22px; }
.slip li { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.slip li:last-child { border-bottom: 0; }
.tick { flex: none; width: 26px; height: 26px; border: 2px solid var(--ink); border-radius: 4px; display: grid; place-items: center; background: var(--white); }
.tick svg { width: 18px; height: 18px; }
.tick path { fill: none; stroke: var(--ink); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw 0.45s ease forwards; }
.slip li:nth-child(1) .tick path { animation-delay: 0.35s; }
.slip li:nth-child(2) .tick path { animation-delay: 0.65s; }
.slip li:nth-child(3) .tick path { animation-delay: 0.95s; }
.slip li:nth-child(4) .tick path { animation-delay: 1.25s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.slip-foot { background: var(--ink); color: var(--paper); padding: 16px 22px; font-size: 0.95rem; line-height: 1.5; border-radius: 0 0 2px 2px; }
.slip-foot strong { color: var(--marigold); font-weight: 600; }

/* Split layouts */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.checks { list-style: none; padding: 0; margin: 0 0 1.4em; }
.checks li { position: relative; padding: 12px 0 12px 34px; border-bottom: 1px solid rgba(15, 38, 35, 0.18); }
.checks li::before { content: ""; position: absolute; left: 0; top: 18px; width: 18px; height: 10px; border-left: 3px solid var(--moss); border-bottom: 3px solid var(--moss); transform: rotate(-45deg) scale(0.8); transform-origin: center; }

/* Service index rows */
.index { border-top: 2px solid var(--ink); margin-top: 40px; }
.index a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 12px 40px; align-items: baseline; padding: 30px 14px; border-bottom: 2px solid var(--ink); text-decoration: none; transition: background 0.18s ease, padding 0.18s ease; }
.index a:hover { background: var(--marigold); padding-left: 26px; }
.index .index-title { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 3.4vw, 2.5rem); letter-spacing: -0.03em; line-height: 1.05; }
.index p { margin: 0; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 44px; border-top: 2px solid var(--ink); }
.step { padding: 28px 28px 8px 0; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -0.03em; margin-bottom: 0.3em; }

/* Clients */
.logos { display: flex; flex-wrap: wrap; gap: 16px; margin: 32px 0 56px; padding: 0; list-style: none; }
.logos li { width: 92px; height: 92px; background: var(--white); border-radius: var(--radius); display: grid; place-items: center; overflow: hidden; }
.logos img { width: 100%; height: 100%; object-fit: cover; }
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 64px); }
blockquote { margin: 0; padding: 0 0 0 22px; border-left: 4px solid var(--marigold); }
blockquote p { font-family: var(--display); font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.35; letter-spacing: -0.01em; color: var(--paper); max-width: none; }
blockquote footer { font-size: 0.95rem; color: #b6c5bc; }
.band-ink .text-link { color: var(--marigold); }
.text-link { font-weight: 600; }

/* FAQ */
.faq { border-top: 2px solid var(--ink); margin-top: 32px; max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 48px 22px 0; font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.015em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.8rem; font-weight: 400; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding-right: 48px; color: var(--slate); }

/* Page head (inner pages) */
.page-head { padding: clamp(48px, 8vw, 92px) 0 clamp(28px, 5vw, 56px); border-bottom: 2px solid var(--ink); }
.page-head h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); max-width: 18ch; margin-bottom: 0.35em; }

/* Service sections */
.service { padding: clamp(40px, 6vw, 72px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 16px; }
.service:last-of-type { border-bottom: 0; }
.service-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 80px); }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 40px; }
.sub { font-family: var(--display); font-weight: 700; font-size: 1.15rem; margin: 0 0 4px; }
.plain { list-style: none; padding: 0; margin: 0 0 24px; }
.plain li { padding: 9px 0; border-bottom: 1px solid var(--line); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 32px; align-items: start; }
.plan { background: var(--white); border: 2px solid var(--ink); border-radius: 4px; padding: 24px; }
.plan.featured { box-shadow: 8px 8px 0 var(--marigold); }
.plan h3 { margin-bottom: 4px; }
.price { font-family: var(--display); font-weight: 800; font-size: 3rem; letter-spacing: -0.04em; line-height: 1; margin: 8px 0 2px; }
.price sup { font-size: 1.2rem; vertical-align: super; margin-right: 2px; font-weight: 700; }
.price-note { color: var(--slate); font-size: 0.95rem; margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 0; font-size: 0.97rem; }
.plan li { padding: 7px 0; border-top: 1px solid var(--line); }
.plan .btn { width: 100%; text-align: center; padding: 12px 16px; }

/* Cards: office photos, press */
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.photos figcaption { font-size: 0.9rem; color: var(--slate); margin-top: 8px; }
.photos figure { margin: 0; }
.press-list { border-top: 2px solid var(--ink); margin-top: 8px; }
.press-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); }
.press-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; }
.press-item h2 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); margin: 0 0 4px; }
.press-item p { margin: 0; color: var(--slate); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.mail-card { background: var(--white); border: 2px solid var(--ink); border-radius: 4px; padding: 26px; box-shadow: 8px 8px 0 var(--marigold); }
.mail-card + .mail-card { margin-top: 36px; }
.mail-card h2 { font-size: 1.4rem; margin-bottom: 6px; }
.mail-card .btn { margin-top: 6px; word-break: break-all; }
.map { border: 2px solid var(--ink); border-radius: 4px; width: 100%; height: 340px; }
address { font-style: normal; }

/* Blog */
.post-list { border-top: 2px solid var(--ink); }
.post-item { display: block; padding: 32px 14px; border-bottom: 2px solid var(--ink); text-decoration: none; transition: background 0.18s ease; }
.post-item:hover { background: var(--marigold); }
.post-item h2 { margin-bottom: 8px; }
.post-item p { margin: 0; }
.date { font-size: 0.95rem; color: var(--slate); margin-bottom: 8px; }
.article { max-width: 720px; padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.article h2 { font-size: 1.7rem; margin-top: 1.8em; }
.article ul { padding-left: 1.2em; }
.article li { margin-bottom: 0.4em; }

/* Footer */
.site-footer { background: var(--ink); color: var(--paper); padding: 56px 0 40px; font-size: 0.98rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 0.7fr)); gap: 40px; }
.site-footer h2 { font-size: 1rem; font-family: var(--body); font-weight: 600; color: var(--marigold); letter-spacing: 0; margin-bottom: 12px; }
.site-footer p, .site-footer address { color: #cfdad3; margin: 0 0 8px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--paper); }
.footer-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid #2e4843; color: #9fb2a9; font-size: 0.9rem; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .split, .service-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
  .steps { grid-template-columns: 1fr; border-top: 0; }
  .step, .step + .step { padding: 24px 0 8px; border-left: 0; border-top: 2px solid var(--ink); }
  .plans { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .index a { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 2px solid var(--ink); flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 20px; gap: 2px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; }
  .nav .nav-cta { margin: 8px 0 0; text-align: center; }
}
@media (max-width: 640px) {
  .photos { grid-template-columns: 1fr; }
  .cols-2 { grid-template-columns: 1fr; }
  .press-item { grid-template-columns: 56px minmax(0, 1fr); }
  .press-item img { width: 56px; height: 56px; }
  .press-item .text-link { grid-column: 2; }
  .logos li { width: 76px; height: 76px; }
  .slip { box-shadow: 6px 6px 0 var(--marigold); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tick path { animation: none; stroke-dashoffset: 0; }
  .btn, .index a, .post-item, .faq summary::after { transition: none; }
}

.brand img { display: block; height: 66px; width: auto; }
@media (max-width: 560px) { .brand img { height: 54px; } }

.brand-name { white-space: nowrap; }
@media (max-width: 420px) { .brand-name { font-size: 1rem; } }
