/*
 Theme Name: Astra Child - Elliott Clays
 Template: astra
 Description: Child theme for Elliott Clays — premium redesign
 Version: 2.0.0
*/

/* ============================================================
   FONTS — Playfair Display + Inter via Google Fonts
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --ec-green:        #1e3318;
  --ec-green-mid:    #2a4422;
  --ec-green-light:  #3d5c30;
  --ec-brown:        #5c3d1e;
  --ec-amber:        #b87216;
  --ec-amber-light:  #d4901e;
  --ec-amber-hover:  #96600f;
  --ec-slate:        #2e3c30;
  --ec-cream:        #f5f1e8;
  --ec-cream-dark:   #e6e0d0;
  --ec-cream-deeper: #d4ccb8;
  --ec-white:        #ffffff;
  --ec-text:         #1a1a1a;
  --ec-text-mid:     #3d3d3d;
  --ec-text-light:   #5f5f5f;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:  0 6px 24px rgba(0,0,0,0.12);
  --shadow-lg:  0 16px 48px rgba(0,0,0,0.16);
  --radius:     0px; /* Square — estate/country aesthetic */
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width:  1140px;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ec-text);
  background: var(--ec-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--ec-amber);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--ec-amber-hover); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--ec-green);
  line-height: 1.25;
  font-weight: 700;
  margin-top: 0;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

.entry-content p,
p { font-size: 1.05rem; line-height: 1.8; color: var(--ec-text-mid); margin-bottom: 1.2em; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header,
.ast-primary-header-bar {
  background-color: var(--ec-green) !important;
  transition: background-color 0.3s ease, box-shadow 0.3s ease !important;
}

.ec-header-scrolled .site-header,
.ec-header-scrolled.site-header {
  box-shadow: 0 2px 20px rgba(0,0,0,0.3) !important;
}

.ast-primary-header-bar {
  padding: 16px 0 !important;
}

/* Logo / site title */
.site-title,
.site-title a,
.ast-site-identity .site-title a {
  font-family: var(--font-head) !important;
  font-size: 1.55rem !important;
  font-weight: 700 !important;
  color: var(--ec-white) !important;
  letter-spacing: 0.02em;
}

.site-description,
.ast-site-identity .site-description {
  font-family: var(--font-body) !important;
  font-size: 0.68rem !important;
  color: rgba(255,255,255,0.6) !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
}

/* Primary nav */
.main-header-menu .menu-item > a,
.ast-nav-menu > .menu-item > a {
  font-family: var(--font-body) !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,0.85) !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 16px !important;
  position: relative;
  transition: color var(--transition) !important;
}

.main-header-menu .menu-item > a::after,
.ast-nav-menu > .menu-item > a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 1px;
  background: var(--ec-amber);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}

.main-header-menu .menu-item > a:hover::after,
.ast-nav-menu > .menu-item > a:hover::after,
.main-header-menu .current-menu-item > a::after,
.ast-nav-menu > .current-menu-item > a::after {
  transform: scaleX(1);
}

.main-header-menu .menu-item > a:hover,
.ast-nav-menu > .menu-item > a:hover,
.main-header-menu .current-menu-item > a,
.ast-nav-menu > .current-menu-item > a {
  color: var(--ec-white) !important;
}

/* Phone bar above header */
.ast-above-header-bar,
.ast-above-header-section {
  background-color: var(--ec-slate) !important;
}
.ast-above-header-bar .ast-header-html-code,
.ast-above-header-section * {
  color: rgba(255,255,255,0.75) !important;
  font-size: 0.78rem !important;
  font-family: var(--font-body) !important;
}
.ast-above-header-bar a { color: var(--ec-amber-light) !important; }

/* ============================================================
   HERO — COVER BLOCK PARALLAX
   ============================================================ */
.wp-block-cover {
  overflow: hidden;
  position: relative;
}

.wp-block-cover__image-background {
  transition: none !important; /* parallax handles this */
}

/* Gradient overlay to make text pop */
.wp-block-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.05) 40%,
    rgba(0,0,0,0.35) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
  padding: 48px 24px !important;
}

/* Hero heading */
.wp-block-cover h1 {
  color: var(--ec-white) !important;
  font-size: clamp(2rem, 5vw, 3.6rem) !important;
  font-weight: 700;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
  margin-bottom: 16px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: -0.01em;
}

