:root {
  --accent: #f15949;
  --accent-dark: #d9442f;
  --dark: #2d2d37;
  --text: #4a4a55;
  --muted: #7a7a85;
  --light: #f4f5f7;
  --white: #fff;
  --max: 1140px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3, h4, h5 { color: var(--dark); font-weight: 500; line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 800px; }
.text-center { text-align: center; }

/* ---------- header */
.site-header {
  background: var(--dark);
  border-top: 5px solid var(--accent);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 16px; }
.logo img { height: 48px; width: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: block; padding: 8px 12px; color: #fff; text-decoration: none;
  font-weight: 400; font-size: 14px; letter-spacing: .02em; border-radius: var(--radius);
  transition: background .2s, color .2s;
}
.main-nav a:hover, .main-nav li.active a { color: var(--accent); }
.main-nav li.cta a { background: var(--accent); color: #fff; border-radius: 25px 0 0 25px; padding: 10px 18px; margin-left: 10px; }
.main-nav li.cta + li.cta a { background: #fff; color: var(--accent); border-radius: 0 25px 25px 0; margin-left: 0; }
.main-nav li.cta a:hover { background: #fff; color: var(--accent); }
.main-nav li.cta + li.cta a:hover { background: var(--accent); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--dark); display: none; padding: 8px 16px 20px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav li.cta a, .main-nav li.cta + li.cta a { border-radius: 25px; margin: 8px 0 0; text-align: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- page title */
.page-title { background: var(--dark) url('/wp-content/uploads/2016/06/slide-two-small.jpg') center/cover; padding: 80px 0; }
.page-title h1 { color: #fff; margin: 0; font-weight: 400; }

/* ---------- rows & grid */
.row-section { padding: 70px 0; background-size: cover; background-position: center; position: relative; }
.row-section.has-bg { color: #fff; }
.row-section.has-bg::before { content: ''; position: absolute; inset: 0; background: rgba(20,20,28,.45); }
.row-section.has-bg > .container { position: relative; }
.row-section.has-bg h2, .row-section.has-bg h3, .row-section.has-bg h4 { color: #fff; }
.row-section.parallax { background-attachment: fixed; }
.row-section.accent { color: #fff; }
.row-section.accent h2, .row-section.accent h3, .row-section.accent h4 { color: #fff; }

.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 30px; align-items: start; }
.grid.inner { margin-top: 10px; }
.col { min-width: 0; }
.col-12 { grid-column: span 12; } .col-10 { grid-column: span 10; } .col-9 { grid-column: span 9; }
.col-8 { grid-column: span 8; } .col-6 { grid-column: span 6; } .col-4 { grid-column: span 4; }
.col-3 { grid-column: span 3; } .col-2 { grid-column: span 2; }
@media (max-width: 960px) { .col-3 { grid-column: span 6; } }
@media (max-width: 760px) { .grid { grid-template-columns: 1fr; gap: 20px; } .grid > .col { grid-column: 1 / -1; } }

/* The old theme put every h2 in an accent block */
.text-block h2 { display: inline-block; max-width: 100%; overflow-wrap: break-word; background: var(--accent); color: #fff; padding: 14px 22px; font-weight: 400; }
.row-section.accent .text-block h2 { background: var(--dark); }
.text-center .text-block h2, .text-block h2[style*="center"] { display: table; margin-left: auto; margin-right: auto; }
.white, .white_text, .white_text p, .white_text li { color: #fff !important; }
.text-block ul li { margin-bottom: .3em; }
.text-block li[style*="center"] { list-style: none; }
body { overflow-x: hidden; }
.spacer { display: block; }

/* home hero */
.home .mobile-header { padding: 110px 0 90px; }
.home .mobile-header h2 { font-size: 2.4rem; }
.home .mobile-header h3 { font-weight: 300; }

/* ---------- buttons */
.btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  padding: 12px 30px; border: 2px solid var(--accent); border-radius: var(--radius) var(--radius) 0 var(--radius);
  font-weight: 500; font-size: 14px; text-transform: uppercase; letter-spacing: .05em;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s; font-family: inherit;
}
.btn:hover { background: var(--dark); border-color: var(--dark); color: #fff; }
.btn-white { background: #fff; color: var(--accent); border-color: #fff; }
.btn-white:hover { background: var(--dark); border-color: var(--dark); color: #fff; }
.btn-block { display: block; text-align: center; margin-top: 40px; padding: 18px; }
.row-section.accent .btn:not(.btn-white) { background: var(--dark); border-color: var(--dark); }

/* ---------- images */
.image img, .crossfade img { border-radius: var(--radius); }
.image.align-center img { margin: 0 auto; }
.image.align-right img { margin-left: auto; }
.crossfade { position: relative; margin: 0; }
.crossfade .hover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.crossfade:hover .hover { opacity: 1; }
figure { margin: 0 0 1em; }

/* ---------- features */
.feature { text-align: left; margin-bottom: 8px; }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--accent); color: #fff; font-size: 18px; margin-bottom: 12px;
}
.feature h4 { font-weight: 400; font-size: 16px; text-transform: uppercase; letter-spacing: .04em; }
.icon-text { text-align: center; }
.icon-text-icon { font-size: 44px; line-height: 1; margin-bottom: 12px; }

/* ---------- video */
.video-embed { position: relative; max-width: 800px; margin: 40px auto 0; aspect-ratio: 16 / 9; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-box { position: relative; display: block; border-radius: var(--radius); overflow: hidden; }
.video-box .play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 28px; padding-left: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,.3); transition: transform .2s;
}
.video-box:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.video-box iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }

/* ---------- accordion */
.accordion details { border-bottom: 1px solid #e3e4e8; }
.accordion summary {
  cursor: pointer; padding: 16px 40px 16px 0; font-weight: 500; color: var(--dark); list-style: none; position: relative;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; position: absolute; right: 8px; top: 12px; font-size: 22px; color: var(--accent); }
.accordion details[open] summary::after { content: '–'; }
.accordion-body { padding: 0 0 16px; }

/* ---------- testimonials */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; text-align: center; margin-top: 20px; }
.testimonial { margin: 0; background: #edeff1; color: var(--text); padding: 50px 37px; border-radius: var(--radius); }
.testimonial h4 { color: var(--dark) !important; }
.testimonial p { font-size: 1.1rem; font-style: italic; }
.testimonial cite { font-style: normal; font-weight: 500; color: var(--accent); }

/* ---------- blog cards */
.qode-elements-holder-item > .image { display: none; }
.post-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.post-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 18px rgba(0,0,0,.08); display: flex; flex-direction: column; color: var(--text); }
.post-card-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0; }
.post-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.15rem; }
.post-card h3 a { color: var(--dark); text-decoration: none; }
.post-card h3 a:hover { color: var(--accent); }
.post-card time { font-size: 13px; color: var(--muted); }
.post-card .read-more { margin-top: auto; font-weight: 500; text-decoration: none; }
.row-section.parallax + .row-section .post-cards { margin-top: -380px; position: relative; }
.post time { display: block; color: var(--muted); margin-bottom: 20px; }
.post .image img { width: 100%; }

/* ---------- forms */
input[type=text], input[type=email], textarea {
  width: 100%; font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid #d5d7dd;
  border-radius: var(--radius); background: #fff; color: var(--dark); margin-bottom: 12px;
}
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.hp { position: absolute !important; left: -9999px; }
.signup-form { margin-top: 10px; max-width: 520px; }
.text-center .signup-form { margin-left: auto; margin-right: auto; }
.signup-form h3 { font-size: 1.15rem; font-weight: 400; }
.signup-row { display: flex; gap: 8px; }
.signup-row input { margin: 0; flex: 1; }
.signup-row .btn { white-space: nowrap; }
@media (max-width: 480px) { .signup-row { flex-direction: column; } }
.has-bg .signup-form h3, .accent .signup-form h3 { color: #fff; }
.form-status { margin-top: 10px; padding: 10px 14px; border-radius: var(--radius); background: #e8f6ee; color: #1d6b3f; font-weight: 400; }
.form-status.error { background: #fdecea; color: #a12a1c; }

/* ---------- footer */
.site-footer { background: var(--dark); color: #b9b9c3; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; padding-top: 60px; padding-bottom: 40px; }
.site-footer h4 { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #d9d9e0; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.social { display: flex; gap: 10px; }
.social a { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; align-items: center; justify-content: center; background: rgba(255,255,255,.08); }
.social a:hover { background: var(--accent); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; font-size: 13px; }
@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; } h2, .home .mobile-header h2 { font-size: 1.6rem; }
  .row-section { padding: 50px 0; }
  .row-section.parallax { background-attachment: scroll; }
  .row-section.parallax + .row-section .post-cards { margin-top: -300px; }
}
