/*
Theme Name: Moor Hands
Theme URI: https://moorhands.co.uk
Author: Owen Lewis Design
Author URI: https://www.owen-lewis.com
Description: Single-page Gutenberg theme for Moor Hands - Garden & Handyman Services. Hand-drawn, textured landing page built entirely from native block-editor content.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: moorhands
*/

/* ---------------------------------------------------------------------------
   Fonts
--------------------------------------------------------------------------- */
@font-face {
  font-family: 'Averia Serif Libre';
  src: url('assets/fonts/AveriaSerifLibre-Regular.woff2') format('woff2'),
       url('assets/fonts/AveriaSerifLibre-Regular.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Averia Serif Libre';
  src: url('assets/fonts/AveriaSerifLibre-Bold.woff2') format('woff2'),
       url('assets/fonts/AveriaSerifLibre-Bold.woff') format('woff');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Father Farmhouse Sans';
  src: url('assets/fonts/FatherFarmhouseSans.woff2') format('woff2'),
       url('assets/fonts/FatherFarmhouseSans.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ---------------------------------------------------------------------------
   Design tokens
--------------------------------------------------------------------------- */
:root {
  --mh-cream:      #F3ECE0;
  --mh-ink:        #231F20;
  --mh-body:       #2f2a22;
  --mh-brown:      #6d4a24;
  --mh-blue:       #609DB0;
  --mh-green-l:    #6EAD22;
  --mh-green-m:    #5A9B23;
  --mh-green-dark: #30420C;
  --mh-soil:       #986117;
  --mh-serif:      'Averia Serif Libre', Georgia, serif;
  --mh-hand:       'Father Farmhouse Sans', 'Averia Serif Libre', sans-serif;
  --mh-content:    720px;
}

/* ---------------------------------------------------------------------------
   Base
--------------------------------------------------------------------------- */
* { box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  font-family: var(--mh-serif);
  color: var(--mh-body);
  background: var(--mh-cream);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }

.mh-page { overflow: hidden; }

/* Shared section shell -------------------------------------------------- */
.mh-section {
  position: relative;
  width: 100%;
  padding: 70px 20px;
}
.mh-inner {
  max-width: var(--mh-content);
  margin: 0 auto;
  text-align: center;
}

/* Headings -------------------------------------------------------------- */
.mh-section h1,
.mh-section h2 {
  font-family: var(--mh-hand);
  font-weight: 400;
  color: var(--mh-ink);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  margin: 0 0 0.4em;
}
.mh-section h1 { font-size: clamp(1.6rem, 4vw, 2.25rem); }
.mh-section h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); }

.mh-section p { margin: 0 0 1.2em; }
.mh-lead { margin-bottom: 1.6em; }

/* Leaf divider ---------------------------------------------------------- */
.mh-leaf img,
img.mh-leaf { width: 130px; height: auto; margin: 0.2em auto 1.4em; display: block; }

/* Buttons --------------------------------------------------------------- */
.mh-btn .wp-block-button__link,
a.mh-btn {
  display: inline-block;
  font-family: var(--mh-hand);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
  color: var(--mh-cream) !important;
  text-decoration: none;
  padding: 16px 40px;
  border: none;
  border-radius: 6px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  box-shadow: 0 3px 6px rgba(0,0,0,0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.mh-btn .wp-block-button__link:hover,
a.mh-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.22);
}
.mh-btn-blue  .wp-block-button__link { background-image: url('assets/img/blue-button-bg.png');  background-color: var(--mh-blue); }
.mh-btn-green .wp-block-button__link { background-image: url('assets/img/green-buton-bg.png');   background-color: var(--mh-green-dark); }
.mh-buttons { margin-top: 1.4em; }

/* ---------------------------------------------------------------------------
   Header
--------------------------------------------------------------------------- */
.mh-header {
  background: var(--mh-cream);
  padding: 26px 20px 10px;
}
.mh-header .mh-inner {
  max-width: 1120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.mh-logo { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.mh-logo .mh-logo-icon { width: 118px; }
.mh-logo .mh-logo-text { width: 260px; }
.mh-nav {
  font-family: var(--mh-serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--mh-ink);
  margin: 0;
}
.mh-nav a { text-decoration: none; color: var(--mh-ink); padding-bottom: 2px; }
.mh-nav a:hover { background: url('assets/img/nav-underline.png') bottom center / 80% 6px no-repeat; }
.mh-contact-top {
  font-family: var(--mh-serif);
  font-size: 0.98rem;
  color: var(--mh-ink);
  margin: 0;
}
.mh-contact-top a { text-decoration: none; }
.mh-contact-top .mh-sep { display: inline-block; width: 22px; }

/* Desktop header: logo left, nav + contact right */
@media (min-width: 900px) {
  .mh-header { padding: 30px 20px 18px; }
  .mh-header .mh-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .mh-logo { flex-direction: row; align-items: center; gap: 18px; }
  .mh-logo .mh-logo-icon { width: 92px; }
  .mh-logo .mh-logo-text { width: 210px; }
  .mh-header-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
}

/* ---------------------------------------------------------------------------
   Hero / About  (cream, hills at bottom)
--------------------------------------------------------------------------- */
.mh-hero {
  background: var(--mh-cream);
  padding-top: 30px;
  padding-bottom: 12vw;
}
.mh-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 10.7vw;
  background: url('assets/img/hills.png') bottom center / 100% 100% no-repeat;
  pointer-events: none;
  z-index: 2;
}
.mh-hero .mh-inner { max-width: 640px; }

/* ---------------------------------------------------------------------------
   Services  (light green texture)
--------------------------------------------------------------------------- */
.mh-services {
  background: url('assets/img/light-green-bg.png') center / cover repeat, var(--mh-green-l);
  padding-top: 40px;
}
.mh-services .mh-list {
  font-weight: 700;
  color: var(--mh-ink);
  line-height: 2.2;
  font-size: 1.06rem;
  margin: 0.6em 0 0;
}

/* ---------------------------------------------------------------------------
   Rates  (medium green texture)
--------------------------------------------------------------------------- */
.mh-rates {
  background:
    linear-gradient(rgba(24,54,6,0.24), rgba(24,54,6,0.24)),
    url('assets/img/light-green-bg.png') center / cover repeat,
    var(--mh-green-m);
}
.mh-rates h2,
.mh-rates p { color: var(--mh-ink); }

/* ---------------------------------------------------------------------------
   Contact  (soil / brown texture)
--------------------------------------------------------------------------- */
.mh-contact {
  background: url('assets/img/brown-bg.png') center / cover repeat, var(--mh-soil);
}
.mh-contact h2 { color: var(--mh-ink); }
.mh-card {
  background: url('assets/img/contact-card-bg.png') center / 100% 100% no-repeat, var(--mh-cream);
  max-width: 360px;
  margin: 1.4em auto 2.2em;
  padding: 30px 34px;
  text-align: center;
}
.mh-card .mh-card-name {
  font-family: var(--mh-serif);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--mh-green-dark);
  margin: 0 0 0.4em;
}
.mh-card p { color: var(--mh-ink); margin: 0.15em 0; font-weight: 700; }
.mh-card a { text-decoration: none; }
.mh-price {
  font-family: var(--mh-serif);
  font-weight: 700;
  color: #fff;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  line-height: 1.35;
  margin: 0.15em 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.22);
}
.mh-contact .mh-price:first-of-type { margin-top: 0.4em; }

