/* Old Fashion Moving — Minimalistic Redesign
   Clean typography, generous whitespace, one refined accent. */

/* Inter font loaded via link tag in header */

:root {
  --ofm-bg: #ffffff;
  --ofm-bg-soft: #f7f8f7;
  --ofm-ink: #17211f;
  --ofm-ink-soft: #5b6663;
  --ofm-line: #e7ebe9;
  --ofm-accent: #111111;
  --ofm-accent-dark: #0a5f52;
  --ofm-accent-soft: #e6f4f1;
  --ofm-radius: 14px;
}

/* ---------- Base ---------- */
body, body.et-db #page-container {
  font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif !important;
  color: var(--ofm-ink);
  background: var(--ofm-bg);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif !important;
  color: var(--ofm-ink) !important;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 2.5rem 0 1rem; }
h3 { font-size: 1.25rem; }
p { color: var(--ofm-ink-soft); margin-bottom: 1.1rem; }
a { color: var(--ofm-accent); }
a:hover { color: var(--ofm-accent-dark); }

/* ---------- Layout whitespace ---------- */
.et_pb_section { padding: 72px 0 !important; }
.et_pb_row { max-width: 1140px; }
.entry-content { max-width: 780px; margin: 0 auto; padding: 48px 24px 72px; }
.entry-content ul { margin: 0 0 1.5rem 1.2rem; }
.entry-content li { color: var(--ofm-ink-soft); margin-bottom: 0.55rem; }
.entry-content li::marker { color: var(--ofm-accent); }
.entry-content li a { font-weight: 500; }

/* ---------- Header ---------- */
#main-header, .et-l--header .et_pb_section {
  background: rgba(255,255,255,0.92) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ofm-line);
  box-shadow: none !important;
}
.et-menu.nav li a {
  font-weight: 500 !important;
  font-size: 15px !important;
  color: var(--ofm-ink) !important;
  padding: 10px 14px !important;
  border-radius: 8px;
}
.et-menu.nav li a:hover {
  color: var(--ofm-accent) !important;
  background: var(--ofm-accent-soft);
  opacity: 1 !important;
}
.et-menu .sub-menu, .et-menu .children {
  border: 1px solid var(--ofm-line) !important;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(23,33,31,0.10) !important;
  padding: 8px !important;
  border-top: none !important;
}
.et-menu .sub-menu li a { padding: 10px 14px !important; }

