/*
Theme Name: NineOneFour26
Theme URI: https://914digital.com
Description: SoFlo Pets: a custom WordPress theme built by 914Digital.
Author: 914Digital
Author URI: https://914digital.com
Version: 1.1
License: MIT License
License URI: http://opensource.org/licenses/MIT
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--cream: #FFF6E7;
	--cream-2: #F7EBD6;
	--white: #FFFFFF;
	--navy: #103B4B;
	--navy-2: #0B2C39;
	--ink: #24414D;
	--muted: #5C6F77;
	--coral: #EF5A3A;      /* logo, accents */
	--coral-btn: #C9442A;  /* buttons: passes contrast with white text */
	--teal: #0A7A7B;
	--teal-light: #8FD8CF;
	--yellow: #FFC13D;
	--mint: #CFEDE6;
	--butter: #FFE3A9;
	--peach: #FFD6CC;
	--lavender: #E4DDF3;
	--line: #EADFCB;
	--radius: 18px;
	--radius-sm: 12px;
	--shadow: 0 6px 24px rgba(16, 59, 75, .07);
	--font-head: 'Fredoka', 'Nunito', system-ui, sans-serif;
	--font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ==========================================================================
   Base
   ========================================================================== */
body {
	background: var(--cream);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.6;
	scroll-behavior: smooth;
}
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	color: var(--navy);
	font-weight: 700;
	line-height: 1.12;
	text-wrap: balance;
}
a { color: var(--teal); }
a:hover { color: var(--navy); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }
.skip-link:focus { position: absolute; top: 8px; left: 8px; z-index: 2000; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; }
.container--narrow { max-width: 820px; }

.eyebrow {
	font-family: var(--font-body);
	font-weight: 800;
	font-size: .75rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--teal);
	margin-bottom: .75rem;
}
.eyebrow--coral { color: var(--coral-btn); }

