/* =============================================
   BestRobotLawnMower.co.uk — Main Stylesheet
   ============================================= */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --green:      #588157;
  --green-dark: #3a5a40;
  --green-light:#dad7cd;
  --slate:      #344e41;
  --slate-mid:  #588157;
  --slate-light:#a3b18a;
  --border:     #a3b18a;
  --bg:         #ffffff;
  --white:      #ffffff;
  --radius:     10px;
  --shadow:     0 2px 12px rgba(52,78,65,.1);
  --shadow-hover: 0 6px 24px rgba(52,78,65,.2);
  --font:       'Georgia', 'Times New Roman', serif;
  --font-sans:  system-ui, -apple-system, sans-serif;
  --max:        1200px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--slate);
  line-height: 1.7;
  font-size: 1rem;
}

img { max-width: 100%; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }

/* ---- HEADER ---- */
.site-header {
  background: var(--slate);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .6rem;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--green);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.logo-text {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.3px;
}

.logo-text span { color: #dad7cd; }

.site-nav { display: flex; gap: .25rem; align-items: center; }

.site-nav a {
  color: #94a3b8;
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  padding: .4rem .85rem;
  border-radius: 6px;
  transition: all .15s;
}

.site-nav a:hover,
.site-nav a.active { color: #fff; background: rgba(255,255,255,.1); }

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, #344e41 0%, #3a5a40 50%, #588157 100%);
  color: #fff;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}

.hero h1 {
  font-family: var(--font);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.2;
  letter-spacing: -.5px;
}

.hero h1 span { color: #dad7cd; }

.hero p {
  font-size: 1.15rem;
  color: #cbd5e1;
  max-width: 560px;
  margin: 0 auto 2rem;
}

.hero-search {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}

.hero-search input {
  flex: 1;
  padding: .85rem 1.25rem;
  border: none;
  font-size: 1rem;
  outline: none;
}

.hero-search button {
  padding: .85rem 1.5rem;
  background: var(--green);
  color: #fff;
  border: none;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
}

.hero-search button:hover { background: var(--green-dark); }

/* ---- CONTAINER ---- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- SECTION ---- */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--white); }

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
  border-bottom: 3px solid var(--green);
  padding-bottom: .75rem;
}

.section-header h2 {
  font-family: var(--font);
  font-size: 1.75rem;
  margin: 0;
  color: var(--slate);
}

.section-header a {
  font-size: .875rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
}

/* ---- CARD GRID ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card-grid-4 {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* ---- ARTICLE CARD ---- */
.article-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
  border: 1px solid var(--border);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  color: inherit;
}

.card-thumb {
  background: linear-gradient(135deg, #0f172a, #15803d);
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #dad7cd;
  position: relative;
  overflow: hidden;
}

.card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,.4));
}

.card-category {
  position: absolute;
  bottom: .6rem;
  left: .75rem;
  background: var(--green);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .55rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .5px;
  z-index: 1;
}

.card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 .6rem;
  line-height: 1.3;
  color: var(--slate);
}

.card-excerpt {
  font-size: .875rem;
  color: var(--slate-mid);
  margin: 0 0 1rem;
  flex: 1;
  line-height: 1.6;
}

.card-meta {
  font-size: .75rem;
  color: var(--slate-light);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.card-meta .dot { color: var(--border); }

/* ---- FEATURED CARD (large) ---- */
.featured-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
  margin-bottom: 2rem;
}

.featured-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  color: inherit;
}

.featured-thumb {
  background: linear-gradient(135deg, #0f172a, #15803d);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: #dad7cd;
}

.featured-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: .75rem;
}

.featured-title {
  font-family: var(--font);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 .75rem;
}

.featured-excerpt {
  color: var(--slate-mid);
  font-size: .95rem;
  margin: 0 0 1.25rem;
}

