/*
Theme Name: RENZO USA
Description: An editable WordPress theme for RENZO's Sarasota–Bradenton launch.
Version: 0.1.1
Requires at least: 6.9
Requires PHP: 8.3
*/

:root {
  --rz-ink: #151817;
  --rz-paper: #f7f5ef;
  --rz-white: #fff;
  --rz-green: #c5ee72;
  --rz-green-dark: #284e1e;
  --rz-muted: #515750;
  --rz-line: #d5d9cf;
  --rz-gutter: clamp(1rem, 4.25vw, 5rem);
  --rz-width: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--rz-paper); color: var(--rz-ink); font: 1rem/1.65 system-ui, sans-serif; }
a { color: inherit; text-underline-offset: .18em; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid #357534; outline-offset: 4px; }
.rz-header :focus-visible, .rz-hero :focus-visible, .rz-footer :focus-visible { outline-color: var(--rz-green); }
.rz-skip { position: absolute; top: .5rem; left: 1rem; transform: translateY(-200%); z-index: 5; background: var(--rz-white); padding: .5rem 1rem; }
.rz-skip:focus { transform: translateY(0); }
.rz-wrap { width: min(calc(100% - 2 * var(--rz-gutter)), var(--rz-width)); margin-inline: auto; }
.rz-header { background: var(--rz-ink); color: var(--rz-white); border-bottom: 1px solid #454943; }
.rz-header .rz-wrap { display: flex; min-height: 5rem; align-items: center; justify-content: space-between; gap: 1rem; }
.rz-brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 900; letter-spacing: .08em; font-size: 1.6rem; }
.rz-brand img { max-width: 138px; max-height: 44px; object-fit: contain; }
.rz-brand-market { font-size: .7rem; font-weight: 750; color: var(--rz-green); }
.rz-nav { display: flex; align-items: center; gap: clamp(.65rem, 2vw, 2rem); }
.rz-nav ul, .rz-footer ul { display: flex; flex-wrap: wrap; gap: .75rem 1.4rem; list-style: none; margin: 0; padding: 0; }
.rz-nav li a { white-space: nowrap; text-decoration: none; font-size: .93rem; font-weight: 620; }
.rz-nav li a:hover, .rz-nav li a[aria-current=page] { text-decoration: underline; }
.rz-menu-toggle { display: none; }
.rz-button, .rz-nav .rz-button, .rz-content .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; min-height: 47px; border-radius: .45rem; padding: .65rem 1.05rem; background: var(--rz-green); color: var(--rz-ink); font-weight: 760; text-decoration: none; text-align: center; line-height: 1.3; }
.rz-button:hover, .rz-content .wp-block-button__link:hover { background: #d9fb9d; }
.rz-content .rz-button-minor .wp-block-button__link { background: transparent; color: inherit; border: 1px solid currentColor; }
.rz-content h1, .rz-content h2, .rz-content h3 { line-height: 1.06; letter-spacing: -.045em; margin: 0 0 .55em; text-wrap: balance; }
.rz-content h1 { font-size: clamp(2.55rem, 6vw, 6rem); font-weight: 820; }
.rz-content h2 { font-size: clamp(1.85rem, 4.2vw, 3.65rem); font-weight: 790; }
.rz-content h3 { font-size: clamp(1.18rem, 2.2vw, 1.55rem); font-weight: 770; }
.rz-content p { margin: 0 0 1.1rem; }
.rz-content .rz-lead { font-size: clamp(1.05rem, 1.8vw, 1.29rem); max-width: 53ch; }
.rz-content .rz-eyebrow { font-size: .78rem; font-weight: 780; text-transform: uppercase; letter-spacing: .12em; color: var(--rz-green-dark); }
.rz-content .rz-muted, .rz-content figcaption { color: var(--rz-muted); font-size: .9rem; }
.rz-hero, .rz-launch, .rz-footer { background: var(--rz-ink); color: var(--rz-white); }
.rz-hero .rz-wrap { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr); gap: clamp(1.4rem, 4vw, 4.5rem); align-items: center; padding-block: clamp(2.5rem, 7vw, 6.6rem); }
.rz-hero .rz-status, .rz-launch .rz-eyebrow { color: var(--rz-green); }
.rz-hero .rz-muted, .rz-hero figcaption { color: #dbdfd6; }
.rz-status { font-size: .83rem; font-weight: 760; padding: 0; }
.rz-hero figure { margin: 0; }
.rz-hero img { width: 100%; aspect-ratio: 1.12; object-fit: cover; object-position: center 62%; border-radius: .8rem; }
.rz-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: 1rem; }
.rz-content .rz-actions .wp-block-buttons, .rz-content .rz-actions p { margin: 0; }
.rz-section { padding-block: clamp(2.7rem, 6vw, 5.5rem); }
.rz-section + .rz-section:not(.rz-launch):not(.rz-end) { border-top: 1px solid var(--rz-line); }
.rz-section.rz-light { background: var(--rz-white); }
.rz-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rz-grid + p, .rz-grid + .wp-block-buttons { margin-top: 1.15rem; }
.rz-grid.rz-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rz-card { padding: clamp(1rem, 2.3vw, 1.75rem); border-radius: .55rem; border: 1px solid var(--rz-line); }
.rz-card p:last-child, .rz-section p:last-child { margin-bottom: 0; }
.rz-launch .rz-card { border-color: #5b6359; }
.rz-launch .rz-card p { color: #dee4d9; }
.rz-split { display: grid; grid-template-columns: repeat(2,minmax(0, 1fr)); gap: clamp(1.2rem, 4vw, 4rem); align-items: center; }
.rz-gallery figure, .rz-split figure { margin: 0; }
.rz-gallery img, .rz-split img { border-radius: .55rem; width: 100%; }
.rz-gallery img { aspect-ratio: 4/3; object-fit: cover; }
.rz-end { background: var(--rz-green); }
.rz-end .rz-button { background: var(--rz-ink); color: var(--rz-white); }
.rz-end .rz-button:hover { background: #354333; }
.rz-faq { max-width: 760px; }
.rz-faq details { border-top: 1px solid var(--rz-line); }
.rz-faq summary { padding: 1rem .25rem; cursor: pointer; font-weight: 740; }
.rz-faq details p { padding-inline-start: .25rem; }
.rz-local { align-items: start; grid-template-columns: minmax(0,.78fr) minmax(0,1.22fr); }
.rz-form { background: var(--rz-white); border: 1px solid var(--rz-line); border-radius: .65rem; padding: clamp(1rem, 3.5vw, 2.3rem); }
.rz-form input:not([type=checkbox]):not([type=radio]), .rz-form textarea, .rz-form select { max-width: 100%; }
.rz-placeholder { border-left: .25rem solid var(--rz-green-dark); padding-left: .8rem; }
.rz-footer { border-top: 1px solid #454943; padding-block: 2.3rem; }
.rz-footer .rz-wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.2rem; }
.rz-footer p { margin: .4rem 0 0; color: #d0d6cc; }

@media (max-width: 920px) {
  .rz-grid.rz-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rz-header .rz-wrap { flex-wrap: wrap; }
  .rz-js .rz-menu-toggle { display: inline-flex; align-items: center; min-height: 44px; background: transparent; color: inherit; border: 1px solid #778075; border-radius: .4rem; padding: .4rem .7rem; font: inherit; cursor: pointer; }
  .rz-nav { width: 100%; padding-bottom: 1rem; flex-wrap: wrap; }
  .rz-js .rz-nav:not(.rz-open) { display: none; }
}
@media (max-width: 700px) {
  .rz-hero .rz-wrap, .rz-split, .rz-local, .rz-grid { grid-template-columns: minmax(0, 1fr); }
  .rz-gallery img { aspect-ratio: 16/10; }
}
@media (max-width: 420px) {
  .rz-grid.rz-four { grid-template-columns: minmax(0, 1fr); }
}

/* Match the grid and action layouts when core blocks add an inner container. */
.rz-hero .rz-wrap > .wp-block-group__inner-container,
.rz-grid > .wp-block-group__inner-container,
.rz-split > .wp-block-group__inner-container,
.rz-actions > .wp-block-group__inner-container {
    display: contents;
}
