/* A Quilter's Notion: main website. Same look as the original site: Lato, rosewood buttons, charcoal bands. */
:root {
  --bg: #ffffff;
  --band: #fde8e8;
  --ink: #0d141a;
  --heading: #1d1e20;
  --muted: #56585e;
  --line: #b8c0cc;
  --accent: #7a4e4e;
  --accent-dark: #643f3f;
  --charcoal: #2a2a2a;
  --blue: #176be0;
  --wrap: 1224px;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 Lato, "Helvetica Neue", Arial, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--heading); font-weight: 700; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(36px, 5.2vw, 64px); line-height: 1.2; }
h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.25; }
h3 { font-size: 22px; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.muted { color: var(--muted); }
.center { text-align: center; }
.lede { color: var(--muted); max-width: 640px; margin: 16px auto 0; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* Buttons */
.btn { display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 50px; padding: 16px 40px; font: inherit; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn.light { background: #fff; color: var(--heading); }
.btn.light:hover { background: #f1eaea; }
.btn.small { font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, .1); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 118px; gap: 24px; }
.logo img { width: 97px; height: 97px; object-fit: contain; }
.site-nav { display: flex; gap: 32px; align-items: center; }
.site-nav a { text-decoration: none; padding: 2px 0; border-bottom: 1px solid transparent; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current] { border-bottom-color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .2s, opacity .2s; }
@media (max-width: 920px) {
  .site-header .wrap { min-height: 84px; }
  .logo img { width: 64px; height: 64px; }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; gap: 0; padding: 8px 24px 20px; box-shadow: 0 14px 14px rgba(0, 0, 0, .1); align-items: stretch; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid #eee; font-size: 18px; }
  .site-nav a[aria-current] { font-weight: 700; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* Sections */
section { padding: 80px 0; }
.band { background: var(--band); }
.dark { background: var(--charcoal); color: #fff; }
.dark h2, .dark h3 { color: #fff; }

/* Home hero */
.hero { position: relative; padding: 0; color: #fff; isolation: isolate; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(29, 30, 32, .5); z-index: -1; }
.hero .wrap { padding: 88px 0 72px; text-align: center; }
.hero h1 { color: #fff; max-width: 760px; margin: 0 auto; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.hero .sub { margin-top: 18px; font-size: 18px; }
.hero .where { margin-top: 6px; opacity: .92; }
.hero .actions { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.features { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.features div { background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); border: 1px solid rgba(255, 255, 255, .18); padding: 38px 20px; }
.features strong { display: block; font-size: 18px; font-weight: 900; margin-bottom: 14px; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; margin-top: 44px; } .features div { padding: 24px 16px; } .hero .wrap { padding: 56px 0 40px; } }

/* Two columns: picture and text */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split h2 + p { margin-top: 18px; }
.split p + p { margin-top: 14px; }
.split .btn { margin-top: 28px; }
.points { margin: 0; padding: 0; list-style: none; }
.points li + li { margin-top: 30px; }
.points strong { display: block; font-size: 18px; font-weight: 900; margin-bottom: 8px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } section { padding: 56px 0; } }

/* How it works */
.steps { margin: 48px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; background: #fff; border-radius: var(--radius); padding: 28px 24px; box-shadow: 0 4px 18px rgba(0, 0, 0, .06); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 16px; }
.steps strong { display: block; font-size: 18px; font-weight: 900; margin-bottom: 8px; color: var(--heading); }
.steps p { color: var(--muted); }
.steps a { color: var(--accent); }
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Cards (services) */
.cards { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.cards img { border-radius: var(--radius); width: 100%; aspect-ratio: 7 / 5; object-fit: cover; }
.cards h3 { margin: 22px 0 8px; font-size: 26px; font-weight: 900; }
.cards p { color: var(--muted); }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* Picture grids and the enlarged view */
.grid { margin: 48px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid.six { grid-template-columns: repeat(6, 1fr); }
.grid a, .grid button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; border-radius: 6px; }
.grid img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .3s; }
.grid a:hover img, .grid button:hover img { transform: scale(1.05); }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 10px; } .grid.six { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .grid { grid-template-columns: repeat(2, 1fr); } }
.viewer { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.viewer::backdrop { background: rgba(0, 0, 0, .88); }
.viewer figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 64px 24px; }
.viewer img { max-width: 100%; max-height: calc(100vh - 150px); border-radius: 8px; }
.viewer figcaption { color: #fff; margin-top: 14px; text-align: center; max-width: 640px; }
.viewer button { position: absolute; background: rgba(255, 255, 255, .14); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 24px; line-height: 1; cursor: pointer; }
.viewer button:hover { background: rgba(255, 255, 255, .3); }
.viewer .close { top: 14px; right: 14px; }
.viewer .prev { left: 10px; top: 50%; }
.viewer .next { right: 10px; top: 50%; }
@media (max-width: 600px) { .viewer figure { padding: 64px 8px 24px; } .viewer .prev, .viewer .next { top: auto; bottom: 14px; } }

/* Reviews */
.quote-band { background: var(--accent); color: #fff; text-align: center; }
.quote-band.blue { background: var(--blue); }
.quote-band h2 { color: #fff; }
.quotes { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; }
.quotes.one { grid-template-columns: minmax(0, 620px); justify-content: center; }
.quotes blockquote { margin: 0; }
.stars { font-size: 22px; letter-spacing: 2px; }
.quotes blockquote p { margin-top: 12px; font-size: 18px; line-height: 1.5; }
.quotes footer { margin-top: 16px; opacity: .92; }
.quote-band .more { margin-top: 40px; }

/* Forms */
label { display: block; font-size: 14px; margin-bottom: 4px; }
input[type="text"], input[type="email"], textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
textarea { min-height: 120px; resize: vertical; }
.field + .field { margin-top: 18px; }
form .btn { margin-top: 20px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin-top: 14px; min-height: 24px; }
.form-note.ok { font-weight: 700; }
.form-note.bad { color: #b3261e; font-weight: 700; }
.dark .form-note.bad { color: #ffb4ab; }
.signup { max-width: 503px; margin: 28px auto 0; text-align: left; }
.signup .btn { display: block; margin-inline: auto; }

/* FAQ */
.faq { display: grid; grid-template-columns: 5fr 6fr; gap: 72px; align-items: start; }
.faq h1 { position: sticky; top: 150px; }
.faq dl { margin: 0; }
.faq dt { font-size: 20px; font-weight: 900; color: var(--heading); letter-spacing: -0.01em; }
.faq dd { margin: 12px 0 44px; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; gap: 32px; } .faq h1 { position: static; } }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: start; }
.contact h1 + p { margin-top: 40px; color: var(--muted); }
.contact dl { margin: 36px 0 0; }
.contact dt { font-weight: 900; margin-top: 18px; }
.contact dd { margin: 2px 0 0; color: var(--muted); }
.contact dd a { color: inherit; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; gap: 40px; } }

/* Call to action */
.cta { text-align: center; }
.cta .actions { margin-top: 28px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--charcoal); color: #fff; padding: 70px 0 34px; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 48px; }
.site-footer h2 { color: #fff; font-size: 26px; letter-spacing: -0.01em; }
.site-footer h3 { color: #fff; font-size: 14px; font-weight: 900; text-transform: uppercase; letter-spacing: 0; margin-bottom: 16px; }
.site-footer p, .site-footer address { font-style: normal; }
.site-footer .tag { font-size: 14px; margin-top: 18px; }
.site-footer address { margin-top: 16px; font-size: 14px; line-height: 1.6; opacity: .92; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .legal { margin-top: 48px; font-size: 14px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; opacity: .9; }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr; gap: 36px; } }

.page-head { padding: 72px 0 0; text-align: center; }
.page-head + section { padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
