/* ==========================================================================
   Custom Book Studio — main stylesheet
   Black / white / red editorial design, influenced by motherduck.com
   ========================================================================== */

:root {
	--black: #0b0b0b;
	--ink: #1a1a1a;
	--white: #ffffff;
	--paper: #f5f2ec;
	--paper-2: #ece6d9;
	--red: #e4060f;
	--red-2: #bd040c;
	--gray: #5f5f5f;
	--muted: #8c8c8c;
	--line: #0b0b0b;
	--line-soft: #e2dccf;
	--line-dark: #2c2c2c;

	--f-display: "Space Grotesk", system-ui, sans-serif;
	--f-body: "Inter", system-ui, sans-serif;
	--f-mono: "Space Mono", ui-monospace, monospace;

	--r: 14px;
	--r-lg: 22px;
	--r-pill: 999px;

	--wrap: 1180px;
	--gutter: clamp(20px, 5vw, 48px);
}

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

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

body {
	margin: 0;
	font-family: var(--f-body);
	font-size: 17px;
	line-height: 1.62;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
	font-family: var(--f-display);
	font-weight: 700;
	line-height: 1.06;
	letter-spacing: -0.02em;
	margin: 0 0 .5em;
	color: var(--ink);
}

p { margin: 0 0 1rem; }
.text-red { color: var(--red); }

