/*
Theme Name: Help With Planning
Theme URI: https://help-with-planning.co.uk
Author: Help With Planning
Description: Original WordPress theme for a UK planning application / pre-planning / building regulations consultancy. Same design system as the ProperSite Dry Cleaning theme (palette, type, layout patterns), reused across sites, with page slugs matched to the original help-with-planning.co.uk site's indexed URLs for search continuity after a site rebuild. Editable homepage content via native meta boxes, no page builder or Elementor required.
Version: 1.0
Requires PHP: 7.4
Text Domain: help-with-planning
*/

/* ---------- Design tokens ---------- */
:root {
  --heading: #21303a;
  --body-text: #55666f;
  --white: #ffffff;
  --light: #eef2f1;
  --teal: #2f7a63;
  --teal-dark: #235c4a;
  --gold: #c98a3b;
  --line: #dde4e1;

  --font-body: 'Poppins', sans-serif;
  --container: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--body-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--heading);
  line-height: 1.3;
  margin: 0 0 0.5em;
}
p { margin: 0 0 1em; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 15px;
}

.eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--teal);
}

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}
.site-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--heading);
}
.site-title span { color: var(--teal); }

.primary-nav ul {
  display: flex;
  gap: 32px;
}
.primary-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--heading);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.primary-nav a:hover { color: var(--teal); border-color: var(--teal); }

/* ---------- Sub-menu (services nested under a parent nav item) ---------- */
.primary-nav li { position: relative; }
.primary-nav li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 6px;
  vertical-align: middle;
  opacity: 0.6;
}
.primary-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 40px rgba(33,48,58,0.14);
  padding: 10px;
  flex-direction: column;
  gap: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 30;
}
.primary-nav li.menu-item-has-children:hover > .sub-menu,
.primary-nav li.menu-item-has-children.is-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.primary-nav .sub-menu a {
  display: block;
  padding: 10px 12px;
  border-bottom: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.primary-nav .sub-menu a:hover { background: var(--light); }
.primary-nav .sub-menu li.menu-item-has-children > a::after { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--heading);
  color: var(--heading);
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 780px) {
  .primary-nav { display: none; width: 100%; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0; padding: 16px 0; }
  .primary-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-header .container { flex-wrap: wrap; }
  .nav-toggle { display: block; }

  /* Sub-menu becomes an inline expandable section on mobile, not a hover dropdown */
  .primary-nav .sub-menu {
    position: static;
    box-shadow: none;
    padding: 0 0 0 16px;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: max-height 0.2s ease;
  }
  .primary-nav li.menu-item-has-children.is-open > .sub-menu { max-height: 400px; }
  .primary-nav .sub-menu a { border-bottom: 1px solid var(--line); border-radius: 0; }
  .primary-nav li.menu-item-has-children > a { display: flex; align-items: center; justify-content: space-between; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 18px 36px;
  border-radius: 2px;
  background: var(--gold);
  color: var(--white) !important;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--teal); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border: 2px solid var(--teal);
  color: var(--teal) !important;
}
.btn-ghost:hover { background: var(--teal); color: var(--white) !important; }
.hero-cta { margin-top: 32px; display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Hero (photo background + zoom + sparkle) ---------- */
.hero {
  position: relative;
  padding: 140px 0 130px;
  background-color: var(--light);
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.55) 100%),
    linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 2; max-width: 640px; }
.hero h1 {
  font-size: clamp(32px, 4.6vw, 50px);
  margin-top: 12px;
}
.hero-sub {
  font-size: 18px;
  max-width: 50ch;
  margin-top: 16px;
}

/* Real photo layer, separated so it can animate independently of the overlay */
.hero.has-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--hero-photo);
  background-size: cover;
  background-position: center;
  z-index: 0;
  animation: hero-zoom 16s ease-in-out infinite alternate;
}
.hero.has-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.28) 65%, rgba(255,255,255,0.12) 100%);
  pointer-events: none;
}
@keyframes hero-zoom {
  0%   { transform: scale(1); }
  100% { transform: scale(1.1); }
}

