/*
Theme Name: Ranahan Design
Author: Ranahan Design
Description: Custom one-page theme for Ranahan Design — website design, hosting, email and San Antonio-area multimedia.
Version: 1.0.1
Requires PHP: 8.0
Text Domain: ranahan
*/

:root {
	--paper: #f7f2e8;
	--paper-deep: #ece2cf;
	--ink: #2e2620;
	--ink-soft: #5b5048;
	--leather: #6b4a2f;
	--leather-dark: #4f3520;
	--rope: #b48e5e;
	--pewter: #6e6c6a;
	--espresso: #2a1c12;
	--line: rgba(46, 38, 32, .16);
	--radius: 10px;
	--wrap: 1160px;
	--display: "Zilla Slab", Georgia, serif;
	--body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background-color: var(--paper);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .27 0 0 0 0 .18 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
	color: var(--ink);
	font-family: var(--body);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--leather); text-underline-offset: 3px; }
a:hover { color: var(--leather-dark); }
:focus-visible { outline: 3px solid var(--rope); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
	font-family: var(--display);
	color: var(--ink);
	line-height: 1.12;
	margin: 0 0 .5em;
	font-weight: 700;
	letter-spacing: -.005em;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--paper); padding: 8px 14px; }

/* Rope — the brand's one structural device: it separates the big parts of the page */
.rope {
	height: 9px;
	border-radius: 5px;
	background: repeating-linear-gradient(118deg, #c7a473 0 4px, #9a7647 4px 7px, #b48e5e 7px 10px);
	box-shadow: inset 0 -2px 0 rgba(60, 40, 20, .25), 0 1px 0 rgba(255, 255, 255, .5);
}
.rope-wrap { padding: 8px 0; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	font-family: var(--display); font-weight: 700; font-size: 1.15rem;
	padding: .7em 1.4em; border-radius: 6px; text-decoration: none;
	border: 2px solid var(--leather); cursor: pointer; line-height: 1.1;
	transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--leather); color: #fbf6ec; }
.btn-primary:hover { background: var(--leather-dark); border-color: var(--leather-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--leather); }
.btn-ghost:hover { background: rgba(107, 74, 47, .08); color: var(--leather-dark); }

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(247, 242, 232, .94);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 54px; height: 54px; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.45rem; line-height: 1; letter-spacing: .02em; }
.brand-name small { display: block; font-family: var(--body); font-weight: 500; font-size: .78rem; letter-spacing: .02em; color: var(--ink-soft); margin-top: 4px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1rem; }
.nav a:hover { color: var(--leather); text-decoration: underline; }
.nav .btn { font-size: 1.02rem; padding: .55em 1.1em; }
.nav .btn-primary { color: #fbf6ec; }
.nav .btn-primary:hover { text-decoration: none; color: #fff; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 2px solid var(--leather); color: var(--leather); border-radius: 6px; padding: 8px 12px; font: 600 1rem var(--body); cursor: pointer; }

@media (max-width: 940px) {
	.nav-toggle { display: inline-flex; }
	.nav {
		display: none; position: absolute; top: 100%; left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 0;
		background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 18px;
	}
	.nav.open { display: flex; }
	.nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
	.nav .btn { margin-top: 14px; border-bottom: 2px solid var(--leather); }
	.brand-name small { display: none; }
}

/* Hero — the illustration is the memorable thing */
.hero { padding: 28px 0 56px; }
.hero-art { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.hero-art img { width: 100%; mix-blend-mode: multiply; }
.hero-copy { display: grid; grid-template-columns: 1.45fr 1fr; gap: 48px; align-items: end; margin-top: 18px; }
.hero h1 { margin-bottom: .35em; }
.hero .lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-list { list-style: none; margin: 0; padding: 22px 24px; border-left: 4px solid var(--rope); background: rgba(236, 226, 207, .6); border-radius: 0 var(--radius) var(--radius) 0; }
.hero-list li { display: flex; gap: 12px; align-items: baseline; padding: 6px 0; font-weight: 500; }
.hero-list li span { color: var(--ink-soft); font-weight: 400; font-size: .95rem; }
@media (max-width: 860px) {
	.hero { padding-top: 12px; }
	.hero-copy { grid-template-columns: 1fr; gap: 28px; }
}

/* Star bullet */
.star { flex: 0 0 auto; width: 14px; height: 14px; color: var(--pewter); transform: translateY(1px); }
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.ticks li { display: flex; gap: 12px; align-items: baseline; padding: 5px 0; }

/* Section rhythm */
.section { padding: 88px 0; }
.section-deep { background: var(--paper-deep); }
.section-head { max-width: 46em; margin-bottom: 48px; }
.section-head p { font-size: 1.15rem; color: var(--ink-soft); }
@media (max-width: 700px) { .section { padding: 64px 0; } }

/* Services: alternating rows, each led by a piece of the artwork */
.service { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; padding: 40px 0; }
.service + .service { border-top: 1px dashed rgba(107, 74, 47, .35); }
.service:nth-child(even) .service-art { order: 2; }
.service-art img { width: 100%; max-height: 360px; object-fit: contain; mix-blend-mode: multiply; }
.service h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: .3em; }
.service .summary { font-size: 1.12rem; color: var(--ink-soft); max-width: 34em; }
.service .ticks { columns: 2; column-gap: 32px; }
.service .ticks li { break-inside: avoid; }
.local-tag {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: .9rem; font-weight: 600; color: var(--leather);
	border: 1px solid rgba(107, 74, 47, .45); border-radius: 999px; padding: 3px 12px; margin-bottom: 12px;
}
@media (max-width: 860px) {
	.service { grid-template-columns: 1fr; gap: 16px; }
	.service:nth-child(even) .service-art { order: 0; }
	.service-art img { max-height: 240px; margin: 0 auto; }
	.service .ticks { columns: 1; }
}

/* Who we help */
.audiences { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.audience { padding: 8px 32px 8px 0; }
.audience + .audience { padding-left: 32px; border-left: 1px solid var(--line); }
.audience h3 { font-size: 1.45rem; }
.audience p { color: var(--ink-soft); }
@media (max-width: 860px) {
	.audiences { grid-template-columns: 1fr; }
	.audience, .audience + .audience { padding: 24px 0; border-left: 0; }
	.audience + .audience { border-top: 1px solid var(--line); }
}

/* Keep it simple — the one dark band */
.band {
	background: var(--espresso);
	color: #eadfcc;
	background-image: radial-gradient(ellipse at 15% 0%, rgba(180, 142, 94, .18), transparent 60%);
}
.band h2, .band h3 { color: #f7f2e8; }
.band .section-head p { color: #cdbfa8; }
.reasons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 56px; }
.reason { display: grid; grid-template-columns: 34px 1fr; gap: 6px 14px; }
.reason svg { width: 30px; height: 30px; color: var(--rope); grid-row: span 2; margin-top: 2px; }
.reason h3 { font-size: 1.35rem; margin: 0; }
.reason p { margin: 0; color: #cdbfa8; }
.band-note { margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(234, 223, 204, .18); color: #eadfcc; max-width: 48em; }
@media (max-width: 760px) { .reasons { grid-template-columns: 1fr; } }

/* One outfit */
.outfit { display: grid; grid-template-columns: 4fr 7fr; gap: 64px; align-items: center; }
.outfit-art img { mix-blend-mode: multiply; max-height: 520px; margin: 0 auto; }
.outfit .ticks li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.outfit .ticks strong { font-weight: 600; }
@media (max-width: 860px) {
	.outfit { grid-template-columns: 1fr; gap: 20px; }
	.outfit-art img { max-height: 300px; }
}

/* How it works — a real sequence, so it gets numbers, strung on a rope */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; counter-reset: step; }
.steps::before {
	content: ""; position: absolute; left: 28px; right: 28px; top: 27px; height: 6px; border-radius: 3px;
	background: repeating-linear-gradient(118deg, #c7a473 0 4px, #9a7647 4px 7px, #b48e5e 7px 10px);
}
.steps li { position: relative; counter-increment: step; }
.steps li::before {
	content: counter(step);
	display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 18px;
	border-radius: 50%; background: var(--paper); border: 3px solid var(--leather);
	font: 700 1.6rem var(--display); color: var(--leather); position: relative;
}
.section-deep .steps li::before { background: var(--paper-deep); }
.steps h3 { font-size: 1.3rem; margin-bottom: .3em; }
.steps p { color: var(--ink-soft); margin: 0; }
@media (max-width: 860px) {
	.steps { grid-template-columns: 1fr; gap: 26px; }
	.steps::before { left: 27px; right: auto; top: 30px; bottom: 30px; width: 6px; height: auto;
		background: repeating-linear-gradient(28deg, #c7a473 0 4px, #9a7647 4px 7px, #b48e5e 7px 10px); }
	.steps li { display: grid; grid-template-columns: 60px 1fr; gap: 0 20px; }
	.steps li::before { grid-row: span 2; margin: 0; }
}

/* FAQ */
.faq { max-width: 52em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
	cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
	font: 700 1.25rem/1.3 var(--display); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: ""; position: absolute; right: 8px; top: 50%; width: 11px; height: 11px;
	border-right: 2.5px solid var(--leather); border-bottom: 2.5px solid var(--leather);
	transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 20px; color: var(--ink-soft); max-width: 44em; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* Contact */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.contact-side img { width: 150px; margin-bottom: 20px; }
.contact-side p { color: var(--ink-soft); }
.contact-side .where { font-weight: 600; color: var(--ink); }
.form { background: #fbf8f1; border: 1px solid var(--line); border-radius: 14px; padding: 32px; box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 18px 40px -28px rgba(42, 28, 18, .45); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 6px; font-size: .97rem; }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field textarea {
	width: 100%; font: inherit; color: var(--ink); background: #fff;
	border: 1.5px solid rgba(46, 38, 32, .25); border-radius: 7px; padding: 11px 13px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--leather); box-shadow: 0 0 0 3px rgba(180, 142, 94, .35); }
fieldset.field { border: 0; padding: 0; margin: 0 0 18px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { margin: 0; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid rgba(46, 38, 32, .22); border-radius: 999px; padding: 6px 14px; cursor: pointer; background: #fff; font-size: .95rem; }
.checks input { accent-color: var(--leather); }
.checks label:has(input:checked) { border-color: var(--leather); background: rgba(180, 142, 94, .16); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: 8px; padding: 14px 16px; margin-bottom: 20px; font-weight: 500; }
.notice-ok { background: #e4ecd9; border: 1px solid #9cb27f; color: #2f4a1c; }
.notice-err { background: #f5dfd6; border: 1px solid #c58a73; color: #6a2a14; }
@media (max-width: 860px) {
	.contact { grid-template-columns: 1fr; gap: 32px; }
	.form { padding: 22px; }
	.form .row { grid-template-columns: 1fr; gap: 0; }
}

/* Footer */
.site-footer { background: var(--espresso); color: #cdbfa8; padding: 56px 0 28px; }
.site-footer a { color: #eadfcc; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(234, 223, 204, .16); }
.footer-brand { display: flex; gap: 16px; align-items: center; }
.footer-brand img { width: 84px; height: 84px; }
.footer-brand strong { display: block; font: 700 1.5rem var(--display); color: #f7f2e8; }
.site-footer h4 { color: #f7f2e8; font-size: 1.1rem; margin-bottom: .6em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 3px 0; }
.footer-bar { padding-top: 22px; font-size: .92rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; gap: 28px; } }

/* Plain pages (privacy etc.) */
.page-body { padding: 64px 0 88px; }
.page-body .wrap { max-width: 760px; }
.outfit .summary { font-size: 1.15rem; color: var(--ink-soft); }

/* Layout refinements */
.service:nth-child(even) { grid-template-columns: 7fr 5fr; }
.service-art { display: flex; justify-content: center; }
.service-art img { width: auto; max-width: 100%; }
#email .service-art img { max-width: 420px; width: 100%; }
.steps::before { right: 22%; }
.hero-copy { align-items: center; }
@media (max-width: 860px) {
	.service:nth-child(even) { grid-template-columns: 1fr; }
	#email .service-art img { max-width: 300px; }
}
