/*
Theme Name:   LikeMinded
Theme URI:    https://likeminded.co.uk
Description:  Child theme of GeneratePress for LikeMinded — walk routes and the community app.
Author:       Josh & Dan
Version:      1.0.0
Template:     generatepress
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  likeminded
*/

/* ============================================================
   1. DESIGN TOKENS
   The single source of truth for the site's colours and type.
   Change a value here and it changes everywhere.
   ============================================================ */
:root{
  /* colour */
  --lm-forest:        #1E2A20;  /* dark surfaces, identity moments */
  --lm-forest-deep:   #141D16;  /* deepest ground, footer */
  --lm-leaf:          #7BC144;  /* primary accent — use sparingly */
  --lm-leaf-bright:   #8ACF4E;  /* hover only */
  --lm-sage:          #5B7A5E;  /* secondary, labels, dividers */
  --lm-sage-light:    #8CA88F;
  --lm-cloth:         #F5F4EF;  /* light surfaces, cards */
  --lm-chalk:         #EDECE6;  /* page ground behind cards */
  --lm-charcoal:      #222522;  /* body text on light */
  --lm-ink-soft:      #575B54;  /* secondary text */
  --lm-ink-faint:     #8B8E85;  /* captions, metadata */

  --lm-hair-dark:     rgba(255,255,255,0.12);
  --lm-hair-light:    rgba(34,37,34,0.11);

  /* type */
  --lm-display: 'Figtree', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --lm-body:    'Newsreader', Georgia, 'Times New Roman', serif;
  --lm-mono:    'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* layout */
  --lm-wrap: 1120px;   /* full-width sections */
  --lm-read: 660px;    /* comfortable reading measure for walk write-ups */
  --lm-gutter: 28px;
}

@media (max-width: 600px){
  :root{ --lm-gutter: 20px; }
}


/* ============================================================
   2. BASE TYPOGRAPHY
   Applies site-wide, so pages you build later (walks, about,
   guidelines) inherit the same voice without extra work.
   ============================================================ */