/* Sparkle layer: soft drifting highlight points, subtle by design */
.hero.has-photo .sparkle-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.9) 0%, transparent 60%),
    radial-gradient(2px 2px at 65% 20%, rgba(255,255,255,0.8) 0%, transparent 60%),
    radial-gradient(1.5px 1.5px at 80% 55%, rgba(255,255,255,0.9) 0%, transparent 60%),
    radial-gradient(2px 2px at 40% 70%, rgba(255,255,255,0.7) 0%, transparent 60%),
    radial-gradient(1.5px 1.5px at 90% 80%, rgba(255,255,255,0.85) 0%, transparent 60%),
    radial-gradient(2px 2px at 10% 85%, rgba(255,255,255,0.7) 0%, transparent 60%);
  background-repeat: no-repeat;
  opacity: 0;
  animation: sparkle-twinkle 5s ease-in-out infinite;
}
@keyframes sparkle-twinkle {
  0%, 100% { opacity: 0; }
  10% { opacity: 1; }
  20% { opacity: 0.3; }
  35% { opacity: 0.9; }
  50% { opacity: 0.15; }
  65% { opacity: 0.8; }
  80% { opacity: 0.2; }
  90% { opacity: 0.7; }
}
@media (prefers-reduced-motion: reduce) {
  .hero.has-photo::before { animation: none; }
  .hero.has-photo .sparkle-layer { animation: none; opacity: 0; }
}

/* Inner-page banner (about/contact/services/blog) — smaller version of the same treatment */
.hero.hero-inner {
  padding: 90px 0 70px;
}
.hero.hero-inner:not(.has-photo) {
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.6) 100%),
    var(--page-banner-photo, linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%));
}
.hero.hero-inner:not(.has-photo)::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--page-banner-photo, none);
  background-size: cover;
  background-position: center;
  animation: hero-zoom 20s ease-in-out infinite alternate;
}
.hero.hero-inner:not(.has-photo)::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.32) 70%, rgba(255,255,255,0.14) 100%);
  pointer-events: none;
}

/* Optional: set a real photo via the hero background image field */
.hero.has-photo {
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.35) 100%),
    var(--hero-photo);
}

/* ---------- Service ticket badge (small nod to the original theme's service list widget) ---------- */
.service-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.service-badge {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--heading);
  box-shadow: 0 6px 20px rgba(25,67,118,0.08);
}
.service-badge strong { color: var(--teal); }

/* ---------- Modern rounded pass (cards, badges, images) ---------- */
.service-badge,
.service-card,
.testimonial,
.about-image-band img,
.stat,
.contact-form input,
.contact-form textarea,
.highlight-badge {
  border-radius: var(--radius);
}
.btn { border-radius: 999px; }

/* ---------- Blog grid ---------- */
.blog-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(33,48,58,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(33,48,58,0.12); }
.blog-card .thumb { aspect-ratio: 16/10; overflow: hidden; }
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.blog-card:hover .thumb img { transform: scale(1.06); }
.blog-card .body { padding: 30px 24px; }
.blog-card .meta { font-size: 12.5px; color: var(--teal); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; display: block; }
.blog-card h3 { font-size: 19px; margin-bottom: 10px; }
.blog-card h3 a { color: var(--heading); }
.blog-card p { font-size: 14.5px; color: var(--body-text); margin: 0; }
.blog-card .read-more { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--teal); }

.pagination-wrapper { margin-top: 44px; display: flex; justify-content: center; gap: 8px; }
.pagination-wrapper a, .pagination-wrapper span {
  min-width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 14px; font-weight: 600;
}
.pagination-wrapper .current { background: var(--teal); color: var(--white); border-color: var(--teal); }

/* ---------- Sidebar ---------- */
.blog-sidebar { display: flex; flex-direction: column; gap: 24px; }
.widget {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: 0 10px 30px rgba(33,48,58,0.06);
}
.widget-title {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
}
.widget .search-form { display: flex; gap: 8px; }
.widget .search-form input[type="search"] {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 14px;
}
.widget .search-form button {
  border: none;
  background: var(--teal);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 0 16px;
  font-weight: 600;
}
.widget ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--body-text); }
.widget ul li a:hover { color: var(--teal); }
.widget-recent-post { display: flex; gap: 12px; align-items: center; }
.widget-recent-post img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.widget-recent-post .rp-title { font-size: 13.5px; font-weight: 600; color: var(--heading); line-height: 1.3; }
.widget-recent-post .rp-date { font-size: 12px; color: var(--body-text); }

