/*
Theme Name: Newfoundland
Theme URI: https://nflconsulting.com
Author: Newfoundland Consulting
Description: Block theme for Newfoundland Consulting. Brand palette, Archivo + Inter, editable section patterns.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: newfoundland
*/

/* Display headings: wide Archivo, uppercase */
.is-style-nfl-display,
h1.wp-block-heading.is-style-nfl-display,
h2.wp-block-heading.is-style-nfl-display {
  font-stretch: 125%;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: -0.01em;
}
h1, h2, h3, h4 { font-stretch: 112%; }

/* Eyebrow label */
.is-style-nfl-eyebrow {
  font-size: 13px !important;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wp--preset--color--brand);
}
.has-brand-background-color .is-style-nfl-eyebrow,
.has-black-background-color .is-style-nfl-eyebrow { color: #B9C1EE; }

/* Card */
.is-style-nfl-card {
  border: 1px solid var(--wp--preset--color--line);
  padding: 32px 28px !important;
  height: 100%;
  box-sizing: border-box;
}

/* Square-bullet list */
ul.is-style-nfl-squares { list-style: none; padding-left: 0; border-bottom: 1px solid var(--wp--preset--color--line); max-width: 860px; }
ul.is-style-nfl-squares > li {
  position: relative; padding: 18px 0 18px 28px; border-top: 1px solid var(--wp--preset--color--line);
  font-size: 18px; line-height: 1.55;
}
ul.is-style-nfl-squares > li::before {
  content: ""; position: absolute; left: 0; top: 27px; width: 10px; height: 10px; background: var(--wp--preset--color--brand);
}

/* Step / numbered block with top rule */
.is-style-nfl-step { border-top: 2px solid currentColor; padding-top: 20px !important; }

/* Placeholder box for media still to come */
.is-style-nfl-placeholder {
  background: var(--wp--preset--color--light);
  border: 1px dashed #B8BDCC;
  color: var(--wp--preset--color--muted);
  font-size: 14px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  aspect-ratio: 16 / 9;
}

/* Outline button on dark backgrounds */
.wp-block-button.is-style-outline .wp-block-button__link { border-width: 1px; }

/* Header nav */
.nfl-header .wp-block-navigation a { text-decoration: none; }
.nfl-header .wp-block-navigation .current-menu-item > a { color: var(--wp--preset--color--brand); }

/* Embeds full width */
.wp-block-embed iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; }

/* Blog cards */
.nfl-post-card .wp-block-post-featured-image img { aspect-ratio: 16 / 9; object-fit: cover; }

/* Layout fixes */
.wp-site-blocks > * { margin-block-start: 0 !important; }
.is-style-nfl-placeholder { width: 100%; align-self: stretch; box-sizing: border-box; padding: 12px; }
.is-style-nfl-placeholder p { margin: 0; }
.is-layout-flex.is-vertical > .is-style-nfl-placeholder { align-self: stretch; }
.wp-block-separator.is-style-wide { width: 100%; }

/* Mobile */
@media (max-width: 781px) {
  .is-layout-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)) !important; }
  .is-style-nfl-display { font-stretch: 100%; font-size: clamp(28px, 8vw, 48px) !important; }
  .nfl-header .wp-block-site-logo img { width: 110px !important; }
}
@media (max-width: 781px) {
  .is-layout-grid:has(> .is-style-nfl-placeholder:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
