/* ============================================================
   ECT Consulting — Static Site Stylesheet
   Based on Hemingway theme + custom child theme overrides
   ============================================================ */

:root {
  --bg:           #fff;
  --surface:      #f2f2f2;
  --border:       #ddd;
  --border-soft:  #eee;
  --row-alt:      #fafafa;
  --text:         #444;
  --heading:      #2d2d2d;
  --text-muted:   #666;
  --text-faint:   #888;
  --code-bg:      #eee;
}

[data-theme="dark"] {
  --bg:           #121212;
  --surface:      #1e1e1e;
  --border:       #333;
  --border-soft:  #2a2a2a;
  --row-alt:      #1a1a1a;
  --text:         #ccc;
  --heading:      #f0f0f0;
  --text-muted:   #999;
  --text-faint:   #888;
  --code-bg:      #262626;
}

/* 0. Reset */
html, body { border: none; margin: 0; padding: 0; }
h1,h2,h3,h4,h5,h6,p,blockquote,address,big,cite,code,em,font,img,small,
strike,sub,sup,li,ol,ul,fieldset,form,label,legend,button,table,caption,
tr,th,td { border:none; font-size:inherit; line-height:inherit; margin:0; padding:0; text-align:inherit; }
blockquote:before, blockquote:after { content: ""; }