/* ---- Layout helpers ---- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(60px, 9vw, 124px); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--black); color: var(--white); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.section__head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section--center .section__head { margin-inline: auto; text-align: center; }

.eyebrow {
	display: inline-block;
	font-family: var(--f-mono);
	font-size: .76rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--red);
	margin-bottom: 1rem;
}
.section--dark .eyebrow { color: var(--red); }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--gray); max-width: 54ch; }
.section--dark .lead { color: #cfcfcf; }

.h1 { font-size: clamp(2.6rem, 6vw, 4.9rem); }
.h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link { position: absolute; left: -999px; top: 0; background: var(--red); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---- Buttons ---- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	font-family: var(--f-display); font-weight: 600; font-size: 1rem;
	padding: .82em 1.5em; border-radius: var(--r-pill);
	border: 2px solid transparent; cursor: pointer; transition: all .18s ease;
	text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--red { background: var(--red); color: #fff; border-color: var(--red); }
.btn--red:hover { background: var(--red-2); border-color: var(--red-2); }
.btn--dark { background: var(--black); color: #fff; border-color: var(--black); }
.btn--dark:hover { background: #000; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.section--dark .btn--ghost { color: #fff; border-color: #fff; }
.section--dark .btn--ghost:hover { background: #fff; color: var(--black); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---- Image placeholders (filled by generated imagery later) ---- */
.img-ph {
	position: relative; display: grid; place-items: center; text-align: center;
	background: repeating-linear-gradient(135deg, var(--paper) 0 14px, var(--paper-2) 14px 28px);
	border: 1.5px solid var(--line); border-radius: var(--r-lg);
	min-height: 220px; padding: 24px; overflow: hidden; color: var(--gray);
}
.img-ph::before {
	content: "IMAGE"; position: absolute; top: 12px; left: 12px;
	font-family: var(--f-mono); font-size: .62rem; letter-spacing: .14em;
	background: var(--black); color: #fff; padding: 3px 8px; border-radius: 6px;
}
.img-ph span { font-family: var(--f-mono); font-size: .82rem; max-width: 30ch; }
.section--dark .img-ph { border-color: #fff; color: #cfcfcf; background: repeating-linear-gradient(135deg, #161616 0 14px, #1d1d1d 14px 28px); }

/* ---- Top bar ---- */
.topbar { background: var(--black); color: #fff; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .04em; }
.topbar__inner { display: flex; align-items: center; gap: 14px; padding-block: 8px; }
.topbar__sep { color: #555; }
.topbar__item { color: #d9d9d9; }
.topbar__phone { margin-left: auto; color: #fff; font-weight: 700; }
.topbar__phone:hover { color: var(--red); text-decoration: none; }

/* ---- Site header ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1.5px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 24px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; }
.brand__logo, .brand .custom-logo { height: 50px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; }
.nav__list { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); list-style: none; margin: 0; padding: 0; font-family: var(--f-display); font-weight: 500; }
.nav__list a { padding: 6px 2px; }
.nav__list a:hover, .nav__list .current-menu-item > a { color: var(--red); text-decoration: none; }
.site-header__cta { padding: .6em 1.2em; font-size: .95rem; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 40px; align-items: center; justify-content: center; background: transparent; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; }
.nav__toggle-bar { width: 20px; height: 2px; background: var(--ink); transition: .2s; }

/* ---- Hero ---- */
.hero { padding-block: clamp(48px, 7vw, 96px); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 6.4vw, 5rem); }
.hero__lead { margin-top: 1.2rem; }
.hero__cta { margin-top: 2rem; }
.hero__media { position: relative; }
.hero__media .img-ph { min-height: clamp(300px, 38vw, 460px); }
.hero__badge {
	position: absolute; bottom: -16px; left: -16px; background: var(--red); color: #fff;
	font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
	padding: 10px 16px; border-radius: var(--r-pill); transform: rotate(-3deg);
}

/* ---- Marquee / partner strip ---- */
.strip { border-block: 1.5px solid var(--line); background: var(--white); }
.strip__inner { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(18px, 4vw, 52px); padding-block: 20px; font-family: var(--f-mono); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); }
.strip__inner b { color: var(--red); }

/* ---- Services ---- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: clamp(16px, 2vw, 24px); }
.card {
	display: flex; flex-direction: column; background: var(--white);
	border: 1.5px solid var(--line); border-radius: var(--r-lg);
	padding: clamp(22px, 3vw, 30px); transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-5px); border-color: var(--red); }
.card__index { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); }
.card:hover .card__index { color: var(--red); }
.card__name { font-size: 1.4rem; margin: .5rem 0 .15rem; }
.card__tag { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .04em; color: var(--red); margin-bottom: .9rem; }
.card__desc { color: var(--gray); font-size: .98rem; margin-bottom: 1.1rem; }
.card__meta { margin-top: auto; display: flex; flex-direction: column; gap: 4px; font-size: .8rem; color: var(--muted); font-family: var(--f-mono); }
.card__meta span::before { content: "› "; color: var(--red); }

/* ---- Process steps ---- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(20px, 3vw, 40px); counter-reset: step; }
.step { position: relative; padding-top: 18px; border-top: 2px solid var(--line-dark); }
.section--dark .step { border-color: #fff; }
.step__num { font-family: var(--f-mono); font-size: .8rem; color: var(--red); margin-bottom: .6rem; display: block; }
.step h3 { font-size: 1.25rem; }
.step p { color: #cfcfcf; font-size: .96rem; }
.section:not(.section--dark) .step p { color: var(--gray); }

/* ---- Feature list ---- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px 32px; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature__mark { flex: none; width: 30px; height: 30px; border-radius: var(--r-pill); background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.feature h3 { font-size: 1.08rem; margin-bottom: .2rem; }
.feature p { font-size: .92rem; color: var(--gray); margin: 0; }

/* ---- Split (about) ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split__media .img-ph { min-height: clamp(280px, 34vw, 420px); }

/* ---- FAQ accordion ---- */
.faq { max-width: 820px; margin-inline: auto; border-top: 1.5px solid var(--line); }
.faq__item { border-bottom: 1.5px solid var(--line-soft); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; text-align: left; background: none; border: 0; cursor: pointer; padding: 22px 4px; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--ink); }
.faq__q:hover { color: var(--red); }
.faq__icon { flex: none; width: 24px; height: 24px; position: relative; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; background: var(--red); inset: 0; margin: auto; }
.faq__icon::before { width: 16px; height: 2px; }
.faq__icon::after { width: 2px; height: 16px; transition: transform .2s ease; }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: scaleY(0); }
.faq__a { overflow: hidden; max-height: 0; transition: max-height .26s ease; }
.faq__a-inner { padding: 0 4px 22px; color: var(--gray); max-width: 70ch; }

/* ---- CTA band ---- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.cta-band .btn-row { justify-content: center; margin-top: 1.6rem; }
.cta-band__contact { margin-top: 1.4rem; font-family: var(--f-mono); font-size: .9rem; color: #cfcfcf; }
.cta-band__contact a { color: #fff; }

/* ---- Generic page / entry content ---- */
.page-hero { padding-block: clamp(48px, 7vw, 90px); border-bottom: 1.5px solid var(--line); }
.page-hero__grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.page-hero__art { width: 100%; max-width: 440px; height: auto; justify-self: end; }
@media (max-width: 860px) { .page-hero__grid { grid-template-columns: 1fr; } .page-hero__art { max-width: 320px; order: -1; } }
.entry { padding-block: clamp(48px, 7vw, 90px); }
.entry .wrap--narrow { max-width: 760px; }
.entry h2 { margin-top: 2em; }
.entry img { border-radius: var(--r); margin-block: 1.5rem; }

/* ---- Footer ---- */
.site-footer { background: var(--black); color: #d6d6d6; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--red); text-decoration: none; }
.site-footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: clamp(28px, 4vw, 56px); padding-block: clamp(48px, 6vw, 80px); }
.site-footer__logo { height: 58px; width: auto; }
.site-footer__blurb { margin: 1.2rem 0; max-width: 38ch; color: #b9b9b9; }
.site-footer__heading { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 1rem; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer__address { font-style: normal; line-height: 1.7; margin-bottom: 1rem; }
.site-footer__muted { color: var(--muted); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px; border-top: 1px solid var(--line-dark); font-size: .82rem; }
.site-footer__bottom p { margin: 0; }

/* ---- Generated imagery ---- */
.hero__img, .split__img { display: block; width: 100%; border: 1.5px solid var(--line); border-radius: var(--r-lg); }
.card__media { display: block; width: 100%; height: 168px; object-fit: contain; background: var(--paper); border-radius: var(--r); margin-bottom: 1.2rem; transition: background .2s ease; }
.card:hover .card__media { background: var(--paper-2); }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1.4fr .9fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-form .field { margin-bottom: 1.15rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; margin-bottom: 1.15rem; }
.contact-form label { display: block; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .45rem; color: var(--ink); }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: .8em 1em; border: 1.5px solid var(--line); border-radius: var(--r); font: inherit; background: #fff; color: var(--ink); }
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.form-actions { margin-top: 1.4rem; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 1em 1.25em; border-radius: var(--r); margin-bottom: 1.6rem; font-weight: 500; }
.notice--ok { background: var(--black); color: #fff; }
.notice--err { background: #fff; border: 1.5px solid var(--red); color: var(--red-2); }
.contact-aside { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 30px); }
.contact-aside address { font-style: normal; line-height: 1.7; margin-bottom: .6rem; }
.contact-aside__muted { color: var(--gray); font-size: .92rem; }
.contact-embed { width: 100%; }
.contact-embed iframe { display: block; width: 100%; min-height: 820px; border: 0; background: transparent; }

/* Two enquiry options as side-by-side accordions */
.contact-options { display: grid; grid-template-columns: 1fr; gap: clamp(16px, 2vw, 24px); align-items: start; }
.contact-option { border: 1.5px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.contact-option__head { width: 100%; display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; text-align: left; background: none; border: 0; cursor: pointer; padding: clamp(22px, 3vw, 30px); }
.contact-option__head:hover { background: var(--paper); }
.contact-option__head:hover .contact-option__title { color: var(--red); }
.contact-option__title { display: block; font-family: var(--f-display); font-weight: 700; font-size: 1.45rem; color: var(--ink); line-height: 1.1; }
.contact-option__desc { display: block; margin-top: .6rem; color: var(--gray); font-size: .95rem; line-height: 1.55; font-weight: 400; }
.contact-option .faq__icon { margin-top: 7px; }
.contact-option__inner { padding: 0 clamp(14px, 2vw, 20px) clamp(16px, 2vw, 22px); }
.contact-option__inner iframe { display: block; width: 100%; min-height: 820px; border: 0; background: transparent; }
.contact-option__inner--pad { padding-top: clamp(6px, 2vw, 14px); }
.contact-option__inner--pad { text-align: center; }
.contact-option__inner--pad p { color: var(--gray); }
.contact-option__inner--pad .btn { display: inline-flex; margin-top: .4rem; }

.contact-studio { margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 40px); padding: clamp(22px, 3vw, 30px); background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-lg); }
.contact-studio__label { display: block; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: .45rem; }
.contact-studio address { font-style: normal; line-height: 1.55; }
@media (max-width: 820px) { .contact-options { grid-template-columns: 1fr; } .contact-studio { grid-template-columns: 1fr; gap: 18px; } }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } .field-row { grid-template-columns: 1fr; gap: 0; } }

/* ---- Responsive ---- */
@media (max-width: 980px) {
	.hero__grid, .split { grid-template-columns: 1fr; }
	.site-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
	.site-header__cta { display: none; }
	.nav__toggle { display: flex; }
	.nav__list {
		position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start;
		gap: 0; background: var(--white); border-bottom: 1.5px solid var(--line);
		padding: 8px var(--gutter) 16px; display: none;
	}
	.nav__list.is-open { display: flex; }
	.nav__list li { width: 100%; border-top: 1px solid var(--line-soft); }
	.nav__list a { display: block; padding: 14px 0; width: 100%; }
	.nav { position: static; }
}
@media (max-width: 600px) {
	.topbar__item:nth-child(3), .topbar__sep { display: none; }
	.site-footer__top { grid-template-columns: 1fr; }
	.hero__badge { left: 8px; }
}
