/*
Theme Name: Dawes Design and Application
Theme URI: https://dawesdanda.com/
Author: Dawes Design and Application
Author URI: https://dawesdanda.com/
Description: Block theme for dawesdanda.com. The home page sends visitors one of three ways (Veterinary, Drum Set, Engineering); each has its own page template.
Version: 1.0.2
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dawesdanda
*/

:root {
	--orange: var(--wp--preset--color--orange);
	--cobalt: var(--wp--preset--color--cobalt);
	--cobalt-dk: var(--wp--preset--color--cobalt-dark);
	--cyan: var(--wp--preset--color--cyan);
	--green: var(--wp--preset--color--green);
	--ink: var(--wp--preset--color--ink);
	--ink-2: var(--wp--preset--color--ink-2);
	--line: var(--wp--preset--color--line);
	--paper: var(--wp--preset--color--paper);
	--paper-2: var(--wp--preset--color--paper-2);
	--radius: 14px;
	--wide: 1160px;
	--head: var(--wp--preset--font-family--heading);
	--body: var(--wp--preset--font-family--body);
}

html { scroll-behavior: smooth; }
h1, h2, h3, h4 { margin: 0 0 .5em; letter-spacing: -0.01em; }
/* WordPress's flow layout zeroes margin-bottom on every block; keep the gap under headings */
.wp-site-blocks :is(h1, h2, h3, h4) { margin-bottom: .5em; }
img { max-width: 100%; height: auto; }
.wp-site-blocks > * { margin-block-start: 0; }
.wrap { max-width: var(--wide); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.eyebrow { font: 600 13px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin: 0 0 14px; }

/* Colour variants: set --c on a section or card */
.c-cyan { --c: var(--cyan); }
.c-orange { --c: var(--orange); }
.c-cobalt { --c: var(--cobalt); }
.c-cobalt-dk { --c: var(--cobalt-dk); }
.c-green { --c: var(--green); }

/* Grid containers: undo WordPress's flow-layout margins on their children */
.dir-grid > *, .app-grid > *, .svc-grid > *, .contact-grid > *, .foot-grid > *, .about > *, .example > *, .header-row > * { margin-block-start: 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
.header-row { display: flex; align-items: center; gap: 26px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font: 700 18px/1.1 var(--head); }
.brand img { width: 40px; height: 40px; }
.header-row .wp-block-navigation { margin-left: auto; gap: 26px; font-size: 15px; font-weight: 500; }
.header-row .wp-block-navigation a { text-decoration: none; }
.header-row .wp-block-navigation a:hover, .header-row .wp-block-navigation .current-menu-item a { color: var(--cobalt); }
.header-row .wp-block-button__link { padding: 11px 18px; font-size: 14px; }
.wp-site-blocks .wp-block-navigation__responsive-container.is-menu-open { padding: 24px; --navigation-layout-justification-setting: flex-start; --navigation-layout-justify: flex-start; }
.wp-site-blocks .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.wp-site-blocks .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: flex-start; width: 100%; margin: 0; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { font: 600 26px/1.2 var(--head); }

/* Home: three directions */
.home-intro { padding: 72px 0 40px; text-align: center; }
.home-logo { width: 120px; height: 120px; margin: 0 auto 20px; display: block; }
.home-intro h1 { font-size: clamp(34px, 4vw, 52px); margin-bottom: 10px; }
.lede { color: var(--ink-2); font-size: 19px; margin: 0; }
.directions { padding: 0 0 96px; }
.dir-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dir { position: relative; border-radius: var(--radius); padding: 36px 32px; color: #fff; display: flex; flex-direction: column; gap: 10px; min-height: 320px; background: var(--c); transition: transform .15s, box-shadow .15s; }
.dir:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(20,23,31,.18); }
.wp-site-blocks .dir > * { margin: 0; }
.chip { align-self: flex-start; font: 600 12px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; background: rgba(255,255,255,.2); padding: 7px 10px; border-radius: 99px; }
.wp-site-blocks .dir h2 { font-size: 32px; margin-top: 8px; }
.dir p { color: rgba(255,255,255,.9); }
.wp-site-blocks .dir .more { margin-top: auto; font-weight: 600; }
.dir .more a { color: inherit; text-decoration: none; }
.dir .more a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.dir.dark-text, .dir.dark-text .more { color: var(--ink); }
.dir.dark-text p { color: rgba(20,23,31,.8); }
.dir.dark-text .chip { background: rgba(20,23,31,.12); }

/* Inner page header */
.page-hero { background: var(--c, var(--cobalt-dk)); color: #fff; padding: 72px 0 64px; }
.page-hero .eyebrow { color: rgba(255,255,255,.75); }
.page-hero h1 { font-size: clamp(34px, 4vw, 52px); max-width: 18ch; margin: 0 0 .4em; }
.page-hero p { font-size: 19px; color: rgba(255,255,255,.88); max-width: 52ch; margin: 0; }
.page-hero .eyebrow + h1 { margin-top: 0; }
.page-hero.dark-text { color: var(--ink); }
.page-hero.dark-text .eyebrow, .page-hero.dark-text p { color: rgba(20,23,31,.75); }
.page-hero .crumb { font-size: 14px; margin-bottom: 18px; }
.page-hero .crumb a { color: inherit; opacity: .85; }

/* Sections */
.block { padding: 88px 0; }
.block.alt { background: var(--paper-2); }

/* Ordinary pages (support, privacy, terms) */
.wp-site-blocks > main { min-height: 60vh; }
.prose { padding-top: 56px; padding-bottom: 88px; }
.prose .wp-block-post-content > * { max-width: 760px; }
.prose h2 { font-size: 26px; margin-top: 1.6em; }
.prose h3 { font-size: 20px; margin-top: 1.4em; }

/* Apps */
.app-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.app { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; grid-template-columns: 72px 1fr; gap: 20px; align-items: start; }
.app-icon { width: 72px; height: 72px; border-radius: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.app h3 { font-size: 22px; margin: 2px 0 4px; }
.app p { margin: 0 0 14px; color: var(--ink-2); font-size: 16px; }
.app-links { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 14px; font-weight: 500; }
.app-links a { text-decoration: none; }
.badge-store { display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: #fff !important; padding: 8px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; }
.tag-soon { font: 600 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: #A65400; background: #FFF1E2; padding: 6px 9px; border-radius: 99px; vertical-align: middle; }
.app.soon { background: transparent; border-style: dashed; }

/* Services */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.svc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; border-top: 5px solid var(--c, var(--cobalt)); }
.svc > * { margin-top: 0; }
.svc h3 { font-size: 22px; }
.svc p { color: var(--ink-2); margin: 0 0 12px; }
.svc ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 15px; }
.svc li { margin: 4px 0; }
.example { margin-top: 40px; background: var(--cobalt-dk); color: #fff; border-radius: var(--radius); padding: 36px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; }
.example h3 { font-size: 26px; }
.example p { color: #D5DCF0; margin: 0; }
.example .eyebrow { color: var(--green); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.14); }
.steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.steps li::before { counter-increment: s; content: counter(s); font: 700 15px/1 var(--head); color: var(--green); }
.steps b { font-weight: 600; }
.steps span { color: #AFC0EA; font-size: 14px; white-space: nowrap; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: center; }
.about-card { background: var(--paper-2); border-radius: var(--radius); padding: 32px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.facts li { display: grid; grid-template-columns: 12px 1fr; gap: 14px; align-items: baseline; }
.facts li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); transform: translateY(1px); }
.about p { color: var(--ink-2); }

/* Contact */
.contact { text-align: center; }
.contact h2 { font-size: clamp(30px, 3.2vw, 42px); }
.contact > .wrap > p { color: var(--ink-2); font-size: 18px; max-width: 560px; margin: 0 auto 32px; }
.contact .wp-block-buttons { justify-content: center; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 760px; margin: 0 auto; text-align: left; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
.contact-card h3 { font-size: 18px; margin-bottom: 4px; }
.contact-card p { font-size: 15px; margin: 0 0 12px; color: var(--ink-2); }
.contact-card a.mail { font-weight: 600; font-size: 17px; text-decoration: none; }

/* Footer */
.site-footer { background: var(--ink); color: #B8BDC9; padding: 56px 0 32px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.site-footer a { color: #B8BDC9; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-brand { display: flex; gap: 12px; align-items: center; color: #fff; font: 700 17px/1.2 var(--head); margin-bottom: 12px; }
.foot-brand img { width: 36px; height: 36px; background: #fff; border-radius: 8px; padding: 3px; }
.foot-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid #2A2F3A; font-size: 13px; }

@media (max-width: 900px) {
	.dir-grid, .app-grid, .svc-grid, .example, .about, .contact-grid, .foot-grid { grid-template-columns: 1fr; }
	.dir { min-height: 0; }
	.block { padding: 64px 0; }
	.steps li { grid-template-columns: 28px 1fr; }
	.steps span { grid-column: 2; }
}
@media (max-width: 600px) {
	.header-row .header-cta { display: none; }
	.header-row { gap: 12px; }
}
@media (max-width: 480px) {
	.wrap { padding-left: 16px; padding-right: 16px; }
	.brand span { font-size: 15px; }
	.app { grid-template-columns: 56px 1fr; padding: 20px; gap: 16px; }
	.app-icon { width: 56px; height: 56px; border-radius: 13px; }
	.dir, .svc, .example { padding: 24px; }
}
