/*
Theme Name: Brick Cafes
Theme URI: https://brickcafes.com/
Author: Digital Blocks
Author URI: https://digitalblocks.example
Description: The Brick Cafes directory theme, cloned from the Digital Blocks starter (startertheme 4dff52f).
Version: 0.2.0
Requires at least: 7.1
Tested up to: 7.1
Requires PHP: 8.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: brickcafes
*/

/* Header and footer. Both are custom HTML in patterns (the logo is an SVG, the menu a paragraph of
   links with a phone toggle), so theme.json has no block to hang these styles on. */

/* The logo: the mark and a lowercase wordmark. The cup handle is ink, or white on the footer. */
.bc-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--wp--preset--color--contrast); }
.bc-logo:hover, .bc-logo:focus { color: var(--wp--preset--color--contrast); }
.bc-logo__mark { flex: none; }
.bc-logo__handle { stroke: currentColor; }
.bc-logo__word { font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: 26px; letter-spacing: -0.03em; line-height: 1; }

/* The menu: Gabarito links with a tinted hover and current page, then "Add a place" as an ink button. */
.bc-header__inner { align-items: center; gap: 12px 24px; }
.bc-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; }
.bc-nav a { font-family: var(--wp--preset--font-family--display); font-weight: 600; font-size: 16px; padding: 10px 14px; border-radius: 12px; text-decoration: none; color: var(--wp--preset--color--contrast); }
.bc-nav a:hover, .bc-nav a:focus-visible, .bc-nav a[aria-current="page"] { background: var(--wp--preset--color--tertiary); color: var(--wp--preset--color--contrast); }
.bc-nav .bc-nav__add { margin-left: 8px; background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--white); font-weight: 800; }
.bc-nav .bc-nav__add:hover, .bc-nav .bc-nav__add:focus-visible { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--white); text-decoration: underline; }
.bc-menu-button { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0; border: 3px solid var(--wp--preset--color--contrast); border-radius: 12px; background: var(--wp--preset--color--white); color: var(--wp--preset--color--contrast); cursor: pointer; }

@media (max-width: 781px) {
	.bc-logo__word { font-size: 22px; }
	.bc-menu-button { display: inline-flex; }
	.bc-header .bc-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; padding-top: 8px; }
	.bc-header .bc-nav.is-open { display: flex; }
	.bc-nav a { font-size: 18px; }
	.bc-nav .bc-nav__add { margin: 8px 0 0; text-align: center; }
}

/* The footer is ink: links in the party yellow, the trademark notice quieter. */
.bc-footer .bc-logo, .bc-footer .bc-logo:hover { color: var(--wp--preset--color--white); }
.bc-footer__cols > * { margin-block: 0; }
.bc-footer__cols { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px; }
.bc-footer__about p { max-width: 34ch; margin: 16px 0 0; opacity: 0.85; }
.bc-footer__col { display: flex; flex-direction: column; gap: 10px; }
.bc-footer__col p { margin: 0 0 4px; font-family: var(--wp--preset--font-family--display); font-weight: 800; }
.bc-footer a:not(.bc-logo) { color: #efc876; }
.bc-footer a:not(.bc-logo):hover, .bc-footer a:not(.bc-logo):focus { color: var(--wp--preset--color--white); }
.bc-footer__base { margin-top: 48px; padding-top: 24px; border-top: 2px solid rgba(255, 255, 255, 0.18); font-size: var(--wp--preset--font-size--small); }
.bc-footer__tm { opacity: 0.7; }

@media (max-width: 781px) {
	.bc-footer__cols { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
	.bc-footer__about { grid-column: 1 / -1; }
}

/* Page sections built from core groups in the patterns. theme.json can't draw the baseplate dots,
   press shadows (box-shadow presets don't reach groups by class), a dashed border, or a button laid
   over the map, and per-class rules for groups aren't expressible there. */
.bc-lede { font-size: clamp(1.125rem, 1.8vw, 1.375rem); line-height: 1.45; max-width: 640px; }
.bc-lede.has-text-align-center { margin-inline: auto; }

.has-global-padding > .bc-home-hero.alignfull { margin-inline: calc(clamp(12px, 2vw, 32px) - var(--wp--style--root--padding-left)); }
.bc-home-hero {
	display: flex; flex-direction: column; align-items: center; gap: 24px; padding: clamp(48px, 7vw, 96px) clamp(16px, 4vw, 56px) clamp(56px, 7vw, 88px);
	border-radius: 32px; background-color: #a4d9f9;
	background-image: radial-gradient(circle at center, #b5e2fd 0 9px, transparent 10px); background-size: 32px 32px;
}
.bc-home-hero h1 { margin: 0; font-size: clamp(3.25rem, 8vw, 6.5rem); text-wrap: balance; }
.bc-home-hero > * { margin-block: 0; }

.bc-home-section { margin-top: clamp(64px, 8vw, 104px); }
.bc-home-section > h2, .bc-section-head h2 { margin: 0 0 28px; }
.bc-home-section > .bc-section-head h2 { margin: 0; }
.bc-section-head p { margin: 0; }
.bc-section-head a { color: var(--wp--preset--color--contrast); }

.bc-home-two { gap: 24px; align-items: stretch; }
.bc-home-two .bc-panel { margin: 0; border-radius: 28px; }
.bc-panel h2 { margin: 0 0 24px; color: inherit; }
.bc-panel .bc-go a { color: #efc876; }
.bc-steps--ink { gap: 18px; margin-bottom: 28px; }
.bc-steps--ink li { min-height: 40px; padding: 6px 0 0 60px; background: none; border: 0; border-radius: 0; font-size: 1.125rem; }
.bc-steps--ink li::before { left: 0; top: 0; width: 40px; height: 40px; border-radius: 10px; color: var(--wp--preset--color--contrast); font-size: 1.25rem; }

.bc-worldmap { position: relative; min-height: 420px; margin: 0; overflow: hidden; border: 3px solid var(--wp--preset--color--contrast); border-radius: 28px; background: var(--wp--preset--color--tertiary); }
.bc-worldmap .wp-block-buttons { position: absolute; z-index: 500; left: 24px; bottom: 24px; margin: 0; }

.bc-owner { padding: clamp(28px, 4vw, 48px); border: 3px solid var(--wp--preset--color--contrast); border-radius: 28px; box-shadow: 0 6px 0 var(--wp--preset--color--contrast); }
.bc-owner h2 { margin: 0 0 12px; }
.bc-owner p { max-width: 720px; margin: 0 0 24px; font-size: 1.125rem; }

.bc-pitch { margin-top: clamp(48px, 6vw, 72px); padding: clamp(24px, 4vw, 40px); gap: 24px; border: 3px dashed #b4bed2; border-radius: 24px; }
.bc-pitch__text { flex: 1 1 420px; }
.bc-pitch h2 { margin: 0 0 8px; }
.bc-pitch p { margin: 0; }
.bc-pitch .wp-block-button__link { box-shadow: none; border-color: var(--wp--preset--color--contrast); }

/* Articles: the photo under the head, and the body text a size up. */
.bc-hero-photo { margin-top: 40px; }
.bc-hero-photo img { border-radius: 28px; }
.bc-article { margin-top: 48px; font-size: 1.1875rem; line-height: 1.65; }

@media (max-width: 781px) {
	.has-global-padding > .bc-home-hero.alignfull { margin-inline: calc(10px - var(--wp--style--root--padding-left)); }
	.bc-worldmap { min-height: 320px; }
}