.wp-block-cover p {
  font-size: clamp(1rem, 2vw, 1.2rem) !important;
  color: rgba(255,255,255,0.88) !important;
  font-style: italic;
  font-family: var(--font-head) !important;
  margin-bottom: 32px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

/* Hero min-height */
.wp-block-cover[style*="min-height:480px"] {
  min-height: 580px !important;
}

/* ============================================================
   PAGE HERO BANNER (service pages)
   ============================================================ */
.ec-page-hero {
  position: relative;
  background-color: var(--ec-green);
  padding: 80px 24px 72px;
  text-align: center;
  overflow: hidden;
}

.ec-page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(30,51,24,0.55), rgba(30,51,24,0.75));
  z-index: 1;
  pointer-events: none;
}

.ec-page-hero img {
  position: absolute;
  inset: -15% 0;
  width: 100%;
  height: 130%;
  object-fit: cover;
  opacity: 0.65;
}

.ec-page-hero h1 {
  position: relative;
  color: var(--ec-white);
  z-index: 2;
  font-size: clamp(1.8rem, 5vw, 3rem);
  margin: 0 auto;
  max-width: 780px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  font-weight: 700;
}

.ec-page-hero p {
  position: relative;
  z-index: 2;
  color: rgba(255,255,255,0.82);
  font-style: italic;
  font-family: var(--font-head);
  font-size: 1.1rem;
  margin: 10px auto 0;
  max-width: 600px;
}

/* Decorative rule under page hero */
.ec-page-hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--ec-amber);
  z-index: 3;
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.ec-trust-bar {
  background: linear-gradient(135deg, var(--ec-green) 0%, var(--ec-green-mid) 100%);
  color: var(--ec-white);
  text-align: center;
  padding: 56px 24px;
  position: relative;
}

.ec-trust-bar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--ec-amber), transparent);
}

.ec-trust-bar h2 {
  color: var(--ec-cream) !important;
  font-size: 1rem !important;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500 !important;
  font-family: var(--font-body) !important;
  margin-bottom: 32px;
  opacity: 0.75;
}

.ec-trust-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
}

.ec-trust-item {
  text-align: center;
  padding: 16px 40px;
  position: relative;
  flex: 0 0 auto;
}

.ec-trust-item + .ec-trust-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255,255,255,0.2);
}

.ec-trust-item .ec-trust-number {
  display: block;
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
  color: var(--ec-amber-light);
  line-height: 1;
  margin-bottom: 8px;
}

.ec-trust-item p {
  font-size: 0.72rem !important;
  color: rgba(255,255,255,0.65) !important;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
}

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */
.wp-block-group,
.entry-content > *:not(.wp-block-cover):not(.ec-trust-bar):not(.wp-block-html) {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.ast-container { max-width: var(--max-width) !important; }

/* Intro text section */
.wp-block-group[style*="padding-top:3rem"],
.wp-block-group[style*="padding-top:2.5rem"] {
  padding-left: 40px !important;
  padding-right: 40px !important;
}

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.ec-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--ec-cream-deep, #cbc5b0);
  margin: 0;
  padding: 0;
}

.ec-service-card {
  background: var(--ec-white);
  padding: 36px 32px 32px;
  position: relative;
  transition: background-color var(--transition), transform var(--transition);
  overflow: hidden;
}

.ec-service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--ec-green-light);
  transition: background-color var(--transition), transform var(--transition);
  transform: scaleX(0);
  transform-origin: left;
}

.ec-service-card:hover::before {
  transform: scaleX(1);
  background: var(--ec-amber);
}

.ec-service-card:hover {
  background: var(--ec-cream);
  transform: translateY(-2px);
}

.ec-service-card h3 {
  font-size: 1.2rem;
  color: var(--ec-green);
  margin-bottom: 12px;
  font-family: var(--font-head);
}

.ec-service-card p {
  font-size: 0.95rem !important;
  line-height: 1.7;
  color: var(--ec-text-light) !important;
  margin-bottom: 20px;
}

.ec-service-card a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ec-amber) !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ec-service-card a::after {
  content: '→';
  transition: transform var(--transition);
}
.ec-service-card:hover a::after {
  transform: translateX(4px);
}

/* Wrapper around .ec-services for full bleed + max-width */
.ec-services-wrap {
  background: var(--ec-cream-darker, #cbc5b0);
  padding: 0 0 64px;
}
.ec-services-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ============================================================
   GEORGE BIO BLOCK
   ============================================================ */
.ec-george-bio {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 40px 40px;
  background: var(--ec-cream);
  position: relative;
}

.ec-george-bio::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--ec-amber);
}