@media (max-width: 900px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
}
section { padding: 88px 0; }
section.alt { background: var(--light); }
.section-head { max-width: 620px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); }

/* ---------- About ---------- */
.about p { font-size: 17px; max-width: 68ch; }

/* ---------- Services (icon cards) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 34px 28px;
  text-align: center;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.service-card:hover { box-shadow: 0 20px 40px rgba(25,67,118,0.1); transform: translateY(-3px); }
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--light);
  border: 2px solid var(--teal);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 18px;
}
.service-card h3 { font-size: 19px; margin-bottom: 10px; }
.service-card p { font-size: 15px; margin: 0; }

/* ---------- Process (numbered steps) ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}
.process-step { text-align: center; }
.process-step .step-no {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.process-step h3 { font-size: 17px; margin-bottom: 6px; }
.process-step p { font-size: 14px; margin: 0; }

/* ---------- Pricing ---------- */
.price-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.price-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 30px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.price-item strong { color: var(--teal); font-size: 18px; }

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}
.testimonial {
  background: var(--white);
  border-top: 3px solid var(--gold);
  box-shadow: 0 10px 30px rgba(25,67,118,0.06);
  padding: 30px 26px;
  border-radius: 4px;
}
.testimonial p { font-style: italic; margin-bottom: 14px; }
.testimonial cite { font-style: normal; font-weight: 700; color: var(--heading); font-size: 14px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--heading);
  color: var(--white);
  text-align: center;
  padding: 70px 0;
}
.cta-band h2 { color: var(--white); }
.cta-band .btn { margin-top: 20px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #12304f;
  color: #B9C7D6;
  padding: 60px 0 28px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}
.footer-grid h3 {
  color: var(--white);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.site-footer a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 12px;
  color: #7E93AA;
}

/* ---------- Header (adds shadow once page has scrolled) ---------- */
.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(25,67,118,0.08);
}

/* ---------- Scroll reveal (single consistent interaction, respects reduced motion) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Hero photo slow zoom ---------- */
.hero.has-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--hero-photo);
  background-size: cover;
  background-position: center;
  z-index: -1;
  animation: hero-zoom 20s ease-in-out infinite alternate;
}
@keyframes hero-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
.hero.has-photo {
  overflow: hidden;
  background-image: linear-gradient(90deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.35) 100%);
}

/* ---------- Inner page hero (About / Contact) ---------- */
.hero-inner { padding: 100px 0 80px; text-align: left; }
.hero-inner .container { max-width: 760px; }

/* ---------- About image band ---------- */
.about-image-band img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 20px 50px rgba(25,67,118,0.12);
}

/* ---------- Stats / funfact strip ---------- */
.stats-strip {
  background: var(--heading);
  padding: 56px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  text-align: center;
}
.stat-number {
  display: block;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  color: var(--gold);
}
.stat-label {
  display: block;
  font-size: 14px;
  color: #C9D6E4;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}
.contact-details p { font-size: 15px; }
.contact-form label {
  display: block;
  font-weight: 600;
  color: var(--heading);
  margin: 16px 0 6px;
  font-size: 14px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--heading);
}
.contact-form button { margin-top: 20px; }
.form-notice {
  padding: 14px 18px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 14px;
}
.form-success { background: #E4F8ED; color: #1B7A43; }
.form-error { background: #FDEAEA; color: #B3261E; }

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Service page (sidebar layout) ---------- */
.service-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}
.sidebar-box {
  background: var(--light);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 30px 28px;
  margin-bottom: 20px;
}
.sidebar-box h3 {
  font-size: 16px;
  margin-bottom: 14px;
}
.service-list li {
  border-bottom: 1px solid var(--line);
}
.service-list li:last-child { border-bottom: none; }
.service-list a {
  display: block;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--body-text);
  transition: color 0.15s ease, padding-left 0.15s ease;
}
.service-list a:hover,
.service-list li.is-current a {
  color: var(--teal);
  padding-left: 6px;
}
.sidebar-cta { background: var(--heading); color: var(--white); text-align: center; }
.sidebar-cta h3 { color: var(--white); }
.sidebar-cta p { font-size: 14px; color: #C9D6E4; margin-bottom: 16px; }
.sidebar-cta .btn { width: 100%; }

.service-intro { font-size: 18px; }
.service-highlights {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 28px 0;
}
.highlight-badge {
  background: var(--light);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  padding: 30px 22px;
  flex: 1;
  min-width: 200px;
}
.highlight-badge strong {
  display: block;
  color: var(--heading);
  font-size: 16px;
  margin-bottom: 4px;
}
.highlight-badge span { font-size: 13px; color: var(--body-text); }

.faq-list { max-width: 760px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm, 10px);
  padding: 30px 24px;
  margin-bottom: 16px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--heading);
  list-style: none;
  line-height: 1.5;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  float: right;
  color: var(--teal);
  font-weight: 700;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { margin: 16px 0 0; font-size: 15px; line-height: 1.75; }

