/*
Theme Name: WorkNest NYC
Description: Custom 3-page informational theme for WorkNest NYC.
Version: 0.6.1
Author: Reverie Co.
Text Domain: worknest
*/

:root {
  --ink: #1f2d45;
  --ink-soft: #55627a;
  --bg: #fbf7f4;
  --peach: #f4d9cd;
  --peach-soft: #f8ebe5;
  --blue: #5d83a8;
  --blue-soft: #dfe8f1;
  --line: #e8dfd9;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); }
h1 em, h2 em { font-style: italic; font-weight: 600; color: var(--ink); }
.hero h1 em { display: block; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 14px; z-index: 100; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* Header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; position: relative; padding-left: 8px; }
.logo img { height: var(--logo-h, 56px); width: auto; }
.logo-mark { position: relative; width: 62px; height: 52px; margin-right: 6px; }
.logo-mark i { position: absolute; border-radius: 50%; width: 38px; height: 38px; }
.logo-mark i:first-child { background: var(--peach); left: 0; top: 0; }
.logo-mark i:last-child { background: rgba(93,131,168,.8); right: 0; bottom: 0; }
.logo-text { font-family: var(--sans); letter-spacing: .22em; font-size: .95rem; font-weight: 500; line-height: 1.1; position: relative; }
.logo-text small { display: block; letter-spacing: .3em; font-size: .6rem; color: var(--blue); text-align: right; }

.main-nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; font-size: .95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav .current a { border-bottom-color: var(--peach); }
.btn.header-btn { padding: 10px 22px; font-size: .82rem; white-space: nowrap; }
.header-mail { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: .95rem; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: inherit; color: inherit; cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; background: var(--blue); color: #fff; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: background .2s, transform .2s; }
.btn:hover { background: color-mix(in srgb, var(--blue) 85%, #000); color: #fff; transform: translateY(-1px); }
.btn.ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn.ghost:hover { background: transparent; color: var(--ink); }

/* Hero */
.hero { position: relative; background: linear-gradient(to bottom, var(--peach-soft) 0%, var(--peach-soft) 62%, var(--bg) 100%); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; min-height: 480px; width: 100%; padding-left: max(20px, calc((100% - var(--wrap)) / 2)); }
.hero-copy { padding: 56px 0 96px; }
.eyebrow { display: flex; align-items: center; gap: 14px; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--peach); background: #e3a58f; }
.hero-copy p { color: var(--ink-soft); max-width: 460px; font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-media { align-self: stretch; min-height: 340px; -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%); mask-image: linear-gradient(to bottom, #000 60%, transparent 100%); }
.hero-media img, .hero-media .ph { width: 100%; height: 100%; object-fit: cover; }

/* Image placeholders (shown until a real image is added) */
.ph { background: linear-gradient(135deg, var(--peach-soft) 0%, var(--blue-soft) 100%); position: relative; min-height: 160px; overflow: hidden; }
.ph::before, .ph::after { content: ""; position: absolute; border-radius: 50%; aspect-ratio: 1; width: 30%; max-width: 220px; }
.ph::before { background: var(--peach); left: 30%; top: 22%; }
.ph::after { background: color-mix(in srgb, var(--blue) 75%, transparent); left: 44%; top: 38%; }

/* Services strip */
.section { padding: 72px 0; }
.kicker { display: flex; align-items: center; justify-content: center; gap: 18px; text-align: center; font-size: .85rem; letter-spacing: .3em; text-transform: uppercase; margin-bottom: 44px; }
.kicker::before, .kicker::after { content: ""; flex: 0 1 70px; height: 1px; background: #e3a58f; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; text-align: center; }
.service-grid p { color: var(--ink-soft); font-size: .95rem; }
.service-grid h3 { font-family: var(--sans); font-size: 1.1rem; font-weight: 500; letter-spacing: .01em; }
.icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: var(--peach-soft); }
.icon.alt { background: var(--blue-soft); }
.why .icon { background: #fff; }
.why .icon.alt { background: var(--blue-soft); }
.icon svg { width: 32px; height: 32px; stroke: var(--ink); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Why */
.why { background: var(--bg); }
.why h2, .pros h2 { text-align: center; margin-bottom: 40px; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; text-align: center; }
.why-grid > div { padding: 0 24px; border-left: 1px solid var(--line); }
.why-grid > div:first-child { border-left: 0; }
.why-grid h3 { font-size: 1.15rem; }
.why-grid p { color: var(--ink-soft); font-size: .93rem; margin: 0; }

/* Built for */
.pro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.pro-card .ph, .pro-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 6px; margin-bottom: 14px; }
.pro-card h3 { font-size: 1.15rem; margin-bottom: .2em; }
.pro-card p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* Testimonials */
.testimonials { background: var(--blue-soft); padding: 56px 0; }
.t-track { --gap: 24px; display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 14px; outline-offset: 4px; }
.t-track::-webkit-scrollbar { display: none; }
.tcard { flex: 0 0 calc((100% - 2 * var(--gap)) / 3); scroll-snap-align: start; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px 28px 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; box-shadow: 0 8px 24px rgba(31, 45, 69, .06); }
.t-track.count-1 .tcard { flex-basis: min(100%, 620px); margin-inline: auto; }
.t-track.count-2 .tcard { flex-basis: calc((100% - var(--gap)) / 2); max-width: 560px; }
.t-track.count-2 { justify-content: center; }
.tcard blockquote { margin: 0; font-family: var(--serif); font-size: 1.12rem; line-height: 1.5; }
.tcard blockquote::before { content: "\201C"; display: block; color: var(--blue); font-size: 3rem; line-height: .8; margin-bottom: 8px; }
.tcard figcaption { display: flex; align-items: center; gap: 14px; }
.tcard .avatar { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; background: var(--peach); display: grid; place-items: center; font-family: var(--serif); font-size: 1.2rem; overflow: hidden; }
.tcard .avatar img { width: 100%; height: 100%; object-fit: cover; }
.tcard .who strong { display: block; font-weight: 500; line-height: 1.3; }
.tcard .who span { display: block; font-size: .85rem; color: var(--ink-soft); line-height: 1.3; }
.t-controls { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 20px; }
.t-dots { display: flex; gap: 8px; }
.t-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); opacity: .25; transition: opacity .3s, transform .3s; }
.t-dots i.is-active { opacity: 1; transform: scale(1.25); background: var(--blue); }
.t-controls[hidden] { display: none; }
.t-controls button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; font-size: 1rem; }
.t-controls button:hover { background: #fff; }

/* CTA + tagline */
.cta { background: linear-gradient(120deg, var(--peach) 0%, var(--peach-soft) 55%, var(--blue-soft) 100%); text-align: center; padding: 64px 0; }
.cta h2 { max-width: 600px; margin-inline: auto; margin-bottom: 24px; }
.tagline { text-align: center; background: var(--peach-soft); padding: 16px 0; font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 36px 0; font-size: .92rem; }
.footer-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-contact a, .footer-contact span { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.footer-contact svg { width: 18px; height: 18px; stroke: var(--blue); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.35rem; margin: 34px 0 8px; }
.prose p { color: var(--ink-soft); margin: 0 0 14px; }
.prose a, .copyright a { color: inherit; text-underline-offset: 3px; }
.copyright { width: 100%; text-align: center; color: var(--ink-soft); font-size: .8rem; margin: 8px 0 0; }

/* Inner page headers */
.page-hero { background: var(--peach-soft); text-align: center; padding: 64px 0 52px; }
.page-hero h1 { margin-bottom: .3em; }
.page-hero p { color: var(--ink-soft); max-width: 620px; margin: 0 auto; font-size: 1.1rem; }

/* Services page */
.svc-group + .svc-group { border-top: 1px solid var(--line); }
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 64px; }
.svc-row:last-child { margin-bottom: 0; }
.svc-row.rev .svc-media { order: 2; }
.svc-media .ph, .svc-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; }
.svc-body .icon { margin: 0 0 16px; }
.svc-body p { color: var(--ink-soft); }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.svc-sub { font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); font-weight: 500; margin: 26px 0 0; }
.svc-sub:first-of-type { margin-top: 20px; }
.svc-sub + .checks { margin-top: 12px; }
.checks li strong { font-weight: 500; color: var(--ink); }
.svc-row.detail { align-items: start; }
.svc-row.detail .svc-media { position: sticky; top: 110px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%; background: var(--blue-soft); box-shadow: inset 0 0 0 4px var(--blue-soft), inset 0 0 0 8px var(--blue); }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.contact-form { display: grid; gap: 20px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label { font-size: .9rem; font-weight: 500; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.contact-form textarea { resize: vertical; }
.contact-form select { appearance: none; -webkit-appearance: none; padding-right: 48px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231f2d45' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; background-size: 14px; }

.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 3px solid var(--blue-soft); border-color: var(--blue); }
.contact-form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 18px; border-radius: 10px; margin-bottom: 22px; }
.notice.ok { background: var(--blue-soft); }
.notice.err { background: #fbe4e0; color: #7a2a1d; }
.contact-side { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.contact-side h2 { font-size: 1.4rem; }
.contact-side p { margin: 0 0 12px; }
.contact-side a, .contact-side span { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.contact-side svg { width: 20px; height: 20px; stroke: var(--blue); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Responsive */
@media (max-width: 960px) {
  .nav-toggle { display: none; }
  .header-in { flex-wrap: wrap; justify-content: center; gap: 0 24px; padding-top: 10px; }
  .main-nav { display: block; flex: 1 0 100%; border-top: 1px solid var(--line); margin-top: 8px; }
  .main-nav ul { flex-direction: row; justify-content: center; gap: 28px; }
  .main-nav a { display: block; padding: 12px 0; }
  .header-mail span { display: none; }
  .header-btn { display: none; }
  .hero-in { grid-template-columns: 1fr; padding-left: 0; }
  .hero-media { order: -1; height: clamp(280px, 58vw, 500px); min-height: 0; overflow: hidden; }
  .hero-media img { object-position: 65% 28%; }
  .hero-copy { padding: 32px 20px 48px; }
  .service-grid, .why-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .why-grid > div:nth-child(3) { border-left: 0; }
  .pro-grid { grid-template-columns: 1fr; }
  .svc-row, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .svc-row.rev .svc-media { order: 0; }
  .svc-row.detail .svc-media { position: static; }
}
@media (max-width: 960px) {
  .tcard { flex-basis: calc((100% - var(--gap)) / 2); }
  .t-track.count-3 { }
}
@media (max-width: 560px) {
  .tcard, .t-track.count-2 .tcard { flex-basis: 86%; }
  .t-track.count-1 .tcard { flex-basis: 100%; }
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .service-grid, .why-grid { grid-template-columns: 1fr; }
  .why-grid > div { border-left: 0; }
  .footer-in { flex-direction: column; text-align: center; }
  .footer-contact { justify-content: center; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .field-row { grid-template-columns: 1fr; }
}