.ec-george-bio__photo {
  flex: 0 0 100px;
  width: 100px !important;
  height: 100px;
  object-fit: cover;
  object-position: top center;
  border: 3px solid var(--ec-white);
  box-shadow: var(--shadow-md);
  filter: grayscale(15%);
}

.ec-george-bio__content {
  flex: 1;
  min-width: 0;
}

.ec-george-bio__content h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
  color: var(--ec-green);
}

.ec-george-bio__content .ec-george-bio__role {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ec-amber);
  font-weight: 600;
  margin-bottom: 14px;
  display: block;
}

.ec-george-bio__content p {
  font-size: 0.97rem !important;
  line-height: 1.75;
  color: var(--ec-text-mid) !important;
  margin-bottom: 16px;
}

.ec-george-bio__content a.ec-bio-link {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ec-amber) !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ec-george-bio__content a.ec-bio-link::after {
  content: '→';
  transition: transform var(--transition);
}
.ec-george-bio__content a.ec-bio-link:hover::after {
  transform: translateX(4px);
}

/* George section wrapper */
.ec-george-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 40px;
}

.ec-george-section h2 {
  font-size: 0.75rem !important;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ec-amber) !important;
  font-family: var(--font-body) !important;
  font-weight: 600;
  margin-bottom: 24px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.wp-block-button .wp-block-button__link,
.ec-btn {
  display: inline-block;
  background: var(--ec-amber) !important;
  color: var(--ec-white) !important;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid var(--ec-amber) !important;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none !important;
  border-radius: 0 !important;
  box-shadow: 0 4px 14px rgba(184,114,22,0.28);
}

.wp-block-button .wp-block-button__link:hover,
.ec-btn:hover {
  background: var(--ec-amber-hover) !important;
  border-color: var(--ec-amber-hover) !important;
  box-shadow: 0 6px 20px rgba(184,114,22,0.35);
  transform: translateY(-2px);
  text-decoration: none !important;
}

/* Outline variant */
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  border: 2px solid rgba(255,255,255,0.85) !important;
  color: var(--ec-white) !important;
  box-shadow: none;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: rgba(255,255,255,0.12) !important;
  border-color: var(--ec-white) !important;
}

/* Button gap */
.wp-block-buttons { gap: 14px; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.ec-cta {
  background: var(--ec-cream);
  border-left: 4px solid var(--ec-amber);
  padding: 36px 40px;
  margin: 48px 0;
  position: relative;
}

.ec-cta h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--ec-green);
}

.ec-cta p { color: var(--ec-text-mid) !important; }

.ec-phone {
  font-family: var(--font-head);
  font-size: 1.8rem !important;
  font-weight: 700;
  color: var(--ec-green) !important;
  letter-spacing: -0.01em;
  display: block;
  margin: 8px 0;
}
.ec-phone a { color: var(--ec-green) !important; }
.ec-phone a:hover { color: var(--ec-amber) !important; }

.ec-cta .ec-btn { margin-top: 8px; }

/* Full-width dark CTA */
.ec-cta-dark {
  background: linear-gradient(135deg, var(--ec-green) 0%, var(--ec-green-mid) 100%);
  text-align: center;
  padding: 64px 40px;
  margin: 0;
}
.ec-cta-dark h3 {
  color: var(--ec-cream) !important;
  font-size: 1.8rem;
  margin-bottom: 12px;
}
.ec-cta-dark p { color: rgba(255,255,255,0.75) !important; margin-bottom: 24px; }
.ec-cta-dark .ec-phone { color: var(--ec-white) !important; font-size: 2rem !important; }
.ec-cta-dark .ec-phone a { color: var(--ec-white) !important; }
.ec-cta-dark .ec-phone a:hover { color: var(--ec-amber-light) !important; }

/* ============================================================
   HIGHLIGHT BOX
   ============================================================ */
.ec-highlight {
  background: var(--ec-green);
  color: var(--ec-white);
  padding: 36px 40px;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}

.ec-highlight::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border: 2px solid rgba(255,255,255,0.06);
  border-radius: 50%;
}

.ec-highlight h3 {
  color: var(--ec-amber-light) !important;
  margin-bottom: 10px;
  font-size: 1.2rem;
}
.ec-highlight p { color: rgba(255,255,255,0.85) !important; margin: 0; }

