/*
Theme Name: Sugar Trail Pro
Author: WP Build Automation
Description: A standalone WordPress block theme for lifestyle and wellness sites focused on sweet balance, craving reset, kitchen rhythm and everyday energy.
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 7.4
Version: 0.1.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sugar-trail-pro
Tags: block-theme, full-site-editing, custom-logo, blog, services, lifestyle, wellness, one-column, two-columns, wide-blocks
*/

:root {
  --sgr-bg: #fffdf7;
  --sgr-paper: #ffffff;
  --sgr-ink: #1b1a17;
  --sgr-text: #4d4840;
  --sgr-muted: #756e63;
  --sgr-berry: #e72f76;
  --sgr-plum: #6d3ccf;
  --sgr-mint: #12a889;
  --sgr-lime: #b8df38;
  --sgr-sun: #ffd84d;
  --sgr-blue: #2454d6;
  --sgr-line: rgba(27, 26, 23, 0.16);
  --sgr-shadow: 0 18px 42px rgba(42, 33, 19, 0.12);
  --sgr-radius: 6px;
  --sgr-max: 1180px;
  --sgr-ease: cubic-bezier(.2,.8,.2,1);
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--sgr-text);
  background:
    linear-gradient(90deg, rgba(231,47,118,.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(18,168,137,.05) 1px, transparent 1px),
    var(--sgr-bg);
  background-size: 44px 44px;
}
body.sgr-mode-dark {
  --sgr-bg: #11120f;
  --sgr-paper: #1b1e19;
  --sgr-ink: #fffdf5;
  --sgr-text: #ebe5d8;
  --sgr-muted: #bbb2a2;
  --sgr-berry: #ff6aa3;
  --sgr-plum: #ac8bff;
  --sgr-mint: #40e0bf;
  --sgr-lime: #d8f66a;
  --sgr-sun: #ffe27a;
  --sgr-blue: #7fa0ff;
  --sgr-line: rgba(255,253,245,.18);
  --sgr-shadow: 0 18px 50px rgba(0,0,0,.42);
  background:
    linear-gradient(90deg, rgba(255,106,163,.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(64,224,191,.05) 1px, transparent 1px),
    var(--sgr-bg);
}
body.sgr-palette-orchard {
  --sgr-berry: #d91f5d;
  --sgr-plum: #3157c8;
  --sgr-mint: #0f9e67;
  --sgr-lime: #c2e94a;
  --sgr-sun: #ffca3a;
}
body.sgr-palette-nightmarket {
  --sgr-berry: #ff5f9c;
  --sgr-plum: #8b68ff;
  --sgr-mint: #2fe2bc;
  --sgr-lime: #cff764;
  --sgr-sun: #ffe070;
}

body,
button,
input,
select,
textarea { font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif; }

h1, h2, h3, h4, .wp-block-site-title {
  color: var(--sgr-ink);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  letter-spacing: 0;
  line-height: 1.02;
}
a { color: inherit; text-decoration-thickness: .09em; text-underline-offset: .18em; }
a:hover { text-decoration: none; }
img { max-width: 100%; height: auto; }
:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid var(--sgr-blue);
  outline-offset: 4px;
}
.wp-site-blocks { overflow: clip; position: relative; }
.wp-site-blocks::before {
  content: "";
  position: fixed;
  inset: auto 2vw 6vh auto;
  width: 140px;
  height: 140px;
  pointer-events: none;
  opacity: .18;
  background-image: radial-gradient(circle at 18px 18px, var(--sgr-berry) 0 7px, transparent 8px), radial-gradient(circle at 68px 42px, var(--sgr-mint) 0 10px, transparent 11px), radial-gradient(circle at 112px 92px, var(--sgr-sun) 0 12px, transparent 13px);
  animation: sgr-drift 22s var(--sgr-ease) infinite alternate;
  z-index: 0;
}
@keyframes sgr-drift {
  from { transform: translate3d(0,0,0) rotate(0deg); }
  to { transform: translate3d(-28px,-36px,0) rotate(8deg); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wp-site-blocks::before { animation: none; }
}

.sgr-top-strip {
  position: sticky;
  top: 0;
  z-index: 80;
  color: var(--sgr-ink);
  background: color-mix(in srgb, var(--sgr-bg) 88%, transparent);
  border-bottom: 1px solid var(--sgr-line);
  backdrop-filter: blur(14px);
}
.sgr-top-strip-inner {
  max-width: var(--sgr-max);
  margin-inline: auto;
  min-height: 42px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  font-size: .88rem;
  font-weight: 750;
}
.sgr-top-strip a { color: var(--sgr-berry); }
.sgr-site-header {
  position: sticky;
  top: 43px;
  z-index: 70;
  background: color-mix(in srgb, var(--sgr-paper) 92%, transparent);
  border-bottom: 1px solid var(--sgr-line);
  backdrop-filter: blur(16px);
}
.admin-bar .sgr-top-strip { top: 32px; }
.admin-bar .sgr-site-header { top: 75px; }
.sgr-header-inner {
  max-width: var(--sgr-max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.2rem;
  padding: .9rem 1rem;
}
.sgr-brand { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.sgr-brand .wp-block-site-logo img { width: 62px; height: 62px; object-fit: contain; }
.sgr-brand .wp-block-site-title { margin: 0; font-size: clamp(1.45rem, 2vw, 2.1rem); font-weight: 900; }
.sgr-brand .wp-block-site-title a { text-decoration: none; }
.sgr-primary-nav { justify-self: center; }
.sgr-primary-nav a { border-radius: 999px; padding: .55rem .8rem; text-decoration: none; }
.sgr-primary-nav a:hover { background: rgba(231,47,118,.11); }
.sgr-header-actions { display: flex; align-items: center; gap: .55rem; }
.sgr-mode-toggle,
.sgr-palette-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--sgr-line);
  border-radius: 999px;
  color: var(--sgr-ink);
  background: var(--sgr-paper);
  font-weight: 800;
  cursor: pointer;
}
.sgr-mode-toggle { width: 42px; padding: 0; }
.sgr-palette-toggle { gap: .42rem; padding: 0 .74rem; }
.sgr-palette-toggle__swatch { width: 16px; height: 16px; border-radius: 50%; background: conic-gradient(var(--sgr-berry), var(--sgr-sun), var(--sgr-mint), var(--sgr-plum), var(--sgr-berry)); }
.sgr-header-cta .wp-block-button__link,
.sgr-primary-button .wp-block-button__link,
.wp-block-button.sgr-primary-button .wp-block-button__link {
  background: var(--sgr-ink);
  color: var(--sgr-bg);
  border: 2px solid var(--sgr-ink);
  border-radius: 999px;
  font-weight: 900;
  padding: .74rem 1rem;
}
.sgr-header-cta .wp-block-button__link:hover,
.sgr-primary-button .wp-block-button__link:hover { background: var(--sgr-berry); border-color: var(--sgr-berry); color: #fff; }

.sgr-front main,
.sgr-front-page { position: relative; z-index: 1; }
.sgr-hero,
.sgr-section-inner,
.sgr-wide-inner,
.sgr-page-shell,
.sgr-single-shell,
.sgr-blog-shell { max-width: var(--sgr-max); margin-inline: auto; }
.sgr-hero {
  padding: clamp(3.4rem, 7vw, 6.5rem) 1rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.sgr-eyebrow,
.sgr-section-kicker,
.sgr-page-kicker {
  color: var(--sgr-berry);
  font-size: .8rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: none;
}
.sgr-hero h1 { margin: .4rem 0 1rem; font-size: clamp(3.2rem, 8vw, 7.6rem); max-width: 9ch; }
.sgr-hero h1 mark { color: var(--sgr-berry); background: transparent; }
.sgr-hero-lede { max-width: 62ch; color: var(--sgr-text); font-size: clamp(1.08rem, 1.5vw, 1.32rem); line-height: 1.72; }
.sgr-hero-actions { margin-top: 1.2rem; gap: .7rem; }
.sgr-hero-note {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: .6rem;
  margin-top: 1.35rem;
}
.sgr-hero-note > * {
  min-height: 78px;
  margin: 0;
  padding: .78rem;
  border: 1px solid var(--sgr-line);
  border-radius: var(--sgr-radius);
  background: color-mix(in srgb, var(--sgr-paper) 84%, transparent);
  font-weight: 800;
  color: var(--sgr-ink);
}
.sgr-hero-visual {
  position: relative;
  border: 1px solid var(--sgr-line);
  border-radius: 22px 6px 22px 6px;
  overflow: hidden;
  box-shadow: var(--sgr-shadow);
  background: var(--sgr-paper);
}
.sgr-hero-visual::after {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 2px dashed color-mix(in srgb, var(--sgr-berry) 62%, transparent);
  border-radius: 18px 4px 18px 4px;
  pointer-events: none;
}
.sgr-hero-visual img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sgr-sugar-trail {
  max-width: var(--sgr-max);
  margin: 0 auto;
  padding: .4rem 1rem 2.2rem;
}
.sgr-sugar-trail > .wp-block-group {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 0;
  border: 1px solid var(--sgr-line);
  background: var(--sgr-paper);
}
.sgr-sugar-trail p {
  margin: 0;
  min-height: 110px;
  padding: 1rem;
  border-right: 1px solid var(--sgr-line);
  color: var(--sgr-ink);
  font-weight: 850;
}
.sgr-sugar-trail p:last-child { border-right: 0; }
.sgr-sugar-trail strong { display: block; color: var(--sgr-berry); font-family: ui-serif, Georgia, serif; font-size: 2rem; }

.sgr-manifesto,
.sgr-content-band,
.sgr-home-services-section,
.sgr-home-insights-section,
.sgr-page-shell,
.sgr-single-shell,
.sgr-blog-shell { padding: clamp(3rem, 7vw, 5.5rem) 1rem; }
.sgr-manifesto .wp-block-columns { gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.sgr-manifesto h2,
.sgr-section-title { font-size: clamp(2.2rem, 5vw, 4.8rem); margin: .3rem 0 1rem; }
.sgr-manifesto p,
.sgr-page-shell p,
.sgr-single-shell p { line-height: 1.78; }
.sgr-proof-list {
  border-left: 6px solid var(--sgr-sun);
  padding-left: 1.2rem;
}
.sgr-proof-list li { margin-bottom: .7rem; }
.sgr-manifesto-continuation {
  margin-top: clamp(1.7rem, 4vw, 2.8rem);
  padding-top: clamp(1.4rem, 3vw, 2.2rem);
  border-top: 1px solid var(--sgr-line);
}
.sgr-manifesto-continuation h2 {
  max-width: 18ch;
  font-size: clamp(1.8rem, 3.4vw, 3.1rem);
  line-height: 1.04;
}
.sgr-manifesto-continuation h2:not(:first-child) {
  margin-top: clamp(2rem, 5vw, 3.2rem);
}
.sgr-manifesto-continuation p {
  max-width: 64ch;
}
.sgr-feature-panel {
  padding: clamp(1.1rem, 3vw, 2rem);
  background: var(--sgr-ink);
  color: var(--sgr-bg);
  border-radius: var(--sgr-radius);
  box-shadow: var(--sgr-shadow);
}
.sgr-feature-panel h3 { color: var(--sgr-bg); }
.sgr-feature-panel a { color: var(--sgr-sun); }

.sgr-home-services-section { background: var(--sgr-ink); color: var(--sgr-bg); }
.sgr-home-services-section h2,
.sgr-home-services-section h3 { color: var(--sgr-bg); }
.sgr-home-services-section .sgr-section-kicker { color: var(--sgr-sun); }
.sgr-section-heading { max-width: var(--sgr-max); margin-inline: auto; display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem; align-items: end; }
.sgr-section-lede { color: color-mix(in srgb, var(--sgr-bg) 78%, transparent); font-size: 1.1rem; line-height: 1.7; }
.sgr-services-query { max-width: var(--sgr-max); margin: 2rem auto 0; }
.sgr-services-query .wp-block-post-template { gap: 1px; background: color-mix(in srgb, var(--sgr-bg) 22%, transparent); border: 1px solid color-mix(in srgb, var(--sgr-bg) 22%, transparent); }
.sgr-service-card {
  min-height: 100%;
  padding: 0;
  background: #fffdf7;
  color: #1b1a17;
  border-radius: 0;
  overflow: hidden;
}
.sgr-service-card:nth-child(2n) { background: #f4fff9; }
.sgr-service-card-image img { aspect-ratio: 1 / .78; object-fit: cover; width: 100%; }
.sgr-service-card-body { padding: 1.2rem; }
.sgr-service-card-title { font-size: clamp(1.25rem, 2vw, 1.65rem); margin: 0 0 .5rem; }
.sgr-service-card-title a { text-decoration: none; }
.sgr-service-card-excerpt { color: #4d4840; }
.sgr-service-card-link { font-weight: 900; color: #d91f5d; }

.sgr-home-insights-section { background: var(--sgr-bg); }
.sgr-home-insights-layout { max-width: var(--sgr-max); margin: 2rem auto 0; align-items: flex-start; }
.sgr-post-card,
.sgr-sidebar-panel,
.sgr-page-shell,
.sgr-single-shell article,
.sgr-archive-card { background: var(--sgr-paper); border: 1px solid var(--sgr-line); border-radius: var(--sgr-radius); }
.sgr-post-card { overflow: hidden; box-shadow: 0 10px 26px rgba(42,33,19,.08); }
.sgr-post-card-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.sgr-post-card-inner { padding: 1.1rem; }
.sgr-post-meta { color: var(--sgr-muted); font-size: .82rem; font-weight: 800; }
.sgr-post-card-title { font-size: clamp(1.28rem, 2vw, 1.75rem); margin: .45rem 0; }
.sgr-post-card-title a { text-decoration: none; }
.sgr-read-more { color: var(--sgr-berry); font-weight: 950; }
.sgr-home-sidebar { position: sticky; top: 154px; }
.sgr-sidebar-panel { padding: 1.1rem; margin-bottom: 1rem; }
.sgr-sidebar-panel h3 { font-size: 1.25rem; margin-top: 0; }
.sgr-sidebar-panel ul { padding-left: 1.1rem; }
.sgr-sidebar-panel li { margin: .45rem 0; }

.sgr-footer-cta { background: var(--sgr-sun); color: #1b1a17; padding: 3rem 1rem; }
.sgr-footer-cta .sgr-section-inner { display: grid; grid-template-columns: 1.1fr auto; gap: 1rem; align-items: center; }
.sgr-footer-cta h2 { color: #1b1a17; margin: 0; font-size: clamp(2rem, 5vw, 4.5rem); }
.sgr-site-footer { background: var(--sgr-ink); color: var(--sgr-bg); padding: 3rem 1rem 1.4rem; }
.sgr-footer-inner { max-width: var(--sgr-max); margin: 0 auto; display: grid; grid-template-columns: 1.4fr .8fr .8fr 1fr; gap: 1.8rem; align-items: start; }
.sgr-site-footer h2,
.sgr-site-footer h3,
.sgr-site-footer .wp-block-site-title { color: var(--sgr-bg); }
.sgr-site-footer a { color: inherit; }
.sgr-site-footer ul { list-style: none; padding: 0; margin: 0; }
.sgr-site-footer li { margin-bottom: .55rem; }
.sgr-footer-bottom { max-width: var(--sgr-max); margin: 2rem auto 0; padding-top: 1rem; border-top: 1px solid color-mix(in srgb, var(--sgr-bg) 18%, transparent); }

.sgr-page-shell,
.sgr-single-shell,
.sgr-blog-shell { max-width: 920px; }
.sgr-page-shell > *,
.sgr-single-shell article > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.sgr-page-shell .alignwide,
.sgr-single-shell .alignwide { max-width: var(--sgr-max); }
.sgr-page-shell h1,
.sgr-single-shell h1,
.sgr-blog-shell h1 { font-size: clamp(2.8rem, 7vw, 6rem); margin-top: 0; }
.sgr-single-hero { padding: 3rem 1rem 1rem; }
.sgr-single-featured img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--sgr-radius); border: 1px solid var(--sgr-line); }
.sgr-post-navigation { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.sgr-archive-grid .wp-block-post-template { gap: 1rem; }
.wp-block-search__inside-wrapper { border-radius: 999px; overflow: hidden; border: 1px solid var(--sgr-line); background: var(--sgr-paper); }
.wp-block-search__input { border: 0; background: transparent; color: var(--sgr-text); min-height: 44px; }
.wp-block-search__button { background: var(--sgr-berry); color: #fff; border: 0; font-weight: 900; }

@media (max-width: 960px) {
  .sgr-top-strip-inner,
  .sgr-header-inner,
  .sgr-hero,
  .sgr-section-heading,
  .sgr-footer-cta .sgr-section-inner,
  .sgr-footer-inner { grid-template-columns: 1fr; }
  .sgr-primary-nav { justify-self: start; }
  .sgr-header-actions { flex-wrap: wrap; }
  .sgr-home-sidebar { position: static; }
  .sgr-hero h1 { max-width: 11ch; }
}
@media (max-width: 700px) {
  .admin-bar .sgr-top-strip { top: 46px; }
  .admin-bar .sgr-site-header { top: 89px; }
  .sgr-site-header { top: 43px; }
  .sgr-hero-note,
  .sgr-sugar-trail > .wp-block-group { grid-template-columns: 1fr; }
  .sgr-sugar-trail p { border-right: 0; border-bottom: 1px solid var(--sgr-line); }
  .sgr-sugar-trail p:last-child { border-bottom: 0; }
  .sgr-brand .wp-block-site-logo img { width: 52px; height: 52px; }
  .sgr-palette-toggle__text { display: none; }
}