.btn-read {
  display: inline-block;
  padding: .55rem 1.25rem;
  background: var(--green);
  color: #fff;
  border-radius: 6px;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  align-self: flex-start;
}

.btn-read:hover { background: var(--green-dark); color: #fff; }

/* ---- CATEGORIES BAR ---- */
.cat-bar {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.cat-pill {
  padding: .35rem .9rem;
  border-radius: 99px;
  background: var(--white);
  border: 1px solid var(--border);
  font-size: .8rem;
  font-weight: 600;
  color: var(--slate-mid);
  text-decoration: none;
  transition: all .15s;
}

.cat-pill:hover,
.cat-pill.active { background: var(--green); border-color: var(--green); color: #fff; }

/* ---- ARTICLE PAGE ---- */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
  padding: 3rem 0;
}

.article-header { margin-bottom: 2rem; }

.article-category {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: .25rem .65rem;
  border-radius: 4px;
  margin-bottom: .75rem;
  text-decoration: none;
}

.article-title {
  font-family: var(--font);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 1rem;
  color: var(--slate);
}

.article-meta {
  font-size: .85rem;
  color: var(--slate-light);
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

/* ---- ARTICLE CONTENT ---- */
.article-content h2 {
  font-family: var(--font);
  font-size: 1.5rem;
  color: var(--slate);
  margin: 2rem 0 .75rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--green-light);
}

.article-content h3 {
  font-size: 1.15rem;
  color: var(--slate);
  margin: 1.5rem 0 .5rem;
}

.article-content p {
  margin: 0 0 1.25rem;
  color: #334155;
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-content ul,
.article-content ol {
  margin: 0 0 1.25rem 1.25rem;
  padding: 0;
}

.article-content li {
  margin-bottom: .5rem;
  color: #334155;
  font-size: 1.05rem;
  line-height: 1.7;
}

.article-content a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content a:hover { color: var(--green-dark); }

/* ---- SIDEBAR ---- */
.sidebar { position: sticky; top: 80px; }

.sidebar-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.sidebar-card-header {
  background: var(--slate);
  color: #fff;
  padding: .75rem 1.25rem;
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.sidebar-card-body { padding: 1.25rem; }

.sidebar-links { list-style: none; margin: 0; padding: 0; }

.sidebar-links li { border-bottom: 1px solid var(--border); }
.sidebar-links li:last-child { border-bottom: none; }

.sidebar-links a {
  display: block;
  padding: .6rem 0;
  font-size: .875rem;
  color: var(--slate);
  text-decoration: none;
  transition: color .15s;
}

.sidebar-links a:hover { color: var(--green); }

/* ---- SITEMAP ---- */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.sitemap-group h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate);
  margin: 0 0 .75rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--green);
}

.sitemap-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sitemap-group li { margin-bottom: .35rem; }

.sitemap-group a {
  font-size: .875rem;
  color: var(--slate-mid);
  text-decoration: none;
}

.sitemap-group a:hover { color: var(--green); }

/* ---- ABOUT PAGE ---- */
.about-hero {
  background: linear-gradient(135deg, #0f172a, #1e3a2f);
  color: #fff;
  padding: 4rem 1.5rem;
  text-align: center;
}

.about-hero h1 {
  font-family: var(--font);
  font-size: 2.5rem;
  margin: 0 0 1rem;
}

.about-hero p { color: #cbd5e1; max-width: 560px; margin: 0 auto; font-size: 1.1rem; }

.about-body { max-width: 760px; margin: 0 auto; padding: 3rem 1.5rem; }

.about-body h2 {
  font-family: var(--font);
  font-size: 1.5rem;
  border-bottom: 2px solid var(--green-light);
  padding-bottom: .4rem;
  margin-bottom: 1rem;
}

.about-body p { color: #334155; font-size: 1.05rem; line-height: 1.8; margin-bottom: 1.25rem; }

/* ---- PAGE HEADER (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a2f 100%);
  color: #fff;
  padding: 3rem 1.5rem 2.5rem;
}

.page-hero .breadcrumb {
  font-size: .8rem;
  color: #64748b;
  margin-bottom: .75rem;
}

.page-hero .breadcrumb a { color: #dad7cd; text-decoration: none; }
.page-hero .breadcrumb a:hover { text-decoration: underline; }

.page-hero h1 {
  font-family: var(--font);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin: 0;
  line-height: 1.25;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--slate);
  color: #94a3b8;
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand p { font-size: .875rem; line-height: 1.7; margin: .75rem 0 0; }

.footer-col h4 {
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  margin: 0 0 .75rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .4rem; }
.footer-col a { color: #64748b; text-decoration: none; font-size: .875rem; }
.footer-col a:hover { color: #94a3b8; }

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 1.25rem;
  font-size: .8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}

/* ---- PAGINATION ---- */
.pagination {
  display: flex;
  gap: .4rem;
  justify-content: center;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 6px;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--slate-mid);
}

.pagination a:hover { background: var(--green); color: #fff; border-color: var(--green); }
.pagination .current { background: var(--green); color: #fff; border-color: var(--green); }

/* ---- ARTICLE COMPONENTS ---- */

/* Summary box */
h3.summaryHeading, h4.summaryHeading {
  font-family: var(--font-sans);
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--green-dark);
  margin: 0 0 .75rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

h3.summaryHeading::before, h4.summaryHeading::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
  flex-shrink: 0;
}

ul.summaryBox {
  background: linear-gradient(135deg, #f4f7f4 0%, #eef3ee 100%);
  border: 1px solid rgba(88,129,87,.2);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.5rem 1.1rem 1.75rem;
  margin: 0 0 2rem;
  list-style: none;
  box-shadow: 0 2px 8px rgba(88,129,87,.08);
}

ul.summaryBox li {
  font-size: .925rem;
  color: var(--hunter, #3a5a40);
  margin-bottom: .1rem;
  line-height: 1.6;
  padding: .35rem 0;
  border-bottom: 1px solid rgba(88,129,87,.1);
  display: flex;
  align-items: center;
  gap: .6rem;
}

ul.summaryBox li:last-child { border-bottom: none; margin-bottom: 0; }

ul.summaryBox li::before {
  content: '→';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  font-size: .85rem;
}

ul.summaryBox li a {
  color: var(--hunter, #3a5a40);
  text-decoration: none;
  transition: color .15s;
}

ul.summaryBox li a:hover { color: var(--green); text-decoration: underline; }

/* Fact / case study box */
.fact-box {
  background: #f0f4f1;
  border: 1px solid var(--dry-sage, #a3b18a);
  border-left: 4px solid var(--fern, #588157);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.fact-box h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #3a5a40;
  margin: 0 0 .6rem;
}

.fact-box p {
  font-size: .95rem;
  color: #344e41;
  margin: 0;
}

/* Coloured boxes */
.colored-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.colored-box h4, .colored-box h5 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 .6rem;
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: .4rem;
}

.colored-box p {
  font-size: .9rem;
  color: var(--slate-mid);
  margin: 0;
  line-height: 1.65;
}

.colored-box .icon { font-size: 1.1rem; }

/* Two-column layout */
.layout-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

/* Three-column layout */
.layout-three-column {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

@media (max-width: 700px) {
  .layout-two-column  { grid-template-columns: 1fr; }
  .layout-three-column { grid-template-columns: 1fr; }
}

/* Lesson image */
.lesson-image {
  margin: 1.5rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.lesson-image img { width: 100%; height: auto; display: block; }

/* ---- UTILITIES ---- */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-thumb { min-height: 200px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .header-inner { height: 56px; }
  .logo-text { font-size: .9rem; }
  .site-nav a { padding: .35rem .55rem; font-size: .8rem; }
  .hero { padding: 3rem 1rem 2.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
}