/* ============================================================
   FAQ
   ============================================================ */
.ec-faq {
  padding: 56px 0;
  border-top: 1px solid var(--ec-cream-dark);
}

.ec-faq h2 {
  font-size: 1.6rem;
  margin-bottom: 32px;
  color: var(--ec-green);
}

details.ec-faq-item {
  border-bottom: 1px solid var(--ec-cream-dark);
}

details.ec-faq-item summary {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ec-green);
  cursor: pointer;
  font-size: 1.05rem;
  padding: 18px 36px 18px 0;
  list-style: none;
  position: relative;
  user-select: none;
  transition: color var(--transition);
}
details.ec-faq-item summary::-webkit-details-marker { display: none; }
details.ec-faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ec-amber);
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
  transition: transform var(--transition), color var(--transition);
  font-family: var(--font-body);
}
details.ec-faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
  color: var(--ec-green);
}
details.ec-faq-item[open] summary { color: var(--ec-green); }

details.ec-faq-item p {
  padding: 0 40px 20px 0;
  color: var(--ec-text-light) !important;
  font-size: 0.97rem !important;
  line-height: 1.8;
  margin: 0;
}

/* ============================================================
   DAY TIMELINE
   ============================================================ */
.ec-timeline {
  list-style: none;
  padding: 0;
  margin: 32px 0;
}

.ec-timeline li {
  padding: 20px 0 20px 80px;
  position: relative;
  border-left: 2px solid var(--ec-cream-dark);
  margin-left: 48px;
}

.ec-timeline li::before {
  content: attr(data-time);
  position: absolute;
  left: -82px;
  top: 20px;
  background: var(--ec-amber);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-body);
  padding: 4px 8px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.ec-timeline li::after {
  content: '';
  position: absolute;
  left: -5px;
  top: 26px;
  width: 8px;
  height: 8px;
  background: var(--ec-amber);
  border-radius: 50%;
}

.ec-timeline li strong { color: var(--ec-green); font-size: 1.05rem; display: block; margin-bottom: 4px; }

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.ec-will-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.ec-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger service cards */
.ec-service-card:nth-child(1) { transition-delay: 0s; }
.ec-service-card:nth-child(2) { transition-delay: 0.08s; }
.ec-service-card:nth-child(3) { transition-delay: 0.16s; }
.ec-service-card:nth-child(4) { transition-delay: 0.24s; }

.ec-trust-item:nth-child(1) { transition-delay: 0s; }
.ec-trust-item:nth-child(2) { transition-delay: 0.07s; }
.ec-trust-item:nth-child(3) { transition-delay: 0.14s; }
.ec-trust-item:nth-child(4) { transition-delay: 0.21s; }

/* ============================================================
   COLUMNS (WP blocks)
   ============================================================ */
.wp-block-columns { gap: 40px !important; align-items: flex-start; }
.wp-block-column { min-width: 0; }

/* ============================================================
   IMAGES
   ============================================================ */
.wp-block-image figure { margin: 0; }
.wp-block-image img {
  width: 100%;
  display: block;
  max-height: 500px;
  object-fit: cover;
}

/* ============================================================
   BLOG — POST CARDS
   ============================================================ */
