/*
Theme Name: Small Business Master
Description: A clean, fast block theme for small business websites. No page builder. Two design options: Appearance > Editor > Styles > Browse styles.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: sbm
*/

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
img { height: auto; max-width: 100%; }
.wp-site-blocks > * + * { margin-block-start: 0; }
main > * + * { margin-block-start: 0; }
.section { padding-block: clamp(3rem, 7vw, 6rem); padding-inline: clamp(1rem, 3vw, 3rem); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--wp--preset--color--white); border-bottom: 1px solid rgba(0, 0, 0, .08); }
.admin-bar .site-header { top: 32px; }
.site-header__inner { max-width: 1440px; margin-inline: auto; padding: .8rem clamp(1rem, 3vw, 3rem); gap: 1.5rem; }
.site-header .wp-block-site-title a { text-decoration: none; color: var(--wp--preset--color--dark); }
.site-header .wp-block-navigation a { text-decoration: none; color: var(--wp--preset--color--dark); font-weight: 600; }
.site-header .wp-block-navigation a:hover { color: var(--wp--preset--color--primary); }
.site-header .wp-block-button__link { padding: .55em 1.25em; font-size: .9375rem; }

/* Home */
.hero { padding-block: clamp(2.5rem, 7vw, 6rem); padding-inline: clamp(1rem, 3vw, 3rem); }
.hero__cols { align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.hero__eyebrow { margin: 0 0 .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8125rem; color: var(--wp--preset--color--primary); }
.hero h1 { margin: 0 0 1.25rem; font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.05; }
.hero p.hero__lede { max-width: 38ch; font-size: 1.1875rem; color: var(--wp--preset--color--muted); margin-bottom: 2rem; }
.hero__media { margin: 0; }
.hero__media img, .split__media img { display: block; width: 100%; border-radius: 16px; }
.trust { padding-block: 1.75rem; padding-inline: clamp(1rem, 3vw, 3rem); }
.trust p { margin: 0; font-weight: 700; text-align: center; }
.trust span { display: block; font-weight: 400; font-size: .9375rem; opacity: .8; }
.section-heading { margin: 0 0 .5rem; }
.section-lede { margin: 0 0 2.5rem; color: var(--wp--preset--color--muted); max-width: 52ch; }
.card { background: var(--wp--preset--color--white); border: 1px solid rgba(0, 0, 0, .08); border-radius: 14px; padding: 1.75rem; height: 100%; box-sizing: border-box; }
.card h3 { margin: 0 0 .5rem; font-size: 1.375rem; }
.card p { margin: 0 0 1rem; }
.card p:last-child { margin-bottom: 0; }
.cards { gap: 1.5rem; align-items: stretch; }
.split { align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.tick-list { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.tick-list li { position: relative; padding-left: 1.75rem; margin-bottom: .6rem; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: .9rem; height: .5rem; border-left: 3px solid var(--wp--preset--color--primary); border-bottom: 3px solid var(--wp--preset--color--primary); transform: rotate(-45deg); }
.quote { border-left: 4px solid var(--wp--preset--color--accent); padding-left: 1.25rem; }
.quote p { margin: 0 0 .75rem; font-size: 1.1875rem; }
.quote cite { font-style: normal; font-weight: 700; font-size: .9375rem; }
.cta { text-align: center; }
.cta h2 { margin: 0 0 .75rem; }
.cta p { margin: 0 auto 1.75rem; max-width: 46ch; }
.cta .wp-block-button__link { background: var(--wp--preset--color--white); color: var(--wp--preset--color--dark); }
.cta .wp-block-button__link:hover { background: var(--wp--preset--color--accent); }

/* Inner pages */
.page-hero { padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 3vw, 3rem); }
.page-hero h1 { margin: 0; font-size: clamp(2rem, 4.5vw, 3.25rem); }
.entry { --gutter: clamp(1rem, 3vw, 3rem); --edge: max(var(--gutter), calc((100% - 1440px) / 2)); }
.entry > :not(.alignfull) { box-sizing: border-box; padding-inline: var(--edge) var(--gutter); max-width: calc(46rem + var(--edge) + var(--gutter)); margin-inline: 0; }
.entry > :not(.alignfull):first-child { margin-top: clamp(2rem, 5vw, 3.5rem); }
.entry > :not(.alignfull):last-child { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.entry > .alignfull { margin-block: 0; }

/* Contact */
.contact-split { align-items: flex-start; gap: clamp(2rem, 5vw, 4rem); }
.contact-details { background: var(--wp--preset--color--light); padding: clamp(1.5rem, 3vw, 2.25rem); border-top: 4px solid var(--wp--preset--color--accent); border-radius: 0 0 10px 10px; }
.contact-details h3 { font-size: 1.0625rem; margin: 0 0 .25rem; }
.contact-details p { margin: 0 0 1.25rem; }
.contact-details p:last-child { margin-bottom: 0; }
.contact-details a { font-weight: 700; }
.contact-map { margin: 0; }
.contact-map iframe { display: block; width: 100%; height: clamp(18rem, 32vw, 26rem); border: 0; }
.contact-form { margin-block: 1.5rem 0; }
.contact-form p { margin: 0 0 1rem; }
.contact-form label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: .3rem; }
.contact-form label span { font-weight: 400; opacity: .7; }
.contact-form input, .contact-form textarea { box-sizing: border-box; width: 100%; font: inherit; font-size: .9375rem; color: var(--wp--preset--color--dark); background: #fff; border: 2px solid var(--wp--preset--color--dark); border-radius: 6px; padding: .6rem .9rem; }
.contact-form textarea { height: 8.5rem; resize: vertical; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 2px; }
.contact-form button { cursor: pointer; border: 0; }
.contact-form__hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.contact-note { padding: 1rem 1.25rem; border-radius: 8px; margin-block: 1.5rem; border-left: 6px solid var(--wp--preset--color--primary); background: var(--wp--preset--color--light); }
.contact-note--error { border-left-color: #b3261e; }

/* Footer */
.site-footer { background: var(--wp--preset--color--dark); color: var(--wp--preset--color--white); }
.site-footer a { color: var(--wp--preset--color--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: .3em; }
.site-footer p { margin: 0; }
.site-footer .footer-heading { font-weight: 700; margin-bottom: .6rem; }
.footer-legal { font-size: .8125rem; opacity: .8; }

/* Focus */
:where(a, button, input, select, textarea):focus-visible { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 3px; }
@media (max-width: 781px) { .admin-bar .site-header { top: 46px; } }

/* Extra page types */
.gallery-img { margin: 0; }
.gallery-img img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.team-photo { margin: 0 0 .75rem; }
.team-photo img { display: block; width: 140px; height: 140px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.wp-block-details { border-bottom: 1px solid rgba(0, 0, 0, .12); padding: .9rem 0; }
.wp-block-details summary { font-weight: 700; cursor: pointer; font-size: 1.125rem; }
.wp-block-details p { margin: .6rem 0 0; }
.faq-list { max-width: 50rem; }