/* ---------- Buttons ---------- */
.et_pb_button, .btn, button, input[type="submit"] {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  border-radius: 999px !important;
  padding: 14px 32px !important;
  border: none !important;
  background: var(--ofm-accent) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(14,124,107,0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.et_pb_button:hover, button:hover, input[type="submit"]:hover {
  background: var(--ofm-accent-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(14,124,107,0.30);
  color: #fff !important;
}
.et_pb_button:after { display: none !important; }

/* Phone CTA emphasis */
a[href^="tel:"] { font-weight: 600; }

/* ---------- Cards ---------- */
.et_pb_blurb, .et_pb_pricing_table, .et_pb_team_member {
  background: #fff;
  border: 1px solid var(--ofm-line);
  border-radius: var(--ofm-radius);
  padding: 32px 28px;
  box-shadow: 0 1px 3px rgba(23,33,31,0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.et_pb_blurb:hover {
  box-shadow: 0 12px 28px rgba(23,33,31,0.08);
  transform: translateY(-2px);
}

/* ---------- Testimonials / quotes ---------- */
.et_pb_testimonial {
  background: var(--ofm-bg-soft);
  border: none;
  border-radius: var(--ofm-radius);
  padding: 32px;
}
.et_pb_testimonial .et_pb_testimonial_content { font-size: 17px; }

/* ---------- Forms ---------- */
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  border: 1px solid var(--ofm-line) !important;
  border-radius: 10px !important;
  padding: 13px 16px !important;
  font-size: 16px !important;
  font-family: 'Inter', sans-serif !important;
  background: #fff !important;
  color: var(--ofm-ink) !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--ofm-accent) !important;
  box-shadow: 0 0 0 3px var(--ofm-accent-soft) !important;
  outline: none !important;
}
.et_pb_contact_form .et_pb_contact_field { margin-bottom: 16px; }

/* ---------- Footer ---------- */
#main-footer, .et-l--footer .et_pb_section {
  background: #101614 !important;
  color: #a7b3b0 !important;
}
#main-footer h4, .et-l--footer h4 { color: #fff !important; }
#main-footer a, .et-l--footer a { color: #cfd8d6 !important; }
#main-footer a:hover, .et-l--footer a:hover { color: #fff !important; }
#footer-bottom { background: #0b0f0e !important; border-top: 1px solid #1e2a27; }

/* ---------- Town & service pages hero touch ---------- */
.entry-content h1:first-child {
  padding-top: 8px;
}
.entry-content > p:first-of-type {
  font-size: 19px;
  color: var(--ofm-ink);
}
/* CTA band on inner pages */
.entry-content p strong:last-child { color: var(--ofm-ink); }

/* ---------- Slider / hero refinement ---------- */
.et_pb_slider .et_pb_slide_description h2, .et_pb_slider h1 {
  letter-spacing: -0.02em !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25) !important;
}

/* ---------- Misc polish ---------- */
.et_pb_section_0, .et_pb_section:first-of-type { padding-top: 40px !important; }
img { border-radius: 8px; }
.et_pb_image img { box-shadow: 0 8px 24px rgba(23,33,31,0.08); }

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  body { font-size: 16px; }
  .et_pb_section { padding: 48px 0 !important; }
  .entry-content { padding: 32px 20px 56px; }
  .et_pb_button { width: 100%; text-align: center; }
}

/* ---------- Header fixes: visible nav, compact header ---------- */
#main-header .et-menu.nav li a,
.et-l--header .et-menu.nav li a {
  color: #17211f !important;
}
#main-header .et-menu.nav li a:hover,
.et-l--header .et-menu.nav li a:hover {
  color: #111111 !important;
  background: #e6f4f1;
}
#main-header .et-menu.nav li.current-menu-item > a {
  color: #111111 !important;
}
/* Compact the header */
#main-header, .et-l--header .et_pb_section {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}
.et-l--header .et_pb_row {
  padding: 8px 0 !important;
  min-height: 0 !important;
}
/* Logo sizing */
#logo, .et-l--header img {
  max-height: 60px !important;
  width: auto !important;
}

/* ---------- Header nav: single line, consistent case ---------- */
.et-menu.nav {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: center;
  align-items: center;
}
.et-menu.nav > li {
  white-space: nowrap !important;
  padding: 0 4px !important;
}
.et-menu.nav > li > a {
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

/* ---------- Force all buttons black (override Divi module colors) ---------- */
.et_pb_button,
.et_pb_button:hover,
a.et_pb_button,
.wp-block-button__link,
button[type="submit"],
input[type="submit"] {
  background-color: #111111 !important;
  background: #111111 !important;
  border-color: #111111 !important;
  color: #ffffff !important;
}

/* ---------- Nuclear option: force black buttons ---------- */
body a.et_pb_button,
body a.et_pb_button:hover,
body .et_pb_button_module_wrapper a.et_pb_button,
#page-container a.et_pb_button {
  background-color: #111111 !important;
  background-image: none !important;
  border-color: #111111 !important;
  color: #ffffff !important;
}

/* ---------- Show contact form labels ---------- */
.et_pb_contact_form_label {
  display: block !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  color: #111111 !important;
  margin-bottom: 6px !important;
  font-family: 'Inter', sans-serif !important;
}
.et_pb_contact_form p input,
.et_pb_contact_form p textarea {
  margin-top: 0 !important;
}