.ast-article-post,
.ast-article-inner {
  background: var(--ec-white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.ast-article-post:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.entry-title a { color: var(--ec-green) !important; font-family: var(--font-head); }
.entry-title a:hover { color: var(--ec-amber) !important; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="number"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--ec-cream-dark);
  border-bottom: 2px solid var(--ec-cream-dark);
  background: var(--ec-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ec-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  border-radius: 0;
  outline: none;
  -webkit-appearance: none;
}

.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  border-bottom-color: var(--ec-amber);
  box-shadow: 0 2px 0 var(--ec-amber);
}

.wpcf7-form input[type="submit"] {
  background: var(--ec-amber);
  color: white;
  border: 2px solid var(--ec-amber);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 14px 36px;
  width: auto;
  transition: all var(--transition);
  box-shadow: 0 4px 14px rgba(184,114,22,0.25);
}
.wpcf7-form input[type="submit"]:hover {
  background: var(--ec-amber-hover);
  border-color: var(--ec-amber-hover);
  box-shadow: 0 6px 20px rgba(184,114,22,0.35);
  transform: translateY(-2px);
}

/* ============================================================
   SEPARATOR
   ============================================================ */
.wp-block-separator {
  border: none;
  border-top: 1px solid var(--ec-cream-dark) !important;
  margin: 48px 0 !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer,
.footer-widget-area,
.ast-footer-widgets-wrap {
  background-color: var(--ec-green) !important;
}

.ast-footer-widgets-wrap {
  padding: 56px 0 32px !important;
}

.widget_text p,
.widget_text li,
.footer-widget-area p,
.footer-widget-area li {
  color: rgba(255,255,255,0.65) !important;
  font-size: 0.9rem !important;
  line-height: 1.8;
}

.footer-widget-area a {
  color: rgba(255,255,255,0.65) !important;
  transition: color var(--transition);
}
.footer-widget-area a:hover { color: var(--ec-amber-light) !important; }

.footer-widget-area h2,
.footer-widget-area h3,
.footer-widget-area .widgettitle {
  color: var(--ec-cream) !important;
  font-family: var(--font-body) !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding-bottom: 12px;
  margin-bottom: 20px !important;
}

.ast-small-footer,
.ast-small-footer-wrap {
  background-color: #111e0d !important;
  border-top: 1px solid rgba(255,255,255,0.06) !important;
}

.ast-small-footer-section,
.ast-small-footer p,
.ast-small-footer span {
  color: rgba(255,255,255,0.35) !important;
  font-size: 0.75rem !important;
  font-family: var(--font-body) !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .ec-george-bio {
    padding: 32px 24px;
    gap: 20px;
  }
  .ec-george-section {
    padding: 48px 24px;
  }
  .wp-block-group[style*="padding-top:3rem"],
  .wp-block-group[style*="padding-top:2.5rem"] {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
  .ec-trust-item { padding: 16px 24px; }
  .ec-trust-item + .ec-trust-item::before { display: none; }
}

@media (max-width: 600px) {
  .ec-george-bio {
    flex-direction: column;
    gap: 16px;
  }
  .ec-george-bio__photo {
    width: 80px !important;
    height: 80px;
  }
  .ec-phone { font-size: 1.5rem !important; }
  .ec-trust-items { gap: 8px; }
  .ec-trust-item { padding: 12px 16px; }
  .ec-trust-item .ec-trust-number { font-size: 2.2rem; }
  .wp-block-cover[style*="min-height:480px"] { min-height: 420px !important; }
  .ec-cta { padding: 24px 20px; }
  .ec-highlight { padding: 24px 20px; }
}

/* ============================================================
   ASTRA OVERRIDES
   ============================================================ */
.ast-page-builder-template .entry-content-wrap { padding: 0 !important; }
.ast-single-post .entry-content { padding: 40px !important; }
.page .entry-content,
.ast-separate-container .entry-content-wrap {
  padding: 0;
}

/* Remove default page title on front page */
.home .entry-header { display: none; }

/* Fix Astra's container max-width */
.ast-container {
  max-width: var(--max-width) !important;
  padding-left: 24px;
  padding-right: 24px;
}

/* Mobile menu */
.ast-mobile-header-stack .ast-main-header-bar-alignment,
.ast-mobile-menu-trigger-fill { background: var(--ec-green) !important; }
button.ast-mobile-menu-trigger-fill { color: var(--ec-white) !important; }

/* ============================================================
   PAGE TITLE / ENTRY-HEADER SUPPRESSION
   The ec-page-hero and wp-block-cover already carry the H1.
   Astra's entry-header duplicates it — hide on all pages.
   ============================================================ */

/* Hide redundant plain-text title on all pages and posts */
.page .entry-header,
.single .entry-header {
  display: none;
}

/* Remove the padding/margin Astra adds above page content
   that was sized to accommodate the now-hidden title */
.page .ast-article-single,
.page .entry-content-wrap {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Pull the hero right up under the nav, no gap */
.page .entry-content > .wp-block-html:first-child,
.page .entry-content > p:first-child {
  margin-top: 0;
  padding-top: 0;
}

/* Astra adds padding inside .site-content on pages — remove it */
.page .ast-container > .content-area,
.page #content.site-content,
.page .ast-primary-content-area {
  padding-top: 0 !important;
}

/* For the homepage cover block — already handled, but be explicit */
.home .entry-header { display: none; }
.home .ast-article-single,
.home .entry-content-wrap {
  padding-top: 0 !important;
}
