/*
Theme Name: 9Fresh
Theme URI: https://9fresh.co
Author: 9Fresh
Description: Block theme for 9Fresh and The Commons. Colors, fonts and layout live in theme.json; everything else is edited with normal blocks and patterns.
Version: 1.9.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: nine-fresh
*/

html { scroll-behavior: smooth; }
a { text-underline-offset: 0.2em; }
.wp-block-navigation a { text-decoration: none; }
.wp-block-button__link { text-decoration: none; }
.nf-pill .wp-block-button__link { border-radius: 999px; }

/* Cards and rounded images */
.nf-round { border-radius: 24px; overflow: hidden; }
.nf-round img { border-radius: 24px; }
.nf-card { border-radius: 32px; }

/* Everest Forms: match the brand */
.everest-forms .evf-field-label label,
.everest-forms .evf-field-label .evf-label { font-family: var(--wp--preset--font-family--sora); font-weight: 600; font-size: 13px; color: var(--wp--preset--color--midnight); }
.everest-forms input[type="text"],
.everest-forms input[type="email"],
.everest-forms select,
.everest-forms textarea { border: 1px solid #6B7A8F; border-radius: 10px; padding: 12px 14px; font-family: var(--wp--preset--font-family--cardo); font-size: 18px; color: var(--wp--preset--color--midnight); background: #fff; width: 100%; box-sizing: border-box; }
.everest-forms button[type="submit"],
.everest-forms .evf-submit { background: var(--wp--preset--color--magenta) !important; color: #fff !important; border: 0 !important; border-radius: 999px !important; font-family: var(--wp--preset--font-family--sora); font-weight: 700; font-size: 19px; padding: 16px 32px !important; cursor: pointer; }

/* Header on small screens */
@media (max-width: 781px) {
  .nf-header-cta { display: none; }
}

/* ---------- Brand helper classes (used by patterns) ---------- */
.nf-eyebrow { font-family: var(--wp--preset--font-family--sora); font-weight: 700; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; margin: 0; }
.nf-chip { display: inline-block; width: fit-content; background: var(--wp--preset--color--lime); color: var(--wp--preset--color--midnight); font-family: var(--wp--preset--font-family--sora); font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; padding: 8px 16px; border-radius: 999px; margin: 0; }
.nf-badge { display: inline-block; width: fit-content; background: #fff; color: var(--wp--preset--color--midnight); border: 1px solid var(--wp--preset--color--cyan); font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: 999px; margin: 0; }
.nf-tagline { display: flex; align-items: center; gap: 16px; font-family: var(--wp--preset--font-family--sora); font-weight: 700; font-size: clamp(1.5rem, 3.2vw, 2.625rem); letter-spacing: -0.025em; line-height: 1.1; color: var(--wp--preset--color--cobalt); margin: 0; }
.nf-tagline::before { content: ""; width: 16px; height: 16px; border-radius: 999px; background: var(--wp--preset--color--magenta); flex-shrink: 0; }
.nf-top-cyan { border-top: 4px solid var(--wp--preset--color--cyan); padding-top: 18px; }
.nf-top-cobalt { border-top: 4px solid var(--wp--preset--color--cobalt); padding-top: 18px; }
.nf-top-magenta { border-top: 4px solid var(--wp--preset--color--magenta); padding-top: 18px; }
.nf-top-lime { border-top: 4px solid var(--wp--preset--color--lime); padding-top: 18px; }
.nf-stat-num { font-family: var(--wp--preset--font-family--sora); font-weight: 800; font-size: 34px; line-height: 1.1; color: var(--wp--preset--color--lime); margin: 0; }
.nf-stat-label { font-size: 14px; margin: 0; }
.nf-sora { font-family: var(--wp--preset--font-family--sora); font-weight: 700; letter-spacing: -0.02em; }
.nf-squares { display: inline-flex; gap: 5px; vertical-align: middle; }
.nf-squares i { width: 14px; height: 14px; display: block; }
.nf-squares i:nth-child(1) { background: var(--wp--preset--color--cyan); }
.nf-squares i:nth-child(2) { background: var(--wp--preset--color--lime); }
.nf-squares i:nth-child(3) { background: var(--wp--preset--color--cobalt); }
.nf-brand { font-family: var(--wp--preset--font-family--sora); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; margin: 0; }
.nf-brand a { color: var(--wp--preset--color--midnight); text-decoration: none; }
.nf-brandtag { font-family: var(--wp--preset--font-family--sora); font-weight: 600; font-size: 14px; color: var(--wp--preset--color--cobalt); margin: 0; }
.nf-footer a { color: inherit; }
.wp-block-button.is-style-outline > .wp-block-button__link { border-width: 2px; }

/* 9Fresh version of the squares: cyan, magenta (pop), cobalt */
.nf-squares--9f i:nth-child(1) { background: var(--wp--preset--color--cyan); }
.nf-squares--9f i:nth-child(2) { background: var(--wp--preset--color--magenta); }
.nf-squares--9f i:nth-child(3) { background: var(--wp--preset--color--cobalt); }

/* Former Equine Center: coral accent */
.nf-top-coral { border-top: 4px solid var(--wp--preset--color--coral); padding-top: 18px; }
.nf-squares--eq i:nth-child(1) { background: var(--wp--preset--color--cyan); }
.nf-squares--eq i:nth-child(2) { background: var(--wp--preset--color--coral); }
.nf-squares--eq i:nth-child(3) { background: var(--wp--preset--color--cobalt); }
.nf-chip--coral { background: var(--wp--preset--color--coral); }

/* Announcement bar */
.nf-announce { text-align: center; }
.nf-announce .nf-announce-text { margin: 0; font-weight: 600; }
.nf-announce a { color: inherit; text-decoration: underline; font-weight: 700; }