.service-main h2 { margin-top: 56px; margin-bottom: 8px; }
.service-main > h2:first-child { margin-top: 0; }
.service-main .service-intro { font-size: 18px; line-height: 1.7; margin-bottom: 8px; }
.service-main p { line-height: 1.75; margin-bottom: 18px; }
.service-main .services-grid,
.service-main .service-highlights { margin-top: 28px; margin-bottom: 8px; }

@media (max-width: 860px) {
  .service-layout { grid-template-columns: 1fr; }
}

/* ---------- Generic page (page.php / single.php) ---------- */
.page-content { padding: 64px 0; }
.page-content .container { max-width: 760px; }
.page-content h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 24px; }
.entry { line-height: 1.75; font-size: 17px; }
.entry p { margin: 0 0 22px; }
.entry h2 { font-size: 24px; margin: 48px 0 14px; }
.entry h2:first-child { margin-top: 0; }
.entry h3 { font-size: 19px; margin: 32px 0 12px; }
.entry ul, .entry ol { margin: 0 0 22px; padding-left: 22px; }
.entry li { margin-bottom: 8px; line-height: 1.7; }

/* ---------- Shared enquiry form (bottom of every page) ---------- */
.enquiry-form-section {
  background: var(--light);
  padding: 72px 0;
  border-top: 1px solid var(--line);
}
.enquiry-form-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: 0 10px 40px rgba(33,48,58,0.08);
}
.enquiry-form-intro { margin-bottom: 32px; text-align: center; }
.enquiry-form-intro h2 { margin: 8px 0 12px; font-size: clamp(24px, 3vw, 30px); }
.enquiry-form-intro p { color: var(--body-text); margin: 0; }

.enquiry-form {
  display: flex;
  flex-direction: column;
}
.enquiry-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.enquiry-form label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--heading);
  margin: 20px 0 8px;
}
.enquiry-form label:first-of-type { margin-top: 0; }
.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
  display: block;
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm, 10px);
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--white);
  color: var(--heading);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.enquiry-form input::placeholder,
.enquiry-form textarea::placeholder { color: #9aa8ae; }
.enquiry-form input:focus,
.enquiry-form select:focus,
.enquiry-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(47,122,99,0.15);
}
.enquiry-form select { appearance: auto; cursor: pointer; }
.enquiry-form textarea { min-height: 140px; resize: vertical; }
.enquiry-form .btn {
  margin-top: 28px;
  border: none;
  cursor: pointer;
  align-self: flex-start;
  padding: 18px 44px;
}
.enquiry-notice {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-sm, 10px);
  font-size: 14px;
}
.enquiry-success { background: #e6f4ec; color: var(--teal-dark, #235c4a); }
.enquiry-error { background: #fbe9e7; color: #a3341f; }

.btn-primary {
  background: var(--teal);
  color: var(--white) !important;
}
.btn-primary:hover { background: var(--teal-dark); }

.single-post-thumb { margin-bottom: 24px; border-radius: var(--radius); overflow: hidden; }
.single-post-thumb img { width: 100%; }
.single-post-content h1 { font-size: clamp(28px, 3.6vw, 40px); margin: 10px 0 24px; }

@media (max-width: 640px) {
  .enquiry-form-wrap { padding: 30px 22px; }
  .enquiry-row { grid-template-columns: 1fr; }
  .enquiry-form .btn { width: 100%; text-align: center; }
}