/* Pastel tones */
.tone-mint { background: var(--mint); color: #5FB3A7; }
.tone-butter { background: var(--butter); color: #D9A441; }
.tone-peach { background: var(--peach); color: #E58C78; }
.tone-lavender { background: var(--lavender); color: #A396C9; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn { font-family: var(--font-body); font-weight: 800; border-radius: 999px; padding: .7rem 1.4rem; }
.btn-sfp { background: var(--coral-btn); border: 2px solid var(--coral-btn); color: #fff; }
.btn-sfp:hover, .btn-sfp:focus { background: #A9381F; border-color: #A9381F; color: #fff; }
.btn-navy { background: var(--navy); border: 2px solid var(--navy); color: #fff; }
.btn-navy:hover, .btn-navy:focus { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.btn-outline-sfp { background: transparent; border: 2px solid var(--navy); color: var(--navy); }
.btn-outline-sfp:hover, .btn-outline-sfp:focus { background: var(--navy); color: #fff; }
.btn.disabled { opacity: .55; }

/* ==========================================================================
   Logo
   ========================================================================== */
.sfp-logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.sfp-logo .logo-mark { width: 46px; height: 46px; flex: none; }
.sfp-logo__type { display: flex; flex-direction: column; line-height: 1; }
.sfp-logo__word { font-family: var(--font-head); font-weight: 700; font-size: 1.7rem; letter-spacing: -.01em; }
.sfp-logo__word .so { color: var(--navy); }
.sfp-logo__word .flo { color: var(--coral); }
.sfp-logo__pets { font-family: var(--font-body); font-weight: 800; font-size: .62rem; letter-spacing: .42em; text-transform: uppercase; color: var(--teal); margin-top: .2rem; padding-left: .1em; }
.sfp-logo--dark .so { color: #fff; }
.sfp-logo--dark .flo { color: var(--yellow); }
.sfp-logo--dark .sfp-logo__pets { color: var(--teal-light); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { background: var(--cream); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1030; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header .navbar { padding: .7rem 0; }
.site-header .navbar-brand { margin-right: 1.5rem; padding: 0; }
.site-header .navbar-nav { gap: .25rem; align-items: center; }
.site-header .nav-link { font-family: var(--font-body); font-weight: 800; color: var(--navy); font-size: .95rem; padding: .5rem .85rem !important; border-radius: 999px; }
.site-header .nav-link:hover, .site-header .nav-link.active { color: var(--coral-btn); }
/* Menu item with the CSS class "nav-pill" (set in Appearance > Menus) becomes the orange pill */
.site-header .nav-pill > .nav-link { background: var(--coral-btn); color: #fff; padding: .5rem 1.25rem !important; }
.site-header .nav-pill > .nav-link:hover, .site-header .nav-pill > .nav-link.active { background: #A9381F; color: #fff; }
.site-header .dropdown-menu { border: 0; border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: .5rem; }
.site-header .dropdown-item { border-radius: 8px; font-weight: 700; color: var(--navy); }

.header-icons { display: flex; align-items: center; gap: .15rem; margin-left: auto; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--navy); font-size: 1.05rem; text-decoration: none; }
.icon-btn:hover { background: var(--cream-2); color: var(--coral-btn); }
.cart-count, .fav-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--coral-btn); color: #fff; font-size: .65rem; font-weight: 800; line-height: 18px; text-align: center; }
.cart-count.is-empty, .fav-count.is-empty { display: none; }

.navbar-toggler { border: 0; padding: .5rem; margin-left: .25rem; box-shadow: none !important; }
.navbar-toggler .icon-bar { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.navbar-toggler .icon-bar + .icon-bar { margin-top: 5px; }
.navbar-toggler:not(.collapsed) .top-bar { transform: translateY(7px) rotate(45deg); }
.navbar-toggler:not(.collapsed) .middle-bar { opacity: 0; }
.navbar-toggler:not(.collapsed) .bottom-bar { transform: translateY(-7px) rotate(-45deg); }

.header-search { background: var(--white); border-top: 1px solid var(--line); }
.header-search .container { padding-top: 1rem; padding-bottom: 1rem; }
.sfp-search { display: flex; gap: .5rem; max-width: 620px; margin: 0 auto; }
.sfp-search .form-control { border-radius: 999px; padding: .65rem 1.1rem; border-color: var(--line); }

@media (max-width: 479.98px) {
	.site-header .navbar-brand { margin-right: .5rem; }
	.sfp-logo .logo-mark { width: 38px; height: 38px; }
	.sfp-logo__word { font-size: 1.4rem; }
	.sfp-logo__pets { font-size: .55rem; }
	.icon-btn { width: 34px; height: 34px; font-size: .98rem; }
	.header-icons .icon-account { display: none; }
}
@media (max-width: 991.98px) {
	.site-header .navbar-collapse { order: 3; width: 100%; }
	.site-header .navbar-nav { align-items: stretch; padding: .75rem 0 .25rem; }
	.site-header .nav-pill > .nav-link { text-align: center; }
}

/* ==========================================================================
   Home: hero
   ========================================================================== */
.home-hero { padding: 4rem 0 3.5rem; }
.hero-title { font-size: clamp(2.3rem, 5vw, 3.4rem); margin-bottom: 1.1rem; }
.hero-text { font-size: 1.1rem; color: var(--muted); max-width: 34rem; margin-bottom: 1.75rem; }
.hero-media { position: relative; border-radius: 28px; aspect-ratio: 1 / 1; max-height: 540px; width: 100%; display: flex; align-items: center; justify-content: center; overflow: visible; }
.hero-media .hero-img { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; }
.hero-paw { width: 22%; opacity: .9; }
.hero-badge { position: absolute; left: -1rem; bottom: 2.5rem; background: var(--yellow); color: var(--navy); font-weight: 800; font-size: .85rem; padding: .6rem 1rem; border-radius: 12px; box-shadow: var(--shadow); }
@media (max-width: 991.98px) { .hero-badge { left: 1rem; } }

/* Adopt search form */
.adopt-search { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem; max-width: 34rem; }
.adopt-search__fields { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .75rem; margin-bottom: .9rem; }
.adopt-search label { display: block; font-size: .72rem; font-weight: 800; color: var(--navy); margin-bottom: .3rem; }
.adopt-search .form-select, .adopt-search .form-control { border-radius: 10px; border-color: var(--line); font-size: .92rem; padding-top: .55rem; padding-bottom: .55rem; }
.adopt-search--compact { max-width: none; display: flex; gap: .75rem; align-items: flex-end; }
.adopt-search--compact .adopt-search__fields { flex: 1; margin: 0; }
.adopt-search--compact .btn { width: auto !important; white-space: nowrap; }
@media (max-width: 575.98px) {
	.adopt-search__fields { grid-template-columns: 1fr 1fr; }
	.adopt-search__fields .field:last-child { grid-column: 1 / -1; }
	.adopt-search--compact { display: block; }
	.adopt-search--compact .adopt-search__fields { margin-bottom: .9rem; }
	.adopt-search--compact .btn { width: 100% !important; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.home-section, .page-section { padding: 3.5rem 0; }
.section-title { font-size: clamp(1.6rem, 3vw, 2rem); margin-bottom: 1.5rem; }
.section-title--sm { font-size: 1.4rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.5rem; }
.section-head .section-title { margin: 0; }
.section-link { font-weight: 800; color: var(--teal); text-underline-offset: 3px; white-space: nowrap; }

/* Species */
.species-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.species-card { background: var(--white); border-radius: var(--radius); padding: 1.6rem 1rem 1.3rem; text-align: center; text-decoration: none; box-shadow: var(--shadow); transition: transform .15s; }
.species-card:hover { transform: translateY(-3px); }
.species-card__icon { display: inline-flex; width: 64px; height: 64px; border-radius: 50%; align-items: center; justify-content: center; margin-bottom: .8rem; }
.species-card__icon svg { width: 28px; }
.species-card:nth-child(1) .species-card__icon, .species-card:nth-child(3) .species-card__icon { color: var(--coral-btn); }
.species-card:nth-child(2) .species-card__icon, .species-card:nth-child(5) .species-card__icon { color: var(--teal); }
.species-card:nth-child(4) .species-card__icon { color: var(--navy); }
.species-card__label { display: block; font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.15rem; }
.species-card__count { display: block; font-size: .8rem; color: var(--muted); }
@media (max-width: 991.98px) { .species-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575.98px) { .species-grid { grid-template-columns: repeat(2, 1fr); } }

/* Pet cards */
.pet-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
@media (max-width: 991.98px) { .pet-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479.98px) { .pet-grid { grid-template-columns: 1fr; } }
.pet-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.pet-card__photo { position: relative; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.pet-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.pet-card__paw { width: 26%; opacity: .75; }
.fav-btn { position: absolute; top: .65rem; right: .65rem; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--white); color: var(--coral-btn); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.fav-btn[aria-pressed="true"] i::before { font-weight: 900; }
.fav-btn[aria-pressed="true"] { background: var(--coral-btn); color: #fff; }
.pet-card__body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.pet-card__name { font-size: 1.35rem; margin: 0 0 .2rem; }
.pet-card__meta { font-size: .85rem; color: var(--ink); margin: 0; }
.pet-card__where { font-size: .8rem; color: var(--muted); margin: .1rem 0 0; }
.pet-card__tags { margin: .6rem 0 1rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.pet-card__body .btn { margin-top: auto; padding: .5rem 1rem; }
.tag { display: inline-block; font-size: .72rem; font-weight: 800; color: var(--navy) !important; padding: .2rem .6rem; border-radius: 999px; }

/* Steps */
.home-steps { background: var(--teal); padding: 3.5rem 0; color: #fff; }
.home-steps .section-title { color: #fff; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step__num { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); color: var(--navy); font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; align-items: center; justify-content: center; margin-bottom: .8rem; }
.step__title { color: #fff; font-size: 1.25rem; margin-bottom: .4rem; }
.step__text { color: rgba(255,255,255,.88); font-size: .95rem; margin: 0; max-width: 22rem; }
@media (max-width: 767.98px) { .steps { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Starter kit banner */
.kit-banner { background: var(--butter); border-radius: 24px; padding: 2rem; display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center; margin-bottom: 1.1rem; }
.kit-banner__title { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .5rem; }
.kit-banner__text { color: var(--ink); margin-bottom: 1.2rem; max-width: 30rem; }
.kit-banner__media { background: var(--white); border-radius: var(--radius); min-height: 190px; display: flex; align-items: center; justify-content: center; overflow: hidden; color: #E5B85C; }
.kit-banner__media img { width: 100%; height: 100%; object-fit: cover; }
.kit-paw { width: 64px; }
@media (max-width: 767.98px) { .kit-banner { grid-template-columns: 1fr; padding: 1.5rem; } }

/* Shop category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.cat-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; transition: transform .15s; }
.cat-card:hover { transform: translateY(-3px); }
.cat-card__media { display: flex; aspect-ratio: 16 / 10; align-items: center; justify-content: center; }
.cat-card__media img { width: 100%; height: 100%; object-fit: cover; }
.cat-card__media svg { width: 34px; opacity: .7; }
.cat-card__label { display: block; padding: .75rem 1rem; font-family: var(--font-head); font-weight: 700; color: var(--navy); }
@media (max-width: 991.98px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575.98px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }

/* Happy tails */
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.story-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; display: flex; flex-direction: column; }
.story-card__media { display: flex; aspect-ratio: 16 / 9; align-items: center; justify-content: center; }
.story-card__media img { width: 100%; height: 100%; object-fit: cover; }
.story-card__media svg { width: 40px; opacity: .7; }
.story-card__body { padding: 1rem 1.2rem 1.25rem; display: flex; flex-direction: column; gap: .4rem; }
.story-card__text { color: var(--ink); font-size: .95rem; }
.story-card__who { font-weight: 800; color: var(--teal); font-size: .9rem; }
@media (max-width: 767.98px) { .story-grid { grid-template-columns: 1fr; } }

/* Partners */
.partner-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.partner-logo { border: 2px dashed var(--line); border-radius: var(--radius-sm); min-height: 84px; display: flex; align-items: center; justify-content: center; padding: .75rem; text-align: center; font-weight: 800; color: var(--navy); font-size: .85rem; text-decoration: none; background: rgba(255,255,255,.4); }
.partner-logo img { max-height: 56px; width: auto; object-fit: contain; }
@media (max-width: 767.98px) { .partner-grid { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-hero { padding: 3.5rem 0 2rem; }
.page-hero--plain { padding-bottom: 1.5rem; }
.page-title { font-size: clamp(2rem, 4.5vw, 2.9rem); margin-bottom: 1.25rem; }
.entry-content { max-width: 46rem; font-size: 1.05rem; }
.entry-content h2 { font-size: 1.6rem; margin: 2rem 0 .75rem; }
.entry-content h3 { font-size: 1.25rem; margin: 1.5rem 0 .5rem; }
.single-media { margin-bottom: 1.5rem; border-radius: var(--radius); overflow: hidden; }
.back-link { display: inline-flex; gap: .4rem; align-items: center; font-weight: 800; text-decoration: none; margin-bottom: 1.5rem; }
.demo-note { margin-top: 1rem; font-size: .9rem; color: var(--muted); }
.small-note { font-size: .85rem; color: var(--muted); margin-top: .6rem; }
.pager { display: flex; gap: .75rem; justify-content: center; margin-top: 2rem; }
.empty-state { text-align: center; max-width: 30rem; margin: 2rem auto; color: var(--muted); }
.empty-state svg { width: 56px; color: var(--teal); margin-bottom: 1rem; }

/* Pet profile */
.pet-profile__photo { position: relative; border-radius: 24px; aspect-ratio: 9 / 7; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pet-profile__photo img { width: 100%; height: 100%; object-fit: cover; }
.pet-facts { display: grid; grid-template-columns: repeat(4, auto); gap: .5rem 1.75rem; justify-content: start; margin-bottom: 1rem; }
.pet-facts dt { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pet-facts dd { margin: 0; font-weight: 700; color: var(--navy); }
.pet-profile__desc { font-size: 1.05rem; margin: 1rem 0 1.25rem; }
.pet-profile__org { display: flex; gap: .8rem; align-items: center; background: var(--white); border-radius: var(--radius-sm); padding: .9rem 1.1rem; margin-bottom: 1.25rem; box-shadow: var(--shadow); }
.pet-profile__org i { color: var(--teal); font-size: 1.3rem; }
.pet-profile__org strong { display: block; color: var(--navy); }
.pet-profile__org span { font-size: .9rem; color: var(--muted); }
@media (max-width: 575.98px) { .pet-facts { grid-template-columns: repeat(2, auto); } }

/* Gravity Forms */
.gform_wrapper.gravity-theme input[type=text], .gform_wrapper.gravity-theme input[type=email], .gform_wrapper.gravity-theme input[type=tel], .gform_wrapper.gravity-theme textarea, .gform_wrapper.gravity-theme select { border-radius: 10px; border: 1px solid var(--line); padding: .65rem .9rem; background: #fff; }
.gform_wrapper.gravity-theme .gfield_label { font-weight: 800; color: var(--navy); }
.gform_wrapper.gravity-theme .gform_footer input[type=submit], .gform_wrapper.gravity-theme .gform_footer button { background: var(--coral-btn); color: #fff; border: 0; border-radius: 999px; padding: .75rem 1.6rem; font-weight: 800; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy); color: rgba(255,255,255,.85); padding: 3.25rem 0 1.5rem; margin-top: 2rem; }
.footer-brand { display: inline-block; margin-bottom: 1rem; }
.footer-tagline { max-width: 22rem; font-size: .95rem; }
.footer-heading { font-family: var(--font-body); font-weight: 800; color: var(--yellow); font-size: .95rem; margin-bottom: .75rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .45rem; }
.footer-links a { color: #fff; font-size: .92rem; text-underline-offset: 3px; }
.footer-links a:hover { color: var(--yellow); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; }
.footer-bottom .credit { display: inline-flex; align-items: center; gap: .5rem; }
.footer-bottom .credit img { display: block; }

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