/* ---------- Task 2: Service accordions (What We Offer) ---------- */
.et_pb_accordion .et_pb_toggle {
  background: #ffffff !important;
  border: 1px solid var(--ofm-line) !important;
  border-radius: 12px !important;
  margin-bottom: 12px !important;
  box-shadow: 0 1px 3px rgba(23,33,31,0.04) !important;
  transition: box-shadow 0.2s ease, border-color 0.2s ease !important;
}
.et_pb_accordion .et_pb_toggle:hover {
  box-shadow: 0 8px 24px rgba(23,33,31,0.08) !important;
  border-color: #111111 !important;
}
.et_pb_accordion .et_pb_toggle_title {
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  font-size: 17px !important;
  letter-spacing: 0.02em !important;
  color: #111111 !important;
  padding: 20px 24px !important;
}
.et_pb_accordion .et_pb_toggle_content {
  padding: 0 24px 24px !important;
  color: var(--ofm-ink-soft) !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
}
.et_pb_accordion .et_pb_toggle_open {
  border-color: #111111 !important;
  box-shadow: 0 12px 32px rgba(23,33,31,0.10) !important;
}

/* ---------- Task 3: Testimonials premium styling ---------- */
.et_pb_testimonial {
  background: #ffffff !important;
  border: 1px solid var(--ofm-line) !important;
  border-radius: 16px !important;
  padding: 40px 36px !important;
  box-shadow: 0 4px 20px rgba(23,33,31,0.06) !important;
  position: relative;
}
.et_pb_testimonial:before {
  content: "\201C";
  position: absolute;
  top: 16px;
  left: 28px;
  font-size: 64px;
  font-family: Georgia, serif;
  color: #111111;
  opacity: 0.12;
  line-height: 1;
}
.et_pb_testimonial_description_inner {
  font-size: 17px !important;
  line-height: 1.8 !important;
  color: #17211f !important;
  font-style: normal !important;
}
.et_pb_testimonial_author {
  margin-top: 20px !important;
  font-weight: 700 !important;
  color: #111111 !important;
  font-size: 15px !important;
}
.et_pb_testimonial_meta {
  color: #5b6663 !important;
  font-size: 14px !important;
}

/* ---------- Task 4: Footer redesign ---------- */
#main-footer {
  background: #111111 !important;
  color: #b8b8b8 !important;
  padding: 64px 0 32px !important;
}
#main-footer h4, .et-l--footer h4 {
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  margin-bottom: 20px !important;
}
#main-footer a, .et-l--footer a {
  color: #b8b8b8 !important;
  font-size: 15px !important;
  line-height: 2.1 !important;
  transition: color 0.15s ease !important;
}
#main-footer a:hover, .et-l--footer a:hover {
  color: #ffffff !important;
}
#footer-bottom {
  background: #0a0a0a !important;
  border-top: 1px solid #222222 !important;
  padding: 20px 0 !important;
  color: #888888 !important;
  font-size: 13px !important;
}
#footer-bottom a { color: #aaaaaa !important; }
#footer-info { color: #888888 !important; }

/* Homepage footer contact section cleanup */
.et_pb_section .et_pb_contact_form h2 {
  font-family: 'Inter', sans-serif !important;
  letter-spacing: -0.02em !important;
}

/* ---------- Hero Ken Burns effect (subtle slow zoom on slider images) ---------- */
.et_pb_slide {
  overflow: hidden;
}
.et_pb_slide .et_pb_slide_image,
.et_pb_slide .et_pb_container {
  animation: ofm-kenburns 20s ease-in-out infinite alternate;
}
@keyframes ofm-kenburns {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}
/* Video background support: when Jonathan uploads a hero video,
   add class "ofm-video-hero" to the slide and place a <video> tag
   with autoplay muted loop playsinline inside .et_pb_slide */
.ofm-video-hero video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.ofm-video-hero .et_pb_container {
  position: relative;
  z-index: 1;
}