/* 1. Document Setup */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  transition: background .15s ease-in-out, color .15s ease-in-out;
}
* { box-sizing: border-box; }
img { max-width: 100%; height: auto; }
.hidden { display: none; }
.left { float: left; }
.right { float: right; }
::selection { background: #1abc9c; color: #333; }

/* Transitions */
a { transition: all .1s ease-in-out; }
.blog-menu a, .blog-title a, .tothetop { transition: all .2s ease-in-out; }

/* Screen reader */
.screen-reader-text {
  clip: rect(1px,1px,1px,1px);
  position: absolute !important;
  height: 1px; width: 1px; overflow: hidden;
}

/* 2. Elements */
main { display: block; }
h1,h2,h3,h4,h5,h6 {
  color: var(--text);
  font-weight: 700;
  line-height: 1.2;
  margin: 28px 0 12px;
}
h1 { font-size: 2em; }
h2 { font-size: 1.75em; }
h3 { font-size: 1.5em; }
h4 { font-size: 1.25em; }
h5 { font-size: 1.1em; }
h6 { font-size: .9em; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; }
p { line-height: 1.5; margin: 0 0 20px 0; }
em, i, q, dfn { font-style: italic; }
b, strong { font-weight: 700; }
hr { border: none; border-top: 1px solid var(--border-soft); color: var(--border-soft); margin: 50px 0; }
a { color: #1abc9c; text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0 0 30px 30px; }
ul { list-style: disc; }
ol { list-style: decimal; }
li { line-height: 1.5; margin: 5px 0 0 20px; }
li > ul, li > ol { margin: 10px 0 0 20px; }

/* Tables */
table { border-collapse: collapse; border-spacing: 0; font-size: 0.9em; margin: 30px 0; width: 100%; }
tbody { border-top: 1px solid var(--border); }
th, td { padding: 2%; border-bottom: 1px solid var(--border); line-height: 120%; }
th { font-weight: bold; color: var(--text); }
thead { vertical-align: bottom; white-space: nowrap; }

/* Buttons */
button, .button, input[type="button"], input[type="submit"] {
  background-color: #1d1d1d;
  border: none; border-radius: 4px;
  color: #fff; cursor: pointer;
  display: inline-block;
  font-size: 16px; line-height: 1;
  padding: 16px 18px;
  text-align: center; text-decoration: none;
  transition: background-color .1s linear;
}
button:hover, .button:hover, input[type="submit"]:hover { background-color: #1abc9c; }

/* 3. Structure */
.section { padding: 10% 0; position: relative; }
.section.no-padding { padding: 0; }
.section.bg-dark { background: #1d1d1d; }
.section.bg-dark-light { background: #262626; }
.section-inner { width: 1040px; max-width: 86%; margin: 0 auto; }
.big-wrapper { overflow: hidden; }
.wrapper { margin-top: 40px; padding-bottom: 3em; }
.content { width: 65%; }
.template-fullwidth .content, .content.full-width { width: 100%; }

/* 4. Banner / Header */
.ect-banner {
  display: block;
  position: relative;
  overflow: hidden;
  background: #000;
  text-decoration: none;
  cursor: pointer;
}
.ect-banner:hover { text-decoration: none; }
#ect-rain {
  display: block;
  width: 100%;
  height: 220px;
}
.ect-scanlines {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0,0,0,0.08) 2px,
    rgba(0,0,0,0.08) 4px
  );
  pointer-events: none;
  z-index: 2;
}
.ect-vignette {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
  z-index: 3;
}
.ect-title-wrap {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  pointer-events: none;
}
.ect-title-box {
  background: #1d1d1d;
  border: 2px solid #00cc55;
  padding: 22px 48px;
  text-align: center;
}
.ect-name {
  font-family: 'Raleway', sans-serif;
  font-size: 1.75em;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 4px;
  line-height: 1;
}

/* 5. Navigation */
.navigation { background: #1d1d1d; }
.navigation-inner {
  width: 1040px;
  max-width: 86%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-menu { display: none; }
.blog-menu {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0 0 0 -20px;
}
.blog-menu ul { margin: 0; }
.blog-menu li { line-height: 1; margin: 0; position: relative; }
.blog-menu > li + li:before {
  color: #444;
  content: "/";
  display: block;
  font-size: 16px;
  line-height: 1;
  margin: -9px 0 0 -3px;
  position: absolute;
  left: 0; top: 50%;
  z-index: 1000;
}
.blog-menu a {
  color: rgba(255,255,255,0.5);
  display: block;
  font-size: 13px;
  letter-spacing: 1px;
  outline: none;
  padding: 27px 20px;
  text-transform: uppercase;
  text-underline-offset: .2em;
}
.blog-menu a:hover,
.blog-menu a:focus,
.blog-menu .current-menu-item > a { color: #fff; text-decoration: underline; }
.blog-menu > .menu-item-has-children a { padding-right: 35px; }
.blog-menu > .menu-item-has-children::after {
  content: "";
  display: block;
  border: 5px solid transparent;
  border-top-color: rgba(255,255,255,0.5);
  position: absolute;
  z-index: 1001;
  right: 17px; top: 50%;
  margin-top: -2px;
  transition: border-color .2s ease-in-out;
}
.blog-menu > .menu-item-has-children:hover::after { border-top-color: #fff; }
.blog-menu li:hover a { background-color: #1d1d1d; cursor: pointer; }
.blog-menu li:hover > a { color: #fff; }

/* Submenus */
.blog-menu ul {
  position: absolute;
  left: -9999px;
  display: none;
  z-index: 999;
}
.blog-menu ul li { float: none; display: block; width: 260px; background: #1d1d1d; }
.blog-menu ul a {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  line-height: 130%;
  margin: 0 20px;
  padding: 20px 0;
}
.blog-menu ul > li:last-child a { border-bottom-width: 0; }
.blog-menu li:hover > ul,
.blog-menu li.focus > ul { opacity: 1; left: 0; display: block; }
.blog-menu ul li:hover > ul,
.blog-menu ul li.focus > ul { left: 100%; top: 0; }
.blog-menu ul ul li { width: 220px; }
.blog-menu ul ul a { font-size: 0.75em; padding: 10px 0; }
.blog-menu ul li.menu-item-has-children > a::after { content: " ›"; }

/* Theme toggle */
.theme-toggle {
  appearance: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  padding: 8px 11px;
  margin: 0 12px;
  transition: border-color .2s ease-in-out, color .2s ease-in-out;
}
.theme-toggle:hover { color: #fff; border-color: rgba(255,255,255,0.6); }

/* Mobile toggles */
.toggle-container {
  background: #1d1d1d;
  display: none;
  justify-content: space-between;
}
.toggle {
  appearance: none;
  background: none;
  border-radius: 0;
  box-shadow: none;
  display: inline-block;
  height: 57px;
  padding: 20px 0;
  position: relative;
  width: 32px;
}
.toggle:hover { background-color: transparent; cursor: pointer; }
.nav-toggle .bar { display: block; width: 24px; height: 3px; margin-top: 4px; background: #666; }
.nav-toggle .bar:first-child { margin-top: 0; }
.nav-toggle.active .bar { background-color: #fff; }
.mobile-menu a {
  background-color: #282828;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.4);
  display: block;
  font-size: 13px;
  letter-spacing: 1px;
  padding: 24px;
  text-transform: uppercase;
}
.mobile-menu a:hover, .mobile-menu .current-menu-item a { color: #fff; text-decoration: none; }
.mobile-menu ul a { padding-left: 40px; }
.mobile-menu ul ul a { padding-left: 60px; }
.mobile-menu, .mobile-menu ul, .mobile-menu li { list-style: none; margin: 0; }

/* Search toggle icon (mobile) */
.search-toggle .metal {
  background-color: #555; border-radius: 999px;
  height: 24px; width: 24px;
  position: absolute; left: 6px; top: 14px;
}
.search-toggle .glass {
  background-color: #1d1d1d; border-radius: 999px;
  height: 14px; width: 14px;
  position: absolute; left: 11px; top: 19px;
}
.search-toggle .handle {
  background-color: #555; border-radius: 2px 0 0 2px;
  height: 5px; width: 14px;
  position: absolute; left: 0; top: 36px;
  transform: rotate(-45deg);
}

/* 6. Main Content */
.post, .page {
  border-bottom: 4px solid var(--border-soft);
  margin-bottom: 10%;
  padding-bottom: 10%;
}
.page .post, .post:last-of-type, .page:last-of-type {
  border-bottom: 0; margin-bottom: 0; padding-bottom: 0;
}
.post-header { margin-bottom: 0; }
.post-title {
  font-size: 2.5em; font-weight: 700; line-height: 1.2;
  margin: 0 0 8px; color: var(--heading);
  word-break: break-word;
}
.post-content { font-size: 19px; }
.post-content > *:first-child { margin-top: 0 !important; }
.post-content > *:last-child { margin-bottom: 0 !important; }
code, kbd, pre { font-size: 0.85em; background: var(--code-bg); font-family: Menlo, Monaco, monospace; }
.post-content kbd, .post-content code { padding: 5px; border-radius: 3px; }

/* 14. Footer */
.ect-footer {
  background: #0a0a0a;
  font-family: 'Share Tech Mono', monospace;
  position: relative;
}
.ect-top-border {
  height: 1px;
  background: rgba(0,200,80,0.08);
  position: relative;
  overflow: hidden;
}
.ect-top-border-glow {
  position: absolute;
  top: 0; left: -30%;
  width: 30%; height: 1px;
  background: linear-gradient(to right, transparent, rgba(0,210,85,0.75), transparent);
  animation: ect-h-run 6s linear infinite;
}
@keyframes ect-h-run {
  0%   { left: -30%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
.ect-footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 32px 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
.ect-col-left {
  flex: 1;
  padding-right: 40px;
}
.ect-tagline {
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0,210,85,0.75);
  margin-bottom: 12px;
}
.ect-divider-wrap {
  height: 1px;
  background: rgba(0,200,80,0.06);
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
  width: 100%;
}
.ect-divider-track {
  position: absolute;
  top: -40%; left: 0;
  width: 1px; height: 100px;
  background: linear-gradient(to bottom, transparent, rgba(0,210,85,0.75), transparent);
  animation: ect-div-run 5s linear infinite;
}
@keyframes ect-div-run {
  0%   { top: -40%; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { top: 140%; opacity: 0; }
}
.ect-col-right {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
}
.ect-contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}
.ect-icon {
  font-size: 0.7em;
  color: rgba(0,200,80,0.5);
  min-width: 10px;
  text-align: center;
}
.ect-phone, .ect-contact-row a {
  font-size: 0.78em;
  color: #e0e0e0;
  text-decoration: none;
  letter-spacing: 0.04em;
}
.ect-contact-row a:hover { color: #00cc55; text-decoration: none; }
.ect-credits-border {
  height: 1px;
  background: rgba(0,200,80,0.05);
  position: relative;
  overflow: hidden;
}
.ect-credits-border-glow {
  position: absolute;
  top: 0; left: -30%;
  width: 30%; height: 1px;
  background: linear-gradient(to right, transparent, rgba(0,200,80,0.45), transparent);
  animation: ect-h-run 8s linear infinite 2s;
}
.ect-credits {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  max-width: 960px;
  margin: 0 auto;
}
.ect-copyright {
  font-size: 0.65em;
  letter-spacing: 0.06em;
  color: #aaa;
  text-transform: uppercase;
}
.ect-top-btn {
  font-size: 0.65em;
  letter-spacing: 0.06em;
  color: #aaa;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.ect-top-btn:hover { color: #00cc55; text-decoration: none; }

/* Escape VMware page custom classes */
.ect-hero {
  background: var(--surface);
  border-left: 4px solid #00cc55;
  padding: 28px 32px;
  margin: 32px 0 40px;
  border-radius: 2px;
}
.ect-hero p:last-child { margin-bottom: 0; }
.ect-eyebrow {
  font-size: 0.75em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #00cc55;
  margin-bottom: 8px;
}
.ect-section { margin: 48px 0 32px; }
.ect-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.ect-stat-card {
  background: var(--surface);
  border-radius: 4px;
  padding: 20px;
  text-align: center;
}
.ect-stat-num {
  font-size: 2em;
  font-weight: 700;
  color: var(--heading);
  line-height: 1;
  display: block;
}
.ect-stat-label {
  font-size: 0.8em;
  color: var(--text-muted);
  display: block;
  margin-top: 6px;
  line-height: 1.4;
}
.ect-change-list { margin: 0; padding: 0; list-style: none; }
.ect-change-list li { margin: 0; }
.ect-tag {
  display: inline-block;
  background: #1d1d1d;
  color: #fff;
  font-size: 0.7em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 2px;
  margin-right: 8px;
  vertical-align: middle;
}
.ect-pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}
.ect-pricing-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.ect-pricing-header {
  padding: 14px 20px;
  background: #1d1d1d;
  color: #fff;
}
.ect-vendor {
  font-size: 0.7em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  display: block;
  margin-bottom: 2px;
}
.ect-pricing-header h3 {
  margin: 0;
  font-size: 0.95em;
  font-weight: 700;
  color: #fff;
  text-transform: none;
  letter-spacing: 0;
}
.ect-pricing-body { padding: 0; }
.ect-pricing-row {
  display: flex;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.85em;
}
.ect-pricing-row:last-child { border-bottom: none; }
.ect-pl { width: 50%; padding: 8px 14px; font-weight: 600; color: var(--text-muted); background: var(--row-alt); }
.ect-pr { width: 50%; padding: 8px 14px; color: var(--text); }
.ect-scenario {
  background: var(--surface);
  border-radius: 4px;
  padding: 20px 24px;
  margin: 20px 0;
  font-size: 0.9em;
}
.ect-cost-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}
.ect-cost-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 16px;
}
.ect-cost-label {
  font-size: 0.72em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}
.ect-cost-price {
  font-size: 1.4em;
  font-weight: 700;
  color: var(--heading);
  display: block;
  line-height: 1;
}
.ect-cost-sub {
  font-size: 0.78em;
  color: var(--text-faint);
  display: block;
  margin-top: 5px;
  line-height: 1.4;
}
.ect-fine-print {
  font-size: 0.78em;
  color: var(--text-faint);
  font-style: italic;
  margin-top: 8px;
}
.ect-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85em;
  margin: 20px 0;
}
.ect-table th {
  background: #1d1d1d;
  color: #fff;
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ect-table td { padding: 9px 12px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
.ect-table tr:nth-child(even) td { background: var(--row-alt); }
.ect-steps { list-style: none; margin: 0; padding: 0; counter-reset: steps; }
.ect-steps > li { margin: 0; }
.ect-step {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  align-items: flex-start;
}
.ect-step-num {
  background: #1d1d1d;
  color: #fff;
  font-size: 0.8em;
  font-weight: 700;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 4px;
}
.ect-step-content { flex: 1; }
.ect-step-content h3 { margin: 0 0 8px; font-size: 1.05em; }
.ect-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 20px 0;
}
.ect-info-card {
  background: var(--surface);
  border-radius: 4px;
  padding: 20px;
}
.ect-info-card h3 { margin: 0 0 10px; font-size: 1em; }
.ect-info-card ul { margin: 0; font-size: 0.88em; }
.ect-info-card ul li { margin-top: 4px; }
.ect-cta {
  background: var(--surface);
  border-radius: 4px;
  padding: 28px 32px;
  margin: 40px 0;
  text-align: center;
}
.ect-cta h2 { margin: 0 0 12px; font-size: 1.3em; }
.ect-cta p { margin: 0 0 20px; }
.ect-cta-btn {
  display: inline-block;
  background: #1d1d1d;
  color: #fff;
  padding: 14px 28px;
  border-radius: 4px;
  font-size: 0.9em;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ect-cta-btn:hover { background: #1abc9c; text-decoration: none; }

/* Media Queries */
@media (max-width: 1040px) {
  body { font-size: 16px; }
  .wrapper { margin-top: 7.5%; }
  .post-content { font-size: 17px; }
}
@media (max-width: 800px) {
  .content { width: 100%; float: none; }
  .blog-menu { display: none; }
  .toggle-container { display: flex; }
  .navigation-inner { max-width: 100%; }
  .ect-stat-grid { grid-template-columns: 1fr; }
  .ect-pricing-grid, .ect-cost-grid, .ect-two-col { grid-template-columns: 1fr; }
  .ect-footer-inner { flex-direction: column; }
  .ect-col-right { text-align: left; }
  .ect-contact-row { justify-content: flex-start; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .post-title { font-size: 1.75em; }
  #ect-rain { height: 160px; }
  .ect-name { font-size: 1.2em; letter-spacing: 2px; }
  .ect-pricing-row { flex-direction: column; }
  .ect-pl, .ect-pr { width: 100%; }
}
@media (max-width: 500px) {
  body { font-size: 15px; }
}