/* Divider line between coloured sections */
.mh-rates::before,
.mh-contact::before {
  content: "";
  position: absolute;
  top: -2px; left: 0; right: 0;
  height: 14px;
  background: url('assets/img/separator.png') center / 100% 100% no-repeat;
  z-index: 3;
  pointer-events: none;
}

/* ---------------------------------------------------------------------------
   Footer
--------------------------------------------------------------------------- */
.mh-footer {
  background: var(--mh-green-dark);
  color: var(--mh-cream);
  font-family: var(--mh-serif);
  font-size: 0.95rem;
  padding: 18px 24px;
}
.mh-footer .mh-inner {
  max-width: 1120px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.mh-footer a { color: var(--mh-cream); text-decoration: none; font-weight: 700; }
.mh-footer p { margin: 0; }
@media (max-width: 640px) {
  .mh-footer .mh-inner { flex-direction: column; text-align: center; }
  .mh-section { padding: 50px 18px; }
}

/* Narrow-phone hardening: keep the stacked header tidy and never overflow */
.mh-header .mh-inner > *,
.mh-header-right,
.mh-logo { min-width: 0; max-width: 100%; }
.mh-nav,
.mh-contact-top { max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .mh-contact-top .mh-sep { display: block; width: 0; height: 4px; }
  .mh-logo .mh-logo-text { width: 220px; max-width: 80vw; }
}

/* Utility so editor-added blocks stay centered within sections */
.mh-section .wp-block-buttons { justify-content: center; }