body{
  font-family: var(--lm-display);
  color: var(--lm-charcoal);
  background: var(--lm-chalk);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.entry-title, .site-title{
  font-family: var(--lm-display);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.14;
  color: var(--lm-charcoal);
}

h1{ font-size: clamp(32px, 4.4vw, 50px); line-height: 1.08; letter-spacing: -0.022em; }
h2{ font-size: clamp(24px, 3vw, 33px); }
h3{ font-size: 20px; line-height: 1.25; }
h4{ font-size: 16px; }

/* Long-form reading — walk write-ups, about, guidelines.
   The serif is deliberate: these pages should read like a journal,
   not a blog template. */
.entry-content p,
.entry-content li{
  font-family: var(--lm-body);
  font-size: 18px;
  line-height: 1.72;
  color: #33362F;
  font-weight: 400;
}

.entry-content > p:first-of-type{
  font-size: 21px;
  line-height: 1.55;
  color: var(--lm-forest);
}

.entry-content p{ margin: 0 0 22px; }

/* Numbers are set in mono everywhere — distance, ascent, parking
   cost, times. Makes them read as measurements taken, not copy. */
.lm-num,
.entry-content .lm-num{
  font-family: var(--lm-mono);
  font-size: 0.94em;
  letter-spacing: 0.01em;
}

/* Small section labels — the only place uppercase is allowed. */
.lm-eyebrow{
  font-family: var(--lm-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--lm-sage);
  margin: 0 0 14px;
}
.lm-on-dark .lm-eyebrow{ color: var(--lm-leaf); }

blockquote{
  font-family: var(--lm-body);
  font-style: italic;
  border-left: 2px solid var(--lm-leaf);
  padding-left: 22px;
  margin-left: 0;
  color: var(--lm-ink-soft);
}


/* ============================================================
   3. LINKS, BUTTONS, FOCUS
   ============================================================ */
a{ color: var(--lm-sage); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover, a:focus{ color: var(--lm-forest); }

/* Visible keyboard focus everywhere. Do not remove — this is the
   accessibility floor, not a style choice. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.wp-block-button__link:focus-visible{
  outline: 2px solid var(--lm-leaf);
  outline-offset: 2px;
}

.wp-block-button__link,
button.gb-button,
.button{
  font-family: var(--lm-display);
  font-weight: 600;
  border-radius: 100px;
  min-height: 44px;           /* tap target floor */
  padding: 13px 22px;
  transition: transform .16s ease, background .16s ease;
}
.wp-block-button__link:hover{ transform: translateY(-1px); }

.wp-block-button.is-style-fill .wp-block-button__link{
  background: var(--lm-leaf);
  color: var(--lm-forest-deep);
}
.wp-block-button.is-style-fill .wp-block-button__link:hover{ background: var(--lm-leaf-bright); }


/* ============================================================
   4. LAYOUT HELPERS
   .lm-wrap matches the wrapper used inside every Custom HTML
   block, so anything you build later lines up with them.
   ============================================================ */
.lm-wrap{
  width: 100%;
  max-width: var(--lm-wrap);
  margin: 0 auto;
  padding: 0 var(--lm-gutter);
}

.lm-read{
  max-width: var(--lm-read);
}

/* The signature ridgeline divider. Drop this anywhere:
   <svg class="lm-ridge" viewBox="0 0 1200 22" preserveAspectRatio="none">
     <path d="M0 17 L90 12 L170 18 L250 7 L330 14 L420 4 L510 13 L600 8
              L690 16 L780 6 L880 14 L970 9 L1060 17 L1140 11 L1200 15"/>
   </svg> */
.lm-ridge{ display: block; width: 100%; height: 22px; }
.lm-ridge path{ fill: none; stroke: var(--lm-sage); stroke-width: 1.3; opacity: .4; }
.lm-on-dark .lm-ridge path{ stroke: var(--lm-sage-light); stroke-width: 1.3; opacity: .35; }


/* ============================================================
   5. FULL-WIDTH SECTIONS
   GeneratePress wraps content in a padded container. The homepage
   blocks are edge-to-edge, so we strip that on the front page.

   ALSO set these in the page's own settings (right-hand sidebar
   in the editor, under "Layout"):
     Content Container  →  Full Width
     Sidebar Layout     →  No Sidebars
   ============================================================ */
.home .site-content,
.page-template-lm-fullwidth .site-content{
  padding: 0;
}

.home .content-area,
.home .site-main,
.home .entry-content,
.page-template-lm-fullwidth .entry-content{
  margin: 0;
  padding: 0;
  max-width: none;
}

.home .entry-header,
.home .entry-title{
  display: none;   /* the landing block is the page's opening, not an H1 title bar */
}

/* Blocks sit flush against each other with no stray gaps. */
.home .entry-content > .lm-block{ margin: 0; }


/* ============================================================
   6. FORMS
   Applies to Fluent Forms / WPForms as well as plain markup, so
   the waitlist looks the same however you end up wiring it up.
   ============================================================ */
input[type="text"],
input[type="email"],
input[type="url"],
select,
textarea{
  font-family: var(--lm-display);
  font-size: 14.5px;
  padding: 13px 16px;
  min-height: 46px;
  border: 1px solid rgba(34,37,34,.2);
  border-radius: 100px;
  background: #fff;
  color: var(--lm-charcoal);
}
textarea{ border-radius: 14px; }

::placeholder{ color: var(--lm-ink-faint); opacity: 1; }


/* ============================================================
   7. THINGS WE DELIBERATELY DON'T DO
   No sticky floating bars, no scroll-triggered popups, no
   auto-playing anything. If a plugin adds one, it gets hidden
   here rather than argued with.
   ============================================================ */
.pum-overlay,            /* Popup Maker */
.wpforms-popup,
[class*="exit-intent"]{
  display: none !important;
}


/* ============================================================
   8. MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce){
  *,
  *::before,
  *::after{
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ============================================================
   9. SITE HEADER
   Outputs from header.php on every page. Sticky, dark, matches
   the identity-moment surfaces used elsewhere (forest background).
   ============================================================ */
.lm-site-header{
  background: var(--lm-forest);
  border-bottom: 1px solid var(--lm-hair-dark);
  position: sticky;
  top: 0;
  z-index: 100;
}
.lm-site-header-inner{
  display: flex;
  align-items: center;
  gap: 26px;
  height: 76px;
  position: relative;
}
.lm-brand{
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}
.lm-brand:hover{ color: inherit; }
.lm-brand svg{ width: 34px; height: 34px; display: block; }
.lm-brand .lm-logo-img{ width: 34px; height: 34px; display: block; object-fit: contain; }
.lm-brand .lm-word{
  font-family: var(--lm-display);
  font-size: 17.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}
.lm-brand .lm-word em{ font-style: normal; color: var(--lm-leaf); }

.lm-site-nav{
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}
.lm-menu{
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.lm-menu li{ margin: 0; position: relative; }
.lm-menu a{
  font-family: var(--lm-display);
  font-size: 14px;
  font-weight: 500;
  color: #BFCBBC;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1.5px solid transparent;
}
.lm-menu a:hover{ color: #fff; }
.lm-menu li.current-menu-item > a{
  color: #fff;
  border-bottom-color: var(--lm-leaf);
}

.lm-nav-cta{
  font-family: var(--lm-display);
  font-size: 13px;
  font-weight: 600;
  background: var(--lm-leaf);
  color: var(--lm-forest-deep);
  padding: 10px 18px;
  border-radius: 100px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background .16s ease, transform .16s ease;
}
.lm-nav-cta:hover{ background: var(--lm-leaf-bright); color: var(--lm-forest-deep); transform: translateY(-1px); }

/* mobile toggle — hidden above 860px */
.lm-nav-toggle{
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--lm-hair-dark);
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.lm-nav-toggle-bar{
  width: 18px;
  height: 1.5px;
  background: #fff;
  display: block;
  transition: transform .18s ease, opacity .18s ease;
}
.lm-nav-toggle[aria-expanded="true"] .lm-nav-toggle-bar:nth-child(1){ transform: translateY(5.5px) rotate(45deg); }
.lm-nav-toggle[aria-expanded="true"] .lm-nav-toggle-bar:nth-child(2){ opacity: 0; }
.lm-nav-toggle[aria-expanded="true"] .lm-nav-toggle-bar:nth-child(3){ transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 860px){
  .lm-nav-toggle{ display: flex; }
  .lm-site-nav{
    position: absolute;
    top: 76px;
    left: calc(-1 * var(--lm-gutter));
    right: calc(-1 * var(--lm-gutter));
    background: var(--lm-forest);
    border-bottom: 1px solid var(--lm-hair-dark);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px var(--lm-gutter) 20px;
    display: none;
  }
  .lm-site-nav.lm-nav-open{ display: flex; }
  .lm-menu{
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }
  .lm-menu li{ width: 100%; }
  .lm-menu a{
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--lm-hair-dark);
    width: 100%;
  }
  .lm-nav-cta{ margin-top: 16px; }
}


/* ============================================================
   10. SITE FOOTER
   Outputs from footer.php on every page. Matches the footer
   Custom HTML block design — this is the site-wide equivalent.
   If you already pasted the 05-footer.html block onto the
   homepage, remove that block now so the footer isn't doubled.
   ============================================================ */
.lm-site-footer{
  background: var(--lm-forest-deep);
  color: #93A08F;
  padding: 56px 0 34px;
}
.lm-site-footer .lm-top{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}
.lm-site-footer .lm-brand .lm-word{ color: #fff; }
.lm-site-footer .lm-blurb{
  font-family: var(--lm-body);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 300;
  color: #7E8C7C;
  max-width: 34ch;
  margin: 14px 0 0;
}
.lm-site-footer h5{
  font-family: var(--lm-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lm-sage-light);
  margin: 0 0 14px;
  font-weight: 500;
}
.lm-site-footer ul{ list-style: none; margin: 0; padding: 0; }
.lm-site-footer li{ margin-bottom: 9px; }
.lm-site-footer a{ font-size: 13.5px; color: #B9C7B6; text-decoration: none; }
.lm-site-footer a:hover{ color: #fff; }

.lm-site-footer .lm-sponsors{
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--lm-hair-dark);
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.lm-site-footer .lm-sponsors .lm-lab{
  font-family: var(--lm-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5E6C5C;
}
.lm-site-footer .lm-mark{
  font-size: 13.5px;
  font-weight: 600;
  color: #8DA089;
  padding: 7px 14px;
  border: 1px solid var(--lm-hair-dark);
  border-radius: 6px;
}

.lm-site-footer .lm-legal{
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--lm-hair-dark);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #5E6C5C;
}
.lm-site-footer .lm-legal a{ color: #7E8C7C; }
.lm-site-footer .lm-legal a:hover{ color: #fff; }

@media (max-width: 860px){
  .lm-site-footer .lm-top{ grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px){
  .lm-site-footer .lm-top{ grid-template-columns: 1fr; }
  .lm-site-footer .lm-legal{ flex-direction: column; gap: 6px; }
}


/* ============================================================
   11. PRINT — someone will print a walk page to take with them.
   ============================================================ */
@media print{
  body{ background: #fff; }
  .site-header, .site-footer, .lm-foot, .lm-waitlist, .lm-appband{ display: none !important; }
  .entry-content p{ font-size: 12pt; line-height: 1.5; }
  a[href]::after{ content: " (" attr(href) ")"; font-size: 9pt; color: #666; }
}